fix(core): flaky tests (#5804)

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

No files matched your search

+6 -1
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) {