Skip to content

Commit

Permalink
update e2e/integration test README
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Aug 31, 2023
1 parent 5816369 commit dd8ab16
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions packages/jupyter-ai/ui-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,27 @@ To run the tests, you need to:
1. Compile the extension:

```sh
jlpm install
jlpm build:prod
./scripts/install.sh
jlpm build
```

> Check the extension is installed in JupyterLab.
2. Install test dependencies (needed only once):

```sh
cd ./ui-tests
cd ./packages/jupyter-ai/ui-tests/
jlpm install
jlpm playwright install
cd ..
cd ../../../
```

3. Execute the [Playwright](https://playwright.dev/docs/intro) tests:

```sh
cd ./ui-tests
cd ./packages/jupyter-ai/ui-tests/
jlpm playwright test
cd ../../../
```

Test results will be shown in the terminal. In case of any test failures, the test report
Expand Down Expand Up @@ -72,13 +73,15 @@ jlpm build
cd ./packages/jupyter-ai/ui-tests/
jlpm install
jlpm playwright install
cd ../../../
```

3. Execute the [Playwright](https://playwright.dev/docs/intro) command:

```sh
cd ./packages/jupyter-ai/ui-tests/
jlpm playwright test -u
jlpm playwright test
cd ../../../
```

> Some discrepancy may occurs between the snapshots generated on your computer and
Expand Down Expand Up @@ -161,4 +164,5 @@ To update the web browser versions, you must update the package `@playwright/tes
cd cd ./packages/jupyter-ai/ui-tests/
jlpm up "@playwright/test"
jlpm playwright install
cd ../../../
```

0 comments on commit dd8ab16

Please sign in to comment.