test: end-to-end specs and a pull request gate #382

Sammanfogat
supernaut sammanfogade 5 incheckningar från test/e2e-gate in i main 2026-10-13 08:07:02 +00:00
Ägare

What

  • Adds end-to-end specs under src/test/e2e/: smoke, navigation-a11y, touch-targets, header-reflow, safe-area. The acceptance numbers live in constants.ts.
  • Runs the suite in the ci job after vitest, with a browser install step. On failure a step prints each error-context.md to the job log, because upload-artifact@v4 is unsupported on this instance. Firefox joins on push to main only.
  • Fixes the contact page, which had no <h1>. The new smoke spec found it.

Notes

  • The e2e step has no database. Specs stub at the browser, as the existing ones do. Flows that need Postgres are not covered.
  • The header height table is measured from the current build, per locale. The 170 px header at 375 px and the <main> start of 220 px were waived earlier. The header is now taller than 170 px at 375 px. That needs a decision before the table is tightened.
  • The skip link spec focuses the link directly. WebKit on macOS does not Tab to links.
  • The announcement banner assertion is left out: no page renders the banner.
  • Screenshot baselines are not included.
  • The Playwright browsers must be baked into the runner image before merge, or each run downloads about 500 MB.

Closes #175
Closes #176

## What - Adds end-to-end specs under `src/test/e2e/`: `smoke`, `navigation-a11y`, `touch-targets`, `header-reflow`, `safe-area`. The acceptance numbers live in `constants.ts`. - Runs the suite in the `ci` job after vitest, with a browser install step. On failure a step prints each `error-context.md` to the job log, because `upload-artifact@v4` is unsupported on this instance. Firefox joins on `push` to `main` only. - Fixes the contact page, which had no `<h1>`. The new smoke spec found it. ## Notes - The e2e step has no database. Specs stub at the browser, as the existing ones do. Flows that need Postgres are not covered. - The header height table is measured from the current build, per locale. The 170 px header at 375 px and the `<main>` start of 220 px were waived earlier. The header is now taller than 170 px at 375 px. That needs a decision before the table is tightened. - The skip link spec focuses the link directly. WebKit on macOS does not Tab to links. - The announcement banner assertion is left out: no page renders the banner. - Screenshot baselines are not included. - The Playwright browsers must be baked into the runner image before merge, or each run downloads about 500 MB. Closes #175 Closes #176
supernaut lade till 3 incheckningar 2026-10-13 06:31:32 +00:00
Adds smoke, navigation-a11y, touch-targets, header-reflow and safe-area specs with the acceptance numbers in one constants module.
ci: gate pull requests on the end-to-end suite
En del kontroller misslyckades
ci / ci (pull_request) Failing after 6m59s
5de578a480
supernaut lade till 2 incheckningar 2026-10-13 06:44:35 +00:00
Text metrics differ between macOS and the Linux runner, so exact heights do not hold across platforms.
ci: print e2e failure context to the job log instead of uploading it
Alla kontroller lyckades
ci / ci (pull_request) Successful in 6m58s
e001527807
upload-artifact@v4 is not supported on this Forgejo instance.
supernaut tvångsskickade test/e2e-gate från e001527807
Alla kontroller lyckades
ci / ci (pull_request) Successful in 6m58s
till 989a674339
Alla kontroller lyckades
ci / ci (pull_request) Successful in 7m39s
2026-10-13 07:58:52 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-13 08:00:37 +00:00
supernaut sammanfogade incheckning beeb2d6358 till main 2026-10-13 08:07:02 +00:00
supernaut tog bort grenen test/e2e-gate 2026-10-13 08:07:02 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-13 08:07:03 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-web!382
Ingen beskrivning angiven.