From 57fc5349e4b852c8b6a9e4ee7e0ff4d77abddfc4 Mon Sep 17 00:00:00 2001 From: Duc Trung LE Date: Fri, 15 Oct 2021 17:38:55 +0200 Subject: [PATCH] Update docs for UI test --- docs/source/contribute.rst | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/source/contribute.rst b/docs/source/contribute.rst index 0030450ab..ccfd3b67d 100755 --- a/docs/source/contribute.rst +++ b/docs/source/contribute.rst @@ -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 =================