fix(core): flaky tests (#5804)

This commit is contained in:
Peng Xiao
2024-02-06 03:20:54 +00:00
parent afccf3d8c9
commit 005c02f148
4 changed files with 20 additions and 10 deletions

View File

@@ -19,7 +19,12 @@ export async function clickNewPageButton(page: Page) {
await page.getByTestId('sidebar-new-page-button').click({
delay: 100,
});
await waitForEditorLoad(page);
await expect(page.locator('.doc-title-container-empty')).toBeVisible();
await waitForEmptyEditor(page);
}
export async function waitForEmptyEditor(page: Page) {
await expect(page.locator('.doc-title-container-empty')).toBeVisible();
}
export function getBlockSuiteEditorTitle(page: Page) {