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