-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ToastNotification): update storybook, increase test coverage (#231
- Loading branch information
1 parent
700364e
commit b9d63d3
Showing
3 changed files
with
132 additions
and
54 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
82 changes: 47 additions & 35 deletions
82
src/components/ToastNotification/__snapshots__/ToastNotification.test.js.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,57 +1,69 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`TimedToastNotification renders properly 1`] = ` | ||
exports[`TimedToastNotification persisted and paused renders properly 1`] = ` | ||
<div | ||
className="alert toast-pf alert-danger alert-dismissable" | ||
className="toast-notifications-list-pf" | ||
onMouseEnter={[Function]} | ||
onMouseLeave={[Function]} | ||
> | ||
<button | ||
aria-hidden="true" | ||
className="close close-default" | ||
disabled={false} | ||
onClick={[MockFunction]} | ||
type="button" | ||
<div | ||
className="alert toast-pf alert-success alert-dismissable" | ||
onMouseEnter={[Function]} | ||
onMouseLeave={[Function]} | ||
> | ||
<button | ||
aria-hidden="true" | ||
className="close close-default" | ||
disabled={false} | ||
onClick={[MockFunction]} | ||
type="button" | ||
> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-close" | ||
/> | ||
</button> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-close" | ||
className="pficon pficon-ok" | ||
/> | ||
</button> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-error-circle-o" | ||
/> | ||
<span> | ||
Danger Will Robinson! | ||
</span> | ||
<span> | ||
Success Will Robinson! | ||
</span> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`ToastNotification renders properly 1`] = ` | ||
<div | ||
className="alert toast-pf alert-danger alert-dismissable" | ||
onMouseEnter={[MockFunction]} | ||
onMouseLeave={[MockFunction]} | ||
className="toast-notifications-list-pf" | ||
onMouseEnter={[Function]} | ||
onMouseLeave={[Function]} | ||
> | ||
<button | ||
aria-hidden="true" | ||
className="close close-default" | ||
disabled={false} | ||
onClick={[MockFunction]} | ||
type="button" | ||
<div | ||
className="alert toast-pf alert-danger alert-dismissable" | ||
onMouseEnter={[MockFunction]} | ||
onMouseLeave={[MockFunction]} | ||
> | ||
<button | ||
aria-hidden="true" | ||
className="close close-default" | ||
disabled={false} | ||
onClick={[MockFunction]} | ||
type="button" | ||
> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-close" | ||
/> | ||
</button> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-close" | ||
className="pficon pficon-error-circle-o" | ||
/> | ||
</button> | ||
<span | ||
aria-hidden="true" | ||
className="pficon pficon-error-circle-o" | ||
/> | ||
<span> | ||
Danger Will Robinson! | ||
</span> | ||
<span> | ||
Success Will Robinson! | ||
</span> | ||
</div> | ||
</div> | ||
`; |