Skip to content

Commit 88de35e

Browse files
authored
Update integration tests setup (jupyterlab#1152)
* Update integration tests setup * Add jupyter-archive to test dependencies
1 parent 0c62b8a commit 88de35e

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,6 @@ dev=
4646
tests=
4747
%(dev)s
4848
hybridcontents
49+
jupyter-archive
4950
jupytext
5051

ui-tests/README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
The test will produce a video to help debugging in case of failures and check what happened.
44

5+
0. Install additional dependency:
6+
7+
```
8+
pip install jupyter-archive
9+
```
10+
511
1. Compile the extension:
612

713
```
@@ -12,7 +18,7 @@ jlpm run build:prod
1218
2. Start JupyterLab _with the extension installed_ without any token or password
1319

1420
```
15-
jupyter lab --config ./ui-tests/jupyter_server_config.py
21+
jupyter lab --config ./ui-tests/jupyter_server_test_config.py
1622
```
1723

1824
3. Execute in another console the [Playwright](https://playwright.dev/docs/intro) tests:
@@ -28,6 +34,12 @@ jlpm playwright test
2834

2935
To create tests, the easiest way is to use the code generator tool of playwright:
3036

37+
0. Install additional dependency:
38+
39+
```
40+
pip install jupyter-archive
41+
```
42+
3143
1. Compile the extension:
3244

3345
```
@@ -38,7 +50,7 @@ jlpm run build:prod
3850
2. Start JupyterLab _with the extension installed_ without any token or password:
3951

4052
```
41-
jupyter lab --config ./ui-tests/jupyter_server_config.py
53+
jupyter lab --config ./ui-tests/jupyter_server_test_config.py
4254
```
4355

4456
3. Launch the code generator tool:
@@ -54,6 +66,12 @@ jlpm playwright codegen localhost:8888
5466

5567
To debug tests, a good way is to use the inspector tool of playwright:
5668

69+
0. Install additional dependency:
70+
71+
```
72+
pip install jupyter-archive
73+
```
74+
5775
1. Compile the extension:
5876

5977
```
@@ -64,7 +82,7 @@ jlpm run build:prod
6482
2. Start JupyterLab _with the extension installed_ without any token or password:
6583

6684
```
67-
jupyter lab --config ./ui-tests/jupyter_server_config.py
85+
jupyter lab --config ./ui-tests/jupyter_server_test_config.py
6886
```
6987

7088
3. Launch the debug tool:

0 commit comments

Comments
 (0)