]> source.dussan.org Git - sonarqube.git/blob
f1d2b875e965fc7ae580b1909542b8ce119dd638
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should handle missing quality profiles and quality gates 1`] = `
4 <Fragment>
5   <div>
6     <h2
7       className="big-padded bordered-bottom"
8     >
9       project.info.title
10     </h2>
11   </div>
12   <div
13     className="overflow-y-auto"
14   >
15     <div
16       className="big-padded bordered-bottom"
17     >
18       <div
19         className="display-flex-center"
20       >
21         <h3
22           className="spacer-right"
23         >
24           project.info.description
25         </h3>
26       </div>
27       <MetaTags
28         component={
29           Object {
30             "breadcrumbs": Array [],
31             "key": "my-project",
32             "name": "MyProject",
33             "organization": "foo",
34             "qualifier": "TRK",
35             "qualityGate": undefined,
36             "qualityProfiles": undefined,
37             "tags": Array [],
38           }
39         }
40         onComponentChange={[MockFunction]}
41       />
42     </div>
43     <div
44       className="big-padded bordered-bottom it__project-loc-value"
45     >
46       <MetaSize
47         component={
48           Object {
49             "breadcrumbs": Array [],
50             "key": "my-project",
51             "name": "MyProject",
52             "organization": "foo",
53             "qualifier": "TRK",
54             "qualityGate": undefined,
55             "qualityProfiles": undefined,
56             "tags": Array [],
57           }
58         }
59         measures={Array []}
60       />
61     </div>
62     <MetaLinks
63       component={
64         Object {
65           "breadcrumbs": Array [],
66           "key": "my-project",
67           "name": "MyProject",
68           "organization": "foo",
69           "qualifier": "TRK",
70           "qualityGate": undefined,
71           "qualityProfiles": undefined,
72           "tags": Array [],
73         }
74       }
75     />
76     <div
77       className="big-padded bordered-bottom"
78     >
79       <MetaKey
80         componentKey="my-project"
81         qualifier="TRK"
82       />
83     </div>
84     <Memo(DrawerLink)
85       label="overview.badges.get_badge.TRK"
86       onPageChange={[MockFunction]}
87       to={1}
88     />
89     <Memo(DrawerLink)
90       label="project.info.to_notifications"
91       onPageChange={[MockFunction]}
92       to={2}
93     />
94   </div>
95 </Fragment>
96 `;
97
98 exports[`should render a private project correctly 1`] = `
99 <Fragment>
100   <div>
101     <h2
102       className="big-padded bordered-bottom"
103     >
104       project.info.title
105     </h2>
106   </div>
107   <div
108     className="overflow-y-auto"
109   >
110     <div
111       className="big-padded bordered-bottom"
112     >
113       <div
114         className="display-flex-center"
115       >
116         <h3
117           className="spacer-right"
118         >
119           project.info.description
120         </h3>
121         <Connect(PrivacyBadge)
122           qualifier="TRK"
123           tooltipProps={
124             Object {
125               "projectKey": "my-project",
126             }
127           }
128           visibility="private"
129         />
130       </div>
131       <MetaTags
132         component={
133           Object {
134             "breadcrumbs": Array [],
135             "key": "my-project",
136             "name": "MyProject",
137             "organization": "foo",
138             "qualifier": "TRK",
139             "qualityGate": Object {
140               "isDefault": true,
141               "key": "30",
142               "name": "Sonar way",
143             },
144             "qualityProfiles": Array [
145               Object {
146                 "deleted": false,
147                 "key": "my-qp",
148                 "language": "ts",
149                 "name": "Sonar way",
150               },
151             ],
152             "tags": Array [],
153             "visibility": "private",
154           }
155         }
156         onComponentChange={[MockFunction]}
157       />
158     </div>
159     <div
160       className="big-padded bordered-bottom it__project-loc-value"
161     >
162       <MetaSize
163         component={
164           Object {
165             "breadcrumbs": Array [],
166             "key": "my-project",
167             "name": "MyProject",
168             "organization": "foo",
169             "qualifier": "TRK",
170             "qualityGate": Object {
171               "isDefault": true,
172               "key": "30",
173               "name": "Sonar way",
174             },
175             "qualityProfiles": Array [
176               Object {
177                 "deleted": false,
178                 "key": "my-qp",
179                 "language": "ts",
180                 "name": "Sonar way",
181               },
182             ],
183             "tags": Array [],
184             "visibility": "private",
185           }
186         }
187         measures={Array []}
188       />
189     </div>
190     <div
191       className="big-padded bordered-bottom"
192     >
193       <MetaQualityGate
194         qualityGate={
195           Object {
196             "isDefault": true,
197             "key": "30",
198             "name": "Sonar way",
199           }
200         }
201       />
202       <Connect(MetaQualityProfiles)
203         headerClassName="big-spacer-top"
204         profiles={
205           Array [
206             Object {
207               "deleted": false,
208               "key": "my-qp",
209               "language": "ts",
210               "name": "Sonar way",
211             },
212           ]
213         }
214       />
215     </div>
216     <MetaLinks
217       component={
218         Object {
219           "breadcrumbs": Array [],
220           "key": "my-project",
221           "name": "MyProject",
222           "organization": "foo",
223           "qualifier": "TRK",
224           "qualityGate": Object {
225             "isDefault": true,
226             "key": "30",
227             "name": "Sonar way",
228           },
229           "qualityProfiles": Array [
230             Object {
231               "deleted": false,
232               "key": "my-qp",
233               "language": "ts",
234               "name": "Sonar way",
235             },
236           ],
237           "tags": Array [],
238           "visibility": "private",
239         }
240       }
241     />
242     <div
243       className="big-padded bordered-bottom"
244     >
245       <MetaKey
246         componentKey="my-project"
247         qualifier="TRK"
248       />
249     </div>
250     <Memo(DrawerLink)
251       label="overview.badges.get_badge.TRK"
252       onPageChange={[MockFunction]}
253       to={1}
254     />
255     <Memo(DrawerLink)
256       label="project.info.to_notifications"
257       onPageChange={[MockFunction]}
258       to={2}
259     />
260   </div>
261 </Fragment>
262 `;
263
264 exports[`should render an app correctly: default 1`] = `
265 <Fragment>
266   <div>
267     <h2
268       className="big-padded bordered-bottom"
269     >
270       application.info.title
271     </h2>
272   </div>
273   <div
274     className="overflow-y-auto"
275   >
276     <div
277       className="big-padded bordered-bottom it__project-loc-value"
278     >
279       <MetaSize
280         component={
281           Object {
282             "breadcrumbs": Array [],
283             "key": "my-project",
284             "name": "MyProject",
285             "organization": "foo",
286             "qualifier": "APP",
287             "qualityGate": Object {
288               "isDefault": true,
289               "key": "30",
290               "name": "Sonar way",
291             },
292             "qualityProfiles": Array [
293               Object {
294                 "deleted": false,
295                 "key": "my-qp",
296                 "language": "ts",
297                 "name": "Sonar way",
298               },
299             ],
300             "tags": Array [],
301           }
302         }
303         measures={Array []}
304       />
305     </div>
306     <div
307       className="big-padded bordered-bottom"
308     >
309       <MetaQualityGate
310         qualityGate={
311           Object {
312             "isDefault": true,
313             "key": "30",
314             "name": "Sonar way",
315           }
316         }
317       />
318       <Connect(MetaQualityProfiles)
319         headerClassName="big-spacer-top"
320         profiles={
321           Array [
322             Object {
323               "deleted": false,
324               "key": "my-qp",
325               "language": "ts",
326               "name": "Sonar way",
327             },
328           ]
329         }
330       />
331     </div>
332     <div
333       className="big-padded bordered-bottom"
334     >
335       <MetaKey
336         componentKey="my-project"
337         qualifier="APP"
338       />
339     </div>
340     <Memo(DrawerLink)
341       label="overview.badges.get_badge.APP"
342       onPageChange={[MockFunction]}
343       to={1}
344     />
345     <Memo(DrawerLink)
346       label="project.info.to_notifications"
347       onPageChange={[MockFunction]}
348       to={2}
349     />
350   </div>
351 </Fragment>
352 `;
353
354 exports[`should render correctly: default 1`] = `
355 <Fragment>
356   <div>
357     <h2
358       className="big-padded bordered-bottom"
359     >
360       project.info.title
361     </h2>
362   </div>
363   <div
364     className="overflow-y-auto"
365   >
366     <div
367       className="big-padded bordered-bottom"
368     >
369       <div
370         className="display-flex-center"
371       >
372         <h3
373           className="spacer-right"
374         >
375           project.info.description
376         </h3>
377         <Connect(PrivacyBadge)
378           qualifier="TRK"
379           tooltipProps={
380             Object {
381               "projectKey": "my-project",
382             }
383           }
384           visibility="public"
385         />
386       </div>
387       <MetaTags
388         component={
389           Object {
390             "breadcrumbs": Array [],
391             "key": "my-project",
392             "name": "MyProject",
393             "organization": "foo",
394             "qualifier": "TRK",
395             "qualityGate": Object {
396               "isDefault": true,
397               "key": "30",
398               "name": "Sonar way",
399             },
400             "qualityProfiles": Array [
401               Object {
402                 "deleted": false,
403                 "key": "my-qp",
404                 "language": "ts",
405                 "name": "Sonar way",
406               },
407             ],
408             "tags": Array [],
409             "visibility": "public",
410           }
411         }
412         onComponentChange={[MockFunction]}
413       />
414     </div>
415     <div
416       className="big-padded bordered-bottom it__project-loc-value"
417     >
418       <MetaSize
419         component={
420           Object {
421             "breadcrumbs": Array [],
422             "key": "my-project",
423             "name": "MyProject",
424             "organization": "foo",
425             "qualifier": "TRK",
426             "qualityGate": Object {
427               "isDefault": true,
428               "key": "30",
429               "name": "Sonar way",
430             },
431             "qualityProfiles": Array [
432               Object {
433                 "deleted": false,
434                 "key": "my-qp",
435                 "language": "ts",
436                 "name": "Sonar way",
437               },
438             ],
439             "tags": Array [],
440             "visibility": "public",
441           }
442         }
443         measures={Array []}
444       />
445     </div>
446     <div
447       className="big-padded bordered-bottom"
448     >
449       <MetaQualityGate
450         qualityGate={
451           Object {
452             "isDefault": true,
453             "key": "30",
454             "name": "Sonar way",
455           }
456         }
457       />
458       <Connect(MetaQualityProfiles)
459         headerClassName="big-spacer-top"
460         profiles={
461           Array [
462             Object {
463               "deleted": false,
464               "key": "my-qp",
465               "language": "ts",
466               "name": "Sonar way",
467             },
468           ]
469         }
470       />
471     </div>
472     <MetaLinks
473       component={
474         Object {
475           "breadcrumbs": Array [],
476           "key": "my-project",
477           "name": "MyProject",
478           "organization": "foo",
479           "qualifier": "TRK",
480           "qualityGate": Object {
481             "isDefault": true,
482             "key": "30",
483             "name": "Sonar way",
484           },
485           "qualityProfiles": Array [
486             Object {
487               "deleted": false,
488               "key": "my-qp",
489               "language": "ts",
490               "name": "Sonar way",
491             },
492           ],
493           "tags": Array [],
494           "visibility": "public",
495         }
496       }
497     />
498     <div
499       className="big-padded bordered-bottom"
500     >
501       <MetaKey
502         componentKey="my-project"
503         qualifier="TRK"
504       />
505     </div>
506     <Memo(DrawerLink)
507       label="overview.badges.get_badge.TRK"
508       onPageChange={[MockFunction]}
509       to={1}
510     />
511     <Memo(DrawerLink)
512       label="project.info.to_notifications"
513       onPageChange={[MockFunction]}
514       to={2}
515     />
516   </div>
517 </Fragment>
518 `;
519
520 exports[`should render correctly: no badges 1`] = `
521 <Fragment>
522   <div>
523     <h2
524       className="big-padded bordered-bottom"
525     >
526       project.info.title
527     </h2>
528   </div>
529   <div
530     className="overflow-y-auto"
531   >
532     <div
533       className="big-padded bordered-bottom"
534     >
535       <div
536         className="display-flex-center"
537       >
538         <h3
539           className="spacer-right"
540         >
541           project.info.description
542         </h3>
543         <Connect(PrivacyBadge)
544           qualifier="TRK"
545           tooltipProps={
546             Object {
547               "projectKey": "my-project",
548             }
549           }
550           visibility="public"
551         />
552       </div>
553       <MetaTags
554         component={
555           Object {
556             "breadcrumbs": Array [],
557             "key": "my-project",
558             "name": "MyProject",
559             "organization": "foo",
560             "qualifier": "TRK",
561             "qualityGate": Object {
562               "isDefault": true,
563               "key": "30",
564               "name": "Sonar way",
565             },
566             "qualityProfiles": Array [
567               Object {
568                 "deleted": false,
569                 "key": "my-qp",
570                 "language": "ts",
571                 "name": "Sonar way",
572               },
573             ],
574             "tags": Array [],
575             "visibility": "public",
576           }
577         }
578         onComponentChange={[MockFunction]}
579       />
580     </div>
581     <div
582       className="big-padded bordered-bottom it__project-loc-value"
583     >
584       <MetaSize
585         component={
586           Object {
587             "breadcrumbs": Array [],
588             "key": "my-project",
589             "name": "MyProject",
590             "organization": "foo",
591             "qualifier": "TRK",
592             "qualityGate": Object {
593               "isDefault": true,
594               "key": "30",
595               "name": "Sonar way",
596             },
597             "qualityProfiles": Array [
598               Object {
599                 "deleted": false,
600                 "key": "my-qp",
601                 "language": "ts",
602                 "name": "Sonar way",
603               },
604             ],
605             "tags": Array [],
606             "visibility": "public",
607           }
608         }
609         measures={Array []}
610       />
611     </div>
612     <div
613       className="big-padded bordered-bottom"
614     >
615       <MetaQualityGate
616         qualityGate={
617           Object {
618             "isDefault": true,
619             "key": "30",
620             "name": "Sonar way",
621           }
622         }
623       />
624       <Connect(MetaQualityProfiles)
625         headerClassName="big-spacer-top"
626         profiles={
627           Array [
628             Object {
629               "deleted": false,
630               "key": "my-qp",
631               "language": "ts",
632               "name": "Sonar way",
633             },
634           ]
635         }
636       />
637     </div>
638     <MetaLinks
639       component={
640         Object {
641           "breadcrumbs": Array [],
642           "key": "my-project",
643           "name": "MyProject",
644           "organization": "foo",
645           "qualifier": "TRK",
646           "qualityGate": Object {
647             "isDefault": true,
648             "key": "30",
649             "name": "Sonar way",
650           },
651           "qualityProfiles": Array [
652             Object {
653               "deleted": false,
654               "key": "my-qp",
655               "language": "ts",
656               "name": "Sonar way",
657             },
658           ],
659           "tags": Array [],
660           "visibility": "public",
661         }
662       }
663     />
664     <div
665       className="big-padded bordered-bottom"
666     >
667       <MetaKey
668         componentKey="my-project"
669         qualifier="TRK"
670       />
671     </div>
672     <Memo(DrawerLink)
673       label="project.info.to_notifications"
674       onPageChange={[MockFunction]}
675       to={2}
676     />
677   </div>
678 </Fragment>
679 `;
680
681 exports[`should render correctly: no badges, no notifications 1`] = `
682 <Fragment>
683   <div>
684     <h2
685       className="big-padded bordered-bottom"
686     >
687       project.info.title
688     </h2>
689   </div>
690   <div
691     className="overflow-y-auto"
692   >
693     <div
694       className="big-padded bordered-bottom"
695     >
696       <div
697         className="display-flex-center"
698       >
699         <h3
700           className="spacer-right"
701         >
702           project.info.description
703         </h3>
704         <Connect(PrivacyBadge)
705           qualifier="TRK"
706           tooltipProps={
707             Object {
708               "projectKey": "my-project",
709             }
710           }
711           visibility="public"
712         />
713       </div>
714       <MetaTags
715         component={
716           Object {
717             "breadcrumbs": Array [],
718             "key": "my-project",
719             "name": "MyProject",
720             "organization": "foo",
721             "qualifier": "TRK",
722             "qualityGate": Object {
723               "isDefault": true,
724               "key": "30",
725               "name": "Sonar way",
726             },
727             "qualityProfiles": Array [
728               Object {
729                 "deleted": false,
730                 "key": "my-qp",
731                 "language": "ts",
732                 "name": "Sonar way",
733               },
734             ],
735             "tags": Array [],
736             "visibility": "public",
737           }
738         }
739         onComponentChange={[MockFunction]}
740       />
741     </div>
742     <div
743       className="big-padded bordered-bottom it__project-loc-value"
744     >
745       <MetaSize
746         component={
747           Object {
748             "breadcrumbs": Array [],
749             "key": "my-project",
750             "name": "MyProject",
751             "organization": "foo",
752             "qualifier": "TRK",
753             "qualityGate": Object {
754               "isDefault": true,
755               "key": "30",
756               "name": "Sonar way",
757             },
758             "qualityProfiles": Array [
759               Object {
760                 "deleted": false,
761                 "key": "my-qp",
762                 "language": "ts",
763                 "name": "Sonar way",
764               },
765             ],
766             "tags": Array [],
767             "visibility": "public",
768           }
769         }
770         measures={Array []}
771       />
772     </div>
773     <div
774       className="big-padded bordered-bottom"
775     >
776       <MetaQualityGate
777         qualityGate={
778           Object {
779             "isDefault": true,
780             "key": "30",
781             "name": "Sonar way",
782           }
783         }
784       />
785       <Connect(MetaQualityProfiles)
786         headerClassName="big-spacer-top"
787         profiles={
788           Array [
789             Object {
790               "deleted": false,
791               "key": "my-qp",
792               "language": "ts",
793               "name": "Sonar way",
794             },
795           ]
796         }
797       />
798     </div>
799     <MetaLinks
800       component={
801         Object {
802           "breadcrumbs": Array [],
803           "key": "my-project",
804           "name": "MyProject",
805           "organization": "foo",
806           "qualifier": "TRK",
807           "qualityGate": Object {
808             "isDefault": true,
809             "key": "30",
810             "name": "Sonar way",
811           },
812           "qualityProfiles": Array [
813             Object {
814               "deleted": false,
815               "key": "my-qp",
816               "language": "ts",
817               "name": "Sonar way",
818             },
819           ],
820           "tags": Array [],
821           "visibility": "public",
822         }
823       }
824     />
825     <div
826       className="big-padded bordered-bottom"
827     >
828       <MetaKey
829         componentKey="my-project"
830         qualifier="TRK"
831       />
832     </div>
833   </div>
834 </Fragment>
835 `;
836
837 exports[`should render correctly: with notifications 1`] = `
838 <Fragment>
839   <div>
840     <h2
841       className="big-padded bordered-bottom"
842     >
843       project.info.title
844     </h2>
845   </div>
846   <div
847     className="overflow-y-auto"
848   >
849     <div
850       className="big-padded bordered-bottom"
851     >
852       <div
853         className="display-flex-center"
854       >
855         <h3
856           className="spacer-right"
857         >
858           project.info.description
859         </h3>
860         <Connect(PrivacyBadge)
861           qualifier="TRK"
862           tooltipProps={
863             Object {
864               "projectKey": "my-project",
865             }
866           }
867           visibility="public"
868         />
869       </div>
870       <MetaTags
871         component={
872           Object {
873             "breadcrumbs": Array [],
874             "key": "my-project",
875             "name": "MyProject",
876             "organization": "foo",
877             "qualifier": "TRK",
878             "qualityGate": Object {
879               "isDefault": true,
880               "key": "30",
881               "name": "Sonar way",
882             },
883             "qualityProfiles": Array [
884               Object {
885                 "deleted": false,
886                 "key": "my-qp",
887                 "language": "ts",
888                 "name": "Sonar way",
889               },
890             ],
891             "tags": Array [],
892             "visibility": "public",
893           }
894         }
895         onComponentChange={[MockFunction]}
896       />
897     </div>
898     <div
899       className="big-padded bordered-bottom it__project-loc-value"
900     >
901       <MetaSize
902         component={
903           Object {
904             "breadcrumbs": Array [],
905             "key": "my-project",
906             "name": "MyProject",
907             "organization": "foo",
908             "qualifier": "TRK",
909             "qualityGate": Object {
910               "isDefault": true,
911               "key": "30",
912               "name": "Sonar way",
913             },
914             "qualityProfiles": Array [
915               Object {
916                 "deleted": false,
917                 "key": "my-qp",
918                 "language": "ts",
919                 "name": "Sonar way",
920               },
921             ],
922             "tags": Array [],
923             "visibility": "public",
924           }
925         }
926         measures={Array []}
927       />
928     </div>
929     <div
930       className="big-padded bordered-bottom"
931     >
932       <MetaQualityGate
933         qualityGate={
934           Object {
935             "isDefault": true,
936             "key": "30",
937             "name": "Sonar way",
938           }
939         }
940       />
941       <Connect(MetaQualityProfiles)
942         headerClassName="big-spacer-top"
943         profiles={
944           Array [
945             Object {
946               "deleted": false,
947               "key": "my-qp",
948               "language": "ts",
949               "name": "Sonar way",
950             },
951           ]
952         }
953       />
954     </div>
955     <MetaLinks
956       component={
957         Object {
958           "breadcrumbs": Array [],
959           "key": "my-project",
960           "name": "MyProject",
961           "organization": "foo",
962           "qualifier": "TRK",
963           "qualityGate": Object {
964             "isDefault": true,
965             "key": "30",
966             "name": "Sonar way",
967           },
968           "qualityProfiles": Array [
969             Object {
970               "deleted": false,
971               "key": "my-qp",
972               "language": "ts",
973               "name": "Sonar way",
974             },
975           ],
976           "tags": Array [],
977           "visibility": "public",
978         }
979       }
980     />
981     <div
982       className="big-padded bordered-bottom"
983     >
984       <MetaKey
985         componentKey="my-project"
986         qualifier="TRK"
987       />
988     </div>
989     <Memo(DrawerLink)
990       label="overview.badges.get_badge.TRK"
991       onPageChange={[MockFunction]}
992       to={1}
993     />
994   </div>
995 </Fragment>
996 `;