Skip to content

Commit

Permalink
Improve ui tests config (#121)
Browse files Browse the repository at this point in the history
* Improve ui tests config

* Add dedicated scripts
  • Loading branch information
fcollonval committed Aug 16, 2023
1 parent b68d346 commit 39f2a92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion ui-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
"private": true,
"scripts": {
"start": "jupyter lab --config jupyter_server_test_config.py",
"start:notebook": "jupyter notebook --config jupyter_server_test_config.py",
"test": "jlpm playwright test",
"test:update": "jlpm playwright test --update-snapshots"
"test:notebook": "jlpm playwright test -c playwright-notebook.config.js",
"test:update": "jlpm playwright test --update-snapshots",
"test:notebook:update": "jlpm playwright test -c playwright-notebook.config.js --update-snapshots"
},
"devDependencies": {
"@jupyterlab/galata": "^5.0.5",
Expand Down
4 changes: 2 additions & 2 deletions ui-tests/playwright-notebook.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ module.exports = {
appPath: ''
},
webServer: {
command: 'jlpm start',
url: 'http://localhost:8888/lab',
command: 'jlpm start:notebook',
url: 'http://localhost:8888/tree',
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI
}
Expand Down

0 comments on commit 39f2a92

Please sign in to comment.