Skip to content

Finish screenshot-capture E2E: add a CI Playwright job that runs the real capture code (captureRegion + feedback hook path) on an oklch page, no auth/server needed, green in CI#1824

Merged
psdjungpulzze merged 1 commit into
mainfrom
goal/finish-screenshot-capture-e2e-add-a-ci-playwright-job-that-r
Jul 7, 2026
Merged

Finish screenshot-capture E2E: add a CI Playwright job that runs the real capture code (captureRegion + feedback hook path) on an oklch page, no auth/server needed, green in CI#1824
psdjungpulzze merged 1 commit into
mainfrom
goal/finish-screenshot-capture-e2e-add-a-ci-playwright-job-that-r

Conversation

@psdjungpulzze

Copy link
Copy Markdown
Contributor

No description provided.

…rowser Playwright job

Finishes goal #426's E2E: the full-UI feedback/SPM capture E2E can't run in CI
(needs prod SSO + a running dev server + seeded DB), so the oklch regression was
never actually guarded. This adds a self-contained guard that DOES run in CI.

- tests/e2e/capture-oklch.ci.spec.ts: esbuild-bundles the REAL captureRegion
  (src/hooks/use-selection-mode.ts — the SPM capture path; the feedback modal uses
  the same import("html2canvas-pro")) into Chromium and runs it against a page using
  the exact Tailwind-4 oklch() palette values the app emits, asserting a PNG File
  (no throw). Legacy html2canvas throws "unsupported color function oklch" here, so
  the test fails on a revert. Also asserts both capture entry points import
  html2canvas-pro, not legacy html2canvas.
- playwright.config.ts: new auth-free `capture-ci` project (no setup dep, no
  storageState); the authed chromium/mobile-chrome projects testIgnore *.ci.spec.ts.
- .github/workflows/ci.yml: new `e2e-capture` job — installs chromium and runs the
  capture-ci project. No DB / dev server / SSO secrets.

The existing full-UI tests/e2e/feedback-screenshot-capture-oklch.spec.ts stays as-is
for local/manual coverage. No app runtime or agent-tool change → no PM Agent config
update needed.

Claude-Session: https://claude.ai/code/session_01MGnX9Ez8XJE1E1nrsDFFSa
@psdjungpulzze psdjungpulzze merged commit 9729e08 into main Jul 7, 2026
12 checks passed
@psdjungpulzze psdjungpulzze deleted the goal/finish-screenshot-capture-e2e-add-a-ci-playwright-job-that-r branch July 7, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant