Skip to content

test(e2e): add Playwright dashboard smoke setup - #187

Open
ADAMDEV01 wants to merge 11 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/playwright-dashboard-setup
Open

ADAMDEV01 wants to merge 11 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/playwright-dashboard-setup

Conversation

@ADAMDEV01

Copy link
Copy Markdown

Summary

Fixes #184.

  • Adds @playwright/test (pinned to 1.65.1) and keeps browser tests in a separate playwright/ directory so Vitest's existing JSDOM suite is unchanged.
  • Adds a Chromium Playwright config with baseURL: http://localhost:3000, browser artifact output, and a webServer launcher for Codra's Node server.
  • Adds a deterministic signed-out landing-page smoke test. It stubs only the session lookup; it does not use a real GitHub account, OAuth credentials, or an LLM provider.
  • Adds a dedicated .env.e2e.example and launcher that loads the isolated test environment, generates a throwaway GitHub App key, disables the review worker and telemetry, and starts the Node dev server.
  • Adds the npm run test:e2e script, ignores Playwright artifacts, and documents the disposable PostgreSQL/Redis setup.

Validation

  • Checked the lockfile JSON and confirmed the root dependency and all three Playwright package entries are pinned consistently at 1.65.1.
  • Ran node --check against the E2E server launcher successfully.
  • The full install, typecheck, lint, and browser run have not been executed in this environment because the repository could not be cloned and the disposable Docker services/browser binaries are unavailable here. The documented local command is npm run test:e2e.

The smoke test does not require database migrations or seeded rows. PostgreSQL and Redis are isolated local services so the real Node runtime can start with test-only settings.

@codra-app-personal codra-app-personal Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codra Review

✅ Nothing to flag. Reviewed 8 files (266 changed lines) and found no issues worth raising.

Reviewed commit: c73f7144e4

ℹ️ About Codra in GitHub

Your team has set up Codra to review pull requests in this repo. Reviews are triggered when you:

  • Open a pull request for review
  • Mark a draft as ready

Every review posts a summary here. A clean pass also gets a 👍 on the pull request itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Install and Configure Playwright for the Dashboard

1 participant