Skip to content

Commit

Permalink
Merge pull request #1048 from martinRenou/update_screenshots
Browse files Browse the repository at this point in the history
UI-tests: Update ipympl screenshots
  • Loading branch information
trungleduc authored Dec 21, 2021
2 parents 41ad079 + 62d6c4b commit 63a81d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install --upgrade jupyterlab~=3.0 numpy bqplot matplotlib ipympl==0.8.0 ipyvolume scipy
python -m pip install --upgrade jupyterlab~=3.0 numpy bqplot matplotlib ipympl ipyvolume scipy
python -m pip install ".[test]"
jlpm
jlpm build
Expand Down
4 changes: 1 addition & 3 deletions ui-tests/tests/voila.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ test.describe('Voila performance Tests', () => {
const notebookName = 'ipympl';
const testFunction = async () => {
await page.goto(`render/${notebookName}.ipynb`);
await page.waitForSelector(
'div.jupyter-widgets.jupyter-matplotlib-canvas-container canvas'
);
await page.waitForSelector('div.jupyter-matplotlib-figure');
};
await addBenchmarkToTest(notebookName, testFunction, testInfo, browserName);
expect(await page.screenshot()).toMatchSnapshot(`${notebookName}.png`);
Expand Down
Binary file modified ui-tests/tests/voila.test.ts-snapshots/ipympl-linux.png
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 63a81d1

Please sign in to comment.