Skip to content

Commit

Permalink
Collapse the "create empty" section on test snapshot (#12)
Browse files Browse the repository at this point in the history
* Collapse the "create empty" section on test snapshot

to avoid jitter

* Update snapshot

* Fix the test path

* Wait for animations

* Update snapshot
  • Loading branch information
krassowski authored May 7, 2024
1 parent edb8eec commit 2e41fef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui-tests/tests/jupyterlab_new_launcher.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ test.describe('With starred section', () => {
.locator('.jp-Launcher-launchNotebook .jp-starIconButton')
.click();
await page.locator('.jp-Launcher-launchConsole .jp-starIconButton').click();
// collapse the "create empty" section
await page.locator('.jp-Launcher-openByType summary').click();
// wait for animations to complete
await page.waitForTimeout(400);
expect(await launcher.screenshot()).toMatchSnapshot(
'launcher-with-starred.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 2e41fef

Please sign in to comment.