test: added test cases for NotificationsBanner

This commit is contained in:
Awais Ansari
2024-04-30 20:07:23 +05:00
parent 0ba3cac532
commit 31ed9410a4
2 changed files with 31 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ exports[`App router component snapshot: disabled (show demo warning) 1`] = `
/>
<DemoWarning />
<CTA />
<NotificationsBanner />
<main
data-testid="main"
>
@@ -36,6 +37,7 @@ exports[`App router component snapshot: enabled 1`] = `
data-testid="header"
/>
<CTA />
<NotificationsBanner />
<main
data-testid="main"
>

View File

@@ -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>
`;