Skip to content

Commit

Permalink
Update README.md to have correct commands and folders
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-i committed Aug 31, 2023
1 parent c7c9ee4 commit 5816369
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions packages/jupyter-ai/ui-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,25 +60,24 @@ the reference snapshots stored in the repository. To do that, 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 ..
```

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

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

Expand All @@ -96,32 +95,31 @@ To create tests, the easiest way is to use the code generator tool of playwright
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 ..
```

3. Start the server:

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

4. Execute the [Playwright code generator](https://playwright.dev/docs/codegen) in **another terminal**:

```sh
cd ./ui-tests
cd ./packages/jupyter-ai/ui-tests/
jlpm playwright codegen localhost:8888
```

Expand All @@ -143,16 +141,15 @@ jlpm build:prod
2. Install test dependencies (needed only once):

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

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

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

Expand All @@ -161,7 +158,7 @@ jlpm playwright test --debug
To update the web browser versions, you must update the package `@playwright/test`:

```sh
cd ./ui-tests
cd cd ./packages/jupyter-ai/ui-tests/
jlpm up "@playwright/test"
jlpm playwright install
```

0 comments on commit 5816369

Please sign in to comment.