Skip to content

Test Rationales

Paulo Gomes da Cruz Junior edited this page Nov 30, 2026 · 1 revision

Test Rationales

This page explains why the user-journey suite checks each area. Coverage choices are easier to maintain when the reason for a check is written down.

Basic tests — navigation and text assertions

What we check: Pages open, content renders, and the expected text appears in the right place.

Navigation and content are the base contract with a user. If a page cannot be reached or read, nothing else matters. Text assertions also catch broken layouts, failed API responses, and rendering regressions early. Button and input steps verify that interactions produce a result.

These checks stay broad and simple so they act as the first line of defence before more specialized checks run.

Perceived performance — Lighthouse

What we check: Performance, accessibility, best practices, SEO, TTFB, LCP, and CLS on an authenticated page.

Slow pages frustrate users and hurt search rankings. Lighthouse audits run against the signed-in page in the dedicated lighthouse project. Thresholds are performance 75, accessibility 90, best practices 90, SEO 80; TTFB 95, CLS 0.1, LCP 2500.

Those thresholds catch unoptimised images, blocking scripts, large DOMs, slow responses, and layout shifts. Running them on every pull request keeps regressions out of the deployment. The 2026-11-28 outcome note on the User Journeys page records the authenticated-page handoff.

Accessibility — axe and keyboard navigation

What we check: WCAG compliance, screen-reader announcements, keyboard operation, focus order, live regions, heading hierarchy, and accessible names.

Accessibility is a legal requirement in British Columbia and a core principle of inclusive design. Two approaches complement each other:

  • axe-playwright scans the DOM for missing labels, low contrast, and invalid ARIA attributes.
  • Keyboard and announcement assertions verify that the app works without a mouse: focus order, live-region text, heading levels, and accessible names.

Automated checks do not replace manual review, but they catch common violations consistently on every run.

UI/UX quality — design tokens and style checks

What we check: Design-system consistency, token use for typography and colour, spacing, borders, WCAG contrast, and Carbon conventions.

Manual visual review is slow and hard to repeat. Automated checks inspect computed styles on every pull request and classify each finding by taxonomy and severity. Designers get a structured list instead of a screenshot thread. The UI/UX Quality Checks page describes the categories; the developer page shows how events reach the report.

See also

Clone this wiki locally