This project contains end-to-end tests for our application, which are designed to test the application as a whole, simulating the behavior of a real user. These tests use Playwright as the automation testing tool.
All tests run automatically on every Pull Request by GitHub Actions, before merging into the main branch.
If you want to run the tests locally, make sure you have an instance of the application running.
- Navigate to the
playwright
folder and install the dependencies by running
npm install
Or
yarn install
- Running all tests
npx playwright test
Or
yarn playwright test
- Running a single test file
npx playwright test <test-file-name.ts>
Or
yarn playwright test <test-file-name.ts>
Alternatively you can also run the tests using the VS Code Extension.
All tests should be placed in the tests
folder and should be divided to different folders according to the component it tests.
For more information on how to write and run tests with Playwright, please refer to the Playwright documentation.