]> source.dussan.org Git - sonarqube.git/blob
25f5ec0e7a52a15065294251d3fee0edcd5283c7
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <form
5   className="abs-width-400 padded"
6   onSubmit={[MockFunction]}
7 >
8   <h2>
9     hotspots.form.title
10   </h2>
11   <div
12     className="display-flex-column big-spacer-bottom"
13   >
14     <div
15       className="big-spacer-top"
16     >
17       <Radio
18         checked={true}
19         className=""
20         onCheck={[MockFunction]}
21         value="FIXED"
22       >
23         <h3
24           className=""
25         >
26           hotspots.status_option.FIXED
27         </h3>
28       </Radio>
29       <div
30         className="radio-button-description"
31       >
32         hotspots.status_option.FIXED.description
33       </div>
34     </div>
35     <div
36       className="big-spacer-top"
37     >
38       <Radio
39         checked={false}
40         className=""
41         onCheck={[MockFunction]}
42         value="SAFE"
43       >
44         <h3
45           className=""
46         >
47           hotspots.status_option.SAFE
48         </h3>
49       </Radio>
50       <div
51         className="radio-button-description"
52       >
53         hotspots.status_option.SAFE.description
54       </div>
55     </div>
56     <div
57       className="big-spacer-top"
58     >
59       <Radio
60         checked={false}
61         className=""
62         onCheck={[MockFunction]}
63         value="ADDITIONAL_REVIEW"
64       >
65         <h3
66           className=""
67         >
68           hotspots.status_option.ADDITIONAL_REVIEW
69         </h3>
70       </Radio>
71       <div
72         className="radio-button-description"
73       >
74         hotspots.status_option.ADDITIONAL_REVIEW.description
75       </div>
76     </div>
77   </div>
78   <div
79     className="display-flex-column big-spacer-bottom"
80   >
81     <label
82       className="little-spacer-bottom"
83     >
84       hotspots.form.comment
85     </label>
86     <textarea
87       autoFocus={true}
88       className="form-field fixed-width spacer-bottom"
89       onChange={[Function]}
90       placeholder=""
91       rows={6}
92       value="written comment"
93     />
94     <MarkdownTips />
95   </div>
96   <div
97     className="text-right"
98   >
99     <SubmitButton
100       disabled={false}
101     >
102       hotspots.form.submit.REVIEWED
103     </SubmitButton>
104   </div>
105 </form>
106 `;
107
108 exports[`should render correctly: Submitting 1`] = `
109 <form
110   className="abs-width-400 padded"
111   onSubmit={[MockFunction]}
112 >
113   <h2>
114     hotspots.form.title
115   </h2>
116   <div
117     className="display-flex-column big-spacer-bottom"
118   >
119     <div
120       className="big-spacer-top"
121     >
122       <Radio
123         checked={true}
124         className=""
125         onCheck={[MockFunction]}
126         value="FIXED"
127       >
128         <h3
129           className=""
130         >
131           hotspots.status_option.FIXED
132         </h3>
133       </Radio>
134       <div
135         className="radio-button-description"
136       >
137         hotspots.status_option.FIXED.description
138       </div>
139     </div>
140     <div
141       className="big-spacer-top"
142     >
143       <Radio
144         checked={false}
145         className=""
146         onCheck={[MockFunction]}
147         value="SAFE"
148       >
149         <h3
150           className=""
151         >
152           hotspots.status_option.SAFE
153         </h3>
154       </Radio>
155       <div
156         className="radio-button-description"
157       >
158         hotspots.status_option.SAFE.description
159       </div>
160     </div>
161     <div
162       className="big-spacer-top"
163     >
164       <Radio
165         checked={false}
166         className=""
167         onCheck={[MockFunction]}
168         value="ADDITIONAL_REVIEW"
169       >
170         <h3
171           className=""
172         >
173           hotspots.status_option.ADDITIONAL_REVIEW
174         </h3>
175       </Radio>
176       <div
177         className="radio-button-description"
178       >
179         hotspots.status_option.ADDITIONAL_REVIEW.description
180       </div>
181     </div>
182   </div>
183   <div
184     className="display-flex-column big-spacer-bottom"
185   >
186     <label
187       className="little-spacer-bottom"
188     >
189       hotspots.form.comment
190     </label>
191     <textarea
192       autoFocus={true}
193       className="form-field fixed-width spacer-bottom"
194       onChange={[Function]}
195       placeholder=""
196       rows={6}
197       value="written comment"
198     />
199     <MarkdownTips />
200   </div>
201   <div
202     className="text-right"
203   >
204     <i
205       className="spinner spacer-right"
206     />
207     <SubmitButton
208       disabled={true}
209     >
210       hotspots.form.submit.REVIEWED
211     </SubmitButton>
212   </div>
213 </form>
214 `;
215
216 exports[`should render correctly: restricted access 1`] = `
217 <form
218   className="abs-width-400 padded"
219   onSubmit={[MockFunction]}
220 >
221   <h2>
222     hotspots.form.title
223   </h2>
224   <div
225     className="display-flex-column big-spacer-bottom"
226   >
227     <div
228       className="big-spacer-top"
229     >
230       <Radio
231         checked={true}
232         className="disabled"
233         onCheck={[Function]}
234         value="FIXED"
235       >
236         <h3
237           className="text-muted"
238         >
239           hotspots.status_option.FIXED
240         </h3>
241       </Radio>
242       <div
243         className="radio-button-description text-muted"
244       >
245         hotspots.status_option.FIXED.description
246       </div>
247     </div>
248     <div
249       className="big-spacer-top"
250     >
251       <Radio
252         checked={false}
253         className="disabled"
254         onCheck={[Function]}
255         value="SAFE"
256       >
257         <h3
258           className="text-muted"
259         >
260           hotspots.status_option.SAFE
261         </h3>
262       </Radio>
263       <div
264         className="radio-button-description text-muted"
265       >
266         hotspots.status_option.SAFE.description
267       </div>
268     </div>
269     <div
270       className="big-spacer-top"
271     >
272       <Radio
273         checked={false}
274         className="disabled"
275         onCheck={[Function]}
276         value="ADDITIONAL_REVIEW"
277       >
278         <h3
279           className="text-muted"
280         >
281           hotspots.status_option.ADDITIONAL_REVIEW
282         </h3>
283       </Radio>
284       <div
285         className="radio-button-description text-muted"
286       >
287         hotspots.status_option.ADDITIONAL_REVIEW.description
288       </div>
289     </div>
290   </div>
291   <div
292     className="display-flex-column big-spacer-bottom"
293   >
294     <label
295       className="little-spacer-bottom"
296     >
297       hotspots.form.comment
298     </label>
299     <textarea
300       autoFocus={true}
301       className="form-field fixed-width spacer-bottom"
302       onChange={[Function]}
303       placeholder=""
304       rows={6}
305       value="written comment"
306     />
307     <MarkdownTips />
308   </div>
309   <div
310     className="text-right"
311   >
312     <SubmitButton
313       disabled={false}
314     >
315       hotspots.form.submit.REVIEWED
316     </SubmitButton>
317   </div>
318 </form>
319 `;
320
321 exports[`should render correctly: safe option selected 1`] = `
322 <form
323   className="abs-width-400 padded"
324   onSubmit={[MockFunction]}
325 >
326   <h2>
327     hotspots.form.title
328   </h2>
329   <div
330     className="display-flex-column big-spacer-bottom"
331   >
332     <div
333       className="big-spacer-top"
334     >
335       <Radio
336         checked={false}
337         className=""
338         onCheck={[MockFunction]}
339         value="FIXED"
340       >
341         <h3
342           className=""
343         >
344           hotspots.status_option.FIXED
345         </h3>
346       </Radio>
347       <div
348         className="radio-button-description"
349       >
350         hotspots.status_option.FIXED.description
351       </div>
352     </div>
353     <div
354       className="big-spacer-top"
355     >
356       <Radio
357         checked={true}
358         className=""
359         onCheck={[MockFunction]}
360         value="SAFE"
361       >
362         <h3
363           className=""
364         >
365           hotspots.status_option.SAFE
366         </h3>
367       </Radio>
368       <div
369         className="radio-button-description"
370       >
371         hotspots.status_option.SAFE.description
372       </div>
373     </div>
374     <div
375       className="big-spacer-top"
376     >
377       <Radio
378         checked={false}
379         className=""
380         onCheck={[MockFunction]}
381         value="ADDITIONAL_REVIEW"
382       >
383         <h3
384           className=""
385         >
386           hotspots.status_option.ADDITIONAL_REVIEW
387         </h3>
388       </Radio>
389       <div
390         className="radio-button-description"
391       >
392         hotspots.status_option.ADDITIONAL_REVIEW.description
393       </div>
394     </div>
395   </div>
396   <div
397     className="display-flex-column big-spacer-bottom"
398   >
399     <label
400       className="little-spacer-bottom"
401     >
402       hotspots.form.comment
403     </label>
404     <textarea
405       autoFocus={true}
406       className="form-field fixed-width spacer-bottom"
407       onChange={[Function]}
408       placeholder="hotspots.form.comment.placeholder"
409       rows={6}
410       value="written comment"
411     />
412     <MarkdownTips />
413   </div>
414   <div
415     className="text-right"
416   >
417     <SubmitButton
418       disabled={false}
419     >
420       hotspots.form.submit.REVIEWED
421     </SubmitButton>
422   </div>
423 </form>
424 `;
425
426 exports[`should render correctly: user selected 1`] = `
427 <form
428   className="abs-width-400 padded"
429   onSubmit={[MockFunction]}
430 >
431   <h2>
432     hotspots.form.title
433   </h2>
434   <div
435     className="display-flex-column big-spacer-bottom"
436   >
437     <div
438       className="big-spacer-top"
439     >
440       <Radio
441         checked={false}
442         className=""
443         onCheck={[MockFunction]}
444         value="FIXED"
445       >
446         <h3
447           className=""
448         >
449           hotspots.status_option.FIXED
450         </h3>
451       </Radio>
452       <div
453         className="radio-button-description"
454       >
455         hotspots.status_option.FIXED.description
456       </div>
457     </div>
458     <div
459       className="big-spacer-top"
460     >
461       <Radio
462         checked={false}
463         className=""
464         onCheck={[MockFunction]}
465         value="SAFE"
466       >
467         <h3
468           className=""
469         >
470           hotspots.status_option.SAFE
471         </h3>
472       </Radio>
473       <div
474         className="radio-button-description"
475       >
476         hotspots.status_option.SAFE.description
477       </div>
478     </div>
479     <div
480       className="big-spacer-top"
481     >
482       <Radio
483         checked={true}
484         className=""
485         onCheck={[MockFunction]}
486         value="ADDITIONAL_REVIEW"
487       >
488         <h3
489           className=""
490         >
491           hotspots.status_option.ADDITIONAL_REVIEW
492         </h3>
493       </Radio>
494       <div
495         className="radio-button-description"
496       >
497         hotspots.status_option.ADDITIONAL_REVIEW.description
498       </div>
499     </div>
500   </div>
501   <div
502     className="form-field huge-spacer-left"
503   >
504     <label>
505       hotspots.form.assign_to
506     </label>
507     <HotspotAssigneeSelect
508       onSelect={[MockFunction]}
509     />
510   </div>
511   <div
512     className="display-flex-column big-spacer-bottom"
513   >
514     <label
515       className="little-spacer-bottom"
516     >
517       hotspots.form.comment
518     </label>
519     <textarea
520       autoFocus={true}
521       className="form-field fixed-width spacer-bottom"
522       onChange={[Function]}
523       placeholder=""
524       rows={6}
525       value="written comment"
526     />
527     <MarkdownTips />
528   </div>
529   <div
530     className="text-right"
531   >
532     <SubmitButton
533       disabled={false}
534     >
535       hotspots.form.submit.REVIEWED
536     </SubmitButton>
537   </div>
538 </form>
539 `;