Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(accordion): add data-testid, improve ids, add interaction tests #617

Merged
merged 6 commits into from
Mar 31, 2022

Conversation

niksa-monday
Copy link
Contributor

Add data-testid (reformat component)

Minor code conventions (lint) refactoring (remove redundant const)

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

Add interaction tests for single-active mode

  • add interactions tests
  • connect tests to storybook
  • minor fix: remove unused import

 - add data-testid
 - reformat component
 - 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
 - add interactions tests
 - connect tests to storybook
 - minor fix: remove unused import
@niksa-monday niksa-monday requested a review from a team March 31, 2022 06:16
 - add additional expectation - after switch to another item:
   aria-expanded of the first item is false
 - according to review feedback
@niksa-monday niksa-monday merged commit 6b884b8 into master Mar 31, 2022
@niksa-monday niksa-monday deleted the feat/nik/accordion-interaction-tests branch March 31, 2022 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants