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 committed Oct 15, 2021
1 parent 0ff75a1 commit db9fc2a
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 @@ -218,6 +218,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 db9fc2a

Please sign in to comment.