Skip to content

Commit

Permalink
Fix snapshot to include the bug, add an await to avoid flaky updates
Browse files Browse the repository at this point in the history
  • Loading branch information
krassowski committed Apr 14, 2024
1 parent f7e5022 commit f613fde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions galata/test/documentation/general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ test.describe('General', () => {
await page.mouse.move(viewerBBox.x + 0.5 * viewerBBox.width, 600);
await page.mouse.up();

// wait for the debugger bug icon to settle
await page
.locator('.jp-DebuggerBugButton[aria-disabled="false"]')
.waitFor();

expect(await page.screenshot()).toMatchSnapshot('jupyterlab.png');
});

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f613fde

Please sign in to comment.