AFFiNE/tests/libs/page-logic.ts
2023-01-03 21:57:33 +08:00

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();
}