mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-13 08:06:24 +08:00
17 lines
414 B
TypeScript
17 lines
414 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
export async function newPage(page: Page) {
|
|
return page.getByTestId('sliderBar').getByText('New Page').click();
|
|
}
|
|
|
|
export async function clickPageMoreActions(page: Page) {
|
|
return (
|
|
page
|
|
.getByTestId('editor-header-items')
|
|
.getByRole('button')
|
|
//FIXME: temporary change due to cloud sync icon being hidden
|
|
.nth(0)
|
|
.click()
|
|
);
|
|
}
|