AFFiNE/tests/libs/page-logic.ts

14 lines
328 B
TypeScript
Raw Normal View History

2023-01-03 16:57:33 +03:00
import type { Page } from '@playwright/test';
export async function newPage(page: Page) {
return page.getByTestId('sliderBar').getByText('New Page').click();
}
2023-01-03 16:57:33 +03:00
export async function clickPageMoreActions(page: Page) {
return page
.getByTestId('editor-header-items')
.getByRole('button')
.nth(2)
.click();
}