diff --git a/.eslintignore b/.eslintignore index 68b6db135..8e5e20199 100644 --- a/.eslintignore +++ b/.eslintignore @@ -12,6 +12,7 @@ node_modules **/schemas **/themes **/templates +**/widget_lib coverage *.map.js *.bundle.js diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index d9381e296..1df0b8c0a 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -46,6 +46,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 diff --git a/docs/source/contribute.rst b/docs/source/contribute.rst index ccfd3b67d..e108a3a2f 100755 --- a/docs/source/contribute.rst +++ b/docs/source/contribute.rst @@ -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 ================= diff --git a/ui-tests/package.json b/ui-tests/package.json index 7c2768479..314fcc59d 100644 --- a/ui-tests/package.json +++ b/ui-tests/package.json @@ -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"