]> source.dussan.org Git - sonarqube.git/blob
06ad8d9c9c600a86abd8f474266f6359f2a88eb0
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display action state correctly 1`] = `
4 <div>
5   <header
6     className="page-header"
7   >
8     <h1
9       className="page-title"
10     >
11       settings.pr_decoration.binding.title
12     </h1>
13   </header>
14   <div
15     className="markdown small spacer-top big-spacer-bottom"
16   >
17     settings.pr_decoration.binding.description
18   </div>
19   <form
20     onSubmit={[Function]}
21   >
22     <div
23       className="form-field"
24     >
25       <label
26         htmlFor="name"
27       >
28         settings.pr_decoration.binding.form.name
29         <em
30           className="mandatory spacer-right"
31         >
32           *
33         </em>
34       </label>
35       <Select
36         className="abs-width-400"
37         clearable={false}
38         id="name"
39         onChange={[Function]}
40         options={
41           Array [
42             Object {
43               "label": "key — http://url.com",
44               "value": "key",
45             },
46           ]
47         }
48         searchable={false}
49         value=""
50       />
51     </div>
52     <div
53       className="display-flex-center"
54     >
55       <DeferredSpinner
56         className="spacer-right"
57         loading={true}
58         timeout={100}
59       />
60       <SubmitButton
61         className="spacer-right"
62         disabled={true}
63       >
64         save
65       </SubmitButton>
66     </div>
67   </form>
68 </div>
69 `;
70
71 exports[`should display action state correctly 2`] = `
72 <div>
73   <header
74     className="page-header"
75   >
76     <h1
77       className="page-title"
78     >
79       settings.pr_decoration.binding.title
80     </h1>
81   </header>
82   <div
83     className="markdown small spacer-top big-spacer-bottom"
84   >
85     settings.pr_decoration.binding.description
86   </div>
87   <form
88     onSubmit={[Function]}
89   >
90     <div
91       className="form-field"
92     >
93       <label
94         htmlFor="name"
95       >
96         settings.pr_decoration.binding.form.name
97         <em
98           className="mandatory spacer-right"
99         >
100           *
101         </em>
102       </label>
103       <Select
104         className="abs-width-400"
105         clearable={false}
106         id="name"
107         onChange={[Function]}
108         options={
109           Array [
110             Object {
111               "label": "key — http://url.com",
112               "value": "key",
113             },
114           ]
115         }
116         searchable={false}
117         value=""
118       />
119     </div>
120     <div
121       className="display-flex-center"
122     >
123       <DeferredSpinner
124         className="spacer-right"
125         loading={false}
126         timeout={100}
127       />
128       <SubmitButton
129         className="spacer-right"
130         disabled={true}
131       >
132         save
133       </SubmitButton>
134       <span
135         className="text-success"
136       >
137         <AlertSuccessIcon
138           className="spacer-right"
139         />
140         settings.state.saved
141       </span>
142     </div>
143   </form>
144 </div>
145 `;
146
147 exports[`should display action state correctly 3`] = `
148 <div>
149   <header
150     className="page-header"
151   >
152     <h1
153       className="page-title"
154     >
155       settings.pr_decoration.binding.title
156     </h1>
157   </header>
158   <div
159     className="markdown small spacer-top big-spacer-bottom"
160   >
161     settings.pr_decoration.binding.description
162   </div>
163   <form
164     onSubmit={[Function]}
165   >
166     <div
167       className="form-field"
168     >
169       <label
170         htmlFor="name"
171       >
172         settings.pr_decoration.binding.form.name
173         <em
174           className="mandatory spacer-right"
175         >
176           *
177         </em>
178       </label>
179       <Select
180         className="abs-width-400"
181         clearable={false}
182         id="name"
183         onChange={[Function]}
184         options={
185           Array [
186             Object {
187               "label": "key — http://url.com",
188               "value": "key",
189             },
190           ]
191         }
192         searchable={false}
193         value=""
194       />
195     </div>
196     <div
197       className="display-flex-center"
198     >
199       <DeferredSpinner
200         className="spacer-right"
201         loading={false}
202         timeout={100}
203       />
204       <SubmitButton
205         className="spacer-right"
206         disabled={false}
207       >
208         save
209       </SubmitButton>
210     </div>
211   </form>
212 </div>
213 `;
214
215 exports[`should render correctly 1`] = `
216 <DeferredSpinner
217   timeout={100}
218 />
219 `;
220
221 exports[`should render correctly 2`] = `
222 <div>
223   <Alert
224     className="spacer-top huge-spacer-bottom"
225     variant="info"
226   >
227     <FormattedMessage
228       defaultMessage="settings.pr_decoration.binding.no_bindings"
229       id="settings.pr_decoration.binding.no_bindings"
230       values={
231         Object {
232           "link": <Link
233             onlyActiveOnIndex={false}
234             style={Object {}}
235             to="/documentation/analysis/pull-request/#pr-decoration"
236           >
237             learn_more
238           </Link>,
239         }
240       }
241     />
242   </Alert>
243 </div>
244 `;
245
246 exports[`should render multiple instances correctly 1`] = `
247 <div>
248   <header
249     className="page-header"
250   >
251     <h1
252       className="page-title"
253     >
254       settings.pr_decoration.binding.title
255     </h1>
256   </header>
257   <div
258     className="markdown small spacer-top big-spacer-bottom"
259   >
260     settings.pr_decoration.binding.description
261   </div>
262   <form
263     onSubmit={[Function]}
264   >
265     <div
266       className="form-field"
267     >
268       <label
269         htmlFor="name"
270       >
271         settings.pr_decoration.binding.form.name
272         <em
273           className="mandatory spacer-right"
274         >
275           *
276         </em>
277       </label>
278       <Select
279         className="abs-width-400"
280         clearable={false}
281         id="name"
282         onChange={[Function]}
283         options={
284           Array [
285             Object {
286               "label": "i1 — http://github.enterprise.com",
287               "value": "i1",
288             },
289             Object {
290               "label": "i2 — http://github.enterprise.com",
291               "value": "i2",
292             },
293             Object {
294               "label": "i3 — http://github2.enterprise.com",
295               "value": "i3",
296             },
297           ]
298         }
299         searchable={false}
300         value=""
301       />
302     </div>
303     <div
304       className="display-flex-center"
305     >
306       <DeferredSpinner
307         className="spacer-right"
308         loading={false}
309         timeout={100}
310       />
311       <SubmitButton
312         className="spacer-right"
313         disabled={true}
314       >
315         save
316       </SubmitButton>
317     </div>
318   </form>
319 </div>
320 `;
321
322 exports[`should render multiple instances correctly 2`] = `
323 <div>
324   <header
325     className="page-header"
326   >
327     <h1
328       className="page-title"
329     >
330       settings.pr_decoration.binding.title
331     </h1>
332   </header>
333   <div
334     className="markdown small spacer-top big-spacer-bottom"
335   >
336     settings.pr_decoration.binding.description
337   </div>
338   <form
339     onSubmit={[Function]}
340   >
341     <div
342       className="form-field"
343     >
344       <label
345         htmlFor="name"
346       >
347         settings.pr_decoration.binding.form.name
348         <em
349           className="mandatory spacer-right"
350         >
351           *
352         </em>
353       </label>
354       <Select
355         className="abs-width-400"
356         clearable={false}
357         id="name"
358         onChange={[Function]}
359         options={
360           Array [
361             Object {
362               "label": "i1 — http://github.enterprise.com",
363               "value": "i1",
364             },
365             Object {
366               "label": "i2 — http://github.enterprise.com",
367               "value": "i2",
368             },
369             Object {
370               "label": "i3 — http://github2.enterprise.com",
371               "value": "i3",
372             },
373           ]
374         }
375         searchable={false}
376         value="Github - main instance"
377       />
378     </div>
379     <div
380       className="form-field"
381     >
382       <label
383         htmlFor="repository"
384       >
385         settings.pr_decoration.binding.form.repository
386         <em
387           className="mandatory spacer-right"
388         >
389           *
390         </em>
391       </label>
392       <input
393         className="input-super-large"
394         id="repository"
395         maxLength={256}
396         name="repository"
397         onChange={[Function]}
398         type="text"
399         value="account/repo"
400       />
401     </div>
402     <div
403       className="display-flex-center"
404     >
405       <DeferredSpinner
406         className="spacer-right"
407         loading={false}
408         timeout={100}
409       />
410       <SubmitButton
411         className="spacer-right"
412         disabled={true}
413       >
414         save
415       </SubmitButton>
416       <Button
417         className="spacer-right"
418         onClick={[MockFunction]}
419       >
420         reset_verb
421       </Button>
422     </div>
423   </form>
424 </div>
425 `;
426
427 exports[`should render single instance correctly 1`] = `
428 <div>
429   <header
430     className="page-header"
431   >
432     <h1
433       className="page-title"
434     >
435       settings.pr_decoration.binding.title
436     </h1>
437   </header>
438   <div
439     className="markdown small spacer-top big-spacer-bottom"
440   >
441     settings.pr_decoration.binding.description
442   </div>
443   <form
444     onSubmit={[Function]}
445   >
446     <div
447       className="form-field"
448     >
449       <label
450         htmlFor="name"
451       >
452         settings.pr_decoration.binding.form.name
453         <em
454           className="mandatory spacer-right"
455         >
456           *
457         </em>
458       </label>
459       <Select
460         className="abs-width-400"
461         clearable={false}
462         id="name"
463         onChange={[Function]}
464         options={
465           Array [
466             Object {
467               "label": "single — http://single.url",
468               "value": "single",
469             },
470           ]
471         }
472         searchable={false}
473         value=""
474       />
475     </div>
476     <div
477       className="display-flex-center"
478     >
479       <DeferredSpinner
480         className="spacer-right"
481         loading={false}
482         timeout={100}
483       />
484       <SubmitButton
485         className="spacer-right"
486         disabled={true}
487       >
488         save
489       </SubmitButton>
490     </div>
491   </form>
492 </div>
493 `;