]> source.dussan.org Git - sonarqube.git/blob
0fb679ab3eb7f89510dff31b17367063d27a0bf6
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should disable links if application has inaccessible projects 1`] = `
4 <div
5   className="display-flex-center display-flex-space-between"
6 >
7   <NavBarTabs>
8     <li>
9       <Tooltip
10         overlay="layout.all_project_must_be_accessible.qualifier.APP"
11       >
12         <a
13           aria-disabled="true"
14           className="disabled-link"
15         >
16           overview.page
17         </a>
18       </Tooltip>
19     </li>
20     <li>
21       <Tooltip
22         overlay="layout.all_project_must_be_accessible.qualifier.APP"
23       >
24         <a
25           aria-disabled="true"
26           className="disabled-link"
27         >
28           issues.page
29         </a>
30       </Tooltip>
31     </li>
32     <li>
33       <Tooltip
34         overlay="layout.all_project_must_be_accessible.qualifier.APP"
35       >
36         <a
37           aria-disabled="true"
38           className="disabled-link"
39         >
40           layout.security_hotspots
41         </a>
42       </Tooltip>
43     </li>
44     <li>
45       <Tooltip
46         overlay="layout.all_project_must_be_accessible.qualifier.APP"
47       >
48         <a
49           aria-disabled="true"
50           className="disabled-link"
51         >
52           layout.measures
53         </a>
54       </Tooltip>
55     </li>
56     <li>
57       <Tooltip
58         overlay="layout.all_project_must_be_accessible.qualifier.APP"
59       >
60         <a
61           aria-disabled="true"
62           className="disabled-link"
63         >
64           view_projects.page
65         </a>
66       </Tooltip>
67     </li>
68     <li>
69       <Tooltip
70         overlay="layout.all_project_must_be_accessible.qualifier.APP"
71       >
72         <a
73           aria-disabled="true"
74           className="disabled-link"
75         >
76           project_activity.page
77         </a>
78       </Tooltip>
79     </li>
80   </NavBarTabs>
81   <NavBarTabs>
82     <Dropdown
83       data-test="administration"
84       overlay={
85         <ul
86           className="menu"
87         >
88           <li>
89             <Link
90               activeClassName="active"
91               onlyActiveOnIndex={false}
92               style={Object {}}
93               to={
94                 Object {
95                   "pathname": "/application/console",
96                   "query": Object {
97                     "id": "foo",
98                   },
99                 }
100               }
101             >
102               application_console.page
103             </Link>
104           </li>
105           <li>
106             <Link
107               activeClassName="active"
108               onlyActiveOnIndex={false}
109               style={Object {}}
110               to={
111                 Object {
112                   "pathname": "/project/deletion",
113                   "query": Object {
114                     "id": "foo",
115                   },
116                 }
117               }
118             >
119               deletion.page
120             </Link>
121           </li>
122         </ul>
123       }
124       tagName="li"
125     >
126       <Component />
127     </Dropdown>
128     <li>
129       <Tooltip
130         overlay="layout.all_project_must_be_accessible.qualifier.APP"
131       >
132         <a
133           aria-disabled="true"
134           className="disabled-link"
135         >
136           application.info.title
137         </a>
138       </Tooltip>
139     </li>
140   </NavBarTabs>
141 </div>
142 `;
143
144 exports[`should disable links if no analysis has been done 1`] = `
145 <div
146   className="display-flex-center display-flex-space-between"
147 >
148   <NavBarTabs>
149     <li>
150       <Link
151         activeClassName="active"
152         onlyActiveOnIndex={false}
153         style={Object {}}
154         to={
155           Object {
156             "pathname": "/dashboard",
157             "query": Object {
158               "id": "foo",
159             },
160           }
161         }
162       >
163         overview.page
164       </Link>
165     </li>
166     <li>
167       <Tooltip
168         overlay="layout.must_be_configured"
169       >
170         <a
171           aria-disabled="true"
172           className="disabled-link"
173         >
174           issues.page
175         </a>
176       </Tooltip>
177     </li>
178     <li>
179       <Tooltip
180         overlay="layout.must_be_configured"
181       >
182         <a
183           aria-disabled="true"
184           className="disabled-link"
185         >
186           layout.security_hotspots
187         </a>
188       </Tooltip>
189     </li>
190     <li>
191       <Tooltip
192         overlay="layout.must_be_configured"
193       >
194         <a
195           aria-disabled="true"
196           className="disabled-link"
197         >
198           layout.measures
199         </a>
200       </Tooltip>
201     </li>
202     <li>
203       <Tooltip
204         overlay="layout.must_be_configured"
205       >
206         <a
207           aria-disabled="true"
208           className="disabled-link"
209         >
210           code.page
211         </a>
212       </Tooltip>
213     </li>
214     <li>
215       <Tooltip
216         overlay="layout.must_be_configured"
217       >
218         <a
219           aria-disabled="true"
220           className="disabled-link"
221         >
222           project_activity.page
223         </a>
224       </Tooltip>
225     </li>
226   </NavBarTabs>
227   <NavBarTabs>
228     <li>
229       <a
230         className="menu-button"
231         onClick={[Function]}
232         role="button"
233         tabIndex={0}
234       >
235         <BulletListIcon
236           className="little-spacer-right"
237         />
238         project.info.title
239       </a>
240     </li>
241   </NavBarTabs>
242 </div>
243 `;
244
245 exports[`should render correctly for security extensions 1`] = `
246 <Dropdown
247   data-test="extensions"
248   overlay={
249     <ul
250       className="menu"
251     >
252       <li>
253         <Link
254           activeClassName="active"
255           onlyActiveOnIndex={false}
256           style={Object {}}
257           to={
258             Object {
259               "pathname": "/project/extension/component-bar",
260               "query": Object {
261                 "id": "foo",
262                 "qualifier": "TRK",
263               },
264             }
265           }
266         >
267           ComponentBar
268         </Link>
269       </li>
270     </ul>
271   }
272   tagName="li"
273 >
274   <Component />
275 </Dropdown>
276 `;
277
278 exports[`should render correctly for security extensions 2`] = `null`;
279
280 exports[`should work for a branch 1`] = `
281 <div
282   className="display-flex-center display-flex-space-between"
283 >
284   <NavBarTabs>
285     <li>
286       <Link
287         activeClassName="active"
288         onlyActiveOnIndex={false}
289         style={Object {}}
290         to={
291           Object {
292             "pathname": "/dashboard",
293             "query": Object {
294               "branch": "release",
295               "id": "foo",
296             },
297           }
298         }
299       >
300         overview.page
301       </Link>
302     </li>
303     <li>
304       <Link
305         onlyActiveOnIndex={false}
306         style={Object {}}
307         to={
308           Object {
309             "pathname": "/project/issues",
310             "query": Object {
311               "branch": "release",
312               "id": "foo",
313               "resolved": "false",
314             },
315           }
316         }
317       >
318         issues.page
319       </Link>
320     </li>
321     <li>
322       <Link
323         onlyActiveOnIndex={false}
324         style={Object {}}
325         to={
326           Object {
327             "pathname": "/security_hotspots",
328             "query": Object {
329               "branch": "release",
330               "id": "foo",
331             },
332           }
333         }
334       >
335         layout.security_hotspots
336       </Link>
337     </li>
338     <li>
339       <Link
340         onlyActiveOnIndex={false}
341         style={Object {}}
342         to={
343           Object {
344             "pathname": "component_measures",
345             "query": Object {
346               "branch": "release",
347               "id": "foo",
348             },
349           }
350         }
351       >
352         layout.measures
353       </Link>
354     </li>
355     <li>
356       <Link
357         onlyActiveOnIndex={false}
358         style={Object {}}
359         to={
360           Object {
361             "pathname": "/code",
362             "query": Object {
363               "branch": "release",
364               "id": "foo",
365             },
366           }
367         }
368       >
369         code.page
370       </Link>
371     </li>
372     <li>
373       <Link
374         onlyActiveOnIndex={false}
375         style={Object {}}
376         to={
377           Object {
378             "pathname": "/project/activity",
379             "query": Object {
380               "branch": "release",
381               "id": "foo",
382             },
383           }
384         }
385       >
386         project_activity.page
387       </Link>
388     </li>
389     <Dropdown
390       data-test="extensions"
391       overlay={
392         <ul
393           className="menu"
394         >
395           <li>
396             <Link
397               activeClassName="active"
398               onlyActiveOnIndex={false}
399               style={Object {}}
400               to={
401                 Object {
402                   "pathname": "/project/extension/component-foo",
403                   "query": Object {
404                     "branch": "release",
405                     "id": "foo",
406                     "qualifier": "TRK",
407                   },
408                 }
409               }
410             >
411               ComponentFoo
412             </Link>
413           </li>
414         </ul>
415       }
416       tagName="li"
417     >
418       <Component />
419     </Dropdown>
420   </NavBarTabs>
421   <NavBarTabs>
422     <Dropdown
423       data-test="administration"
424       overlay={
425         <ul
426           className="menu"
427         >
428           <li>
429             <Link
430               activeClassName="active"
431               onlyActiveOnIndex={false}
432               style={Object {}}
433               to={
434                 Object {
435                   "pathname": "/project/settings",
436                   "query": Object {
437                     "branch": "release",
438                     "id": "foo",
439                   },
440                 }
441               }
442             >
443               project_settings.page
444             </Link>
445           </li>
446           <li>
447             <Link
448               activeClassName="active"
449               onlyActiveOnIndex={false}
450               style={Object {}}
451               to={
452                 Object {
453                   "pathname": "/project/branches",
454                   "query": Object {
455                     "branch": "release",
456                     "id": "foo",
457                   },
458                 }
459               }
460             >
461               project_branch_pull_request.page
462             </Link>
463           </li>
464           <li>
465             <Link
466               activeClassName="active"
467               onlyActiveOnIndex={false}
468               style={Object {}}
469               to={
470                 Object {
471                   "pathname": "/project/baseline",
472                   "query": Object {
473                     "branch": "release",
474                     "id": "foo",
475                   },
476                 }
477               }
478             >
479               project_baseline.page
480             </Link>
481           </li>
482           <li>
483             <Link
484               activeClassName="active"
485               onlyActiveOnIndex={false}
486               style={Object {}}
487               to={
488                 Object {
489                   "pathname": "/project/import_export",
490                   "query": Object {
491                     "branch": "release",
492                     "id": "foo",
493                   },
494                 }
495               }
496             >
497               project_dump.page
498             </Link>
499           </li>
500           <li>
501             <Link
502               activeClassName="active"
503               onlyActiveOnIndex={false}
504               style={Object {}}
505               to={
506                 Object {
507                   "pathname": "/project/webhooks",
508                   "query": Object {
509                     "branch": "release",
510                     "id": "foo",
511                   },
512                 }
513               }
514             >
515               webhooks.page
516             </Link>
517           </li>
518           <li>
519             <Link
520               activeClassName="active"
521               onlyActiveOnIndex={false}
522               style={Object {}}
523               to={
524                 Object {
525                   "pathname": "/project/deletion",
526                   "query": Object {
527                     "branch": "release",
528                     "id": "foo",
529                   },
530                 }
531               }
532             >
533               deletion.page
534             </Link>
535           </li>
536         </ul>
537       }
538       tagName="li"
539     >
540       <Component />
541     </Dropdown>
542     <li>
543       <a
544         className="menu-button"
545         onClick={[Function]}
546         role="button"
547         tabIndex={0}
548       >
549         <BulletListIcon
550           className="little-spacer-right"
551         />
552         project.info.title
553       </a>
554     </li>
555   </NavBarTabs>
556 </div>
557 `;
558
559 exports[`should work for a branch 2`] = `
560 <div
561   className="display-flex-center display-flex-space-between"
562 >
563   <NavBarTabs>
564     <li>
565       <Link
566         activeClassName="active"
567         onlyActiveOnIndex={false}
568         style={Object {}}
569         to={
570           Object {
571             "pathname": "/dashboard",
572             "query": Object {
573               "branch": "release",
574               "id": "foo",
575             },
576           }
577         }
578       >
579         overview.page
580       </Link>
581     </li>
582     <li>
583       <Link
584         onlyActiveOnIndex={false}
585         style={Object {}}
586         to={
587           Object {
588             "pathname": "/project/issues",
589             "query": Object {
590               "branch": "release",
591               "id": "foo",
592               "resolved": "false",
593             },
594           }
595         }
596       >
597         issues.page
598       </Link>
599     </li>
600     <li>
601       <Link
602         onlyActiveOnIndex={false}
603         style={Object {}}
604         to={
605           Object {
606             "pathname": "/security_hotspots",
607             "query": Object {
608               "branch": "release",
609               "id": "foo",
610             },
611           }
612         }
613       >
614         layout.security_hotspots
615       </Link>
616     </li>
617     <li>
618       <Link
619         onlyActiveOnIndex={false}
620         style={Object {}}
621         to={
622           Object {
623             "pathname": "component_measures",
624             "query": Object {
625               "branch": "release",
626               "id": "foo",
627             },
628           }
629         }
630       >
631         layout.measures
632       </Link>
633     </li>
634     <li>
635       <Link
636         onlyActiveOnIndex={false}
637         style={Object {}}
638         to={
639           Object {
640             "pathname": "/code",
641             "query": Object {
642               "branch": "release",
643               "id": "foo",
644             },
645           }
646         }
647       >
648         code.page
649       </Link>
650     </li>
651     <li>
652       <Link
653         onlyActiveOnIndex={false}
654         style={Object {}}
655         to={
656           Object {
657             "pathname": "/project/activity",
658             "query": Object {
659               "branch": "release",
660               "id": "foo",
661             },
662           }
663         }
664       >
665         project_activity.page
666       </Link>
667     </li>
668     <Dropdown
669       data-test="extensions"
670       overlay={
671         <ul
672           className="menu"
673         >
674           <li>
675             <Link
676               activeClassName="active"
677               onlyActiveOnIndex={false}
678               style={Object {}}
679               to={
680                 Object {
681                   "pathname": "/project/extension/component-foo",
682                   "query": Object {
683                     "branch": "release",
684                     "id": "foo",
685                     "qualifier": "TRK",
686                   },
687                 }
688               }
689             >
690               ComponentFoo
691             </Link>
692           </li>
693         </ul>
694       }
695       tagName="li"
696     >
697       <Component />
698     </Dropdown>
699   </NavBarTabs>
700   <NavBarTabs>
701     <li>
702       <a
703         className="menu-button"
704         onClick={[Function]}
705         role="button"
706         tabIndex={0}
707       >
708         <BulletListIcon
709           className="little-spacer-right"
710         />
711         project.info.title
712       </a>
713     </li>
714   </NavBarTabs>
715 </div>
716 `;
717
718 exports[`should work for all qualifiers 1`] = `
719 <div
720   className="display-flex-center display-flex-space-between"
721 >
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         onlyActiveOnIndex={false}
743         style={Object {}}
744         to={
745           Object {
746             "pathname": "/project/issues",
747             "query": Object {
748               "id": "foo",
749               "resolved": "false",
750             },
751           }
752         }
753       >
754         issues.page
755       </Link>
756     </li>
757     <li>
758       <Link
759         onlyActiveOnIndex={false}
760         style={Object {}}
761         to={
762           Object {
763             "pathname": "/security_hotspots",
764             "query": Object {
765               "id": "foo",
766             },
767           }
768         }
769       >
770         layout.security_hotspots
771       </Link>
772     </li>
773     <li>
774       <Link
775         onlyActiveOnIndex={false}
776         style={Object {}}
777         to={
778           Object {
779             "pathname": "component_measures",
780             "query": Object {
781               "id": "foo",
782             },
783           }
784         }
785       >
786         layout.measures
787       </Link>
788     </li>
789     <li>
790       <Link
791         onlyActiveOnIndex={false}
792         style={Object {}}
793         to={
794           Object {
795             "pathname": "/code",
796             "query": Object {
797               "id": "foo",
798             },
799           }
800         }
801       >
802         code.page
803       </Link>
804     </li>
805     <li>
806       <Link
807         onlyActiveOnIndex={false}
808         style={Object {}}
809         to={
810           Object {
811             "pathname": "/project/activity",
812             "query": Object {
813               "id": "foo",
814             },
815           }
816         }
817       >
818         project_activity.page
819       </Link>
820     </li>
821   </NavBarTabs>
822   <NavBarTabs>
823     <Dropdown
824       data-test="administration"
825       overlay={
826         <ul
827           className="menu"
828         >
829           <li>
830             <Link
831               activeClassName="active"
832               onlyActiveOnIndex={false}
833               style={Object {}}
834               to={
835                 Object {
836                   "pathname": "/project/settings",
837                   "query": Object {
838                     "id": "foo",
839                   },
840                 }
841               }
842             >
843               project_settings.page
844             </Link>
845           </li>
846           <li>
847             <Link
848               activeClassName="active"
849               onlyActiveOnIndex={false}
850               style={Object {}}
851               to={
852                 Object {
853                   "pathname": "/project/branches",
854                   "query": Object {
855                     "id": "foo",
856                   },
857                 }
858               }
859             >
860               project_branch_pull_request.page
861             </Link>
862           </li>
863           <li>
864             <Link
865               activeClassName="active"
866               onlyActiveOnIndex={false}
867               style={Object {}}
868               to={
869                 Object {
870                   "pathname": "/project/baseline",
871                   "query": Object {
872                     "id": "foo",
873                   },
874                 }
875               }
876             >
877               project_baseline.page
878             </Link>
879           </li>
880           <li>
881             <Link
882               activeClassName="active"
883               onlyActiveOnIndex={false}
884               style={Object {}}
885               to={
886                 Object {
887                   "pathname": "/project/import_export",
888                   "query": Object {
889                     "id": "foo",
890                   },
891                 }
892               }
893             >
894               project_dump.page
895             </Link>
896           </li>
897           <li>
898             <Link
899               activeClassName="active"
900               onlyActiveOnIndex={false}
901               style={Object {}}
902               to={
903                 Object {
904                   "pathname": "/project/webhooks",
905                   "query": Object {
906                     "id": "foo",
907                   },
908                 }
909               }
910             >
911               webhooks.page
912             </Link>
913           </li>
914           <li>
915             <Link
916               activeClassName="active"
917               onlyActiveOnIndex={false}
918               style={Object {}}
919               to={
920                 Object {
921                   "pathname": "/project/deletion",
922                   "query": Object {
923                     "id": "foo",
924                   },
925                 }
926               }
927             >
928               deletion.page
929             </Link>
930           </li>
931         </ul>
932       }
933       tagName="li"
934     >
935       <Component />
936     </Dropdown>
937     <li>
938       <a
939         className="menu-button"
940         onClick={[Function]}
941         role="button"
942         tabIndex={0}
943       >
944         <BulletListIcon
945           className="little-spacer-right"
946         />
947         project.info.title
948       </a>
949     </li>
950   </NavBarTabs>
951 </div>
952 `;
953
954 exports[`should work for all qualifiers 2`] = `
955 <div
956   className="display-flex-center display-flex-space-between"
957 >
958   <NavBarTabs>
959     <li>
960       <Link
961         onlyActiveOnIndex={false}
962         style={Object {}}
963         to={
964           Object {
965             "pathname": "/project/issues",
966             "query": Object {
967               "id": "foo",
968               "resolved": "false",
969             },
970           }
971         }
972       >
973         issues.page
974       </Link>
975     </li>
976     <li>
977       <Link
978         onlyActiveOnIndex={false}
979         style={Object {}}
980         to={
981           Object {
982             "pathname": "component_measures",
983             "query": Object {
984               "id": "foo",
985             },
986           }
987         }
988       >
989         layout.measures
990       </Link>
991     </li>
992     <li>
993       <Link
994         onlyActiveOnIndex={false}
995         style={Object {}}
996         to={
997           Object {
998             "pathname": "/code",
999             "query": Object {
1000               "id": "foo",
1001             },
1002           }
1003         }
1004       >
1005         view_projects.page
1006       </Link>
1007     </li>
1008     <li>
1009       <Link
1010         onlyActiveOnIndex={false}
1011         style={Object {}}
1012         to={
1013           Object {
1014             "pathname": "/project/activity",
1015             "query": Object {
1016               "id": "foo",
1017             },
1018           }
1019         }
1020       >
1021         project_activity.page
1022       </Link>
1023     </li>
1024   </NavBarTabs>
1025   <NavBarTabs>
1026     <Dropdown
1027       data-test="administration"
1028       overlay={
1029         <ul
1030           className="menu"
1031         >
1032           <li>
1033             <Link
1034               activeClassName="active"
1035               onlyActiveOnIndex={false}
1036               style={Object {}}
1037               to={
1038                 Object {
1039                   "pathname": "/project/deletion",
1040                   "query": Object {
1041                     "id": "foo",
1042                   },
1043                 }
1044               }
1045             >
1046               deletion.page
1047             </Link>
1048           </li>
1049         </ul>
1050       }
1051       tagName="li"
1052     >
1053       <Component />
1054     </Dropdown>
1055   </NavBarTabs>
1056 </div>
1057 `;
1058
1059 exports[`should work for all qualifiers 3`] = `
1060 <div
1061   className="display-flex-center display-flex-space-between"
1062 >
1063   <NavBarTabs>
1064     <li>
1065       <Link
1066         onlyActiveOnIndex={false}
1067         style={Object {}}
1068         to={
1069           Object {
1070             "pathname": "/project/issues",
1071             "query": Object {
1072               "id": "foo",
1073               "resolved": "false",
1074             },
1075           }
1076         }
1077       >
1078         issues.page
1079       </Link>
1080     </li>
1081     <li>
1082       <Link
1083         onlyActiveOnIndex={false}
1084         style={Object {}}
1085         to={
1086           Object {
1087             "pathname": "component_measures",
1088             "query": Object {
1089               "id": "foo",
1090             },
1091           }
1092         }
1093       >
1094         layout.measures
1095       </Link>
1096     </li>
1097     <li>
1098       <Link
1099         onlyActiveOnIndex={false}
1100         style={Object {}}
1101         to={
1102           Object {
1103             "pathname": "/code",
1104             "query": Object {
1105               "id": "foo",
1106             },
1107           }
1108         }
1109       >
1110         view_projects.page
1111       </Link>
1112     </li>
1113     <li>
1114       <Link
1115         onlyActiveOnIndex={false}
1116         style={Object {}}
1117         to={
1118           Object {
1119             "pathname": "/project/activity",
1120             "query": Object {
1121               "id": "foo",
1122             },
1123           }
1124         }
1125       >
1126         project_activity.page
1127       </Link>
1128     </li>
1129   </NavBarTabs>
1130   <NavBarTabs />
1131 </div>
1132 `;
1133
1134 exports[`should work for all qualifiers 4`] = `
1135 <div
1136   className="display-flex-center display-flex-space-between"
1137 >
1138   <NavBarTabs>
1139     <li>
1140       <Link
1141         activeClassName="active"
1142         onlyActiveOnIndex={false}
1143         style={Object {}}
1144         to={
1145           Object {
1146             "pathname": "/dashboard",
1147             "query": Object {
1148               "id": "foo",
1149             },
1150           }
1151         }
1152       >
1153         overview.page
1154       </Link>
1155     </li>
1156     <li>
1157       <Link
1158         onlyActiveOnIndex={false}
1159         style={Object {}}
1160         to={
1161           Object {
1162             "pathname": "/project/issues",
1163             "query": Object {
1164               "id": "foo",
1165               "resolved": "false",
1166             },
1167           }
1168         }
1169       >
1170         issues.page
1171       </Link>
1172     </li>
1173     <li>
1174       <Link
1175         onlyActiveOnIndex={false}
1176         style={Object {}}
1177         to={
1178           Object {
1179             "pathname": "/security_hotspots",
1180             "query": Object {
1181               "id": "foo",
1182             },
1183           }
1184         }
1185       >
1186         layout.security_hotspots
1187       </Link>
1188     </li>
1189     <li>
1190       <Link
1191         onlyActiveOnIndex={false}
1192         style={Object {}}
1193         to={
1194           Object {
1195             "pathname": "component_measures",
1196             "query": Object {
1197               "id": "foo",
1198             },
1199           }
1200         }
1201       >
1202         layout.measures
1203       </Link>
1204     </li>
1205     <li>
1206       <Link
1207         onlyActiveOnIndex={false}
1208         style={Object {}}
1209         to={
1210           Object {
1211             "pathname": "/code",
1212             "query": Object {
1213               "id": "foo",
1214             },
1215           }
1216         }
1217       >
1218         view_projects.page
1219       </Link>
1220     </li>
1221     <li>
1222       <Link
1223         onlyActiveOnIndex={false}
1224         style={Object {}}
1225         to={
1226           Object {
1227             "pathname": "/project/activity",
1228             "query": Object {
1229               "id": "foo",
1230             },
1231           }
1232         }
1233       >
1234         project_activity.page
1235       </Link>
1236     </li>
1237   </NavBarTabs>
1238   <NavBarTabs>
1239     <Dropdown
1240       data-test="administration"
1241       overlay={
1242         <ul
1243           className="menu"
1244         >
1245           <li>
1246             <Link
1247               activeClassName="active"
1248               onlyActiveOnIndex={false}
1249               style={Object {}}
1250               to={
1251                 Object {
1252                   "pathname": "/application/console",
1253                   "query": Object {
1254                     "id": "foo",
1255                   },
1256                 }
1257               }
1258             >
1259               application_console.page
1260             </Link>
1261           </li>
1262           <li>
1263             <Link
1264               activeClassName="active"
1265               onlyActiveOnIndex={false}
1266               style={Object {}}
1267               to={
1268                 Object {
1269                   "pathname": "/project/deletion",
1270                   "query": Object {
1271                     "id": "foo",
1272                   },
1273                 }
1274               }
1275             >
1276               deletion.page
1277             </Link>
1278           </li>
1279         </ul>
1280       }
1281       tagName="li"
1282     >
1283       <Component />
1284     </Dropdown>
1285     <li>
1286       <a
1287         className="menu-button"
1288         onClick={[Function]}
1289         role="button"
1290         tabIndex={0}
1291       >
1292         <BulletListIcon
1293           className="little-spacer-right"
1294         />
1295         application.info.title
1296       </a>
1297     </li>
1298   </NavBarTabs>
1299 </div>
1300 `;
1301
1302 exports[`should work for pull requests 1`] = `
1303 <div
1304   className="display-flex-center display-flex-space-between"
1305 >
1306   <NavBarTabs>
1307     <li>
1308       <Link
1309         activeClassName="active"
1310         onlyActiveOnIndex={false}
1311         style={Object {}}
1312         to={
1313           Object {
1314             "pathname": "/dashboard",
1315             "query": Object {
1316               "id": "foo",
1317               "pullRequest": "1001",
1318             },
1319           }
1320         }
1321       >
1322         overview.page
1323       </Link>
1324     </li>
1325     <li>
1326       <Link
1327         onlyActiveOnIndex={false}
1328         style={Object {}}
1329         to={
1330           Object {
1331             "pathname": "/project/issues",
1332             "query": Object {
1333               "id": "foo",
1334               "pullRequest": "1001",
1335               "resolved": "false",
1336             },
1337           }
1338         }
1339       >
1340         issues.page
1341       </Link>
1342     </li>
1343     <li>
1344       <Link
1345         onlyActiveOnIndex={false}
1346         style={Object {}}
1347         to={
1348           Object {
1349             "pathname": "/security_hotspots",
1350             "query": Object {
1351               "id": "foo",
1352               "pullRequest": "1001",
1353             },
1354           }
1355         }
1356       >
1357         layout.security_hotspots
1358       </Link>
1359     </li>
1360     <li>
1361       <Link
1362         onlyActiveOnIndex={false}
1363         style={Object {}}
1364         to={
1365           Object {
1366             "pathname": "component_measures",
1367             "query": Object {
1368               "id": "foo",
1369               "pullRequest": "1001",
1370             },
1371           }
1372         }
1373       >
1374         layout.measures
1375       </Link>
1376     </li>
1377     <li>
1378       <Link
1379         onlyActiveOnIndex={false}
1380         style={Object {}}
1381         to={
1382           Object {
1383             "pathname": "/code",
1384             "query": Object {
1385               "id": "foo",
1386               "pullRequest": "1001",
1387             },
1388           }
1389         }
1390       >
1391         code.page
1392       </Link>
1393     </li>
1394     <Dropdown
1395       data-test="extensions"
1396       overlay={
1397         <ul
1398           className="menu"
1399         >
1400           <li>
1401             <Link
1402               activeClassName="active"
1403               onlyActiveOnIndex={false}
1404               style={Object {}}
1405               to={
1406                 Object {
1407                   "pathname": "/project/extension/component-foo",
1408                   "query": Object {
1409                     "id": "foo",
1410                     "pullRequest": "1001",
1411                     "qualifier": "TRK",
1412                   },
1413                 }
1414               }
1415             >
1416               ComponentFoo
1417             </Link>
1418           </li>
1419         </ul>
1420       }
1421       tagName="li"
1422     >
1423       <Component />
1424     </Dropdown>
1425   </NavBarTabs>
1426   <NavBarTabs />
1427 </div>
1428 `;
1429
1430 exports[`should work for pull requests 2`] = `
1431 <div
1432   className="display-flex-center display-flex-space-between"
1433 >
1434   <NavBarTabs>
1435     <li>
1436       <Link
1437         activeClassName="active"
1438         onlyActiveOnIndex={false}
1439         style={Object {}}
1440         to={
1441           Object {
1442             "pathname": "/dashboard",
1443             "query": Object {
1444               "id": "foo",
1445               "pullRequest": "1001",
1446             },
1447           }
1448         }
1449       >
1450         overview.page
1451       </Link>
1452     </li>
1453     <li>
1454       <Link
1455         onlyActiveOnIndex={false}
1456         style={Object {}}
1457         to={
1458           Object {
1459             "pathname": "/project/issues",
1460             "query": Object {
1461               "id": "foo",
1462               "pullRequest": "1001",
1463               "resolved": "false",
1464             },
1465           }
1466         }
1467       >
1468         issues.page
1469       </Link>
1470     </li>
1471     <li>
1472       <Link
1473         onlyActiveOnIndex={false}
1474         style={Object {}}
1475         to={
1476           Object {
1477             "pathname": "/security_hotspots",
1478             "query": Object {
1479               "id": "foo",
1480               "pullRequest": "1001",
1481             },
1482           }
1483         }
1484       >
1485         layout.security_hotspots
1486       </Link>
1487     </li>
1488     <li>
1489       <Link
1490         onlyActiveOnIndex={false}
1491         style={Object {}}
1492         to={
1493           Object {
1494             "pathname": "component_measures",
1495             "query": Object {
1496               "id": "foo",
1497               "pullRequest": "1001",
1498             },
1499           }
1500         }
1501       >
1502         layout.measures
1503       </Link>
1504     </li>
1505     <li>
1506       <Link
1507         onlyActiveOnIndex={false}
1508         style={Object {}}
1509         to={
1510           Object {
1511             "pathname": "/code",
1512             "query": Object {
1513               "id": "foo",
1514               "pullRequest": "1001",
1515             },
1516           }
1517         }
1518       >
1519         code.page
1520       </Link>
1521     </li>
1522     <Dropdown
1523       data-test="extensions"
1524       overlay={
1525         <ul
1526           className="menu"
1527         >
1528           <li>
1529             <Link
1530               activeClassName="active"
1531               onlyActiveOnIndex={false}
1532               style={Object {}}
1533               to={
1534                 Object {
1535                   "pathname": "/project/extension/component-foo",
1536                   "query": Object {
1537                     "id": "foo",
1538                     "pullRequest": "1001",
1539                     "qualifier": "TRK",
1540                   },
1541                 }
1542               }
1543             >
1544               ComponentFoo
1545             </Link>
1546           </li>
1547         </ul>
1548       }
1549       tagName="li"
1550     >
1551       <Component />
1552     </Dropdown>
1553   </NavBarTabs>
1554   <NavBarTabs />
1555 </div>
1556 `;
1557
1558 exports[`should work with extensions 1`] = `
1559 <Dropdown
1560   data-test="extensions"
1561   overlay={
1562     <ul
1563       className="menu"
1564     >
1565       <li>
1566         <Link
1567           activeClassName="active"
1568           onlyActiveOnIndex={false}
1569           style={Object {}}
1570           to={
1571             Object {
1572               "pathname": "/project/extension/component-foo",
1573               "query": Object {
1574                 "id": "foo",
1575                 "qualifier": "TRK",
1576               },
1577             }
1578           }
1579         >
1580           ComponentFoo
1581         </Link>
1582       </li>
1583     </ul>
1584   }
1585   tagName="li"
1586 >
1587   <Component />
1588 </Dropdown>
1589 `;
1590
1591 exports[`should work with extensions 2`] = `
1592 <Dropdown
1593   data-test="administration"
1594   overlay={
1595     <ul
1596       className="menu"
1597     >
1598       <li>
1599         <Link
1600           activeClassName="active"
1601           onlyActiveOnIndex={false}
1602           style={Object {}}
1603           to={
1604             Object {
1605               "pathname": "/project/settings",
1606               "query": Object {
1607                 "id": "foo",
1608               },
1609             }
1610           }
1611         >
1612           project_settings.page
1613         </Link>
1614       </li>
1615       <li>
1616         <Link
1617           activeClassName="active"
1618           onlyActiveOnIndex={false}
1619           style={Object {}}
1620           to={
1621             Object {
1622               "pathname": "/project/branches",
1623               "query": Object {
1624                 "id": "foo",
1625               },
1626             }
1627           }
1628         >
1629           project_branch_pull_request.page
1630         </Link>
1631       </li>
1632       <li>
1633         <Link
1634           activeClassName="active"
1635           onlyActiveOnIndex={false}
1636           style={Object {}}
1637           to={
1638             Object {
1639               "pathname": "/project/baseline",
1640               "query": Object {
1641                 "id": "foo",
1642               },
1643             }
1644           }
1645         >
1646           project_baseline.page
1647         </Link>
1648       </li>
1649       <li>
1650         <Link
1651           activeClassName="active"
1652           onlyActiveOnIndex={false}
1653           style={Object {}}
1654           to={
1655             Object {
1656               "pathname": "/project/admin/extension/foo",
1657               "query": Object {
1658                 "id": "foo",
1659                 "qualifier": "TRK",
1660               },
1661             }
1662           }
1663         >
1664           Foo
1665         </Link>
1666       </li>
1667       <li>
1668         <Link
1669           activeClassName="active"
1670           onlyActiveOnIndex={false}
1671           style={Object {}}
1672           to={
1673             Object {
1674               "pathname": "/project/import_export",
1675               "query": Object {
1676                 "id": "foo",
1677               },
1678             }
1679           }
1680         >
1681           project_dump.page
1682         </Link>
1683       </li>
1684       <li>
1685         <Link
1686           activeClassName="active"
1687           onlyActiveOnIndex={false}
1688           style={Object {}}
1689           to={
1690             Object {
1691               "pathname": "/project/webhooks",
1692               "query": Object {
1693                 "id": "foo",
1694               },
1695             }
1696           }
1697         >
1698           webhooks.page
1699         </Link>
1700       </li>
1701       <li>
1702         <Link
1703           activeClassName="active"
1704           onlyActiveOnIndex={false}
1705           style={Object {}}
1706           to={
1707             Object {
1708               "pathname": "/project/deletion",
1709               "query": Object {
1710                 "id": "foo",
1711               },
1712             }
1713           }
1714         >
1715           deletion.page
1716         </Link>
1717       </li>
1718     </ul>
1719   }
1720   tagName="li"
1721 >
1722   <Component />
1723 </Dropdown>
1724 `;
1725
1726 exports[`should work with multiple extensions 1`] = `
1727 <Dropdown
1728   data-test="extensions"
1729   overlay={
1730     <ul
1731       className="menu"
1732     >
1733       <li>
1734         <Link
1735           activeClassName="active"
1736           onlyActiveOnIndex={false}
1737           style={Object {}}
1738           to={
1739             Object {
1740               "pathname": "/project/extension/component-foo",
1741               "query": Object {
1742                 "id": "foo",
1743                 "qualifier": "TRK",
1744               },
1745             }
1746           }
1747         >
1748           ComponentFoo
1749         </Link>
1750       </li>
1751       <li>
1752         <Link
1753           activeClassName="active"
1754           onlyActiveOnIndex={false}
1755           style={Object {}}
1756           to={
1757             Object {
1758               "pathname": "/project/extension/component-bar",
1759               "query": Object {
1760                 "id": "foo",
1761                 "qualifier": "TRK",
1762               },
1763             }
1764           }
1765         >
1766           ComponentBar
1767         </Link>
1768       </li>
1769     </ul>
1770   }
1771   tagName="li"
1772 >
1773   <Component />
1774 </Dropdown>
1775 `;
1776
1777 exports[`should work with multiple extensions 2`] = `
1778 <Dropdown
1779   data-test="administration"
1780   overlay={
1781     <ul
1782       className="menu"
1783     >
1784       <li>
1785         <Link
1786           activeClassName="active"
1787           onlyActiveOnIndex={false}
1788           style={Object {}}
1789           to={
1790             Object {
1791               "pathname": "/project/settings",
1792               "query": Object {
1793                 "id": "foo",
1794               },
1795             }
1796           }
1797         >
1798           project_settings.page
1799         </Link>
1800       </li>
1801       <li>
1802         <Link
1803           activeClassName="active"
1804           onlyActiveOnIndex={false}
1805           style={Object {}}
1806           to={
1807             Object {
1808               "pathname": "/project/branches",
1809               "query": Object {
1810                 "id": "foo",
1811               },
1812             }
1813           }
1814         >
1815           project_branch_pull_request.page
1816         </Link>
1817       </li>
1818       <li>
1819         <Link
1820           activeClassName="active"
1821           onlyActiveOnIndex={false}
1822           style={Object {}}
1823           to={
1824             Object {
1825               "pathname": "/project/baseline",
1826               "query": Object {
1827                 "id": "foo",
1828               },
1829             }
1830           }
1831         >
1832           project_baseline.page
1833         </Link>
1834       </li>
1835       <li>
1836         <Link
1837           activeClassName="active"
1838           onlyActiveOnIndex={false}
1839           style={Object {}}
1840           to={
1841             Object {
1842               "pathname": "/project/admin/extension/foo",
1843               "query": Object {
1844                 "id": "foo",
1845                 "qualifier": "TRK",
1846               },
1847             }
1848           }
1849         >
1850           Foo
1851         </Link>
1852       </li>
1853       <li>
1854         <Link
1855           activeClassName="active"
1856           onlyActiveOnIndex={false}
1857           style={Object {}}
1858           to={
1859             Object {
1860               "pathname": "/project/admin/extension/bar",
1861               "query": Object {
1862                 "id": "foo",
1863                 "qualifier": "TRK",
1864               },
1865             }
1866           }
1867         >
1868           Bar
1869         </Link>
1870       </li>
1871       <li>
1872         <Link
1873           activeClassName="active"
1874           onlyActiveOnIndex={false}
1875           style={Object {}}
1876           to={
1877             Object {
1878               "pathname": "/project/import_export",
1879               "query": Object {
1880                 "id": "foo",
1881               },
1882             }
1883           }
1884         >
1885           project_dump.page
1886         </Link>
1887       </li>
1888       <li>
1889         <Link
1890           activeClassName="active"
1891           onlyActiveOnIndex={false}
1892           style={Object {}}
1893           to={
1894             Object {
1895               "pathname": "/project/webhooks",
1896               "query": Object {
1897                 "id": "foo",
1898               },
1899             }
1900           }
1901         >
1902           webhooks.page
1903         </Link>
1904       </li>
1905       <li>
1906         <Link
1907           activeClassName="active"
1908           onlyActiveOnIndex={false}
1909           style={Object {}}
1910           to={
1911             Object {
1912               "pathname": "/project/deletion",
1913               "query": Object {
1914                 "id": "foo",
1915               },
1916             }
1917           }
1918         >
1919           deletion.page
1920         </Link>
1921       </li>
1922     </ul>
1923   }
1924   tagName="li"
1925 >
1926   <Component />
1927 </Dropdown>
1928 `;