]> source.dussan.org Git - sonarqube.git/blob
1b30f2e863ce4abaad05ba0ab21d1073f8b42223
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for security extensions 1`] = `
4 <Dropdown
5   data-test="extensions"
6   overlay={
7     <ul
8       className="menu"
9     >
10       <li>
11         <Link
12           activeClassName="active"
13           onlyActiveOnIndex={false}
14           style={Object {}}
15           to={
16             Object {
17               "pathname": "/project/extension/component-bar",
18               "query": Object {
19                 "id": "foo",
20                 "qualifier": "TRK",
21               },
22             }
23           }
24         >
25           ComponentBar
26         </Link>
27       </li>
28     </ul>
29   }
30   tagName="li"
31 >
32   <Component />
33 </Dropdown>
34 `;
35
36 exports[`should render correctly for security extensions 2`] = `null`;
37
38 exports[`should work for a branch 1`] = `
39 <NavBarTabs>
40   <li>
41     <Link
42       activeClassName="active"
43       onlyActiveOnIndex={false}
44       style={Object {}}
45       to={
46         Object {
47           "pathname": "/dashboard",
48           "query": Object {
49             "branch": "release",
50             "id": "foo",
51           },
52         }
53       }
54     >
55       overview.page
56     </Link>
57   </li>
58   <li>
59     <Link
60       activeClassName="active"
61       className=""
62       onlyActiveOnIndex={false}
63       style={Object {}}
64       to={
65         Object {
66           "pathname": "/project/issues",
67           "query": Object {
68             "branch": "release",
69             "id": "foo",
70             "resolved": "false",
71           },
72         }
73       }
74     >
75       issues.page
76     </Link>
77   </li>
78   <li>
79     <Link
80       activeClassName="active"
81       onlyActiveOnIndex={false}
82       style={Object {}}
83       to={
84         Object {
85           "pathname": "/security_hotspots",
86           "query": Object {
87             "branch": "release",
88             "id": "foo",
89           },
90         }
91       }
92     >
93       layout.security_hotspots
94     </Link>
95   </li>
96   <li>
97     <Link
98       activeClassName="active"
99       onlyActiveOnIndex={false}
100       style={Object {}}
101       to={
102         Object {
103           "pathname": "/component_measures",
104           "query": Object {
105             "branch": "release",
106             "id": "foo",
107           },
108         }
109       }
110     >
111       layout.measures
112     </Link>
113   </li>
114   <li>
115     <Link
116       activeClassName="active"
117       onlyActiveOnIndex={false}
118       style={Object {}}
119       to={
120         Object {
121           "pathname": "/code",
122           "query": Object {
123             "branch": "release",
124             "id": "foo",
125           },
126         }
127       }
128     >
129       code.page
130     </Link>
131   </li>
132   <li>
133     <Link
134       activeClassName="active"
135       onlyActiveOnIndex={false}
136       style={Object {}}
137       to={
138         Object {
139           "pathname": "/project/activity",
140           "query": Object {
141             "branch": "release",
142             "id": "foo",
143           },
144         }
145       }
146     >
147       project_activity.page
148     </Link>
149   </li>
150 </NavBarTabs>
151 `;
152
153 exports[`should work for a branch 2`] = `
154 <NavBarTabs>
155   <li>
156     <Link
157       activeClassName="active"
158       onlyActiveOnIndex={false}
159       style={Object {}}
160       to={
161         Object {
162           "pathname": "/dashboard",
163           "query": Object {
164             "branch": "release",
165             "id": "foo",
166           },
167         }
168       }
169     >
170       overview.page
171     </Link>
172   </li>
173   <li>
174     <Link
175       activeClassName="active"
176       className=""
177       onlyActiveOnIndex={false}
178       style={Object {}}
179       to={
180         Object {
181           "pathname": "/project/issues",
182           "query": Object {
183             "branch": "release",
184             "id": "foo",
185             "resolved": "false",
186           },
187         }
188       }
189     >
190       issues.page
191     </Link>
192   </li>
193   <li>
194     <Link
195       activeClassName="active"
196       onlyActiveOnIndex={false}
197       style={Object {}}
198       to={
199         Object {
200           "pathname": "/security_hotspots",
201           "query": Object {
202             "branch": "release",
203             "id": "foo",
204           },
205         }
206       }
207     >
208       layout.security_hotspots
209     </Link>
210   </li>
211   <li>
212     <Link
213       activeClassName="active"
214       onlyActiveOnIndex={false}
215       style={Object {}}
216       to={
217         Object {
218           "pathname": "/component_measures",
219           "query": Object {
220             "branch": "release",
221             "id": "foo",
222           },
223         }
224       }
225     >
226       layout.measures
227     </Link>
228   </li>
229   <li>
230     <Link
231       activeClassName="active"
232       onlyActiveOnIndex={false}
233       style={Object {}}
234       to={
235         Object {
236           "pathname": "/code",
237           "query": Object {
238             "branch": "release",
239             "id": "foo",
240           },
241         }
242       }
243     >
244       code.page
245     </Link>
246   </li>
247   <li>
248     <Link
249       activeClassName="active"
250       onlyActiveOnIndex={false}
251       style={Object {}}
252       to={
253         Object {
254           "pathname": "/project/activity",
255           "query": Object {
256             "branch": "release",
257             "id": "foo",
258           },
259         }
260       }
261     >
262       project_activity.page
263     </Link>
264   </li>
265 </NavBarTabs>
266 `;
267
268 exports[`should work for all qualifiers 1`] = `
269 <NavBarTabs>
270   <li>
271     <Link
272       activeClassName="active"
273       onlyActiveOnIndex={false}
274       style={Object {}}
275       to={
276         Object {
277           "pathname": "/dashboard",
278           "query": Object {
279             "id": "foo",
280           },
281         }
282       }
283     >
284       overview.page
285     </Link>
286   </li>
287   <li>
288     <Link
289       activeClassName="active"
290       className=""
291       onlyActiveOnIndex={false}
292       style={Object {}}
293       to={
294         Object {
295           "pathname": "/project/issues",
296           "query": Object {
297             "id": "foo",
298             "resolved": "false",
299           },
300         }
301       }
302     >
303       issues.page
304     </Link>
305   </li>
306   <li>
307     <Link
308       activeClassName="active"
309       onlyActiveOnIndex={false}
310       style={Object {}}
311       to={
312         Object {
313           "pathname": "/security_hotspots",
314           "query": Object {
315             "id": "foo",
316           },
317         }
318       }
319     >
320       layout.security_hotspots
321     </Link>
322   </li>
323   <li>
324     <Link
325       activeClassName="active"
326       onlyActiveOnIndex={false}
327       style={Object {}}
328       to={
329         Object {
330           "pathname": "/component_measures",
331           "query": Object {
332             "id": "foo",
333           },
334         }
335       }
336     >
337       layout.measures
338     </Link>
339   </li>
340   <li>
341     <Link
342       activeClassName="active"
343       onlyActiveOnIndex={false}
344       style={Object {}}
345       to={
346         Object {
347           "pathname": "/code",
348           "query": Object {
349             "id": "foo",
350           },
351         }
352       }
353     >
354       code.page
355     </Link>
356   </li>
357   <li>
358     <Link
359       activeClassName="active"
360       onlyActiveOnIndex={false}
361       style={Object {}}
362       to={
363         Object {
364           "pathname": "/project/activity",
365           "query": Object {
366             "id": "foo",
367           },
368         }
369       }
370     >
371       project_activity.page
372     </Link>
373   </li>
374   <Dropdown
375     data-test="administration"
376     overlay={
377       <ul
378         className="menu"
379       >
380         <li>
381           <Link
382             activeClassName="active"
383             onlyActiveOnIndex={false}
384             style={Object {}}
385             to={
386               Object {
387                 "pathname": "/project/settings",
388                 "query": Object {
389                   "id": "foo",
390                 },
391               }
392             }
393           >
394             project_settings.page
395           </Link>
396         </li>
397         <li>
398           <Link
399             activeClassName="active"
400             onlyActiveOnIndex={false}
401             style={Object {}}
402             to={
403               Object {
404                 "pathname": "/project/branches",
405                 "query": Object {
406                   "id": "foo",
407                 },
408               }
409             }
410           >
411             project_branch_pull_request.page
412           </Link>
413         </li>
414         <li>
415           <Link
416             activeClassName="active"
417             onlyActiveOnIndex={false}
418             style={Object {}}
419             to={
420               Object {
421                 "pathname": "/project/baseline",
422                 "query": Object {
423                   "id": "foo",
424                 },
425               }
426             }
427           >
428             project_baseline.page
429           </Link>
430         </li>
431         <li>
432           <Link
433             activeClassName="active"
434             onlyActiveOnIndex={false}
435             style={Object {}}
436             to={
437               Object {
438                 "pathname": "/project/webhooks",
439                 "query": Object {
440                   "id": "foo",
441                 },
442               }
443             }
444           >
445             webhooks.page
446           </Link>
447         </li>
448         <li>
449           <Link
450             activeClassName="active"
451             onlyActiveOnIndex={false}
452             style={Object {}}
453             to={
454               Object {
455                 "pathname": "/project/deletion",
456                 "query": Object {
457                   "id": "foo",
458                 },
459               }
460             }
461           >
462             deletion.page
463           </Link>
464         </li>
465       </ul>
466     }
467     tagName="li"
468   >
469     <Component />
470   </Dropdown>
471 </NavBarTabs>
472 `;
473
474 exports[`should work for all qualifiers 2`] = `
475 <NavBarTabs>
476   <li>
477     <Link
478       activeClassName="active"
479       onlyActiveOnIndex={false}
480       style={Object {}}
481       to={
482         Object {
483           "pathname": "/portfolio",
484           "query": Object {
485             "id": "foo",
486           },
487         }
488       }
489     >
490       overview.page
491     </Link>
492   </li>
493   <li>
494     <Link
495       activeClassName="active"
496       className=""
497       onlyActiveOnIndex={false}
498       style={Object {}}
499       to={
500         Object {
501           "pathname": "/project/issues",
502           "query": Object {
503             "id": "foo",
504             "resolved": "false",
505           },
506         }
507       }
508     >
509       issues.page
510     </Link>
511   </li>
512   <li>
513     <Link
514       activeClassName="active"
515       onlyActiveOnIndex={false}
516       style={Object {}}
517       to={
518         Object {
519           "pathname": "/security_hotspots",
520           "query": Object {
521             "id": "foo",
522           },
523         }
524       }
525     >
526       layout.security_hotspots
527     </Link>
528   </li>
529   <li>
530     <Link
531       activeClassName="active"
532       onlyActiveOnIndex={false}
533       style={Object {}}
534       to={
535         Object {
536           "pathname": "/component_measures",
537           "query": Object {
538             "id": "foo",
539           },
540         }
541       }
542     >
543       layout.measures
544     </Link>
545   </li>
546   <li>
547     <Link
548       activeClassName="active"
549       onlyActiveOnIndex={false}
550       style={Object {}}
551       to={
552         Object {
553           "pathname": "/code",
554           "query": Object {
555             "id": "foo",
556           },
557         }
558       }
559     >
560       view_projects.page
561     </Link>
562   </li>
563   <li>
564     <Link
565       activeClassName="active"
566       onlyActiveOnIndex={false}
567       style={Object {}}
568       to={
569         Object {
570           "pathname": "/project/activity",
571           "query": Object {
572             "id": "foo",
573           },
574         }
575       }
576     >
577       project_activity.page
578     </Link>
579   </li>
580   <Dropdown
581     data-test="administration"
582     overlay={
583       <ul
584         className="menu"
585       >
586         <li>
587           <Link
588             activeClassName="active"
589             onlyActiveOnIndex={false}
590             style={Object {}}
591             to={
592               Object {
593                 "pathname": "/project/deletion",
594                 "query": Object {
595                   "id": "foo",
596                 },
597               }
598             }
599           >
600             deletion.page
601           </Link>
602         </li>
603       </ul>
604     }
605     tagName="li"
606   >
607     <Component />
608   </Dropdown>
609 </NavBarTabs>
610 `;
611
612 exports[`should work for all qualifiers 3`] = `
613 <NavBarTabs>
614   <li>
615     <Link
616       activeClassName="active"
617       onlyActiveOnIndex={false}
618       style={Object {}}
619       to={
620         Object {
621           "pathname": "/portfolio",
622           "query": Object {
623             "id": "foo",
624           },
625         }
626       }
627     >
628       overview.page
629     </Link>
630   </li>
631   <li>
632     <Link
633       activeClassName="active"
634       className=""
635       onlyActiveOnIndex={false}
636       style={Object {}}
637       to={
638         Object {
639           "pathname": "/project/issues",
640           "query": Object {
641             "id": "foo",
642             "resolved": "false",
643           },
644         }
645       }
646     >
647       issues.page
648     </Link>
649   </li>
650   <li>
651     <Link
652       activeClassName="active"
653       onlyActiveOnIndex={false}
654       style={Object {}}
655       to={
656         Object {
657           "pathname": "/security_hotspots",
658           "query": Object {
659             "id": "foo",
660           },
661         }
662       }
663     >
664       layout.security_hotspots
665     </Link>
666   </li>
667   <li>
668     <Link
669       activeClassName="active"
670       onlyActiveOnIndex={false}
671       style={Object {}}
672       to={
673         Object {
674           "pathname": "/component_measures",
675           "query": Object {
676             "id": "foo",
677           },
678         }
679       }
680     >
681       layout.measures
682     </Link>
683   </li>
684   <li>
685     <Link
686       activeClassName="active"
687       onlyActiveOnIndex={false}
688       style={Object {}}
689       to={
690         Object {
691           "pathname": "/code",
692           "query": Object {
693             "id": "foo",
694           },
695         }
696       }
697     >
698       view_projects.page
699     </Link>
700   </li>
701   <li>
702     <Link
703       activeClassName="active"
704       onlyActiveOnIndex={false}
705       style={Object {}}
706       to={
707         Object {
708           "pathname": "/project/activity",
709           "query": Object {
710             "id": "foo",
711           },
712         }
713       }
714     >
715       project_activity.page
716     </Link>
717   </li>
718 </NavBarTabs>
719 `;
720
721 exports[`should work for all qualifiers 4`] = `
722 <NavBarTabs>
723   <li>
724     <Link
725       activeClassName="active"
726       onlyActiveOnIndex={false}
727       style={Object {}}
728       to={
729         Object {
730           "pathname": "/dashboard",
731           "query": Object {
732             "id": "foo",
733           },
734         }
735       }
736     >
737       overview.page
738     </Link>
739   </li>
740   <li>
741     <Link
742       activeClassName="active"
743       className=""
744       onlyActiveOnIndex={false}
745       style={Object {}}
746       to={
747         Object {
748           "pathname": "/project/issues",
749           "query": Object {
750             "id": "foo",
751             "resolved": "false",
752           },
753         }
754       }
755     >
756       issues.page
757     </Link>
758   </li>
759   <li>
760     <Link
761       activeClassName="active"
762       onlyActiveOnIndex={false}
763       style={Object {}}
764       to={
765         Object {
766           "pathname": "/security_hotspots",
767           "query": Object {
768             "id": "foo",
769           },
770         }
771       }
772     >
773       layout.security_hotspots
774     </Link>
775   </li>
776   <li>
777     <Link
778       activeClassName="active"
779       onlyActiveOnIndex={false}
780       style={Object {}}
781       to={
782         Object {
783           "pathname": "/component_measures",
784           "query": Object {
785             "id": "foo",
786           },
787         }
788       }
789     >
790       layout.measures
791     </Link>
792   </li>
793   <li>
794     <Link
795       activeClassName="active"
796       onlyActiveOnIndex={false}
797       style={Object {}}
798       to={
799         Object {
800           "pathname": "/code",
801           "query": Object {
802             "id": "foo",
803           },
804         }
805       }
806     >
807       view_projects.page
808     </Link>
809   </li>
810   <li>
811     <Link
812       activeClassName="active"
813       onlyActiveOnIndex={false}
814       style={Object {}}
815       to={
816         Object {
817           "pathname": "/project/activity",
818           "query": Object {
819             "id": "foo",
820           },
821         }
822       }
823     >
824       project_activity.page
825     </Link>
826   </li>
827   <Dropdown
828     data-test="administration"
829     overlay={
830       <ul
831         className="menu"
832       >
833         <li>
834           <Link
835             activeClassName="active"
836             onlyActiveOnIndex={false}
837             style={Object {}}
838             to={
839               Object {
840                 "pathname": "/project/deletion",
841                 "query": Object {
842                   "id": "foo",
843                 },
844               }
845             }
846           >
847             deletion.page
848           </Link>
849         </li>
850       </ul>
851     }
852     tagName="li"
853   >
854     <Component />
855   </Dropdown>
856 </NavBarTabs>
857 `;
858
859 exports[`should work with extensions 1`] = `
860 <Dropdown
861   data-test="extensions"
862   overlay={
863     <ul
864       className="menu"
865     >
866       <li>
867         <Link
868           activeClassName="active"
869           onlyActiveOnIndex={false}
870           style={Object {}}
871           to={
872             Object {
873               "pathname": "/project/extension/component-foo",
874               "query": Object {
875                 "id": "foo",
876                 "qualifier": "TRK",
877               },
878             }
879           }
880         >
881           ComponentFoo
882         </Link>
883       </li>
884     </ul>
885   }
886   tagName="li"
887 >
888   <Component />
889 </Dropdown>
890 `;
891
892 exports[`should work with extensions 2`] = `
893 <Dropdown
894   data-test="administration"
895   overlay={
896     <ul
897       className="menu"
898     >
899       <li>
900         <Link
901           activeClassName="active"
902           onlyActiveOnIndex={false}
903           style={Object {}}
904           to={
905             Object {
906               "pathname": "/project/settings",
907               "query": Object {
908                 "id": "foo",
909               },
910             }
911           }
912         >
913           project_settings.page
914         </Link>
915       </li>
916       <li>
917         <Link
918           activeClassName="active"
919           onlyActiveOnIndex={false}
920           style={Object {}}
921           to={
922             Object {
923               "pathname": "/project/branches",
924               "query": Object {
925                 "id": "foo",
926               },
927             }
928           }
929         >
930           project_branch_pull_request.page
931         </Link>
932       </li>
933       <li>
934         <Link
935           activeClassName="active"
936           onlyActiveOnIndex={false}
937           style={Object {}}
938           to={
939             Object {
940               "pathname": "/project/baseline",
941               "query": Object {
942                 "id": "foo",
943               },
944             }
945           }
946         >
947           project_baseline.page
948         </Link>
949       </li>
950       <li>
951         <Link
952           activeClassName="active"
953           onlyActiveOnIndex={false}
954           style={Object {}}
955           to={
956             Object {
957               "pathname": "/project/webhooks",
958               "query": Object {
959                 "id": "foo",
960               },
961             }
962           }
963         >
964           webhooks.page
965         </Link>
966       </li>
967       <li>
968         <Link
969           activeClassName="active"
970           onlyActiveOnIndex={false}
971           style={Object {}}
972           to={
973             Object {
974               "pathname": "/project/admin/extension/foo",
975               "query": Object {
976                 "id": "foo",
977                 "qualifier": "TRK",
978               },
979             }
980           }
981         >
982           Foo
983         </Link>
984       </li>
985       <li>
986         <Link
987           activeClassName="active"
988           onlyActiveOnIndex={false}
989           style={Object {}}
990           to={
991             Object {
992               "pathname": "/project/deletion",
993               "query": Object {
994                 "id": "foo",
995               },
996             }
997           }
998         >
999           deletion.page
1000         </Link>
1001       </li>
1002     </ul>
1003   }
1004   tagName="li"
1005 >
1006   <Component />
1007 </Dropdown>
1008 `;
1009
1010 exports[`should work with multiple extensions 1`] = `
1011 <Dropdown
1012   data-test="extensions"
1013   overlay={
1014     <ul
1015       className="menu"
1016     >
1017       <li>
1018         <Link
1019           activeClassName="active"
1020           onlyActiveOnIndex={false}
1021           style={Object {}}
1022           to={
1023             Object {
1024               "pathname": "/project/extension/component-foo",
1025               "query": Object {
1026                 "id": "foo",
1027                 "qualifier": "TRK",
1028               },
1029             }
1030           }
1031         >
1032           ComponentFoo
1033         </Link>
1034       </li>
1035       <li>
1036         <Link
1037           activeClassName="active"
1038           onlyActiveOnIndex={false}
1039           style={Object {}}
1040           to={
1041             Object {
1042               "pathname": "/project/extension/component-bar",
1043               "query": Object {
1044                 "id": "foo",
1045                 "qualifier": "TRK",
1046               },
1047             }
1048           }
1049         >
1050           ComponentBar
1051         </Link>
1052       </li>
1053     </ul>
1054   }
1055   tagName="li"
1056 >
1057   <Component />
1058 </Dropdown>
1059 `;
1060
1061 exports[`should work with multiple extensions 2`] = `
1062 <Dropdown
1063   data-test="administration"
1064   overlay={
1065     <ul
1066       className="menu"
1067     >
1068       <li>
1069         <Link
1070           activeClassName="active"
1071           onlyActiveOnIndex={false}
1072           style={Object {}}
1073           to={
1074             Object {
1075               "pathname": "/project/settings",
1076               "query": Object {
1077                 "id": "foo",
1078               },
1079             }
1080           }
1081         >
1082           project_settings.page
1083         </Link>
1084       </li>
1085       <li>
1086         <Link
1087           activeClassName="active"
1088           onlyActiveOnIndex={false}
1089           style={Object {}}
1090           to={
1091             Object {
1092               "pathname": "/project/branches",
1093               "query": Object {
1094                 "id": "foo",
1095               },
1096             }
1097           }
1098         >
1099           project_branch_pull_request.page
1100         </Link>
1101       </li>
1102       <li>
1103         <Link
1104           activeClassName="active"
1105           onlyActiveOnIndex={false}
1106           style={Object {}}
1107           to={
1108             Object {
1109               "pathname": "/project/baseline",
1110               "query": Object {
1111                 "id": "foo",
1112               },
1113             }
1114           }
1115         >
1116           project_baseline.page
1117         </Link>
1118       </li>
1119       <li>
1120         <Link
1121           activeClassName="active"
1122           onlyActiveOnIndex={false}
1123           style={Object {}}
1124           to={
1125             Object {
1126               "pathname": "/project/webhooks",
1127               "query": Object {
1128                 "id": "foo",
1129               },
1130             }
1131           }
1132         >
1133           webhooks.page
1134         </Link>
1135       </li>
1136       <li>
1137         <Link
1138           activeClassName="active"
1139           onlyActiveOnIndex={false}
1140           style={Object {}}
1141           to={
1142             Object {
1143               "pathname": "/project/admin/extension/foo",
1144               "query": Object {
1145                 "id": "foo",
1146                 "qualifier": "TRK",
1147               },
1148             }
1149           }
1150         >
1151           Foo
1152         </Link>
1153       </li>
1154       <li>
1155         <Link
1156           activeClassName="active"
1157           onlyActiveOnIndex={false}
1158           style={Object {}}
1159           to={
1160             Object {
1161               "pathname": "/project/admin/extension/bar",
1162               "query": Object {
1163                 "id": "foo",
1164                 "qualifier": "TRK",
1165               },
1166             }
1167           }
1168         >
1169           Bar
1170         </Link>
1171       </li>
1172       <li>
1173         <Link
1174           activeClassName="active"
1175           onlyActiveOnIndex={false}
1176           style={Object {}}
1177           to={
1178             Object {
1179               "pathname": "/project/deletion",
1180               "query": Object {
1181                 "id": "foo",
1182               },
1183             }
1184           }
1185         >
1186           deletion.page
1187         </Link>
1188       </li>
1189     </ul>
1190   }
1191   tagName="li"
1192 >
1193   <Component />
1194 </Dropdown>
1195 `;