AFFiNE/tests/libs/sidebar.ts
Himself65 94d535f72b
test: support test e2e with OctoBase (#1593)
Co-authored-by: DarkSky <darksky2048@gmail.com>
2023-03-17 03:51:00 -04:00

18 lines
540 B
TypeScript

import type { Page } from '@playwright/test';
export async function clickSideBarSettingButton(page: Page) {
return page.getByTestId('slider-bar-workspace-setting-button').click();
}
export async function clickSideBarAllPageButton(page: Page) {
return page.getByTestId('all-pages').click();
}
export async function clickSideBarCurrentWorkspaceBanner(page: Page) {
return page.getByTestId('current-workspace').click();
}
export async function clickNewPageButton(page: Page) {
return page.getByTestId('new-page-button').click();
}