-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Announced (v8): convert tests to use testing-library (#22210)
- Loading branch information
1 parent
7235351
commit d88aa37
Showing
2 changed files
with
61 additions
and
66 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
62 changes: 33 additions & 29 deletions
62
packages/react/src/components/Announced/__snapshots__/Announced.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 |
---|---|---|
@@ -1,40 +1,44 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Announced does not initially render message 1`] = ` | ||
<div | ||
aria-live="polite" | ||
className="" | ||
role="status" | ||
/> | ||
<div> | ||
<div | ||
aria-live="polite" | ||
class="" | ||
role="status" | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`Announced renders message after delay 1`] = ` | ||
<div | ||
aria-live="polite" | ||
className="" | ||
role="status" | ||
> | ||
<div> | ||
<div | ||
className= | ||
{ | ||
border: 0px; | ||
height: 1px; | ||
margin-bottom: -1px; | ||
margin-left: -1px; | ||
margin-right: -1px; | ||
margin-top: -1px; | ||
overflow: hidden; | ||
padding-bottom: 0px; | ||
padding-left: 0px; | ||
padding-right: 0px; | ||
padding-top: 0px; | ||
position: absolute; | ||
white-space: nowrap; | ||
width: 1px; | ||
} | ||
aria-live="polite" | ||
class="" | ||
role="status" | ||
> | ||
hello | ||
<div | ||
class= | ||
{ | ||
border: 0px; | ||
height: 1px; | ||
margin-bottom: -1px; | ||
margin-left: -1px; | ||
margin-right: -1px; | ||
margin-top: -1px; | ||
overflow: hidden; | ||
padding-bottom: 0px; | ||
padding-left: 0px; | ||
padding-right: 0px; | ||
padding-top: 0px; | ||
position: absolute; | ||
white-space: nowrap; | ||
width: 1px; | ||
} | ||
> | ||
hello | ||
</div> | ||
</div> | ||
</div> | ||
`; |