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