Skip to content

Commit 217625b

Browse files
committed
test(MobileNav): Chromium proofs of the touch presentation and the AppShell slide-out
Under a finger: the dialog stays modal while the drawer slides out, then closes and gives focus back; a tap on the leaving drawer, a tap on the page late in the slide-out and a tap during the slide-in reach nothing. Under a mouse (a fine-pointer page): nothing is held and the dialog closes partway into the slide-out, as before. Inside AppShell, at the token default --duration-medium (410 ms), the drawer is still rendered 320 ms after a close under either pointer. Registered in CI as the MobileNav touch presentation contract.
1 parent d1da383 commit 217625b

2 files changed

Lines changed: 394 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,6 +1797,19 @@ jobs:
17971797
--project chromium \
17981798
--output token-remove-target-output
17991799
1800+
# Under a finger the drawer dismisses as an iOS sheet does: the dialog
1801+
# stays modal while the drawer slides out and the scrim fades, no tap
1802+
# lands until it ends, then focus returns to the opener; under a mouse
1803+
# nothing is held. Inside AppShell the slide-out plays to its end.
1804+
# Top-layer modality, inertness and real taps only exist in a real
1805+
# engine.
1806+
- name: Run MobileNav touch presentation contract
1807+
run: |
1808+
pnpm exec playwright test \
1809+
packages/core/src/MobileNav/__tests__/MobileNavTouchPresentation.a11y.chromium.spec.ts \
1810+
--project chromium \
1811+
--output mobile-nav-touch-presentation-output
1812+
18001813
# On a phone narrower than the drawer, the drawer must still leave a
18011814
# strip of the page to tap to close it (it is capped at 85vw). Viewport
18021815
# units, the backdrop's hit testing and a real tap only exist in a real

0 commit comments

Comments
 (0)