Skip to content

E2E tests

Codebloom's end-to-end tests drive the real app in a browser with Playwright.

When they run

  • Daily at 17:18 UTC, with the result posted to Discord.
  • On a PR when someone with write access comments /e2e-test. The result shows up as an E2E tests check on the PR.

How they work

Each run starts a fresh database with only the schema and the seed data in db/e2e, starts the backend and frontend, and runs every test once against them.

Some tests call real services: Gmail for email, and the staging LeetCode auth service (see LeetCode auth) for LeetCode.

What they test

  • Leaderboard filters: a club filter narrows the leaderboard, and clearing it brings everyone back. Runs in Chrome, Firefox, Safari (WebKit) and Edge.
  • School email verification: a real verification email is sent, read from the inbox, and its link verifies the user.
  • LeetCode onboarding: a user links their LeetCode account with the verification key.
  • LeetCode submission details: the backend can still fetch a known submission from LeetCode with authenticated credentials.

To run them locally, see the e2e/ README.