wasp/waspc/headless-test
2024-05-17 15:23:04 +02:00
..
examples/todoApp Fixes route ordering to prevent Wasp routes being overriden (#2039) 2024-05-17 15:23:04 +02:00
tests Fixes route ordering to prevent Wasp routes being overriden (#2039) 2024-05-17 15:23:04 +02:00
.gitignore Adds headless testing (#1186) 2023-05-17 14:54:47 +02:00
package-lock.json Headless tests playwright package-lock.json update. 2023-06-21 11:18:02 +02:00
package.json Fixes Auth UI (#1447) 2023-09-16 00:13:37 +02:00
playwright.config.ts Adds headless testing (#1186) 2023-05-17 14:54:47 +02:00
README.md show error message when database is not running (#1218) 2023-06-20 14:34:14 -04:00
start.js show error message when database is not running (#1218) 2023-06-20 14:34:14 -04:00

Headless Test

We are testing if a simple scenario works for the user each time:

  • signup
  • login
  • create a new task

Check out the test file: tests/simple.spec.ts

How to run

Running headless tests:

$ cd headless-test
$ npm install
$ npx playwright test

If something breaks, maybe the example app won't run. Try running it and see if there are any errors:

npm run example-app:start

How to run in CI

We set up a GitHub Action to run the test in CI. See .github/workflows/ci.yml for details.