mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
feat: cloud sync tests (#643)
* fix: fix new page login in e2e test * test: add page-logic to simpliy new-page * test: sync clickPageMoreActions
This commit is contained in:
11
tests/libs/page-logic.ts
Normal file
11
tests/libs/page-logic.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export async function newPage(page) {
|
||||
return page.getByTestId('sliderBar').getByText('New Page').click();
|
||||
}
|
||||
|
||||
export async function clickPageMoreActions(page) {
|
||||
return page
|
||||
.getByTestId('editor-header-items')
|
||||
.getByRole('button')
|
||||
.nth(2)
|
||||
.click();
|
||||
}
|
||||
Reference in New Issue
Block a user