Sub topic 1
What a Visual QA Pass Is and When to Run It
Prerequisites
This chapter assumes you already have the following:
- Basic HTML and CSS: the box model, selectors, and units such as
px,remand%. - Familiarity with opening your browser's DevTools and using the Elements panel.
- The ability to read a design file or style guide, for example a Figma frame or a PDF spec.
You do not need to write code to follow this chapter. Later chapters add measuring techniques and a small amount of scripting.
What a visual QA pass is
A visual QA pass is a structured comparison of a built web page against its approved design. You check the page for differences in layout, spacing, typography, color, imagery and behavior, and you record each difference so someone can fix it.
The phrase "structured" matters. Looking at a page and thinking "this seems fine" is a review by eye. It misses a 4px shift in padding, a font weight that fell back to a default, or a gray that is slightly too light. A visual QA pass replaces that impression with measurements and a checklist. You compare numbers from DevTools with numbers in the design, and you work through the same list of areas on every page.
The result is a list of discrepancies. Each one has a location, an expected value, an actual value, and a severity. The pass is finished when every discrepancy has been fixed, deliberately accepted, or recorded for later.
What it covers and what it does not
A visual QA pass answers one question: does the built page look and behave visually the way the design says it should? That scope is narrow on purpose. If you stretch it to cover everything, it gets slow and its findings get vague.
| Area | In a visual QA pass? | Notes |
|---|---|---|
| Spacing, alignment, sizes | Yes | Compared against design specs or redlines |
| Fonts, weights, line height | Yes | Compared with computed styles in DevTools |
| Colors and contrast | Yes | Values and basic accessibility ratios |
| Images and icons | Yes | Correct asset, sharpness, aspect ratio |
| Hover, focus, error states | Yes | Only if the design defines them |
| Responsive layouts | Yes | At the breakpoints the design specifies |
| Business logic and data | No | Belongs to functional testing |
| Page speed | No | Belongs to performance testing |
| Screen reader behavior, keyboard order | Partly | Only the visual side, such as visible focus |
| Code quality, HTML semantics | No | Belongs to code review |
The "partly" row deserves a note. A visual pass checks that keyboard focus is visible and that text stays readable at 200% zoom. It does not replace a full accessibility audit with assistive technology.
Why the pass exists
Developers translate a design into code by hand, and small errors enter at every step. Some common causes:
- The developer read a value off a screenshot instead of the spec, so a 24px gap became 20px.
- A design token such as a spacing or color variable was replaced by a nearby hard-coded value.
- A web font failed to load, so the browser used a fallback with different metrics.
- A component was reused in a context the design never showed, and it stretched or wrapped.
- Content in the design was short and tidy, while real content is long, empty, or missing.
Automated tests rarely catch these. A unit test can confirm that a button exists and fires a click handler. It cannot tell you that the button is the wrong shade of blue. A visual QA pass fills that gap with human judgment, supported by tools.
When to run it
The cost of fixing a visual defect grows as the work moves toward release. A wrong margin found while the developer still has the component open takes minutes. The same margin found after launch needs a ticket, a branch, a review and a deploy. Running the pass at several points keeps the cost low.
In practice there are four common moments:
- Component check. When a reusable piece such as a button, card or form field is built, compare it with the design in isolation. Errors found here are fixed once and never repeated across pages.
- Full page pass on staging. After pages are assembled, run the complete checklist in an environment that matches production. This is the main pass and the focus of this tutorial.
- Pre-release check. Right before launch, re-check the pages with the highest traffic or business value, and confirm that earlier fixes did not break anything.
- After changes. A new feature, a dependency upgrade, or a change to global CSS can alter pages nobody touched. A lighter pass, often automated, catches these.
Who runs it
Any of these people can run a pass, and each brings a different eye:
- A QA engineer works through the checklist systematically and writes the reports.
- A designer notices when something feels off and knows which differences are intentional.
- A developer checking their own work catches obvious errors early, but tends to overlook mistakes they have gotten used to.
The best results come from someone other than the author of the code doing the main pass, with the designer available to answer "is this intended?" questions.
What you need before you start
A pass goes badly if you begin without a fair reference. Before you open the page, confirm three things:
- An approved design version. Designs change. Know which version is current, and note its name or date in your report.
- Access to specs. You need measurements, tokens or redlines, not only a picture. Later chapters cover how to read them.
- A known scope. Decide which pages, states and widths are in this pass. A short written list prevents both gaps and endless work.
Skipping this step produces false findings. For example, you might report a heading as too large when the design was updated last week and the build is actually correct.
Common mistakes
- Treating the pass as a pixel hunt. Not every 1px difference matters. A later chapter covers triage, which is how you decide what is worth fixing.
- Testing only the happy path. Pages look best with ideal content. Real users see long names, empty lists and slow images.
- Checking one browser width. A layout that matches at 1440px can break at 768px.
- Reporting without evidence. "The spacing looks off" cannot be acted on. Expected and actual values can.
- Running the pass once. A page that passed last month may not pass after the next release.
Exercise
A teammate says, "The checkout page works, all the tests pass, so visual QA is unnecessary." Give two reasons this reasoning is flawed, and name the best moment to run the main visual pass on this page.
Show answer
First, functional tests confirm behavior, such as whether the order submits, and cannot detect a wrong color, a shifted margin or a fallback font. Second, visual defects often come from content and layout differences, such as long text or narrow widths, that functional tests do not exercise. The main pass should run on a staging build once the page is fully assembled, before release, with a lighter re-check after later changes.
Exercise
Which of these belong in a visual QA pass: (a) the button's hover color, (b) the API response time, (c) the heading's line height, (d) whether the database stores the order correctly?
Show answer
(a) and (c). Hover color and line height are visual properties the design defines. API response time is performance testing, and database correctness is functional testing.