Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 67961d9

Browse files
authored
Merge pull request #278 from jtpio/update-test-docs
Update testing docs
2 parents 9010ff5 + 9c482d3 commit 67961d9

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

CONTRIBUTING.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,21 @@ jlpm run build:test
7878
jlpm run test
7979
```
8080

81-
There are also end to end tests to cover higher level user interactions, located in the `app/test` folder. To run these tests:
81+
There are also end to end tests to cover higher level user interactions, located in the [`ui-tests`](./ui-tests) folder. To run these tests:
8282

8383
```bash
84+
cd ui-tests
8485
# start a new Jupyter server in a terminal
85-
npm start
86+
jlpm start
8687

87-
# run the end to end tests
88-
jlpm run test:e2e
88+
# in a new terminal, run the tests
89+
jlpm test
90+
```
8991

90-
# to run in headful mode
91-
PWDEBUG=1 jlpm run test:e2e
92+
The `test` script calls the Playwright test runner. You can pass additional arguments to `playwright` by appending parameters to the command. For example to run the test in headed mode, `jlpm test --headed`.
9293

93-
# to run with firefox as the browser
94-
BROWSER=firefox jlpm run test:e2e
95-
```
94+
Checkout the [Playwright Command Line Reference](https://playwright.dev/docs/test-cli/) for more information about the available command line options.
9695

9796
Running the end to end tests in headful mode will trigger something like the following:
9897

99-
![end-to-end-smoke](https://user-images.githubusercontent.com/591645/106299215-34a67b00-6255-11eb-854c-756a8790246b.gif)
98+
![playwight-headed-demo](https://user-images.githubusercontent.com/591645/141274633-ca9f9c2f-eef6-430e-9228-a35827f8133d.gif)

0 commit comments

Comments
 (0)