Skip to content

test: add core dashboard Playwright E2E coverage - #191

Merged
devarshishimpi merged 4 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/e2e-core-dashboard-flows
Nov 21, 2026
Merged

devarshishimpi merged 4 commits into
devarshishimpi:mainfrom
ADAMDEV01:test/e2e-core-dashboard-flows

Conversation

@ADAMDEV01

Copy link
Copy Markdown
Contributor

Summary

  • Add Playwright end-to-end coverage for the core dashboard flows: authentication, dashboard overview, jobs list and filters, job details, repository settings, stats charts, and theme persistence.
  • Add deterministic E2E fixtures and API mocks, with unexpected API requests failing closed.
  • Add an isolated E2E server startup path and document how to run the suite.

Validation

  • Playwright: 8 passed.
  • Vitest: 512 passed across 69 test files (sequential run with --no-file-parallelism).
  • npm run typecheck: passed.
  • npm run lint: passed.
  • Prettier check and git diff --check: passed.

Notes

The Vitest suite was run sequentially because the parallel run encountered intermittent network timeouts reaching the remote test database.

@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 7 files (1094 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: c7d567a723

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

@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 7 files (1094 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: fd5efb6934

ℹ️ 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 devarshishimpi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Hey Adam, thanks for putting this together! The Playwright coverage across the core dashboard flows looks great, and the deterministic fixtures and fail-closed mocks are really clean.

Just two quick things before we can merge:

  1. apps/node/src/index.ts (lines 34, 63-69): Let's switch E2EIdentityProvider to a dynamic await import("./e2e-identity-provider") inside the test gate block instead of importing it statically at the top of the file. That way the synthetic provider and mock credentials don't end up bundled into the production build in dist/index.js.
  2. test/e2e/dashboard.spec.tsx (line 1): Looks like an accidental UTF-8 BOM (\uFEFF) got added right before /**. Could you strip that so it stays clean UTF-8?

Once those two are updated, we are good to merge.

@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 7 files (1087 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: 023a91b5b1

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

@ADAMDEV01

Copy link
Copy Markdown
Contributor Author

Hi Devarshi,

Thanks for the feedback! I've addressed both requested changes:

  1. Replaced the static E2EIdentityProvider import with a dynamic await import() inside the test-only environment gate, keeping it out of the production import path.
  2. Removed the UTF-8 BOM from test/e2e/dashboard.spec.tsx.

Both changes have been pushed to the PR in commit 023a91b5.

The updated Code Quality and CodeQL checks are currently running.

Thanks again for the review!

@devarshishimpi devarshishimpi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for addressing the feedback, looks great now. Approving and merging!

@devarshishimpi
devarshishimpi merged commit cf57a43 into devarshishimpi:main Nov 21, 2026
6 checks passed
@devarshishimpi devarshishimpi linked an issue Nov 21, 2026 that may be closed by this pull request
5 tasks
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.

Add Playwright Tests for Core Dashboard Flows

2 participants