Skip to content

Fix stale E2E hero-copy assertion; add Playwright report artifact - #106

Open
mycomind4-arch wants to merge 1 commit into
mainfrom
fix/stale-e2e-copy-and-report-artifacts
Open

mycomind4-arch wants to merge 1 commit into
mainfrom
fix/stale-e2e-copy-and-report-artifacts

Conversation

@mycomind4-arch

Copy link
Copy Markdown
Owner

Fixes the assertion mismatch (test expected "Build the record", actual hero copy is "Knowledge / Levels the Ground.") and adds playwright-report/ artifact upload to the E2E job so future failures are diagnosable.

Does not fully explain the CI failure — see commit message. In CI's 3 attempts, the resolved h1 was "Cases" (the dashboard heading), not the landing page's, suggesting a redirect happens in that environment specifically. I reproduced the identical command locally (npm run dev → navigate to /) with a clean cookie state and got the correct landing content every time — it doesn't reproduce outside CI, so I'm not guessing a fix for behavior I can't observe. This PR is a real, verified fix for the copy mismatch, not a claimed fix for the whole E2E failure.

🤖 Generated with Claude Code

…e debugging

home.spec.ts asserted the h1 contains "Build the record", which predates
the current landing page (components/landing/Hero.tsx renders "Knowledge
/ Levels the Ground." — confirmed by reading the actual component).
Updated the assertion to match.

This does NOT fully explain the CI failure, which I want to be upfront
about: in CI's three attempts (initial + 2 retries), the h1 that actually
resolved was "Cases" — the dashboard's heading, not the landing page's —
suggesting something redirects "/" to "/dashboard" in that environment.
I reproduced the exact same command CI uses (`npm run dev` -> navigate to
"/") locally with a clean cookie state and got the correct, un-redirected
hero content every time, so this doesn't reproduce outside CI's specific
environment and I don't want to guess a fix for behavior I can't observe.

ci.yml had no artifact upload for the E2E job, so there was no
screenshot/trace to inspect after the fact either. Added one
(actions/upload-artifact, playwright-report/, if: always()) so the next
failure — this one included, if it recurs — is diagnosable instead of a
repeated mystery.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

2 participants