]> source.dussan.org Git - sonarqube.git/blob
a9d856cf7c70fcd9fe904e690805a7c0580d46fa
[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": "/component_measures",
520           "query": Object {
521             "id": "foo",
522           },
523         }
524       }
525     >
526       layout.measures
527     </Link>
528   </li>
529   <li>
530     <Link
531       activeClassName="active"
532       onlyActiveOnIndex={false}
533       style={Object {}}
534       to={
535         Object {
536           "pathname": "/code",
537           "query": Object {
538             "id": "foo",
539           },
540         }
541       }
542     >
543       view_projects.page
544     </Link>
545   </li>
546   <li>
547     <Link
548       activeClassName="active"
549       onlyActiveOnIndex={false}
550       style={Object {}}
551       to={
552         Object {
553           "pathname": "/project/activity",
554           "query": Object {
555             "id": "foo",
556           },
557         }
558       }
559     >
560       project_activity.page
561     </Link>
562   </li>
563   <Dropdown
564     data-test="administration"
565     overlay={
566       <ul
567         className="menu"
568       >
569         <li>
570           <Link
571             activeClassName="active"
572             onlyActiveOnIndex={false}
573             style={Object {}}
574             to={
575               Object {
576                 "pathname": "/project/deletion",
577                 "query": Object {
578                   "id": "foo",
579                 },
580               }
581             }
582           >
583             deletion.page
584           </Link>
585         </li>
586       </ul>
587     }
588     tagName="li"
589   >
590     <Component />
591   </Dropdown>
592 </NavBarTabs>
593 `;
594
595 exports[`should work for all qualifiers 3`] = `
596 <NavBarTabs>
597   <li>
598     <Link
599       activeClassName="active"
600       onlyActiveOnIndex={false}
601       style={Object {}}
602       to={
603         Object {
604           "pathname": "/portfolio",
605           "query": Object {
606             "id": "foo",
607           },
608         }
609       }
610     >
611       overview.page
612     </Link>
613   </li>
614   <li>
615     <Link
616       activeClassName="active"
617       className=""
618       onlyActiveOnIndex={false}
619       style={Object {}}
620       to={
621         Object {
622           "pathname": "/project/issues",
623           "query": Object {
624             "id": "foo",
625             "resolved": "false",
626           },
627         }
628       }
629     >
630       issues.page
631     </Link>
632   </li>
633   <li>
634     <Link
635       activeClassName="active"
636       onlyActiveOnIndex={false}
637       style={Object {}}
638       to={
639         Object {
640           "pathname": "/component_measures",
641           "query": Object {
642             "id": "foo",
643           },
644         }
645       }
646     >
647       layout.measures
648     </Link>
649   </li>
650   <li>
651     <Link
652       activeClassName="active"
653       onlyActiveOnIndex={false}
654       style={Object {}}
655       to={
656         Object {
657           "pathname": "/code",
658           "query": Object {
659             "id": "foo",
660           },
661         }
662       }
663     >
664       view_projects.page
665     </Link>
666   </li>
667   <li>
668     <Link
669       activeClassName="active"
670       onlyActiveOnIndex={false}
671       style={Object {}}
672       to={
673         Object {
674           "pathname": "/project/activity",
675           "query": Object {
676             "id": "foo",
677           },
678         }
679       }
680     >
681       project_activity.page
682     </Link>
683   </li>
684 </NavBarTabs>
685 `;
686
687 exports[`should work for all qualifiers 4`] = `
688 <NavBarTabs>
689   <li>
690     <Link
691       activeClassName="active"
692       onlyActiveOnIndex={false}
693       style={Object {}}
694       to={
695         Object {
696           "pathname": "/dashboard",
697           "query": Object {
698             "id": "foo",
699           },
700         }
701       }
702     >
703       overview.page
704     </Link>
705   </li>
706   <li>
707     <Link
708       activeClassName="active"
709       className=""
710       onlyActiveOnIndex={false}
711       style={Object {}}
712       to={
713         Object {
714           "pathname": "/project/issues",
715           "query": Object {
716             "id": "foo",
717             "resolved": "false",
718           },
719         }
720       }
721     >
722       issues.page
723     </Link>
724   </li>
725   <li>
726     <Link
727       activeClassName="active"
728       onlyActiveOnIndex={false}
729       style={Object {}}
730       to={
731         Object {
732           "pathname": "/security_hotspots",
733           "query": Object {
734             "id": "foo",
735           },
736         }
737       }
738     >
739       layout.security_hotspots
740     </Link>
741   </li>
742   <li>
743     <Link
744       activeClassName="active"
745       onlyActiveOnIndex={false}
746       style={Object {}}
747       to={
748         Object {
749           "pathname": "/component_measures",
750           "query": Object {
751             "id": "foo",
752           },
753         }
754       }
755     >
756       layout.measures
757     </Link>
758   </li>
759   <li>
760     <Link
761       activeClassName="active"
762       onlyActiveOnIndex={false}
763       style={Object {}}
764       to={
765         Object {
766           "pathname": "/code",
767           "query": Object {
768             "id": "foo",
769           },
770         }
771       }
772     >
773       view_projects.page
774     </Link>
775   </li>
776   <li>
777     <Link
778       activeClassName="active"
779       onlyActiveOnIndex={false}
780       style={Object {}}
781       to={
782         Object {
783           "pathname": "/project/activity",
784           "query": Object {
785             "id": "foo",
786           },
787         }
788       }
789     >
790       project_activity.page
791     </Link>
792   </li>
793   <Dropdown
794     data-test="administration"
795     overlay={
796       <ul
797         className="menu"
798       >
799         <li>
800           <Link
801             activeClassName="active"
802             onlyActiveOnIndex={false}
803             style={Object {}}
804             to={
805               Object {
806                 "pathname": "/project/deletion",
807                 "query": Object {
808                   "id": "foo",
809                 },
810               }
811             }
812           >
813             deletion.page
814           </Link>
815         </li>
816       </ul>
817     }
818     tagName="li"
819   >
820     <Component />
821   </Dropdown>
822 </NavBarTabs>
823 `;
824
825 exports[`should work with extensions 1`] = `
826 <Dropdown
827   data-test="extensions"
828   overlay={
829     <ul
830       className="menu"
831     >
832       <li>
833         <Link
834           activeClassName="active"
835           onlyActiveOnIndex={false}
836           style={Object {}}
837           to={
838             Object {
839               "pathname": "/project/extension/component-foo",
840               "query": Object {
841                 "id": "foo",
842                 "qualifier": "TRK",
843               },
844             }
845           }
846         >
847           ComponentFoo
848         </Link>
849       </li>
850     </ul>
851   }
852   tagName="li"
853 >
854   <Component />
855 </Dropdown>
856 `;
857
858 exports[`should work with extensions 2`] = `
859 <Dropdown
860   data-test="administration"
861   overlay={
862     <ul
863       className="menu"
864     >
865       <li>
866         <Link
867           activeClassName="active"
868           onlyActiveOnIndex={false}
869           style={Object {}}
870           to={
871             Object {
872               "pathname": "/project/settings",
873               "query": Object {
874                 "id": "foo",
875               },
876             }
877           }
878         >
879           project_settings.page
880         </Link>
881       </li>
882       <li>
883         <Link
884           activeClassName="active"
885           onlyActiveOnIndex={false}
886           style={Object {}}
887           to={
888             Object {
889               "pathname": "/project/branches",
890               "query": Object {
891                 "id": "foo",
892               },
893             }
894           }
895         >
896           project_branch_pull_request.page
897         </Link>
898       </li>
899       <li>
900         <Link
901           activeClassName="active"
902           onlyActiveOnIndex={false}
903           style={Object {}}
904           to={
905             Object {
906               "pathname": "/project/baseline",
907               "query": Object {
908                 "id": "foo",
909               },
910             }
911           }
912         >
913           project_baseline.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/webhooks",
924               "query": Object {
925                 "id": "foo",
926               },
927             }
928           }
929         >
930           webhooks.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/admin/extension/foo",
941               "query": Object {
942                 "id": "foo",
943                 "qualifier": "TRK",
944               },
945             }
946           }
947         >
948           Foo
949         </Link>
950       </li>
951       <li>
952         <Link
953           activeClassName="active"
954           onlyActiveOnIndex={false}
955           style={Object {}}
956           to={
957             Object {
958               "pathname": "/project/deletion",
959               "query": Object {
960                 "id": "foo",
961               },
962             }
963           }
964         >
965           deletion.page
966         </Link>
967       </li>
968     </ul>
969   }
970   tagName="li"
971 >
972   <Component />
973 </Dropdown>
974 `;
975
976 exports[`should work with multiple extensions 1`] = `
977 <Dropdown
978   data-test="extensions"
979   overlay={
980     <ul
981       className="menu"
982     >
983       <li>
984         <Link
985           activeClassName="active"
986           onlyActiveOnIndex={false}
987           style={Object {}}
988           to={
989             Object {
990               "pathname": "/project/extension/component-foo",
991               "query": Object {
992                 "id": "foo",
993                 "qualifier": "TRK",
994               },
995             }
996           }
997         >
998           ComponentFoo
999         </Link>
1000       </li>
1001       <li>
1002         <Link
1003           activeClassName="active"
1004           onlyActiveOnIndex={false}
1005           style={Object {}}
1006           to={
1007             Object {
1008               "pathname": "/project/extension/component-bar",
1009               "query": Object {
1010                 "id": "foo",
1011                 "qualifier": "TRK",
1012               },
1013             }
1014           }
1015         >
1016           ComponentBar
1017         </Link>
1018       </li>
1019     </ul>
1020   }
1021   tagName="li"
1022 >
1023   <Component />
1024 </Dropdown>
1025 `;
1026
1027 exports[`should work with multiple extensions 2`] = `
1028 <Dropdown
1029   data-test="administration"
1030   overlay={
1031     <ul
1032       className="menu"
1033     >
1034       <li>
1035         <Link
1036           activeClassName="active"
1037           onlyActiveOnIndex={false}
1038           style={Object {}}
1039           to={
1040             Object {
1041               "pathname": "/project/settings",
1042               "query": Object {
1043                 "id": "foo",
1044               },
1045             }
1046           }
1047         >
1048           project_settings.page
1049         </Link>
1050       </li>
1051       <li>
1052         <Link
1053           activeClassName="active"
1054           onlyActiveOnIndex={false}
1055           style={Object {}}
1056           to={
1057             Object {
1058               "pathname": "/project/branches",
1059               "query": Object {
1060                 "id": "foo",
1061               },
1062             }
1063           }
1064         >
1065           project_branch_pull_request.page
1066         </Link>
1067       </li>
1068       <li>
1069         <Link
1070           activeClassName="active"
1071           onlyActiveOnIndex={false}
1072           style={Object {}}
1073           to={
1074             Object {
1075               "pathname": "/project/baseline",
1076               "query": Object {
1077                 "id": "foo",
1078               },
1079             }
1080           }
1081         >
1082           project_baseline.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/webhooks",
1093               "query": Object {
1094                 "id": "foo",
1095               },
1096             }
1097           }
1098         >
1099           webhooks.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/admin/extension/foo",
1110               "query": Object {
1111                 "id": "foo",
1112                 "qualifier": "TRK",
1113               },
1114             }
1115           }
1116         >
1117           Foo
1118         </Link>
1119       </li>
1120       <li>
1121         <Link
1122           activeClassName="active"
1123           onlyActiveOnIndex={false}
1124           style={Object {}}
1125           to={
1126             Object {
1127               "pathname": "/project/admin/extension/bar",
1128               "query": Object {
1129                 "id": "foo",
1130                 "qualifier": "TRK",
1131               },
1132             }
1133           }
1134         >
1135           Bar
1136         </Link>
1137       </li>
1138       <li>
1139         <Link
1140           activeClassName="active"
1141           onlyActiveOnIndex={false}
1142           style={Object {}}
1143           to={
1144             Object {
1145               "pathname": "/project/deletion",
1146               "query": Object {
1147                 "id": "foo",
1148               },
1149             }
1150           }
1151         >
1152           deletion.page
1153         </Link>
1154       </li>
1155     </ul>
1156   }
1157   tagName="li"
1158 >
1159   <Component />
1160 </Dropdown>
1161 `;