forked from tillsc/GVExport
-
Notifications
You must be signed in to change notification settings - Fork 8
Testing
Neriderc edited this page Jan 27, 2026
·
14 revisions
I have replaced automated testing in Cypress with new tests in Playwright that cover the same things and much more. These tests are committed to the repo under playwright.
Instructions for Linux, may be similar for other operating systems. This is the general idea but has not been tested to ensure it's correct.
- After cloning the repo, go to the playwright directory:
cd playwright - Install playwright with
npx playwright install --with-deps - You might need to run
npm install -D @playwright/test@latestfirst. - Copy
.env.exampleto.envand add credentials for an admin account and multiple user accounts. Multiple are needed as many tests run in parallel. You can add more than the number listed in the example. - You can start the UI with
npx playwright test --ui - Run the tests in the UI.
Notes:
- The tests are split into three projects, Admin, Guest, and User.
- Use the filters. Run the admin tests on their own first, as they mess with settings that affect everything else. Then you can run Guest (logged out) and User (logged in) all together.
- Some flakiness is expected, some tests may need to be rerun. This tends to be due to the flaky application not the tests.