mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
updated jest file and snapshot
This commit is contained in:
@@ -45,7 +45,7 @@ describe('AlertRuleList', () => {
|
|||||||
|
|
||||||
it('should render 1 rule', () => {
|
it('should render 1 rule', () => {
|
||||||
page.update();
|
page.update();
|
||||||
let ruleNode = page.find('.card-item-wrapper');
|
let ruleNode = page.find('.alert-rule-item');
|
||||||
expect(toJson(ruleNode)).toMatchSnapshot();
|
expect(toJson(ruleNode)).toMatchSnapshot();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -2,45 +2,23 @@
|
|||||||
|
|
||||||
exports[`AlertRuleList should render 1 rule 1`] = `
|
exports[`AlertRuleList should render 1 rule 1`] = `
|
||||||
<li
|
<li
|
||||||
className="card-item-wrapper"
|
className="alert-rule-item"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="card-item card-item--alert"
|
className="alert-rule-item__body"
|
||||||
>
|
>
|
||||||
<div
|
<span
|
||||||
className="card-item-header"
|
className="alert-rule-item__icon alert-state-ok"
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="card-item-type"
|
|
||||||
>
|
|
||||||
<a
|
|
||||||
className="card-item-cog"
|
|
||||||
onClick={[Function]}
|
|
||||||
title="Pausing an alert rule prevents it from executing"
|
|
||||||
>
|
>
|
||||||
<i
|
<i
|
||||||
className="fa fa-pause"
|
className="icon-gf icon-gf-online"
|
||||||
/>
|
/>
|
||||||
</a>
|
</span>
|
||||||
<a
|
|
||||||
className="card-item-cog"
|
|
||||||
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
|
|
||||||
title="Edit alert rule"
|
|
||||||
>
|
|
||||||
<i
|
|
||||||
className="icon-gf icon-gf-settings"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
className="card-item-body"
|
className="alert-rule-item__header"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className="card-item-details"
|
className="alert-rule-item__name"
|
||||||
>
|
|
||||||
<div
|
|
||||||
className="card-item-name"
|
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
|
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
|
||||||
@@ -49,24 +27,43 @@ exports[`AlertRuleList should render 1 rule 1`] = `
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="card-item-sub-name"
|
className="alert-rule-item__text"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="alert-list-item-state alert-state-ok"
|
className="alert-state-ok"
|
||||||
>
|
>
|
||||||
<i
|
|
||||||
className="icon-gf icon-gf-online"
|
|
||||||
/>
|
|
||||||
|
|
||||||
OK
|
OK
|
||||||
</span>
|
</span>
|
||||||
<span>
|
<span
|
||||||
|
className="alert-rule-item__time"
|
||||||
|
>
|
||||||
for
|
for
|
||||||
5 minutes
|
5 minutes
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
className="alert-rule-item__footer"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
className="btn btn-small btn-inverse alert-list__btn width-2"
|
||||||
|
onClick={[Function]}
|
||||||
|
title="Pausing an alert rule prevents it from executing"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
className="fa fa-pause"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className="btn btn-small btn-inverse alert-list__btn width-2"
|
||||||
|
href="dashboard/db/mygool?panelId=3&fullscreen&edit&tab=alert"
|
||||||
|
title="Edit alert rule"
|
||||||
|
>
|
||||||
|
<i
|
||||||
|
className="icon-gf icon-gf-settings"
|
||||||
|
/>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user