-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(accordion): add data-testid, improve ids, add interaction tests (#…
…617) * feat(accordion): add data-testid prop - add data-testid - reformat component * refactor(accordion): minor code conventions (lint) refactoring - remove redundant const * fix(accordion): improve AccordionItem/ExpandCollapse ids - ExpandCollapse component have to get prop id for correct A11y (aria-controls) - AccordionItem now getting id on base of Accordion-Id and Index - If Accordion-Id not specified we are taking default COMPONENT_ID * test(accordion): add interaction tests for single-active mode - add interactions tests - connect tests to storybook - minor fix: remove unused import * test(accordion): sync snapshot according to last changes - data-testid - ids improvements * test(accordion): check that aria-expanded of the first item is false - add additional expectation - after switch to another item: aria-expanded of the first item is false - according to review feedback
- Loading branch information
1 parent
fa100e4
commit 6b884b8
Showing
6 changed files
with
190 additions
and
85 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.