diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3abfa761..170beadb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -250,6 +250,7 @@ jobs: CHROMIUM_REQUIRE=1 BASE_URL=http://localhost:13581 node test-issue-1109-hamburger-dropdown-visible-e2e.js 2>&1 | tee -a e2e-output.txt CHROMIUM_REQUIRE=1 BASE_URL=http://localhost:13581 node test-live-layout-1178-1179-e2e.js 2>&1 | tee -a e2e-output.txt CHROMIUM_REQUIRE=1 BASE_URL=http://localhost:13581 node test-live-mql-leak-1180-e2e.js 2>&1 | tee -a e2e-output.txt + CHROMIUM_REQUIRE=1 BASE_URL=http://localhost:13581 node test-nav-drawer-1064-e2e.js 2>&1 | tee -a e2e-output.txt - name: Collect frontend coverage (parallel) if: success() && github.event_name == 'push' diff --git a/test-nav-drawer-1064-e2e.js b/test-nav-drawer-1064-e2e.js new file mode 100644 index 00000000..09d94fd3 --- /dev/null +++ b/test-nav-drawer-1064-e2e.js @@ -0,0 +1,231 @@ +#!/usr/bin/env node +/** + * Issue #1064 — Edge-swipe nav drawer (parent epic #1052). + * + * Asserts: + * (a) at 1024x800: pointer-down at x=10, drag to x=200 → drawer opens, + * drawer.getBoundingClientRect().left === 0 + * (b) drawer items present (long-tail routes from PR #1174) + * (c) tap a drawer item → URL hash changes, drawer closes + * (d) Esc closes drawer + * (e) backdrop click closes drawer + * (f) at 360x800: edge-swipe does NOT open drawer (Option A — + * drawer disabled at narrow widths because bottom-nav has More tab) + * (g) singleton: navigate away+back 5 times, pointermove bind count ≤ 1 + * (h) focus trap: open drawer, Tab from last focusable wraps to first + * + * Stable selectors (consumed by the test): + * -