mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-04 10:53:05 +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();
|
|
}
|