Skip to main content
Configuration

Quality Configuration

Visual regression, accessibility, and security gate settings.

Configuration

quality:
  visual_regression_enabled: false
  visual_diff_threshold: 0.95
  a11y_audit_level: none

Example: Visual Regression on a Dynamic Dashboard

# Task input to gem-browser-tester
objective: "Verify dashboard visual regression"
acceptance_criteria:
  - "Screenshot matches baseline within threshold"
  - "Dynamic content areas excluded from comparison"
handoff:
  constraints: ["Staging env", "Chrome + Firefox"]
  relevant_context:
    - "baseline: wave-1/dashboard-baseline.png"
    - "threshold: 0.90 (dynamic content, lenient)"

Example: Accessibility Audit (Full)

# Task input to gem-browser-tester
objective: "WCAG 2.2 AA audit on search page"
acceptance_criteria:
  - "Contrast ratio >= 4.5:1 for all text"
  - "ARIA labels on all interactive elements"
  - "Focus indicators visible"
  - "Touch targets >= 44pt/48dp"
  - "Keyboard navigation complete"
  - "Reduced motion respected"

Settings

SettingTypeDefaultDescription
quality.visual_regression_enabledbooleanfalseEnable screenshot comparison checks
quality.visual_diff_thresholdnumber0.95Visual comparison threshold (0.0 - 1.0)
quality.a11y_audit_levelenumnoneAccessibility audit depth: none, basic, full

Visual Regression

When enabled:

  • Captures screenshots on UI changes
  • Compares against baseline (stored in task artifacts)
  • Fails if difference > threshold
  • Configurable per-task via acceptance criteria

Threshold Guidelines

ThresholdSensitivityUse Case
0.99Very strictPixel-perfect, design systems
0.95Standard (default)General UI testing
0.90LenientDynamic content, animations
0.80Very lenientHighly variable UIs

Accessibility Audit Levels

LevelChecks Included
noneNo a11y checks
basicContrast (4.5:1), ARIA labels, focus indicators, touch targets (44pt/48dp)
fullAll basic + reduced motion, semantic HTML, screen reader testing, keyboard navigation

Security Gates

Security review triggers automatically via risk signals (not config):

Risk SignalReview Triggered
auth_changeAuthentication/authorization logic
security_sensitiveCrypto, secrets, PII handling
data_flow_changeData movement, storage, transmission
Config changesInfrastructure, permissions, network

Task criteria and explicit requests take precedence over config defaults.