- It is not recommended to run tests on your working project, since failed tests can leave behind empty pipelines, triggers, etc. Set up your development environment.
- Make sure user authentication is enabled.
- Make sure your development server is running.
Running the tests
You have the option to just run one specific test or all tests at once. There are several ways to run specific tests.
# Run everything, headless by default.
# Run everything with a browser.
# Run test files that have the word "pipelines" in their names.
yarn test pipelines
You can run the frontend tests using the CI/CD Playwright configuration with the following command:
Creating a test
Refer to the Playwright docs for examples on writing frontend tests.
The easiest way to debug is to run tests in UI mode so you can see what went wrong.
yarn test --ui
yarn test:ci --ui