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