Skip to content

Latest commit

 

History

History
 
 

playwright

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

End-to-End Testing with Playwright

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.

Running the Tests

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.

  1. Navigate to the playwright folder and install the dependencies by running
npm install

Or

yarn install
  1. Running all tests
npx playwright test

Or

yarn playwright test
  1. 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.

Adding tests

All tests should be placed in the tests folder and should be divided to different folders according to the component it tests.

Additional information

For more information on how to write and run tests with Playwright, please refer to the Playwright documentation.