We are using Playwright to handle our frontend end-to-end testing. Playwright run complex web navigation tests on modern rendering engines. We are using it in CI and the test being quite long to run, we focus only on core functionalities.
npx playwright install --with-deps
Warning
Stop any running process from the repository, no run dev
should be running !
A single command will run the application and test it :
npm run e2e
This command will also automatically serve an HTML report of the tests.
We strongly recommend running the tests on at least 3 browsers because some tests randomly fail for reasonsthat we did not clearly identify (looks like browser start-up issues). When a test is run with multiple browsers. If it only fail once, it is then considered flaky and not failing.
npx playwright test apps/web-e2e/src/programResults.spec.ts --config=apps/web-e2e/playwright.config.ts