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:
Chi Zhang
2022-12-31 02:32:59 +08:00
committed by GitHub
parent 582aed8744
commit b309e2670d
11 changed files with 42 additions and 61 deletions

11
tests/libs/page-logic.ts Normal file
View 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();
}