Skip to content

Commit

Permalink
Fix Cypress setup instructions (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Feb 28, 2023
2 parents bdd26d9 + 9e6375e commit 1d04d3d
Showing 1 changed file with 18 additions and 22 deletions.
40 changes: 18 additions & 22 deletions docs/tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,40 +14,36 @@ will install `cypress` and its dependencies on your machine. Make sure to run th

1. Ensure you have Node.js and NPM available on your local machine:

```bash
node -v
npm -v
```
```bash
node -v
npm -v
```

If not, [install Node.js](https://nodejs.org/en/download/) locally.
If not, [install Node.js](https://nodejs.org/en/download/) locally.

2. Start the the application container
2. Start the the application container:

```bash
cd .devcontainer/
docker compose up -d client
```
```bash
docker compose up -d client
```

3. Change into the `cypress` directory:

```bash
cd ..
cd tests/cypress
```
```bash
cd tests/cypress
```

4. Install all packages and `cypress`. Verify `cypress` installation succeeds:

```bash
npm install
npx cypress install
npx cypress verify
```
```bash
npm install
```

5. Run `cypress` with test environment variables and configuration variables:

```bash
CYPRESS_baseUrl=http://localhost:8000 npm run cypress:open
```
```bash
CYPRESS_baseUrl=http://localhost:8000 npm run cypress:open
```

See `tests/cypress/package.json` for more cypress scripts.

Expand Down

0 comments on commit 1d04d3d

Please sign in to comment.