]> source.dussan.org Git - sonarqube.git/blob
2a887a2e77ca9fac629131884c7075504873547b
[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     definitionStatus={Object {}}
79     definitions={Array []}
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       Array [
111         Object {
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         Object {
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 Server
133           </React.Fragment>,
134           "requiresBranchesEnabled": true,
135         },
136         Object {
137           "key": "azure",
138           "label": <React.Fragment>
139             <img
140               alt="azure"
141               className="spacer-right"
142               height={16}
143               src="/images/alm/azure.svg"
144             />
145             Azure DevOps Server
146           </React.Fragment>,
147           "requiresBranchesEnabled": true,
148         },
149         Object {
150           "key": "gitlab",
151           "label": <React.Fragment>
152             <img
153               alt="gitlab"
154               className="spacer-right"
155               height={16}
156               src="/images/alm/gitlab.svg"
157             />
158             GitLab
159           </React.Fragment>,
160         },
161       ]
162     }
163   />
164   <BitbucketTab
165     definitionStatus={Object {}}
166     definitions={Array []}
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       Array [
198         Object {
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         Object {
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 Server
220           </React.Fragment>,
221           "requiresBranchesEnabled": true,
222         },
223         Object {
224           "key": "azure",
225           "label": <React.Fragment>
226             <img
227               alt="azure"
228               className="spacer-right"
229               height={16}
230               src="/images/alm/azure.svg"
231             />
232             Azure DevOps Server
233           </React.Fragment>,
234           "requiresBranchesEnabled": true,
235         },
236         Object {
237           "key": "gitlab",
238           "label": <React.Fragment>
239             <img
240               alt="gitlab"
241               className="spacer-right"
242               height={16}
243               src="/images/alm/gitlab.svg"
244             />
245             GitLab
246           </React.Fragment>,
247         },
248       ]
249     }
250   />
251   <GithubTab
252     branchesEnabled={true}
253     definitionStatus={Object {}}
254     definitions={Array []}
255     loadingAlmDefinitions={false}
256     loadingProjectCount={false}
257     multipleAlmEnabled={false}
258     onCheck={[MockFunction]}
259     onDelete={[MockFunction]}
260     onUpdateDefinitions={[MockFunction]}
261   />
262 </Fragment>
263 `;
264
265 exports[`should render correctly: delete modal 1`] = `
266 <Fragment>
267   <header
268     className="page-header"
269   >
270     <h1
271       className="page-title"
272     >
273       settings.almintegration.title
274     </h1>
275   </header>
276   <div
277     className="markdown small spacer-top big-spacer-bottom"
278   >
279     settings.almintegration.description
280   </div>
281   <BoxedTabs
282     onSelect={[MockFunction]}
283     selected="github"
284     tabs={
285       Array [
286         Object {
287           "key": "github",
288           "label": <React.Fragment>
289             <img
290               alt="github"
291               className="spacer-right"
292               height={16}
293               src="/images/alm/github.svg"
294             />
295             GitHub
296           </React.Fragment>,
297         },
298         Object {
299           "key": "bitbucket",
300           "label": <React.Fragment>
301             <img
302               alt="bitbucket"
303               className="spacer-right"
304               height={16}
305               src="/images/alm/bitbucket.svg"
306             />
307             Bitbucket Server
308           </React.Fragment>,
309           "requiresBranchesEnabled": true,
310         },
311         Object {
312           "key": "azure",
313           "label": <React.Fragment>
314             <img
315               alt="azure"
316               className="spacer-right"
317               height={16}
318               src="/images/alm/azure.svg"
319             />
320             Azure DevOps Server
321           </React.Fragment>,
322           "requiresBranchesEnabled": true,
323         },
324         Object {
325           "key": "gitlab",
326           "label": <React.Fragment>
327             <img
328               alt="gitlab"
329               className="spacer-right"
330               height={16}
331               src="/images/alm/gitlab.svg"
332             />
333             GitLab
334           </React.Fragment>,
335         },
336       ]
337     }
338   />
339   <GithubTab
340     branchesEnabled={true}
341     definitionStatus={Object {}}
342     definitions={Array []}
343     loadingAlmDefinitions={false}
344     loadingProjectCount={false}
345     multipleAlmEnabled={false}
346     onCheck={[MockFunction]}
347     onDelete={[MockFunction]}
348     onUpdateDefinitions={[MockFunction]}
349   />
350   <DeleteModal
351     id="keyToDelete"
352     onCancel={[MockFunction]}
353     onDelete={[MockFunction]}
354   />
355 </Fragment>
356 `;
357
358 exports[`should render correctly: gitlab 1`] = `
359 <Fragment>
360   <header
361     className="page-header"
362   >
363     <h1
364       className="page-title"
365     >
366       settings.almintegration.title
367     </h1>
368   </header>
369   <div
370     className="markdown small spacer-top big-spacer-bottom"
371   >
372     settings.almintegration.description
373   </div>
374   <BoxedTabs
375     onSelect={[MockFunction]}
376     selected="gitlab"
377     tabs={
378       Array [
379         Object {
380           "key": "github",
381           "label": <React.Fragment>
382             <img
383               alt="github"
384               className="spacer-right"
385               height={16}
386               src="/images/alm/github.svg"
387             />
388             GitHub
389           </React.Fragment>,
390         },
391         Object {
392           "key": "bitbucket",
393           "label": <React.Fragment>
394             <img
395               alt="bitbucket"
396               className="spacer-right"
397               height={16}
398               src="/images/alm/bitbucket.svg"
399             />
400             Bitbucket Server
401           </React.Fragment>,
402           "requiresBranchesEnabled": true,
403         },
404         Object {
405           "key": "azure",
406           "label": <React.Fragment>
407             <img
408               alt="azure"
409               className="spacer-right"
410               height={16}
411               src="/images/alm/azure.svg"
412             />
413             Azure DevOps Server
414           </React.Fragment>,
415           "requiresBranchesEnabled": true,
416         },
417         Object {
418           "key": "gitlab",
419           "label": <React.Fragment>
420             <img
421               alt="gitlab"
422               className="spacer-right"
423               height={16}
424               src="/images/alm/gitlab.svg"
425             />
426             GitLab
427           </React.Fragment>,
428         },
429       ]
430     }
431   />
432   <GitlabTab
433     branchesEnabled={true}
434     definitionStatus={Object {}}
435     definitions={Array []}
436     loadingAlmDefinitions={false}
437     loadingProjectCount={false}
438     multipleAlmEnabled={false}
439     onCheck={[MockFunction]}
440     onDelete={[MockFunction]}
441     onUpdateDefinitions={[MockFunction]}
442   />
443 </Fragment>
444 `;
445
446 exports[`should render correctly: loading 1`] = `
447 <Fragment>
448   <header
449     className="page-header"
450   >
451     <h1
452       className="page-title"
453     >
454       settings.almintegration.title
455     </h1>
456   </header>
457   <div
458     className="markdown small spacer-top big-spacer-bottom"
459   >
460     settings.almintegration.description
461   </div>
462   <BoxedTabs
463     onSelect={[MockFunction]}
464     selected="github"
465     tabs={
466       Array [
467         Object {
468           "key": "github",
469           "label": <React.Fragment>
470             <img
471               alt="github"
472               className="spacer-right"
473               height={16}
474               src="/images/alm/github.svg"
475             />
476             GitHub
477           </React.Fragment>,
478         },
479         Object {
480           "key": "bitbucket",
481           "label": <React.Fragment>
482             <img
483               alt="bitbucket"
484               className="spacer-right"
485               height={16}
486               src="/images/alm/bitbucket.svg"
487             />
488             Bitbucket Server
489           </React.Fragment>,
490           "requiresBranchesEnabled": true,
491         },
492         Object {
493           "key": "azure",
494           "label": <React.Fragment>
495             <img
496               alt="azure"
497               className="spacer-right"
498               height={16}
499               src="/images/alm/azure.svg"
500             />
501             Azure DevOps Server
502           </React.Fragment>,
503           "requiresBranchesEnabled": true,
504         },
505         Object {
506           "key": "gitlab",
507           "label": <React.Fragment>
508             <img
509               alt="gitlab"
510               className="spacer-right"
511               height={16}
512               src="/images/alm/gitlab.svg"
513             />
514             GitLab
515           </React.Fragment>,
516         },
517       ]
518     }
519   />
520   <GithubTab
521     branchesEnabled={true}
522     definitionStatus={Object {}}
523     definitions={Array []}
524     loadingAlmDefinitions={true}
525     loadingProjectCount={true}
526     multipleAlmEnabled={false}
527     onCheck={[MockFunction]}
528     onDelete={[MockFunction]}
529     onUpdateDefinitions={[MockFunction]}
530   />
531 </Fragment>
532 `;