Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
docs: automated tests with dev env (#6156)
Browse files Browse the repository at this point in the history
Included dev env variations for running playwright tests
  • Loading branch information
amandamartin-dev authored Apr 17, 2023
1 parent 811cdd8 commit 34ea73c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pages/docs/contributing/automated-tests.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ import Link from "@components/Link";

We use <Link href="http://playwright.dev">Playwright</Link> for writing automated end to end (e2e) tests.

**Dev environment variations**

Gitpod: Skip to step 3

Docker: Start docker for mongo only with the command `docker compose -f mongo-compose.yml` then continue in a second terminal window with steps 1-3.

1. Install dependencies with `npm ci`
1. Install Playwright dependencies `npx playwright install --with-deps`
1. Run tests `npm run test`
1. Run tests `npm run test` (Note: if you would like to run a single test, include the name of the file in your command `npm run test my-test.js`

```bash
npm run test
Expand Down

0 comments on commit 34ea73c

Please sign in to comment.