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