AFFiNE/tests/kit/utils/editor.ts

14 lines
335 B
TypeScript
Raw Normal View History

2023-07-12 21:02:00 +03:00
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,
});
}