blob: 84156d6daf33c1e9810da66457a48a888098b1bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Alert integration settings form default state should match the default snapshot 1`] = `
<div>
<p>
<gl-sprintf-stub
message="Action to take when receiving an alert. %{docsLink}"
/>
</p>
<form>
<gl-form-group-stub
class="gl-pl-0"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
checked="true"
data-testid="create-incident-checkbox"
id="reference-0"
>
<span>
Create an incident. Incidents are created for each alert triggered.
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-form-group-stub
class="col-8 col-md-9 gl-px-6"
label-for="alert-integration-settings-issue-template"
label-size="sm"
labeldescription=""
optionaltext="(optional)"
>
<label
class="gl-display-inline-flex"
for="reference-1"
>
Incident template (optional).
<gl-link-stub
href="/help/user/project/description_templates#create-an-issue-template"
target="_blank"
>
<span
class="gl-font-weight-normal gl-pl-2"
>
Learn more.
</span>
</gl-link-stub>
</label>
<gl-collapsible-listbox-stub
block="true"
category="primary"
data-testid="incident-templates-dropdown"
headertext=""
icon=""
id="reference-1"
items="[object Object]"
noresultstext="No results found"
placement="left"
positioningstrategy="absolute"
resetbuttonlabel=""
searchplaceholder="Search"
selected="selecte_tmpl"
showselectallbuttonlabel=""
size="medium"
toggletext=""
variant="default"
/>
</gl-form-group-stub>
<gl-form-group-stub
class="gl-mb-5 gl-pl-0"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
data-testid="enable-email-notification-checkbox"
id="reference-2"
>
<span>
Send a single email notification to Owners and Maintainers for new alerts.
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-form-group-stub
class="gl-mb-5 gl-pl-0"
labeldescription=""
optionaltext="(optional)"
>
<gl-form-checkbox-stub
checked="true"
id="reference-3"
>
<span>
Automatically close associated incident when a recovery alert notification resolves an alert
</span>
</gl-form-checkbox-stub>
</gl-form-group-stub>
<gl-button-stub
buttontextclasses=""
category="primary"
class="js-no-auto-disable"
data-testid="save-changes-button"
icon=""
size="medium"
type="submit"
variant="confirm"
>
Save changes
</gl-button-stub>
</form>
</div>
`;
|