File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ recursive-exclude jupyterlab *.js.map
34
34
35
35
# Galata
36
36
include galata/README.md
37
- include galata/jupyter_server_config .py
37
+ include galata/jupyter_server_test_config .py
38
38
include galata/*.js
39
39
recursive-include galata/media *.*
40
40
graft galata/src
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ jlpm playwright install
26
26
27
27
Create a Playwright configuration file ` playwright.config.js ` containing:
28
28
29
- ```
29
+ ``` js
30
30
module .exports = require (' @jupyterlab/galata/lib/playwright-config' );
31
31
```
32
32
@@ -66,8 +66,8 @@ Create `jupyter_server_test_config.py` with the following content.
66
66
from tempfile import mkdtemp
67
67
68
68
c.ServerApp.port = 8888
69
+ c.ServerApp.port_retries = 0
69
70
c.ServerApp.open_browser = False
70
- c.LabApp.dev_mode = True
71
71
72
72
c.ServerApp.root_dir = mkdtemp(prefix = ' galata-test-' )
73
73
c.ServerApp.token = " "
@@ -137,6 +137,13 @@ PWDEBUG=1 jlpm playwright test
137
137
138
138
Here are the new test fixture introduced by Galata on top of [ Playwright fixtures] ( https://playwright.dev/docs/api/class-fixtures ) .
139
139
140
+ ### baseURL
141
+
142
+ - type: < string >
143
+
144
+ Application base URL without ` /lab ` . It defaults to environment variable ` TARGET_URL ` or ` http://localhost:8888 ` if nothing
145
+ is defined.
146
+
140
147
### appPath
141
148
142
149
- type: < string >
Original file line number Diff line number Diff line change 6
6
c .ServerApp .ip = "0.0.0.0"
7
7
8
8
c .ServerApp .port = 8888
9
+ c .ServerApp .port_retries = 0
9
10
c .ServerApp .open_browser = False
10
11
c .LabApp .dev_mode = True
11
12
Original file line number Diff line number Diff line change 34
34
"build:galata" : " tsc -b" ,
35
35
"build:inpage" : " webpack --mode=production" ,
36
36
"clean" : " rimraf lib tsconfig.tsbuildinfo" ,
37
- "start" : " jupyter lab --config ./jupyter_server_config .py" ,
37
+ "start" : " jupyter lab --config ./jupyter_server_test_config .py" ,
38
38
"start:detached" : " (jlpm run start&)" ,
39
39
"test" : " playwright test" ,
40
40
"test:benchmark" : " jlpm run test -c playwright-benchmark.config.js" ,
You can’t perform that action at this time.
0 commit comments