]> source.dussan.org Git - sonarqube.git/blob
7de14af9ca2c980ef5d4122e5251b26a0a471734
[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           key="almintegration"
53         >
54           <withRouter(withAppStateContext(AlmIntegration))
55             categories={
56               Array [
57                 "foo category",
58                 "general",
59               ]
60             }
61             definitions={
62               Array [
63                 Object {
64                   "category": "foo category",
65                   "fields": Array [],
66                   "key": "foo",
67                   "options": Array [],
68                   "subCategory": "foo subCat",
69                 },
70                 Object {
71                   "category": "general",
72                   "fields": Array [],
73                   "key": "bar",
74                   "options": Array [],
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       Array [
104         Object {
105           "category": "foo category",
106           "fields": Array [],
107           "key": "foo",
108           "options": Array [],
109           "subCategory": "foo subCat",
110         },
111         Object {
112           "category": "general",
113           "fields": Array [],
114           "key": "bar",
115           "options": Array [],
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               Array [
143                 Object {
144                   "category": "foo category",
145                   "fields": Array [],
146                   "key": "foo",
147                   "options": Array [],
148                   "subCategory": "foo subCat",
149                 },
150                 Object {
151                   "category": "general",
152                   "fields": Array [],
153                   "key": "bar",
154                   "options": Array [],
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       Object {
175         "top": 0,
176       }
177     }
178   >
179     <div
180       className="layout-page-side-inner"
181     >
182       <withAppStateContext(CategoriesList)
183         categories={
184           Array [
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       Array [
213         Object {
214           "category": "foo category",
215           "fields": Array [],
216           "key": "foo",
217           "options": Array [],
218           "subCategory": "foo subCat",
219         },
220         Object {
221           "category": "general",
222           "fields": Array [],
223           "key": "bar",
224           "options": Array [],
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               Array [
251                 "foo category",
252                 "general",
253               ]
254             }
255             definitions={
256               Array [
257                 Object {
258                   "category": "foo category",
259                   "fields": Array [],
260                   "key": "foo",
261                   "options": Array [],
262                   "subCategory": "foo subCat",
263                 },
264                 Object {
265                   "category": "general",
266                   "fields": Array [],
267                   "key": "bar",
268                   "options": Array [],
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       Array [
298         Object {
299           "category": "foo category",
300           "fields": Array [],
301           "key": "foo",
302           "options": Array [],
303           "subCategory": "foo subCat",
304         },
305         Object {
306           "category": "general",
307           "fields": Array [],
308           "key": "bar",
309           "options": Array [],
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               Array [
336                 "foo category",
337                 "general",
338               ]
339             }
340             definitions={
341               Array [
342                 Object {
343                   "category": "foo category",
344                   "fields": Array [],
345                   "key": "foo",
346                   "options": Array [],
347                   "subCategory": "foo subCat",
348                 },
349                 Object {
350                   "category": "general",
351                   "fields": Array [],
352                   "key": "bar",
353                   "options": Array [],
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       Array [
383         Object {
384           "category": "foo category",
385           "fields": Array [],
386           "key": "foo",
387           "options": Array [],
388           "subCategory": "foo subCat",
389         },
390         Object {
391           "category": "general",
392           "fields": Array [],
393           "key": "bar",
394           "options": Array [],
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       Array [
442         Object {
443           "category": "foo category",
444           "fields": Array [],
445           "key": "foo",
446           "options": Array [],
447           "subCategory": "foo subCat",
448         },
449         Object {
450           "category": "general",
451           "fields": Array [],
452           "key": "bar",
453           "options": Array [],
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               Array [
481                 Object {
482                   "category": "foo category",
483                   "fields": Array [],
484                   "key": "foo",
485                   "options": Array [],
486                   "subCategory": "foo subCat",
487                 },
488                 Object {
489                   "category": "general",
490                   "fields": Array [],
491                   "key": "bar",
492                   "options": Array [],
493                   "subCategory": "foo subCat",
494                 },
495               ]
496             }
497           />
498         </div>
499       </div>
500     </div>
501   </div>
502 </div>
503 `;