We need to add an automated test suite that does end-to-end testing of the entire system. This issue covers creating an initial test harness that should do the following things:
- Run the Trigger.dev webapp backed by a fresh Postgres database using docker (maybe using the dev-compose.yml file using
pnpm run dev:docker)
- Using something like Playwright, create an account
- Retrieve a dev API key
- Use the API key in a test Next.js project that already includes some testing jobs
- Run the Next.js project and the
@trigger.dev/cli dev command to connect to the running Trigger.dev webapp
- Using playwright, navigate to the jobs list and make sure the correct jobs have been created
- Stop the docker services running
This should all happen in some kind of test runner (maybe vitest?) that should be able to be run using the pnpm run test:e2e command. This should also be added to the github publish workflow.
TRI-710
We need to add an automated test suite that does end-to-end testing of the entire system. This issue covers creating an initial test harness that should do the following things:
pnpm run dev:docker)@trigger.dev/cli devcommand to connect to the running Trigger.dev webappThis should all happen in some kind of test runner (maybe vitest?) that should be able to be run using the
pnpm run test:e2ecommand. This should also be added to the github publish workflow.TRI-710