mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-05 03:19:52 +08:00
feat: e2e test improvement (#642)
* fix: fix new page login in e2e test * test: add page-logic to simpliy new-page * test: restore core test
This commit is contained in:
@@ -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(1)
|
||||
.click();
|
||||
}
|
||||
Reference in New Issue
Block a user