Skip to content

Commit

Permalink
Update docs for UI test
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc authored and jtpio committed Nov 10, 2021
1 parent bd8e16e commit ac6a3e5
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions docs/source/contribute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,39 @@ Finally, to run the tests:
python -m pytest
UI tests with `Playwright`
==========================

Install the test dependencies and the mock widgets:

.. code-block:: bash
python -m pip install jupyterlab~=3.0 numpy bqplot matplotlib ipympl ipyvolume scipy
cd tests/widget_lib
pip install .
Install `Playwright` and `Chromium` browser:

.. code-block:: bash
cd ui-tests
jlpm install --frozen-lockfile
jlpm playwright install chromium
Start `Voilà` server for snapshot and stability testing:

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

.. code-block:: bash
jlpm run test
Editing templates
=================

Expand Down

0 comments on commit ac6a3e5

Please sign in to comment.