You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
web: check() and tap() fail on a Tailwind sr-only checkbox inside its own label #1744
check() and tap() can't operate a checkbox styled with Tailwind's sr-only inside its own label, which is the usual toggle-switch markup (Flowbite and most Tailwind kits; Bootstrap's visually-hidden is the same CSS):
ACTION_FAILED: check did not become actionable in time: elementHandle.click: Timeout 29684ms exceeded. <div class="track"></div> intercepts pointer events: getByRole("checkbox", name: "Email notifications")
tap() fails the same way, and so does an sr-only checkbox in a label that holds only text (<span> intercepts). check({ force: true }) is rejected with INVALID_ARGUMENT, so there is no workaround in the test.
Expected: the checkbox is checked through its label, as docs/reference/screen.mdx says under check: "a checkbox or radio hidden under its own label ... is clicked through that label."
All three tests fail with ACTION_FAILED ... intercepts pointer events. Expected them to check the box.
Versions
e2e 0.23.0, @e2e-dev/web 0.15.5, node 24.17.0, macOS. Also fails on the 2026-11-13 nightly (e2e 0.23.1-nightly, @e2e-dev/web 0.16.0-nightly).
Engine
@e2e-dev/web
Anything else
A follow-up to #1276. On the nightly, removing only margin: -1px from .sr-only makes all three pass, so the stand-in from #1595 works but misses this case. In pickStandIn (packages/web/src/actions.ts:143), the label is used only when the control's centre lies inside the label's rect. sr-only's margin: -1px puts the 1×1 input's centre just outside the label's left edge, so it returns null and the click goes to the hidden input.
[claude-opus-5-5] automated review on behalf of @okwasniewski
Thanks, confirmed on main: the 1x1 sr-only input's centre (x=7.5) lands half a pixel left of the label (x=8), so pickStandIn (packages/web/src/actions.ts) refuses the label stand-in and the click goes to the clipped input. Plain Playwright check() fails the same way. Fix in progress in #1748.
Activity
okwasniewski commentedon Nov 13, 2026
[claude-opus-5-5] automated review on behalf of @okwasniewski
Thanks, confirmed on main: the 1x1 sr-only input's centre (x=7.5) lands half a pixel left of the label (x=8), so
pickStandIn(packages/web/src/actions.ts) refuses the label stand-in and the click goes to the clipped input. Plain Playwrightcheck()fails the same way. Fix in progress in #1748.