-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(accordion): ✅ added correct snapshot testing with baseId
- Loading branch information
1 parent
43403fc
commit e715ec3
Showing
2 changed files
with
76 additions
and
0 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
70 changes: 70 additions & 0 deletions
70
src/accordion/__tests__/__snapshots__/Accordion.test.tsx.snap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Accordion should render correctly 1`] = ` | ||
<DocumentFragment> | ||
<div | ||
id="accordion" | ||
> | ||
<h3> | ||
<button | ||
aria-controls="accordion-3" | ||
aria-expanded="false" | ||
id="accordion-1" | ||
tabindex="0" | ||
type="button" | ||
> | ||
Trigger 1 | ||
</button> | ||
</h3> | ||
<div | ||
aria-labelledby="accordion-1" | ||
hidden="" | ||
id="accordion-3" | ||
role="region" | ||
style="display: none;" | ||
> | ||
Panel 1 | ||
</div> | ||
<h3> | ||
<button | ||
aria-controls="accordion-6" | ||
aria-expanded="false" | ||
id="accordion-2" | ||
tabindex="0" | ||
type="button" | ||
> | ||
Trigger 2 | ||
</button> | ||
</h3> | ||
<div | ||
aria-labelledby="accordion-2" | ||
hidden="" | ||
id="accordion-6" | ||
role="region" | ||
style="display: none;" | ||
> | ||
Panel 2 | ||
</div> | ||
<h3> | ||
<button | ||
aria-controls="accordion-9" | ||
aria-expanded="false" | ||
id="accordion-7" | ||
tabindex="0" | ||
type="button" | ||
> | ||
Trigger 3 | ||
</button> | ||
</h3> | ||
<div | ||
aria-labelledby="accordion-7" | ||
hidden="" | ||
id="accordion-9" | ||
role="region" | ||
style="display: none;" | ||
> | ||
Panel 3 | ||
</div> | ||
</div> | ||
</DocumentFragment> | ||
`; |