chore(dropzone): test suites#6448
Conversation
|
📚 Branch Preview Links🔍 First Generation Visual Regression Test ResultsWhen a visual regression test fails (or has previously failed while working on this branch), its results can be found in the following URLs:
Deployed to Azure Blob Storage: If the changes are expected, update the |
827c525 to
144aaeb
Compare
607abae to
26dc7e5
Compare
144aaeb to
7fd8372
Compare
26dc7e5 to
87928fd
Compare
a2bf987 to
b10a35e
Compare
15ada21 to
972adaa
Compare
b10a35e to
13cc926
Compare
972adaa to
a32b450
Compare
13cc926 to
f097fdd
Compare
f097fdd to
440d0d8
Compare
5096f04 to
65c7ab4
Compare
Description
Adds Phase 6 test coverage for the 2nd-gen
<swc-dropzone>component migration. Two new files are introduced:test/dropzone.test.ts— 13 Storybook Vitest play-function stories covering the full drag lifecycle, status region transitions, size reflection, drop-effect validation, and dev-mode accessible-name warningstest/dropzone.a11y.spec.ts— 6 Playwright ARIA snapshot tests verifying role, accessible name, status region announcements across all four states (default, dragged, filled, filled-and-dragged), keyboard focus behavior, and tab orderMotivation and context
Phase 5 (styling) is complete. These tests close the Phase 6 gate before documentation work begins in Phase 7. They also add an explicit non-regression test for the
dragoverpath always callingevent.preventDefault(), and cover the dev-mode warning when no accessible name is provided.Related issue(s)
Screenshots (if appropriate)
N/A — test-only change
Author's checklist
Reviewer's checklist
patch,minor, ormajorfeaturesManual review test cases
Vitest play functions pass in headless Chromium
yarn test --story-path=dropzone(or equivalent)Drop Zone/Testspass without timeoutPlaywright ARIA snapshots pass
yarn test:a11ytargeting the drop-zone storiesNo regressions in the
StatesstoryDevice review
Accessibility testing checklist
Keyboard (test-only PR; no interactive behavior changed)
Tabonce; confirm focus lands on the "Browse files" button, not theswc-dropzonehostTabagain moves focus past the component)Screen reader (covered by Playwright ARIA snapshot tests)
group "Dragged drop zone"and reads the status region content"File ready to drop""File accepted""Drop to replace existing file"