Skip to content

Commit

Permalink
fix(electron): workaround for unstable e2e (#8357)
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 committed Sep 24, 2024
1 parent 503e020 commit 6110767
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/kit/utils/page-logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 6110767

Please sign in to comment.