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