Skip to content

test(e2e): add Playwright tests for 5 elements - #43

Merged
ErickXavier merged 1 commit into
mainfrom
test/e2e-coverage
Jun 15, 2026
Merged

ErickXavier merged 1 commit into
mainfrom
test/e2e-coverage

Conversation

@ErickXavier

Copy link
Copy Markdown
Collaborator

Summary

  • Add Playwright e2e tests for accordion, breadcrumb, popover, scroll-spy, and virtual-list (ELEM-54)
  • Each element gets an HTML fixture page in docs/examples/<name>/index.html and a test file in e2e/tests/<name>.spec.ts
  • 34 total new tests covering open/close behavior, keyboard navigation, ARIA attributes, scroll detection, virtualization rendering, and more

Test plan

  • All 34 new tests pass on Chromium (cd e2e && TEST_PORT=3099 npx playwright test --project=chromium)
  • Existing unit tests unaffected (npm test — 503 passed)
  • Build passes (npm run build)
  • CI runs (if configured for e2e)

Note: The default test-server port 3001 may conflict with Docker services locally. Use TEST_PORT=3099 when running e2e tests.

…croll-spy, virtual-list

Add e2e test coverage for 5 elements that previously lacked it:

- Accordion: open/close, single/multi mode, pre-opened state, keyboard nav
- Breadcrumb: rendering, links, ARIA, custom labels, overflow, non-nav
- Popover: trigger/dismiss, light dismiss, Escape, ARIA, multi-trigger
- Scroll Spy: initial active, scroll detection, deactivation, href attrs
- Virtual List: virtualization subset, spacers, scroll height, scroll, small dataset

Each element has an HTML fixture in docs/examples/<name>/index.html and a
test file in e2e/tests/<name>.spec.ts. All 34 tests pass on Chromium.

Note: test-server.js default port 3001 may conflict with Docker services;
use TEST_PORT=3099 (or any free port) when running locally.
@ErickXavier
ErickXavier merged commit 6f0ac4c into main Jun 15, 2026
1 check passed
@ErickXavier
ErickXavier deleted the test/e2e-coverage branch July 8, 2026 13:15
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.

1 participant