Skip to content

test: add E2E tests for responsive sidebar behavior (#226)#233

Merged
zacharias-ona merged 1 commit into
mainfrom
feat/226-responsive-sidebar-e2e
Apr 18, 2026
Merged

test: add E2E tests for responsive sidebar behavior (#226)#233
zacharias-ona merged 1 commit into
mainfrom
feat/226-responsive-sidebar-e2e

Conversation

@zacharias-ona
Copy link
Copy Markdown
Collaborator

Closes #226

What

Adds Playwright E2E tests covering the responsive sidebar behavior: mobile Sheet overlay, desktop persistent aside, and Ctrl+\ keyboard shortcut toggle.

How

Three tests in e2e/sidebar-responsive.spec.ts:

  1. Mobile viewport (375×667): Verifies the sidebar is hidden by default (no <aside> element), the hamburger toggle button is visible, and clicking it opens a Sheet overlay (data-slot="sheet-content" with data-side="left").

  2. Desktop viewport (1280×720): Verifies the sidebar renders as a persistent <aside> with non-zero width, the hamburger toggle is hidden, and no Sheet overlay is present.

  3. Keyboard shortcut: Verifies Ctrl+\ collapses the desktop sidebar (width → 0) and a second press reopens it (width > 100). Uses expect.toPass() to wait for the CSS transition to complete.

Testing

  • pnpm lint — clean
  • pnpm typecheck — clean
  • pnpm test — 252 tests pass
  • npx playwright test e2e/sidebar-responsive.spec.ts — 3/3 pass

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 18, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
memo Ready Ready Preview, Comment Apr 18, 2026 8:16am

Request Review

@zacharias-ona zacharias-ona merged commit 3e35a9b into main Apr 18, 2026
6 checks passed
@zacharias-ona zacharias-ona deleted the feat/226-responsive-sidebar-e2e branch April 18, 2026 08:17
@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

✅ Post-merge verification skipped — test: PR does not affect the live app.

@zacharias-ona
Copy link
Copy Markdown
Collaborator Author

✅ UI verification skipped — no UI files changed (only e2e/sidebar-responsive.spec.ts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: add E2E tests for responsive sidebar behavior

1 participant