mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-25 19:31:52 +03:00
14 lines
328 B
TypeScript
14 lines
328 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')
|
|
.nth(2)
|
|
.click();
|
|
}
|