Skip to content

[TRI-710] Create an initial end-to-end test harness #202

@ericallam

Description

@ericallam

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions