fix(electron): workaround for unstable e2e (#8357)

This commit is contained in:
pengx17
2024-09-24 01:54:09 +00:00
parent 503e020412
commit 6110767fa8

View File

@@ -45,6 +45,8 @@ export async function type(page: Page, content: string, delay = 50) {
}
export const createLinkedPage = async (page: Page, pageName?: string) => {
// fixme: workaround for @ popover not showing up when editor is not ready
await page.waitForTimeout(500);
await page.keyboard.type('@', { delay: 50 });
const linkedPagePopover = page.locator('.linked-doc-popover');
await expect(linkedPagePopover).toBeVisible();