Skip to content

Commit

Permalink
Split test project
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Dec 8, 2021
1 parent 7a60e27 commit 4ef40d0
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ node_modules
**/schemas
**/themes
**/templates
**/widget_lib
coverage
*.map.js
*.bundle.js
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ui-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ jobs:
resource: http-get://localhost:8868/
timeout: 360000

- uses: iterative/setup-cml@v1
- name: Stability test
shell: bash
run: |
cd ui-tests
jlpm run test-stability
- name: Launch Voila
run: |
cd ui-tests
Expand Down
9 changes: 5 additions & 4 deletions docs/source/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,20 @@ Install `Playwright` and `Chromium` browser:
jlpm install --frozen-lockfile
jlpm playwright install chromium
Start `Voilà` server for snapshot and stability testing:
Start `Voilà` server and run the snapshot tests:

.. code-block:: bash
# In ui-tests folder
jlpm start
jlpm start-stability
jlpm test
Finally, to run the tests:
To run the stability tests:

.. code-block:: bash
jlpm run test
jlpm start-stability
jlpm test-stability
Editing templates
=================
Expand Down
3 changes: 2 additions & 1 deletion ui-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"start": "voila ../notebooks --no-browser",
"start-stability": "voila ./notebooks --no-browser --enable_nbextensions=True --port 8868",
"start:detached": "yarn run start-jlab&",
"test": "playwright test",
"test": "playwright test --project render-and-benchmark",
"test-stability": "playwright test --project stability-test",
"test:debug": "PWDEBUG=1 playwright test",
"test:report": "http-server ./playwright-report -a localhost -o",
"test:update": "playwright test --update-snapshots"
Expand Down

0 comments on commit 4ef40d0

Please sign in to comment.