Skip to content

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

Merged
devarshishimpi merged 13 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/playwright-dashboard-setup
Nov 18, 2026
Merged

devarshishimpi merged 13 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/playwright-dashboard-setup

Conversation

@ADAMDEV01

@ADAMDEV01 ADAMDEV01 commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a dedicated Playwright smoke-test setup for the Codra dashboard without changing the existing Vitest/JSDOM test suite.

Fixes #184.

  • Adds @playwright/test, pinned to 1.65.1, and keeps browser tests in a separate playwright/ directory.
  • 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.

Type of change

  • Chore (refactoring, dependency updates, etc.)

How Has This Been Tested?

The following checks were completed:

  • 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 scripts/start-e2e-server.mjs successfully before the latest error-cause change.

The full dependency install, typecheck, lint, and browser run have not yet been completed in this environment. 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.

Checklist:

  • I have signed the CLA

@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.

@devarshishimpi

Copy link
Copy Markdown
Owner

Hey! @ADAMDEV01 I'll require you to sign the CLA and complete the PR format first in order to review the PR.

@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

Here are some automated review suggestions for this pull request.

Reviewed commit: 34e4933b1c

ℹ️ 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

If Codra has suggestions, it will comment; otherwise it will react with 👍.

Comment thread scripts/start-e2e-server.mjs Resolved

@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 (284 changed lines) and found no issues worth raising.

Note

1 candidate did not survive the evidence and claim gates — see the dashboard for what was dropped and why.

Reviewed commit: f862b212eb

ℹ️ 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.

@devarshishimpi

Copy link
Copy Markdown
Owner

Thanks for the contribution! LGTM. If you find the project useful, a star on the repo would help others find it too.

@devarshishimpi
devarshishimpi merged commit b0c1b6e into devarshishimpi:main Nov 18, 2026
6 checks passed
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

2 participants