Skip to content

Commit

Permalink
test: added test cases for NotificationsBanner
Browse files Browse the repository at this point in the history
  • Loading branch information
awais-ansari committed Apr 30, 2024
1 parent 0ba3cac commit 31ed941
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/__snapshots__/App.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`App router component snapshot: disabled (show demo warning) 1`] = `
/>
<DemoWarning />
<CTA />
<NotificationsBanner />
<main
data-testid="main"
>
Expand All @@ -36,6 +37,7 @@ exports[`App router component snapshot: enabled 1`] = `
data-testid="header"
/>
<CTA />
<NotificationsBanner />
<main
data-testid="main"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NotificationsBanner component snapshots 1`] = `
<PageBanner
variant="accentB"
>
<span>
<FormattedMessage
defaultMessage="You can now enable notifications for ORA assignments that require staff grading, from the "
description="user info message that user can enable notifications for ORA assignments"
id="ora-grading.NotificationsBanner.Message"
/>
<Hyperlink
destination="http://localhost:1997/notifications"
isInline={true}
rel="noopener noreferrer"
showLaunchIcon={false}
target="_blank"
variant="muted"
>
<FormattedMessage
defaultMessage="preferences center."
description="placeholder for the preferences center link"
id="ora-grading.NotificationsBanner.linkMessage"
/>
</Hyperlink>
</span>
</PageBanner>
`;

0 comments on commit 31ed941

Please sign in to comment.