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