]> source.dussan.org Git - sonarqube.git/blob
2dbf7ae81fbbb7e952390d8a08c06e5a5a613a43
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`bulk applies template to all results 1`] = `
4 <Modal
5   contentLabel="permission_templates.bulk_apply_permission_template"
6   onRequestClose={[MockFunction]}
7   size="small"
8 >
9   <header
10     className="modal-head"
11   >
12     <h2>
13       permission_templates.bulk_apply_permission_template
14     </h2>
15   </header>
16   <div
17     className="modal-body"
18   >
19     <i
20       className="spinner"
21     />
22   </div>
23   <footer
24     className="modal-foot"
25   >
26     <ResetButtonLink
27       onClick={[MockFunction]}
28     >
29       cancel
30     </ResetButtonLink>
31   </footer>
32 </Modal>
33 `;
34
35 exports[`bulk applies template to all results 2`] = `
36 <Modal
37   contentLabel="permission_templates.bulk_apply_permission_template"
38   onRequestClose={[MockFunction]}
39   size="small"
40 >
41   <header
42     className="modal-head"
43   >
44     <h2>
45       permission_templates.bulk_apply_permission_template
46     </h2>
47   </header>
48   <div
49     className="modal-body"
50   >
51     <MandatoryFieldsExplanation
52       className="spacer-bottom"
53     />
54     <Alert
55       variant="warning"
56     >
57       permission_templates.bulk_apply_permission_template.apply_to_all.17
58     </Alert>
59     <div
60       className="modal-field"
61     >
62       <label>
63         template
64         <MandatoryFieldMarker />
65       </label>
66       <SelectLegacy
67         clearable={false}
68         disabled={false}
69         onChange={[Function]}
70         options={
71           Array [
72             Object {
73               "label": "Foo",
74               "value": "foo",
75             },
76             Object {
77               "label": "Bar",
78               "value": "bar",
79             },
80           ]
81         }
82         value="foo"
83       />
84     </div>
85   </div>
86   <footer
87     className="modal-foot"
88   >
89     <SubmitButton
90       disabled={false}
91       onClick={[Function]}
92     >
93       apply
94     </SubmitButton>
95     <ResetButtonLink
96       onClick={[MockFunction]}
97     >
98       cancel
99     </ResetButtonLink>
100   </footer>
101 </Modal>
102 `;
103
104 exports[`bulk applies template to all results 3`] = `
105 <Modal
106   contentLabel="permission_templates.bulk_apply_permission_template"
107   onRequestClose={[MockFunction]}
108   size="small"
109 >
110   <header
111     className="modal-head"
112   >
113     <h2>
114       permission_templates.bulk_apply_permission_template
115     </h2>
116   </header>
117   <div
118     className="modal-body"
119   >
120     <MandatoryFieldsExplanation
121       className="spacer-bottom"
122     />
123     <Alert
124       variant="warning"
125     >
126       permission_templates.bulk_apply_permission_template.apply_to_all.17
127     </Alert>
128     <div
129       className="modal-field"
130     >
131       <label>
132         template
133         <MandatoryFieldMarker />
134       </label>
135       <SelectLegacy
136         clearable={false}
137         disabled={true}
138         onChange={[Function]}
139         options={
140           Array [
141             Object {
142               "label": "Foo",
143               "value": "foo",
144             },
145             Object {
146               "label": "Bar",
147               "value": "bar",
148             },
149           ]
150         }
151         value="foo"
152       />
153     </div>
154   </div>
155   <footer
156     className="modal-foot"
157   >
158     <i
159       className="spinner spacer-right"
160     />
161     <SubmitButton
162       disabled={true}
163       onClick={[Function]}
164     >
165       apply
166     </SubmitButton>
167     <ResetButtonLink
168       onClick={[MockFunction]}
169     >
170       cancel
171     </ResetButtonLink>
172   </footer>
173 </Modal>
174 `;
175
176 exports[`bulk applies template to all results 4`] = `
177 <Modal
178   contentLabel="permission_templates.bulk_apply_permission_template"
179   onRequestClose={[MockFunction]}
180   size="small"
181 >
182   <header
183     className="modal-head"
184   >
185     <h2>
186       permission_templates.bulk_apply_permission_template
187     </h2>
188   </header>
189   <div
190     className="modal-body"
191   >
192     <Alert
193       variant="success"
194     >
195       projects_role.apply_template.success
196     </Alert>
197   </div>
198   <footer
199     className="modal-foot"
200   >
201     <ResetButtonLink
202       onClick={[MockFunction]}
203     >
204       close
205     </ResetButtonLink>
206   </footer>
207 </Modal>
208 `;
209
210 exports[`bulk applies template to selected results 1`] = `
211 <Modal
212   contentLabel="permission_templates.bulk_apply_permission_template"
213   onRequestClose={[MockFunction]}
214   size="small"
215 >
216   <header
217     className="modal-head"
218   >
219     <h2>
220       permission_templates.bulk_apply_permission_template
221     </h2>
222   </header>
223   <div
224     className="modal-body"
225   >
226     <i
227       className="spinner"
228     />
229   </div>
230   <footer
231     className="modal-foot"
232   >
233     <ResetButtonLink
234       onClick={[MockFunction]}
235     >
236       cancel
237     </ResetButtonLink>
238   </footer>
239 </Modal>
240 `;
241
242 exports[`bulk applies template to selected results 2`] = `
243 <Modal
244   contentLabel="permission_templates.bulk_apply_permission_template"
245   onRequestClose={[MockFunction]}
246   size="small"
247 >
248   <header
249     className="modal-head"
250   >
251     <h2>
252       permission_templates.bulk_apply_permission_template
253     </h2>
254   </header>
255   <div
256     className="modal-body"
257   >
258     <MandatoryFieldsExplanation
259       className="spacer-bottom"
260     />
261     <Alert
262       variant="warning"
263     >
264       permission_templates.bulk_apply_permission_template.apply_to_selected.2
265     </Alert>
266     <div
267       className="modal-field"
268     >
269       <label>
270         template
271         <MandatoryFieldMarker />
272       </label>
273       <SelectLegacy
274         clearable={false}
275         disabled={false}
276         onChange={[Function]}
277         options={
278           Array [
279             Object {
280               "label": "Foo",
281               "value": "foo",
282             },
283             Object {
284               "label": "Bar",
285               "value": "bar",
286             },
287           ]
288         }
289         value="foo"
290       />
291     </div>
292   </div>
293   <footer
294     className="modal-foot"
295   >
296     <SubmitButton
297       disabled={false}
298       onClick={[Function]}
299     >
300       apply
301     </SubmitButton>
302     <ResetButtonLink
303       onClick={[MockFunction]}
304     >
305       cancel
306     </ResetButtonLink>
307   </footer>
308 </Modal>
309 `;
310
311 exports[`bulk applies template to selected results 3`] = `
312 <Modal
313   contentLabel="permission_templates.bulk_apply_permission_template"
314   onRequestClose={[MockFunction]}
315   size="small"
316 >
317   <header
318     className="modal-head"
319   >
320     <h2>
321       permission_templates.bulk_apply_permission_template
322     </h2>
323   </header>
324   <div
325     className="modal-body"
326   >
327     <MandatoryFieldsExplanation
328       className="spacer-bottom"
329     />
330     <Alert
331       variant="warning"
332     >
333       permission_templates.bulk_apply_permission_template.apply_to_selected.2
334     </Alert>
335     <div
336       className="modal-field"
337     >
338       <label>
339         template
340         <MandatoryFieldMarker />
341       </label>
342       <SelectLegacy
343         clearable={false}
344         disabled={true}
345         onChange={[Function]}
346         options={
347           Array [
348             Object {
349               "label": "Foo",
350               "value": "foo",
351             },
352             Object {
353               "label": "Bar",
354               "value": "bar",
355             },
356           ]
357         }
358         value="foo"
359       />
360     </div>
361   </div>
362   <footer
363     className="modal-foot"
364   >
365     <i
366       className="spinner spacer-right"
367     />
368     <SubmitButton
369       disabled={true}
370       onClick={[Function]}
371     >
372       apply
373     </SubmitButton>
374     <ResetButtonLink
375       onClick={[MockFunction]}
376     >
377       cancel
378     </ResetButtonLink>
379   </footer>
380 </Modal>
381 `;
382
383 exports[`bulk applies template to selected results 4`] = `
384 <Modal
385   contentLabel="permission_templates.bulk_apply_permission_template"
386   onRequestClose={[MockFunction]}
387   size="small"
388 >
389   <header
390     className="modal-head"
391   >
392     <h2>
393       permission_templates.bulk_apply_permission_template
394     </h2>
395   </header>
396   <div
397     className="modal-body"
398   >
399     <Alert
400       variant="success"
401     >
402       projects_role.apply_template.success
403     </Alert>
404   </div>
405   <footer
406     className="modal-foot"
407   >
408     <ResetButtonLink
409       onClick={[MockFunction]}
410     >
411       close
412     </ResetButtonLink>
413   </footer>
414 </Modal>
415 `;