mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): flaky tests (#5804)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user