diff --git a/e2e/settings-mobile-consistency.spec.ts b/e2e/settings-mobile-consistency.spec.ts index acc8ed7cc..7a40bd3c1 100644 --- a/e2e/settings-mobile-consistency.spec.ts +++ b/e2e/settings-mobile-consistency.spec.ts @@ -64,17 +64,15 @@ test.describe("Settings mobile consistency (Pixel 5)", () => { }), ) ).filter( - // The avatar profile-photo upload uses the accessible - // visually-hidden pattern: the input itself - // is sr-only / zero-size and the real 44 px touch target is the - // styled label/button that triggers it. The touch-target sweep - // must measure that visible affordance, not the hidden input, so - // exempt file inputs that are hidden or collapsed to zero size. - (inp) => - !( - inp.type === "file" && - (inp.hidden || inp.height === 0 || inp.width === 0) - ), + // Some inputs use the accessible visually-hidden pattern: the input + // itself is sr-only / zero-size and the real 44 px touch target is a + // sibling visible affordance — the styled label/button for the avatar + // , and the formatted overlay that fronts the + // sr-only native inside DateField / + // DateTimeField. The touch-target sweep must measure those visible + // affordances, not the hidden input, so exempt any input that is + // visually hidden or collapsed to zero size. + (inp) => !(inp.hidden || inp.height === 0 || inp.width === 0), ); expect(formInputs.length).toBeGreaterThan(0);