2023-03-15 19:58:43 +03:00
|
|
|
import type { Page } from '@playwright/test';
|
2023-03-05 09:51:29 +03:00
|
|
|
|
|
|
|
export async function clickSideBarSettingButton(page: Page) {
|
2023-03-17 10:51:00 +03:00
|
|
|
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();
|
|
|
|
}
|
|
|
|
|
2024-03-26 09:10:38 +03:00
|
|
|
export async function clickSideBarUseAvatar(page: Page) {
|
|
|
|
return page.getByTestId('sidebar-user-avatar').click();
|
|
|
|
}
|
|
|
|
|
2023-03-17 10:51:00 +03:00
|
|
|
export async function clickNewPageButton(page: Page) {
|
2023-12-18 16:36:56 +03:00
|
|
|
return page.getByTestId('sidebar-new-page-button').click();
|
2023-03-05 09:51:29 +03:00
|
|
|
}
|