]> source.dussan.org Git - sonarqube.git/blob
25d869b3512c16fa245801d9f49bfff0ec16571c
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display error message when no issues available 1`] = `
4 <Modal
5   onRequestClose={[Function]}
6   size="small"
7 >
8   <form
9     id="bulk-change-form"
10     onSubmit={[Function]}
11   >
12     <div
13       className="modal-head"
14     >
15       <h2>
16         issue_bulk_change.form.title.0
17       </h2>
18     </div>
19     <div
20       className="modal-body modal-container"
21     >
22       <Alert
23         variant="warning"
24       >
25         issue_bulk_change.no_match
26       </Alert>
27     </div>
28     <div
29       className="modal-foot"
30     >
31       <SubmitButton
32         disabled={true}
33         id="bulk-change-submit"
34       >
35         apply
36       </SubmitButton>
37       <ResetButtonLink
38         onClick={[Function]}
39       >
40         cancel
41       </ResetButtonLink>
42     </div>
43   </form>
44 </Modal>
45 `;
46
47 exports[`should display form when issues are present 1`] = `
48 <Modal
49   onRequestClose={[Function]}
50   size="small"
51 >
52   <form
53     id="bulk-change-form"
54     onSubmit={[Function]}
55   >
56     <div
57       className="modal-head"
58     >
59       <h2>
60         issue_bulk_change.form.title.1
61       </h2>
62     </div>
63     <div
64       className="modal-body modal-container"
65     >
66       <Checkbox
67         checked={false}
68         className="display-inline-block spacer-top"
69         id="send-notifications"
70         onCheck={[Function]}
71         right={true}
72         thirdState={false}
73       >
74         <strong
75           className="little-spacer-right"
76         >
77           issue.send_notifications
78         </strong>
79       </Checkbox>
80     </div>
81     <div
82       className="modal-foot"
83     >
84       <SubmitButton
85         disabled={true}
86         id="bulk-change-submit"
87       >
88         apply
89       </SubmitButton>
90       <ResetButtonLink
91         onClick={[Function]}
92       >
93         cancel
94       </ResetButtonLink>
95     </div>
96   </form>
97 </Modal>
98 `;
99
100 exports[`should display warning when too many issues are passed 1`] = `
101 <h2>
102   issue_bulk_change.form.title.500
103 </h2>
104 `;
105
106 exports[`should display warning when too many issues are passed 2`] = `
107 <Alert
108   variant="warning"
109 >
110   <FormattedMessage
111     defaultMessage="issue_bulk_change.max_issues_reached"
112     id="issue_bulk_change.max_issues_reached"
113     values={
114       {
115         "max": <strong>
116           500
117         </strong>,
118       }
119     }
120   />
121 </Alert>
122 `;
123
124 exports[`should render select for severity: Option 1`] = `
125 <Option
126   data={
127     {
128       "label": "label",
129       "value": "value",
130     }
131   }
132 >
133   <SeverityHelper
134     className="display-flex-center"
135     severity="value"
136   />
137 </Option>
138 `;
139
140 exports[`should render select for severity: SingleValue 1`] = `
141 <SingleValue
142   data={
143     {
144       "label": "label",
145       "value": "value",
146     }
147   }
148 >
149   <SeverityHelper
150     className="display-flex-center"
151     severity="value"
152   />
153 </SingleValue>
154 `;
155
156 exports[`should render select for type: Option 1`] = `
157 <Option
158   data={
159     {
160       "label": "label",
161       "value": "value",
162     }
163   }
164 >
165   <div
166     className="display-flex-center"
167   >
168     <IssueTypeIcon
169       query="value"
170     />
171     <span
172       className="little-spacer-left"
173     >
174       label
175     </span>
176   </div>
177 </Option>
178 `;
179
180 exports[`should render select for type: SingleValue 1`] = `
181 <SingleValue
182   data={
183     {
184       "label": "label",
185       "value": "value",
186     }
187   }
188 >
189   <div
190     className="display-flex-center"
191   >
192     <IssueTypeIcon
193       query="value"
194     />
195     <span
196       className="little-spacer-left"
197     >
198       label
199     </span>
200   </div>
201 </SingleValue>
202 `;