Accessibility settings

Test that layouts hold at the largest text size and reduced-motion paths run, by changing text size, bold text, contrast, reduce motion or the screen reader from a spec or a suite.

device.a11y changes the system accessibility settings the app renders with, so a spec can check that a screen still fits at the largest text size or takes its reduced-motion path.

await device.a11y({ textSize: "accessibility-large", boldText: true, reduceMotion: true });
await app.open();
await device.a11y(null); // defaults back
OptionTakes
textSizea category (extra-small … accessibility-extra-extra-extra-large) or a scale
boldTextboolean
contrast"increased" or "normal"
reduceMotionboolean
screenReaderboolean

It returns { applied, skipped, notes }. An option the platform cannot set is reported skipped; a call where every option is skipped throws E_UNSUPPORTED. Which platform takes which option: Accessibility settings on a simulator.

Auditing screens, reading order, announcements and driving TalkBack are in Accessibility testing.

In a suite

warden.config.ts
conditions: { a11y: { textSize: "accessibility-large", reduceMotion: true } },

The suite key takes textSize, boldText, contrast and reduceMotion.

By hand with warden ui a11y: Accessibility settings on a simulator.

On this page