Skip to content

Commit

Permalink
Improve documentation for Playwright tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
whusterj committed Aug 29, 2024
1 parent 0d0801f commit fa6ba90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions {{cookiecutter.project_slug}}/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@ DEFAULT_FROM_EMAIL='{{ cookiecutter.project_name }} <noreply@{{ cookiecutter.pro

# Testing (NOTE: Heroku and Github Actions will need to have matching values for some of these)
DJANGO_SUPERUSER_PASSWORD='!!!DJANGO_SECRET_KEY!!!'
CYPRESS_TEST_USER_PASS='!!!DJANGO_SECRET_KEY!!!'
CYPRESS_baseUrl='http://localhost:8080'
PLAYWRIGHT_TEST_USER_PASS='!!!DJANGO_SECRET_KEY!!!'
PLAYWRIGHT_TEST_BASE_URL='http://localhost:8080'
8 changes: 7 additions & 1 deletion {{cookiecutter.project_slug}}/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@ See the [frontend README](client/README.md)
1. `pipenv run pytest server`
1. `pipenv run black server`
1. `pipenv run isort server --diff` (shows you what isort is expecting)

## Frontend E2E Testing with Playwright

1. `cd client`
1. `npx playwright install` - Installs browser driver
1. `npx playwright install-deps` - Install system-level dependencies
1. `npx playwright test`
1. `npx playwright codegen localhost:8080` (generate your tests through manual testing)
1. `npx playwright codegen localhost:8080` - Generate your tests through manual testing

0 comments on commit fa6ba90

Please sign in to comment.