@jupyterlab/galata 5.6.0-beta.0 → 5.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -605,7 +605,7 @@ The tests are located in the subfolder [test/benchmark](./test/benchmark). And t
|
|
|
605
605
|
executed with the following command:
|
|
606
606
|
|
|
607
607
|
```bash
|
|
608
|
-
jlpm
|
|
608
|
+
jlpm test:benchmark
|
|
609
609
|
```
|
|
610
610
|
|
|
611
611
|
A special report will be generated in the folder `benchmark-results` that will contain 4 files:
|
|
@@ -616,7 +616,7 @@ A special report will be generated in the folder `benchmark-results` that will c
|
|
|
616
616
|
- `lab-benchmark.vl.json`: The [_Vega-Lite_](https://vega.github.io/vega-lite) description used to produce the figure.
|
|
617
617
|
|
|
618
618
|
The reference, tagged _expected_, is stored in `lab-benchmark-expected.json`. It can be
|
|
619
|
-
created using the `-u` option of Playwright; i.e. `jlpm
|
|
619
|
+
created using the `-u` option of Playwright; i.e. `jlpm test:benchmark -u`.
|
|
620
620
|
|
|
621
621
|
### Benchmark parameters
|
|
622
622
|
|
|
@@ -636,13 +636,13 @@ Install dependencies and build
|
|
|
636
636
|
```
|
|
637
637
|
cd galata
|
|
638
638
|
jlpm
|
|
639
|
-
jlpm
|
|
639
|
+
jlpm build
|
|
640
640
|
```
|
|
641
641
|
|
|
642
642
|
For tests to be run, a JupyterLab instance must be up and running. Launch it without credentials. Tests expect to connect JupyterLab from `localhost:8888` by default. If a different URL is to be used, it can be specified by defining `TARGET_URL` environment variable or setting the Playwright `baseURL` fixture.
|
|
643
643
|
|
|
644
644
|
```
|
|
645
|
-
jlpm
|
|
645
|
+
jlpm start
|
|
646
646
|
```
|
|
647
647
|
|
|
648
648
|
> The JupyterLab root directory is randomly generated in the temporary folder (prefixed with _galata-test-_).
|
|
@@ -650,7 +650,7 @@ jlpm run start
|
|
|
650
650
|
### Running tests
|
|
651
651
|
|
|
652
652
|
Tests are grouped in two projects: `galata` and `jupyterlab`. The first one is testing Galata helpers and fixtures when the other one is running all tests for Jupyterlab.
|
|
653
|
-
By default, both projects will be executed when running `jlpm
|
|
653
|
+
By default, both projects will be executed when running `jlpm test`. But you can select one project with the CLI option `--project <project-id>`.
|
|
654
654
|
|
|
655
655
|
## Configuration
|
|
656
656
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupyterlab/galata",
|
|
3
|
-
"version": "5.6.0-beta.
|
|
3
|
+
"version": "5.6.0-beta.1",
|
|
4
4
|
"description": "JupyterLab UI Testing Framework",
|
|
5
5
|
"homepage": "https://github.com/jupyterlab/jupyterlab",
|
|
6
6
|
"bugs": {
|
|
@@ -35,26 +35,26 @@
|
|
|
35
35
|
"test": "playwright test",
|
|
36
36
|
"test:base": "playwright test --project galata jupyterlab",
|
|
37
37
|
"test:base:update": "playwright test --project galata jupyterlab --update-snapshots",
|
|
38
|
-
"test:benchmark": "jlpm
|
|
39
|
-
"test:benchmark:update": "BENCHMARK_NUMBER_SAMPLES=1 jlpm
|
|
38
|
+
"test:benchmark": "jlpm test -c playwright-benchmark.config.js",
|
|
39
|
+
"test:benchmark:update": "BENCHMARK_NUMBER_SAMPLES=1 jlpm test -c playwright-benchmark.config.js --update-snapshots",
|
|
40
40
|
"test:debug": "PWDEBUG=1 playwright test",
|
|
41
|
-
"test:doc": "jlpm
|
|
42
|
-
"test:doc:update": "jlpm
|
|
41
|
+
"test:doc": "jlpm test --project documentation",
|
|
42
|
+
"test:doc:update": "jlpm test --project documentation --update-snapshots",
|
|
43
43
|
"test:report": "playwright show-report",
|
|
44
44
|
"test:update": "jlpm test:base:update ; jlpm test:benchmark:update"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@jupyterlab/application": "^4.6.0-beta.
|
|
48
|
-
"@jupyterlab/apputils": "^4.7.0-beta.
|
|
49
|
-
"@jupyterlab/coreutils": "^6.6.0-beta.
|
|
50
|
-
"@jupyterlab/debugger": "^4.6.0-beta.
|
|
51
|
-
"@jupyterlab/docmanager": "^4.6.0-beta.
|
|
52
|
-
"@jupyterlab/nbformat": "^4.6.0-beta.
|
|
53
|
-
"@jupyterlab/notebook": "^4.6.0-beta.
|
|
54
|
-
"@jupyterlab/services": "^7.6.0-beta.
|
|
55
|
-
"@jupyterlab/settingregistry": "^4.6.0-beta.
|
|
47
|
+
"@jupyterlab/application": "^4.6.0-beta.1",
|
|
48
|
+
"@jupyterlab/apputils": "^4.7.0-beta.1",
|
|
49
|
+
"@jupyterlab/coreutils": "^6.6.0-beta.1",
|
|
50
|
+
"@jupyterlab/debugger": "^4.6.0-beta.1",
|
|
51
|
+
"@jupyterlab/docmanager": "^4.6.0-beta.1",
|
|
52
|
+
"@jupyterlab/nbformat": "^4.6.0-beta.1",
|
|
53
|
+
"@jupyterlab/notebook": "^4.6.0-beta.1",
|
|
54
|
+
"@jupyterlab/services": "^7.6.0-beta.1",
|
|
55
|
+
"@jupyterlab/settingregistry": "^4.6.0-beta.1",
|
|
56
56
|
"@lumino/coreutils": "^2.2.2",
|
|
57
|
-
"@playwright/test": "^1.
|
|
57
|
+
"@playwright/test": "^1.60.0",
|
|
58
58
|
"@stdlib/stats": "~0.0.13",
|
|
59
59
|
"fs-extra": "^10.1.0",
|
|
60
60
|
"json5": "^2.2.3",
|
|
@@ -69,5 +69,6 @@
|
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
|
+
"packageManager": "yarn@3.5.0"
|
|
73
74
|
}
|