]> source.dussan.org Git - sonarqube.git/blob
078dd259d5700796d58b620ce210eee893856a08
[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       tabIndex={-1}
9     >
10       project.info.title
11     </h2>
12   </div>
13   <div
14     className="overflow-y-auto"
15   >
16     <div
17       className="big-padded bordered-bottom"
18     >
19       <div
20         className="display-flex-center"
21       >
22         <h3
23           className="spacer-right"
24         >
25           project.info.description
26         </h3>
27       </div>
28       <MetaTags
29         component={
30           Object {
31             "breadcrumbs": Array [],
32             "key": "my-project",
33             "name": "MyProject",
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             "qualifier": "TRK",
53             "qualityGate": undefined,
54             "qualityProfiles": undefined,
55             "tags": Array [],
56           }
57         }
58         measures={Array []}
59       />
60     </div>
61     <MetaLinks
62       component={
63         Object {
64           "breadcrumbs": Array [],
65           "key": "my-project",
66           "name": "MyProject",
67           "qualifier": "TRK",
68           "qualityGate": undefined,
69           "qualityProfiles": undefined,
70           "tags": Array [],
71         }
72       }
73     />
74     <div
75       className="big-padded bordered-bottom"
76     >
77       <MetaKey
78         componentKey="my-project"
79         qualifier="TRK"
80       />
81     </div>
82     <ul>
83       <li>
84         <Memo(DrawerLink)
85           label="overview.badges.get_badge.TRK"
86           onPageChange={[MockFunction]}
87           to={1}
88         />
89       </li>
90       <li>
91         <Memo(DrawerLink)
92           label="project.info.to_notifications"
93           onPageChange={[MockFunction]}
94           to={2}
95         />
96       </li>
97       <li
98         className="big-padded bordered-bottom"
99       >
100         <ModalButton
101           modal={[Function]}
102         >
103           <Component />
104         </ModalButton>
105       </li>
106     </ul>
107   </div>
108 </Fragment>
109 `;
110
111 exports[`should render a private project correctly 1`] = `
112 <Fragment>
113   <div>
114     <h2
115       className="big-padded bordered-bottom"
116       tabIndex={-1}
117     >
118       project.info.title
119     </h2>
120   </div>
121   <div
122     className="overflow-y-auto"
123   >
124     <div
125       className="big-padded bordered-bottom"
126     >
127       <div
128         className="display-flex-center"
129       >
130         <h3
131           className="spacer-right"
132         >
133           project.info.description
134         </h3>
135         <PrivacyBadgeContainer
136           qualifier="TRK"
137           visibility="private"
138         />
139       </div>
140       <MetaTags
141         component={
142           Object {
143             "breadcrumbs": Array [],
144             "key": "my-project",
145             "name": "MyProject",
146             "qualifier": "TRK",
147             "qualityGate": Object {
148               "isDefault": true,
149               "key": "30",
150               "name": "Sonar way",
151             },
152             "qualityProfiles": Array [
153               Object {
154                 "deleted": false,
155                 "key": "my-qp",
156                 "language": "ts",
157                 "name": "Sonar way",
158               },
159             ],
160             "tags": Array [],
161             "visibility": "private",
162           }
163         }
164         onComponentChange={[MockFunction]}
165       />
166     </div>
167     <div
168       className="big-padded bordered-bottom it__project-loc-value"
169     >
170       <MetaSize
171         component={
172           Object {
173             "breadcrumbs": Array [],
174             "key": "my-project",
175             "name": "MyProject",
176             "qualifier": "TRK",
177             "qualityGate": Object {
178               "isDefault": true,
179               "key": "30",
180               "name": "Sonar way",
181             },
182             "qualityProfiles": Array [
183               Object {
184                 "deleted": false,
185                 "key": "my-qp",
186                 "language": "ts",
187                 "name": "Sonar way",
188               },
189             ],
190             "tags": Array [],
191             "visibility": "private",
192           }
193         }
194         measures={Array []}
195       />
196     </div>
197     <div
198       className="big-padded bordered-bottom"
199     >
200       <MetaQualityGate
201         qualityGate={
202           Object {
203             "isDefault": true,
204             "key": "30",
205             "name": "Sonar way",
206           }
207         }
208       />
209       <withLanguagesContext(MetaQualityProfiles)
210         headerClassName="big-spacer-top"
211         profiles={
212           Array [
213             Object {
214               "deleted": false,
215               "key": "my-qp",
216               "language": "ts",
217               "name": "Sonar way",
218             },
219           ]
220         }
221       />
222     </div>
223     <MetaLinks
224       component={
225         Object {
226           "breadcrumbs": Array [],
227           "key": "my-project",
228           "name": "MyProject",
229           "qualifier": "TRK",
230           "qualityGate": Object {
231             "isDefault": true,
232             "key": "30",
233             "name": "Sonar way",
234           },
235           "qualityProfiles": Array [
236             Object {
237               "deleted": false,
238               "key": "my-qp",
239               "language": "ts",
240               "name": "Sonar way",
241             },
242           ],
243           "tags": Array [],
244           "visibility": "private",
245         }
246       }
247     />
248     <div
249       className="big-padded bordered-bottom"
250     >
251       <MetaKey
252         componentKey="my-project"
253         qualifier="TRK"
254       />
255     </div>
256     <ul>
257       <li>
258         <Memo(DrawerLink)
259           label="overview.badges.get_badge.TRK"
260           onPageChange={[MockFunction]}
261           to={1}
262         />
263       </li>
264       <li>
265         <Memo(DrawerLink)
266           label="project.info.to_notifications"
267           onPageChange={[MockFunction]}
268           to={2}
269         />
270       </li>
271       <li
272         className="big-padded bordered-bottom"
273       >
274         <ModalButton
275           modal={[Function]}
276         >
277           <Component />
278         </ModalButton>
279       </li>
280     </ul>
281   </div>
282 </Fragment>
283 `;
284
285 exports[`should render an app correctly: default 1`] = `
286 <Fragment>
287   <div>
288     <h2
289       className="big-padded bordered-bottom"
290       tabIndex={-1}
291     >
292       application.info.title
293     </h2>
294   </div>
295   <div
296     className="overflow-y-auto"
297   >
298     <div
299       className="big-padded bordered-bottom"
300     >
301       <div
302         className="display-flex-center"
303       >
304         <h3
305           className="spacer-right"
306         >
307           project.info.description
308         </h3>
309       </div>
310       <MetaTags
311         component={
312           Object {
313             "breadcrumbs": Array [],
314             "key": "my-project",
315             "name": "MyProject",
316             "qualifier": "APP",
317             "qualityGate": Object {
318               "isDefault": true,
319               "key": "30",
320               "name": "Sonar way",
321             },
322             "qualityProfiles": Array [
323               Object {
324                 "deleted": false,
325                 "key": "my-qp",
326                 "language": "ts",
327                 "name": "Sonar way",
328               },
329             ],
330             "tags": Array [],
331           }
332         }
333         onComponentChange={[MockFunction]}
334       />
335     </div>
336     <div
337       className="big-padded bordered-bottom it__project-loc-value"
338     >
339       <MetaSize
340         component={
341           Object {
342             "breadcrumbs": Array [],
343             "key": "my-project",
344             "name": "MyProject",
345             "qualifier": "APP",
346             "qualityGate": Object {
347               "isDefault": true,
348               "key": "30",
349               "name": "Sonar way",
350             },
351             "qualityProfiles": Array [
352               Object {
353                 "deleted": false,
354                 "key": "my-qp",
355                 "language": "ts",
356                 "name": "Sonar way",
357               },
358             ],
359             "tags": Array [],
360           }
361         }
362         measures={Array []}
363       />
364     </div>
365     <div
366       className="big-padded bordered-bottom"
367     >
368       <MetaKey
369         componentKey="my-project"
370         qualifier="APP"
371       />
372     </div>
373     <ul>
374       <li>
375         <Memo(DrawerLink)
376           label="overview.badges.get_badge.APP"
377           onPageChange={[MockFunction]}
378           to={1}
379         />
380       </li>
381       <li>
382         <Memo(DrawerLink)
383           label="project.info.to_notifications"
384           onPageChange={[MockFunction]}
385           to={2}
386         />
387       </li>
388     </ul>
389   </div>
390 </Fragment>
391 `;
392
393 exports[`should render app correctly when regulatoryReportFeatureEnabled is false 1`] = `
394 <Fragment>
395   <div>
396     <h2
397       className="big-padded bordered-bottom"
398       tabIndex={-1}
399     >
400       project.info.title
401     </h2>
402   </div>
403   <div
404     className="overflow-y-auto"
405   >
406     <div
407       className="big-padded bordered-bottom"
408     >
409       <div
410         className="display-flex-center"
411       >
412         <h3
413           className="spacer-right"
414         >
415           project.info.description
416         </h3>
417         <PrivacyBadgeContainer
418           qualifier="TRK"
419           visibility="public"
420         />
421       </div>
422       <MetaTags
423         component={
424           Object {
425             "breadcrumbs": Array [],
426             "key": "my-project",
427             "name": "MyProject",
428             "qualifier": "TRK",
429             "qualityGate": Object {
430               "isDefault": true,
431               "key": "30",
432               "name": "Sonar way",
433             },
434             "qualityProfiles": Array [
435               Object {
436                 "deleted": false,
437                 "key": "my-qp",
438                 "language": "ts",
439                 "name": "Sonar way",
440               },
441             ],
442             "tags": Array [],
443             "visibility": "public",
444           }
445         }
446         onComponentChange={[MockFunction]}
447       />
448     </div>
449     <div
450       className="big-padded bordered-bottom it__project-loc-value"
451     >
452       <MetaSize
453         component={
454           Object {
455             "breadcrumbs": Array [],
456             "key": "my-project",
457             "name": "MyProject",
458             "qualifier": "TRK",
459             "qualityGate": Object {
460               "isDefault": true,
461               "key": "30",
462               "name": "Sonar way",
463             },
464             "qualityProfiles": Array [
465               Object {
466                 "deleted": false,
467                 "key": "my-qp",
468                 "language": "ts",
469                 "name": "Sonar way",
470               },
471             ],
472             "tags": Array [],
473             "visibility": "public",
474           }
475         }
476         measures={Array []}
477       />
478     </div>
479     <div
480       className="big-padded bordered-bottom"
481     >
482       <MetaQualityGate
483         qualityGate={
484           Object {
485             "isDefault": true,
486             "key": "30",
487             "name": "Sonar way",
488           }
489         }
490       />
491       <withLanguagesContext(MetaQualityProfiles)
492         headerClassName="big-spacer-top"
493         profiles={
494           Array [
495             Object {
496               "deleted": false,
497               "key": "my-qp",
498               "language": "ts",
499               "name": "Sonar way",
500             },
501           ]
502         }
503       />
504     </div>
505     <MetaLinks
506       component={
507         Object {
508           "breadcrumbs": Array [],
509           "key": "my-project",
510           "name": "MyProject",
511           "qualifier": "TRK",
512           "qualityGate": Object {
513             "isDefault": true,
514             "key": "30",
515             "name": "Sonar way",
516           },
517           "qualityProfiles": Array [
518             Object {
519               "deleted": false,
520               "key": "my-qp",
521               "language": "ts",
522               "name": "Sonar way",
523             },
524           ],
525           "tags": Array [],
526           "visibility": "public",
527         }
528       }
529     />
530     <div
531       className="big-padded bordered-bottom"
532     >
533       <MetaKey
534         componentKey="my-project"
535         qualifier="TRK"
536       />
537     </div>
538     <ul>
539       <li>
540         <Memo(DrawerLink)
541           label="overview.badges.get_badge.TRK"
542           onPageChange={[MockFunction]}
543           to={1}
544         />
545       </li>
546       <li>
547         <Memo(DrawerLink)
548           label="project.info.to_notifications"
549           onPageChange={[MockFunction]}
550           to={2}
551         />
552       </li>
553     </ul>
554   </div>
555 </Fragment>
556 `;
557
558 exports[`should render correctly: default 1`] = `
559 <Fragment>
560   <div>
561     <h2
562       className="big-padded bordered-bottom"
563       tabIndex={-1}
564     >
565       project.info.title
566     </h2>
567   </div>
568   <div
569     className="overflow-y-auto"
570   >
571     <div
572       className="big-padded bordered-bottom"
573     >
574       <div
575         className="display-flex-center"
576       >
577         <h3
578           className="spacer-right"
579         >
580           project.info.description
581         </h3>
582         <PrivacyBadgeContainer
583           qualifier="TRK"
584           visibility="public"
585         />
586       </div>
587       <MetaTags
588         component={
589           Object {
590             "breadcrumbs": Array [],
591             "key": "my-project",
592             "name": "MyProject",
593             "qualifier": "TRK",
594             "qualityGate": Object {
595               "isDefault": true,
596               "key": "30",
597               "name": "Sonar way",
598             },
599             "qualityProfiles": Array [
600               Object {
601                 "deleted": false,
602                 "key": "my-qp",
603                 "language": "ts",
604                 "name": "Sonar way",
605               },
606             ],
607             "tags": Array [],
608             "visibility": "public",
609           }
610         }
611         onComponentChange={[MockFunction]}
612       />
613     </div>
614     <div
615       className="big-padded bordered-bottom it__project-loc-value"
616     >
617       <MetaSize
618         component={
619           Object {
620             "breadcrumbs": Array [],
621             "key": "my-project",
622             "name": "MyProject",
623             "qualifier": "TRK",
624             "qualityGate": Object {
625               "isDefault": true,
626               "key": "30",
627               "name": "Sonar way",
628             },
629             "qualityProfiles": Array [
630               Object {
631                 "deleted": false,
632                 "key": "my-qp",
633                 "language": "ts",
634                 "name": "Sonar way",
635               },
636             ],
637             "tags": Array [],
638             "visibility": "public",
639           }
640         }
641         measures={Array []}
642       />
643     </div>
644     <div
645       className="big-padded bordered-bottom"
646     >
647       <MetaQualityGate
648         qualityGate={
649           Object {
650             "isDefault": true,
651             "key": "30",
652             "name": "Sonar way",
653           }
654         }
655       />
656       <withLanguagesContext(MetaQualityProfiles)
657         headerClassName="big-spacer-top"
658         profiles={
659           Array [
660             Object {
661               "deleted": false,
662               "key": "my-qp",
663               "language": "ts",
664               "name": "Sonar way",
665             },
666           ]
667         }
668       />
669     </div>
670     <MetaLinks
671       component={
672         Object {
673           "breadcrumbs": Array [],
674           "key": "my-project",
675           "name": "MyProject",
676           "qualifier": "TRK",
677           "qualityGate": Object {
678             "isDefault": true,
679             "key": "30",
680             "name": "Sonar way",
681           },
682           "qualityProfiles": Array [
683             Object {
684               "deleted": false,
685               "key": "my-qp",
686               "language": "ts",
687               "name": "Sonar way",
688             },
689           ],
690           "tags": Array [],
691           "visibility": "public",
692         }
693       }
694     />
695     <div
696       className="big-padded bordered-bottom"
697     >
698       <MetaKey
699         componentKey="my-project"
700         qualifier="TRK"
701       />
702     </div>
703     <ul>
704       <li>
705         <Memo(DrawerLink)
706           label="overview.badges.get_badge.TRK"
707           onPageChange={[MockFunction]}
708           to={1}
709         />
710       </li>
711       <li>
712         <Memo(DrawerLink)
713           label="project.info.to_notifications"
714           onPageChange={[MockFunction]}
715           to={2}
716         />
717       </li>
718       <li
719         className="big-padded bordered-bottom"
720       >
721         <ModalButton
722           modal={[Function]}
723         >
724           <Component />
725         </ModalButton>
726       </li>
727     </ul>
728   </div>
729 </Fragment>
730 `;
731
732 exports[`should render correctly: no badges 1`] = `
733 <Fragment>
734   <div>
735     <h2
736       className="big-padded bordered-bottom"
737       tabIndex={-1}
738     >
739       project.info.title
740     </h2>
741   </div>
742   <div
743     className="overflow-y-auto"
744   >
745     <div
746       className="big-padded bordered-bottom"
747     >
748       <div
749         className="display-flex-center"
750       >
751         <h3
752           className="spacer-right"
753         >
754           project.info.description
755         </h3>
756         <PrivacyBadgeContainer
757           qualifier="TRK"
758           visibility="public"
759         />
760       </div>
761       <MetaTags
762         component={
763           Object {
764             "breadcrumbs": Array [],
765             "key": "my-project",
766             "name": "MyProject",
767             "qualifier": "TRK",
768             "qualityGate": Object {
769               "isDefault": true,
770               "key": "30",
771               "name": "Sonar way",
772             },
773             "qualityProfiles": Array [
774               Object {
775                 "deleted": false,
776                 "key": "my-qp",
777                 "language": "ts",
778                 "name": "Sonar way",
779               },
780             ],
781             "tags": Array [],
782             "visibility": "public",
783           }
784         }
785         onComponentChange={[MockFunction]}
786       />
787     </div>
788     <div
789       className="big-padded bordered-bottom it__project-loc-value"
790     >
791       <MetaSize
792         component={
793           Object {
794             "breadcrumbs": Array [],
795             "key": "my-project",
796             "name": "MyProject",
797             "qualifier": "TRK",
798             "qualityGate": Object {
799               "isDefault": true,
800               "key": "30",
801               "name": "Sonar way",
802             },
803             "qualityProfiles": Array [
804               Object {
805                 "deleted": false,
806                 "key": "my-qp",
807                 "language": "ts",
808                 "name": "Sonar way",
809               },
810             ],
811             "tags": Array [],
812             "visibility": "public",
813           }
814         }
815         measures={Array []}
816       />
817     </div>
818     <div
819       className="big-padded bordered-bottom"
820     >
821       <MetaQualityGate
822         qualityGate={
823           Object {
824             "isDefault": true,
825             "key": "30",
826             "name": "Sonar way",
827           }
828         }
829       />
830       <withLanguagesContext(MetaQualityProfiles)
831         headerClassName="big-spacer-top"
832         profiles={
833           Array [
834             Object {
835               "deleted": false,
836               "key": "my-qp",
837               "language": "ts",
838               "name": "Sonar way",
839             },
840           ]
841         }
842       />
843     </div>
844     <MetaLinks
845       component={
846         Object {
847           "breadcrumbs": Array [],
848           "key": "my-project",
849           "name": "MyProject",
850           "qualifier": "TRK",
851           "qualityGate": Object {
852             "isDefault": true,
853             "key": "30",
854             "name": "Sonar way",
855           },
856           "qualityProfiles": Array [
857             Object {
858               "deleted": false,
859               "key": "my-qp",
860               "language": "ts",
861               "name": "Sonar way",
862             },
863           ],
864           "tags": Array [],
865           "visibility": "public",
866         }
867       }
868     />
869     <div
870       className="big-padded bordered-bottom"
871     >
872       <MetaKey
873         componentKey="my-project"
874         qualifier="TRK"
875       />
876     </div>
877     <ul>
878       <li>
879         <Memo(DrawerLink)
880           label="project.info.to_notifications"
881           onPageChange={[MockFunction]}
882           to={2}
883         />
884       </li>
885       <li
886         className="big-padded bordered-bottom"
887       >
888         <ModalButton
889           modal={[Function]}
890         >
891           <Component />
892         </ModalButton>
893       </li>
894     </ul>
895   </div>
896 </Fragment>
897 `;
898
899 exports[`should render correctly: no badges, no notifications 1`] = `
900 <Fragment>
901   <div>
902     <h2
903       className="big-padded bordered-bottom"
904       tabIndex={-1}
905     >
906       project.info.title
907     </h2>
908   </div>
909   <div
910     className="overflow-y-auto"
911   >
912     <div
913       className="big-padded bordered-bottom"
914     >
915       <div
916         className="display-flex-center"
917       >
918         <h3
919           className="spacer-right"
920         >
921           project.info.description
922         </h3>
923         <PrivacyBadgeContainer
924           qualifier="TRK"
925           visibility="public"
926         />
927       </div>
928       <MetaTags
929         component={
930           Object {
931             "breadcrumbs": Array [],
932             "key": "my-project",
933             "name": "MyProject",
934             "qualifier": "TRK",
935             "qualityGate": Object {
936               "isDefault": true,
937               "key": "30",
938               "name": "Sonar way",
939             },
940             "qualityProfiles": Array [
941               Object {
942                 "deleted": false,
943                 "key": "my-qp",
944                 "language": "ts",
945                 "name": "Sonar way",
946               },
947             ],
948             "tags": Array [],
949             "visibility": "public",
950           }
951         }
952         onComponentChange={[MockFunction]}
953       />
954     </div>
955     <div
956       className="big-padded bordered-bottom it__project-loc-value"
957     >
958       <MetaSize
959         component={
960           Object {
961             "breadcrumbs": Array [],
962             "key": "my-project",
963             "name": "MyProject",
964             "qualifier": "TRK",
965             "qualityGate": Object {
966               "isDefault": true,
967               "key": "30",
968               "name": "Sonar way",
969             },
970             "qualityProfiles": Array [
971               Object {
972                 "deleted": false,
973                 "key": "my-qp",
974                 "language": "ts",
975                 "name": "Sonar way",
976               },
977             ],
978             "tags": Array [],
979             "visibility": "public",
980           }
981         }
982         measures={Array []}
983       />
984     </div>
985     <div
986       className="big-padded bordered-bottom"
987     >
988       <MetaQualityGate
989         qualityGate={
990           Object {
991             "isDefault": true,
992             "key": "30",
993             "name": "Sonar way",
994           }
995         }
996       />
997       <withLanguagesContext(MetaQualityProfiles)
998         headerClassName="big-spacer-top"
999         profiles={
1000           Array [
1001             Object {
1002               "deleted": false,
1003               "key": "my-qp",
1004               "language": "ts",
1005               "name": "Sonar way",
1006             },
1007           ]
1008         }
1009       />
1010     </div>
1011     <MetaLinks
1012       component={
1013         Object {
1014           "breadcrumbs": Array [],
1015           "key": "my-project",
1016           "name": "MyProject",
1017           "qualifier": "TRK",
1018           "qualityGate": Object {
1019             "isDefault": true,
1020             "key": "30",
1021             "name": "Sonar way",
1022           },
1023           "qualityProfiles": Array [
1024             Object {
1025               "deleted": false,
1026               "key": "my-qp",
1027               "language": "ts",
1028               "name": "Sonar way",
1029             },
1030           ],
1031           "tags": Array [],
1032           "visibility": "public",
1033         }
1034       }
1035     />
1036     <div
1037       className="big-padded bordered-bottom"
1038     >
1039       <MetaKey
1040         componentKey="my-project"
1041         qualifier="TRK"
1042       />
1043     </div>
1044     <ul>
1045       <li
1046         className="big-padded bordered-bottom"
1047       >
1048         <ModalButton
1049           modal={[Function]}
1050         >
1051           <Component />
1052         </ModalButton>
1053       </li>
1054     </ul>
1055   </div>
1056 </Fragment>
1057 `;
1058
1059 exports[`should render correctly: with notifications 1`] = `
1060 <Fragment>
1061   <div>
1062     <h2
1063       className="big-padded bordered-bottom"
1064       tabIndex={-1}
1065     >
1066       project.info.title
1067     </h2>
1068   </div>
1069   <div
1070     className="overflow-y-auto"
1071   >
1072     <div
1073       className="big-padded bordered-bottom"
1074     >
1075       <div
1076         className="display-flex-center"
1077       >
1078         <h3
1079           className="spacer-right"
1080         >
1081           project.info.description
1082         </h3>
1083         <PrivacyBadgeContainer
1084           qualifier="TRK"
1085           visibility="public"
1086         />
1087       </div>
1088       <MetaTags
1089         component={
1090           Object {
1091             "breadcrumbs": Array [],
1092             "key": "my-project",
1093             "name": "MyProject",
1094             "qualifier": "TRK",
1095             "qualityGate": Object {
1096               "isDefault": true,
1097               "key": "30",
1098               "name": "Sonar way",
1099             },
1100             "qualityProfiles": Array [
1101               Object {
1102                 "deleted": false,
1103                 "key": "my-qp",
1104                 "language": "ts",
1105                 "name": "Sonar way",
1106               },
1107             ],
1108             "tags": Array [],
1109             "visibility": "public",
1110           }
1111         }
1112         onComponentChange={[MockFunction]}
1113       />
1114     </div>
1115     <div
1116       className="big-padded bordered-bottom it__project-loc-value"
1117     >
1118       <MetaSize
1119         component={
1120           Object {
1121             "breadcrumbs": Array [],
1122             "key": "my-project",
1123             "name": "MyProject",
1124             "qualifier": "TRK",
1125             "qualityGate": Object {
1126               "isDefault": true,
1127               "key": "30",
1128               "name": "Sonar way",
1129             },
1130             "qualityProfiles": Array [
1131               Object {
1132                 "deleted": false,
1133                 "key": "my-qp",
1134                 "language": "ts",
1135                 "name": "Sonar way",
1136               },
1137             ],
1138             "tags": Array [],
1139             "visibility": "public",
1140           }
1141         }
1142         measures={Array []}
1143       />
1144     </div>
1145     <div
1146       className="big-padded bordered-bottom"
1147     >
1148       <MetaQualityGate
1149         qualityGate={
1150           Object {
1151             "isDefault": true,
1152             "key": "30",
1153             "name": "Sonar way",
1154           }
1155         }
1156       />
1157       <withLanguagesContext(MetaQualityProfiles)
1158         headerClassName="big-spacer-top"
1159         profiles={
1160           Array [
1161             Object {
1162               "deleted": false,
1163               "key": "my-qp",
1164               "language": "ts",
1165               "name": "Sonar way",
1166             },
1167           ]
1168         }
1169       />
1170     </div>
1171     <MetaLinks
1172       component={
1173         Object {
1174           "breadcrumbs": Array [],
1175           "key": "my-project",
1176           "name": "MyProject",
1177           "qualifier": "TRK",
1178           "qualityGate": Object {
1179             "isDefault": true,
1180             "key": "30",
1181             "name": "Sonar way",
1182           },
1183           "qualityProfiles": Array [
1184             Object {
1185               "deleted": false,
1186               "key": "my-qp",
1187               "language": "ts",
1188               "name": "Sonar way",
1189             },
1190           ],
1191           "tags": Array [],
1192           "visibility": "public",
1193         }
1194       }
1195     />
1196     <div
1197       className="big-padded bordered-bottom"
1198     >
1199       <MetaKey
1200         componentKey="my-project"
1201         qualifier="TRK"
1202       />
1203     </div>
1204     <ul>
1205       <li>
1206         <Memo(DrawerLink)
1207           label="overview.badges.get_badge.TRK"
1208           onPageChange={[MockFunction]}
1209           to={1}
1210         />
1211       </li>
1212       <li
1213         className="big-padded bordered-bottom"
1214       >
1215         <ModalButton
1216           modal={[Function]}
1217         >
1218           <Component />
1219         </ModalButton>
1220       </li>
1221     </ul>
1222   </div>
1223 </Fragment>
1224 `;
1225
1226 exports[`should render with description 1`] = `
1227 <Fragment>
1228   <div>
1229     <h2
1230       className="big-padded bordered-bottom"
1231       tabIndex={-1}
1232     >
1233       project.info.title
1234     </h2>
1235   </div>
1236   <div
1237     className="overflow-y-auto"
1238   >
1239     <div
1240       className="big-padded bordered-bottom"
1241     >
1242       <div
1243         className="display-flex-center"
1244       >
1245         <h3
1246           className="spacer-right"
1247         >
1248           project.info.description
1249         </h3>
1250       </div>
1251       <p
1252         className="it__project-description"
1253       >
1254         Lorem ipsum
1255       </p>
1256       <MetaTags
1257         component={
1258           Object {
1259             "breadcrumbs": Array [],
1260             "description": "Lorem ipsum",
1261             "key": "my-project",
1262             "name": "MyProject",
1263             "qualifier": "TRK",
1264             "qualityGate": Object {
1265               "isDefault": true,
1266               "key": "30",
1267               "name": "Sonar way",
1268             },
1269             "qualityProfiles": Array [
1270               Object {
1271                 "deleted": false,
1272                 "key": "my-qp",
1273                 "language": "ts",
1274                 "name": "Sonar way",
1275               },
1276             ],
1277             "tags": Array [],
1278           }
1279         }
1280         onComponentChange={[MockFunction]}
1281       />
1282     </div>
1283     <div
1284       className="big-padded bordered-bottom it__project-loc-value"
1285     >
1286       <MetaSize
1287         component={
1288           Object {
1289             "breadcrumbs": Array [],
1290             "description": "Lorem ipsum",
1291             "key": "my-project",
1292             "name": "MyProject",
1293             "qualifier": "TRK",
1294             "qualityGate": Object {
1295               "isDefault": true,
1296               "key": "30",
1297               "name": "Sonar way",
1298             },
1299             "qualityProfiles": Array [
1300               Object {
1301                 "deleted": false,
1302                 "key": "my-qp",
1303                 "language": "ts",
1304                 "name": "Sonar way",
1305               },
1306             ],
1307             "tags": Array [],
1308           }
1309         }
1310         measures={Array []}
1311       />
1312     </div>
1313     <div
1314       className="big-padded bordered-bottom"
1315     >
1316       <MetaQualityGate
1317         qualityGate={
1318           Object {
1319             "isDefault": true,
1320             "key": "30",
1321             "name": "Sonar way",
1322           }
1323         }
1324       />
1325       <withLanguagesContext(MetaQualityProfiles)
1326         headerClassName="big-spacer-top"
1327         profiles={
1328           Array [
1329             Object {
1330               "deleted": false,
1331               "key": "my-qp",
1332               "language": "ts",
1333               "name": "Sonar way",
1334             },
1335           ]
1336         }
1337       />
1338     </div>
1339     <MetaLinks
1340       component={
1341         Object {
1342           "breadcrumbs": Array [],
1343           "description": "Lorem ipsum",
1344           "key": "my-project",
1345           "name": "MyProject",
1346           "qualifier": "TRK",
1347           "qualityGate": Object {
1348             "isDefault": true,
1349             "key": "30",
1350             "name": "Sonar way",
1351           },
1352           "qualityProfiles": Array [
1353             Object {
1354               "deleted": false,
1355               "key": "my-qp",
1356               "language": "ts",
1357               "name": "Sonar way",
1358             },
1359           ],
1360           "tags": Array [],
1361         }
1362       }
1363     />
1364     <div
1365       className="big-padded bordered-bottom"
1366     >
1367       <MetaKey
1368         componentKey="my-project"
1369         qualifier="TRK"
1370       />
1371     </div>
1372     <ul>
1373       <li>
1374         <Memo(DrawerLink)
1375           label="overview.badges.get_badge.TRK"
1376           onPageChange={[MockFunction]}
1377           to={1}
1378         />
1379       </li>
1380       <li>
1381         <Memo(DrawerLink)
1382           label="project.info.to_notifications"
1383           onPageChange={[MockFunction]}
1384           to={2}
1385         />
1386       </li>
1387       <li
1388         className="big-padded bordered-bottom"
1389       >
1390         <ModalButton
1391           modal={[Function]}
1392         >
1393           <Component />
1394         </ModalButton>
1395       </li>
1396     </ul>
1397   </div>
1398 </Fragment>
1399 `;