test(e2e): add Playwright tests for 5 elements - #43
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/examples/<name>/index.htmland a test file ine2e/tests/<name>.spec.tsTest plan
cd e2e && TEST_PORT=3099 npx playwright test --project=chromium)npm test— 503 passed)npm run build)Note: The default test-server port 3001 may conflict with Docker services locally. Use
TEST_PORT=3099when running e2e tests.