mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-15 09:32:51 +03:00
cef9e0539d
<img width="440" alt="image" src="https://github.com/toeverything/AFFiNE/assets/102217452/329f9c12-cc0b-4aae-9352-3811ab0a27a6">
18 lines
548 B
TypeScript
18 lines
548 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('sidebar-new-page-button').click();
|
|
}
|