Files
js/tests/README.md
T
Jonas Daniels 57b345ae97 test: add tests for chain-page, contract-page, and publisher-page (#2352)
* test: add tests for chain-page, contract-page, and publisher-page

* refactor: Add wait function for better code readability

* docs: Add E2E testing setup documentation

* perf: Increase wait time on Contract Page test
2024-03-16 01:19:29 +00:00

902 B

E2E testing setup

This directory contains the end-to-end (E2E) testing setup for the project.

Adding a test

  1. create a new file in this directory with the .spec.ts extension
  2. 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

  1. Create the tests
  2. make sure they run locally
  3. push the changes to the repository and run pnpm update-checkly to update the checkly tests. (Requires checkly cli being signed in, meaning you need to have checkly access.)