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