mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 19:11:32 +03:00
6cbf5b2a92
Co-authored-by: AyushAgrawal-A2 <ayushagl06@gmail.com>
14 lines
335 B
TypeScript
14 lines
335 B
TypeScript
import type { Page } from '@playwright/test';
|
|
|
|
export async function clickEdgelessModeButton(page: Page) {
|
|
await page.getByTestId('switch-edgeless-mode-button').click({
|
|
delay: 50,
|
|
});
|
|
}
|
|
|
|
export async function clickPageModeButton(page: Page) {
|
|
return page.getByTestId('switch-page-mode-button').click({
|
|
delay: 50,
|
|
});
|
|
}
|