Skip to content

UX UI Quality Checks

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

UI/UX Quality Checks

UI/UX quality checks are automated tests that compare the interface with the design system, its tokens, and the UX rules agreed by the team. They run with the user-journey suite on every pull request.

The checks cover visual consistency, typography, spacing, colour, contrast, and token use. Treat them as a repeatable review of the design rules, not a replacement for design judgement.

Why they exist

Manual visual review takes time and is hard to repeat across every change. Automated checks give designers and developers the same structured feedback on each pull request: what was checked, which rule failed, and how far the value drifted.

What gets inspected

For each element, the runner reads computed styles and compares them with the expected design token:

  • Typography — font size, weight, line height, letter spacing, family
  • Colour — text and background colour
  • Spacing — padding and margin
  • Border — colour, width, radius
  • Contrast — text-to-background ratio against a WCAG level

A mismatch is recorded as a violation; a matching check is recorded as an event with info severity.

Taxonomy

Every finding belongs to a category:

Category Meaning
Typography Wrong font size, weight, or line height
Color Wrong text or background colour
Spacing Wrong padding or margin
Border Wrong border colour or radius
Token missing An expected token did not resolve
Style mismatch A mismatch outside the other categories

Severity

Severity Meaning
Critical Breaks accessibility or a major design rule
Major Significant deviation from a design token
Minor Small inconsistency
Info A check ran and passed

Severity helps decide what to fix first.

Reports

Check results are recorded as uiux quality events during a Playwright test. The quality reporter validates them, groups them by taxonomy and severity, and renders summary.md, which a workflow step appends to the run summary. The HTML, JSON, and timeline reports are uploaded as CI artifacts.

For each finding the report shows the scenario, element, property, expected value, actual value, taxonomy, and severity.

See also

Clone this wiki locally