Skip to content

Commit

Permalink
Update Jest snapshots
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Agrawal <[email protected]>
  • Loading branch information
lezzago authored and qreshi committed Apr 19, 2022
1 parent 0ba3785 commit 824830f
Show file tree
Hide file tree
Showing 8 changed files with 2,758 additions and 493 deletions.
1,108 changes: 1,108 additions & 0 deletions public/pages/CreateTrigger/components/Action/__snapshots__/Action.test.js.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ exports[`ActionEmptyPrompt renders 1`] = `
<EuiEmptyPrompt
actions={
<EuiButton
disabled={true}
fill={true}
href="alerting#/create-destination"
iconSide="right"
iconType="popout"
onClick={[Function]}
>
Add destination
Manage channels
</EuiButton>
}
body={
<EuiText>
<p>
There are no existing destinations. Add a destinations to create an action.
There are no existing channels. Add a channel to create an action.
</p>
</EuiText>
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NotifictionsCallOut renders 1`] = `
<div>
<div
class="euiCallOut euiCallOut--danger"
>
<div
class="euiCallOutHeader"
>
<div>
EuiIconMock
</div>
<span
class="euiCallOutHeader__title"
>
Notifications plugin is not installed
</span>
</div>
<div
class="euiText euiText--small"
>
<p>
Install the notifications plugin in order to create and select channels to send out notifications.
<a
class="euiLink euiLink--primary"
href="#"
rel="noreferrer"
>
Learn more
</a>
</p>
<div>
<a
class="euiLink euiLink--primary"
href="#"
rel="noreferrer"
>
EuiIconMock
</a>
</div>
.
<p />
</div>
</div>
<div
class="euiSpacer euiSpacer--m"
/>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ exports[`<DestinationsActions /> should render DestinationsActions 1`] = `
<div
class="euiFlexItem euiFlexItem--flexGrowZero"
>
<a
class="euiButton euiButton--primary euiButton--fill"
href="alerting#/create-destination"
rel="noreferrer"
<button
class="euiButton euiButton--primary euiButton--fill euiButton-isDisabled"
disabled=""
type="button"
>
<span
class="euiButtonContent euiButton__content"
Expand All @@ -51,7 +51,7 @@ exports[`<DestinationsActions /> should render DestinationsActions 1`] = `
Add destination
</span>
</span>
</a>
</button>
</div>
</div>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,11 @@ exports[`<EmptyDestinations /> should render empty destinations message 1`] = `
class="euiText euiText--medium"
>
<p>
There are no existing destinations. Add a destination.
There are no existing destinations.
</p>
</div>
</div>
</span>
<div
class="euiSpacer euiSpacer--l"
/>
<div
class="euiSpacer euiSpacer--s"
/>
<a
class="euiButton euiButton--primary euiButton--fill"
href="alerting#/create-destination"
rel="noreferrer"
>
<span
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
>
Add destination
</span>
</span>
</a>
</div>
`;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NotificationsInfoCallOut renders when Notifications plugin is installed 1`] = `
<div>
<div
class="euiCallOut euiCallOut--primary"
>
<div
class="euiCallOutHeader"
>
<span
class="euiCallOutHeader__title"
>
Destinations have become channels in Notifications.
</span>
</div>
<div
class="euiText euiText--small"
>
<p>
Your destinations have been migrated to Notifications, a new centralized place to manage your notification channels. Destinations will be deprecated going forward.
</p>
<div
class="euiSpacer euiSpacer--l"
/>
<a
class="euiButton euiButton--primary"
href="/app/notifications-dashboards#/channels"
rel="noreferrer"
>
<span
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
>
View Notifications
</span>
</span>
</a>
<p />
</div>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
</div>
`;

exports[`NotificationsInfoCallOut renders when Notifications plugin is not installed 1`] = `
<div>
<div
class="euiCallOut euiCallOut--primary"
>
<div
class="euiCallOutHeader"
>
<span
class="euiCallOutHeader__title"
>
Destinations have become channels in Notifications.
</span>
</div>
<div
class="euiText euiText--small"
>
<p>
Your destinations have been migrated to Notifications, a new centralized place to manage your notification channels. Destinations will be deprecated going forward.
</p>
<div
class="euiSpacer euiSpacer--l"
/>
<a
class="euiButton euiButton--primary"
href="/app/notifications-dashboards#/channels"
rel="noreferrer"
>
<span
class="euiButtonContent euiButton__content"
>
<span
class="euiButton__text"
>
View Notifications
</span>
</span>
</a>
<p />
</div>
</div>
<div
class="euiSpacer euiSpacer--l"
/>
</div>
`;
Loading

0 comments on commit 824830f

Please sign in to comment.