mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
fix: title behavior on BlockSuite editor (#1264)
This commit is contained in:
@@ -1,11 +1,16 @@
|
||||
import type { Page } from '@playwright/test';
|
||||
|
||||
export async function newPage(page: Page) {
|
||||
await page.waitForSelector('virgo-line');
|
||||
// fixme(himself65): if too fast, the page will crash
|
||||
await page.getByTestId('sliderBar').getByText('New Page').click({
|
||||
delay: 100,
|
||||
});
|
||||
await page.waitForTimeout(100);
|
||||
await page.waitForSelector('virgo-line');
|
||||
}
|
||||
|
||||
export function getBlockSuiteEditorTitle(page: Page) {
|
||||
return page.locator('virgo-line').nth(0);
|
||||
}
|
||||
|
||||
export async function clickPageMoreActions(page: Page) {
|
||||
|
||||
Reference in New Issue
Block a user