sincecutoff.com
← all changes

Playwright test runner exposes standalone accessibility options

Introduced 2026-09-04 · score 0.92

HOW TO USE IT

When a test run needs a reduced-motion, forced-colors, or contrast preference, set the corresponding standalone option under `use` in the Playwright Test config.

import { defineConfig } from '@playwright/test'; export default defineConfig({ use: { reducedMotion: 'reduce', // or 'no-preference' forcedColors: 'active', // or 'none' contrast: 'more', // or 'no-preference' }, });

WHY THIS HELPS

Configure a test run's reduced motion, forced colors, or contrast setting independently.

BEFORE THIS CHANGE

The v1.63.0 docs show `reducedMotion` nested under `use.contextOptions`.

REQUIREMENTS AND LIMITATIONS

  • Version: v1.63.0
  • reducedMotion: Emulates `prefers-reduced-motion`; accepts `reduce` or `no-preference`.
  • forcedColors: Emulates `forced-colors`; accepts `active` or `none`.
  • contrast: Emulates `prefers-contrast`; accepts `no-preference` or `more`.
  • Docs conflict: The v1.63.0 docs mark each property as available since v1.50, while the release note calls these standalone options new in v1.63.0; the docs also show `reducedMotion` nested under `contextOptions`.

FIRST-PARTY EVIDENCE

Check the installed version and the source before using it. Entry JSON

Report a problem with this card