E2E testing setup
This directory contains the end-to-end (E2E) testing setup for the project.
Adding a test
- create a new file in this directory with the
.spec.tsextension - copy the paterns from the existing tests
Running the tests locally
To run the tests locally, you can use the following command:
pnpm playwright
CI (vercel + checkly)
These tests are run automatically on every pull request as part of the vercel build (after the build completes we check if the tests pass and then we deploy the changes to the preview environment).
Your PR will be blocked from deploying if these tests fail.
Updating the tests in checkly
- Create the tests
- make sure they run locally
- push the changes to the repository and run
pnpm update-checklyto update the checkly tests. (Requires checkly cli being signed in, meaning you need to have checkly access.)