Sub topic 17
Writing Reproducible Discrepancy Reports
This chapter assumes you can measure a page in DevTools, read a design spec, and have already sorted differences by severity (see the triage chapter). Now you turn a finding into a report a developer can act on without asking you questions.
What makes a report reproducible
A report is reproducible when someone else can see the same difference on their own machine in under a minute. Most vague reports fail for one reason: they describe your impression ("the heading looks off") instead of the evidence.
Each report needs these parts:
- Title. Name the element, the property, and the page. Example: "Home hero heading is 32px, design says 40px at 1280px width".
- Location. The URL, the build or commit, and a selector such as
.hero h1. - Environment. Browser and version, operating system, viewport width, zoom level, and pixel density.
- Expected. The value from the design, with a link to the frame or spec and the token name if there is one.
- Actual. The measured value, taken from DevTools.
- Evidence. A screenshot or short recording with the difference marked.
- Severity. The level from your triage, with one sentence of reasoning.
Capture the measured value, not a guess
Use the computed values from DevTools, because they are exact and the developer can compare them directly with the stylesheet. The console snippet below prints them in a form you can paste into a report.
const el = document.querySelector('.hero h1');
const s = getComputedStyle(el);
console.log({
selector: '.hero h1',
fontSize: s.fontSize,
fontWeight: s.fontWeight,
lineHeight: s.lineHeight,
color: s.color,
viewport: `${innerWidth}x${innerHeight}`,
devicePixelRatio: window.devicePixelRatio
});The output includes the viewport and pixel density, so the environment section of your report is filled in at the same time.
A worked example
Here is a complete report in a form you can paste into an issue tracker.
Title: Home hero heading is 32px, design specifies 40px (1280px wide)
URL: https://staging.example.com/ (build 4f2a9c1)
Selector: .hero h1
Environment: Chrome 130, macOS, viewport 1280x900, zoom 100%, DPR 2
Steps:
1. Open the URL at 1280px width.
2. Inspect .hero h1 and read Computed > font-size.
Expected: 40px / weight 700 (token heading-xl, Figma frame "Home / Desktop")
Actual: 32px / weight 700
Evidence: hero-heading.png (red box marks the heading)
Severity: Medium. Hierarchy is weakened, but content is readable.Habits that keep reports useful
- Report one discrepancy per issue. Combined reports cannot be closed halfway.
- State the width where it happens. A bug at 768px may not exist at 1280px.
- Say what is correct as well as what is wrong, so the developer does not have to look up the design.
- Group related findings, such as five headings with the same size error, under one issue that lists every selector.
- Re-test after the fix and record the result in the same issue, with the new build number.
Exercise
A teammate files the issue "Button looks too small on mobile." Name four pieces of information it is missing and say how you would collect each.
Show answer
Any four of these: the page URL and build (copy from the address bar and the deploy info); a selector (use Inspect to find it); the viewport width (read it from the responsive toolbar in DevTools); the expected value (take it from the design spec or token); the actual value (read the computed height and font size in DevTools); a screenshot with the area marked.