test(e2e): Playwright keyboard navigation for @mention dropdown #635

Open
opened 2026-05-19 23:32:18 +02:00 by marcel · 0 comments
Owner

Context

PR #629's @mention dropdown now has multiple focusable elements: editor → searchbox → list options → create-new link. Unit tests cover individual handlers; the full focus-management chain needs E2E coverage.

Sara on #10935, #10970.

Scope

Playwright spec covering:

  • Tab from editor → search input → ArrowDown into list → Enter to select → focus returns to editor.
  • Shift-Tab reverses the order.
  • Escape from any focused element inside the dropdown closes it without inserting.
  • Tab cycles correctly when create-new link is present in empty state.
  • axe-core scan inside the dropdown shows no a11y violations (Leonie #10936 follow-up).

PR #629 already includes a dropdown-level ArrowDown-from-searchbox unit test (in MentionDropdown.svelte.test.ts) — E2E here is for the full chain.

Acceptance

  • E2E spec under frontend/e2e/ (or wherever the project keeps Playwright).
  • Runs in CI.
  • Includes axe-core check.
## Context PR #629's @mention dropdown now has multiple focusable elements: editor → searchbox → list options → create-new link. Unit tests cover individual handlers; the full focus-management chain needs E2E coverage. Sara on #10935, #10970. ## Scope Playwright spec covering: - [ ] Tab from editor → search input → ArrowDown into list → Enter to select → focus returns to editor. - [ ] Shift-Tab reverses the order. - [ ] Escape from any focused element inside the dropdown closes it without inserting. - [ ] Tab cycles correctly when create-new link is present in empty state. - [ ] axe-core scan inside the dropdown shows no a11y violations (Leonie #10936 follow-up). PR #629 already includes a dropdown-level ArrowDown-from-searchbox unit test (in MentionDropdown.svelte.test.ts) — E2E here is for the full chain. ## Acceptance - [ ] E2E spec under `frontend/e2e/` (or wherever the project keeps Playwright). - [ ] Runs in CI. - [ ] Includes axe-core check.
marcel added the P3-latertestui labels 2026-05-19 23:32:22 +02:00
Sign in to join this conversation.
No Label P3-later test ui
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: marcel/familienarchiv#635