]> source.dussan.org Git - sonarqube.git/blob
d5a3413b98b24749dfdf49cc02e0f00390198636
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`admin 1`] = `
4 <ContextNavBar
5   height={65}
6   id="context-navigation"
7 >
8   <div
9     className="navbar-context-header"
10   >
11     <h1
12       className="display-inline-block"
13     >
14       <OrganizationIcon
15         className="little-spacer-right"
16       />
17       <Link
18         className="link-base-color link-no-underline"
19         onlyActiveOnIndex={false}
20         style={Object {}}
21         to="/organizations/foo"
22       >
23         <strong>
24           Foo
25         </strong>
26       </Link>
27     </h1>
28   </div>
29   <div
30     className="navbar-context-meta"
31   />
32   <NavBarTabs>
33     <li>
34       <Link
35         className=""
36         onlyActiveOnIndex={false}
37         style={Object {}}
38         to="/organizations/foo/projects"
39       >
40         projects.page
41       </Link>
42     </li>
43     <li>
44       <Link
45         activeClassName="active"
46         onlyActiveOnIndex={false}
47         style={Object {}}
48         to={
49           Object {
50             "pathname": "/organizations/foo/issues",
51             "query": Object {
52               "resolved": "false",
53             },
54           }
55         }
56       >
57         issues.page
58       </Link>
59     </li>
60     <li>
61       <Link
62         activeClassName="active"
63         onlyActiveOnIndex={false}
64         style={Object {}}
65         to="/organizations/foo/quality_profiles"
66       >
67         quality_profiles.page
68       </Link>
69     </li>
70     <li>
71       <Link
72         activeClassName="active"
73         onlyActiveOnIndex={false}
74         style={Object {}}
75         to="/organizations/foo/rules"
76       >
77         coding_rules.page
78       </Link>
79     </li>
80     <li>
81       <Link
82         activeClassName="active"
83         onlyActiveOnIndex={false}
84         style={Object {}}
85         to={
86           Object {
87             "pathname": "/organizations/foo/quality_gates",
88           }
89         }
90       >
91         quality_gates.page
92       </Link>
93     </li>
94     <li>
95       <Link
96         activeClassName="active"
97         onlyActiveOnIndex={false}
98         style={Object {}}
99         to="/organizations/foo/members"
100       >
101         organization.members.page
102       </Link>
103     </li>
104     <li
105       className="dropdown"
106     >
107       <a
108         className="dropdown-toggle is-admin"
109         data-toggle="dropdown"
110         href="#"
111       >
112         layout.settings
113          
114         <i
115           className="icon-dropdown"
116         />
117       </a>
118       <ul
119         className="dropdown-menu"
120       >
121         <li>
122           <Link
123             activeClassName="active"
124             onlyActiveOnIndex={false}
125             style={Object {}}
126             to="/organizations/foo/groups"
127           >
128             user_groups.page
129           </Link>
130         </li>
131         <li>
132           <Link
133             activeClassName="active"
134             onlyActiveOnIndex={false}
135             style={Object {}}
136             to="/organizations/foo/permissions"
137           >
138             permissions.page
139           </Link>
140         </li>
141         <li>
142           <Link
143             activeClassName="active"
144             onlyActiveOnIndex={false}
145             style={Object {}}
146             to="/organizations/foo/permission_templates"
147           >
148             permission_templates
149           </Link>
150         </li>
151         <li>
152           <Link
153             activeClassName="active"
154             onlyActiveOnIndex={false}
155             style={Object {}}
156             to="/organizations/foo/projects_management"
157           >
158             projects_management
159           </Link>
160         </li>
161         <li>
162           <Link
163             activeClassName="active"
164             onlyActiveOnIndex={false}
165             style={Object {}}
166             to="/organizations/foo/edit"
167           >
168             edit
169           </Link>
170         </li>
171         <li>
172           <Link
173             activeClassName="active"
174             onlyActiveOnIndex={false}
175             style={Object {}}
176             to="/organizations/foo/delete"
177           >
178             delete
179           </Link>
180         </li>
181       </ul>
182     </li>
183   </NavBarTabs>
184 </ContextNavBar>
185 `;
186
187 exports[`regular user 1`] = `
188 <ContextNavBar
189   height={65}
190   id="context-navigation"
191 >
192   <div
193     className="navbar-context-header"
194   >
195     <h1
196       className="display-inline-block"
197     >
198       <OrganizationIcon
199         className="little-spacer-right"
200       />
201       <Link
202         className="link-base-color link-no-underline"
203         onlyActiveOnIndex={false}
204         style={Object {}}
205         to="/organizations/foo"
206       >
207         <strong>
208           Foo
209         </strong>
210       </Link>
211     </h1>
212   </div>
213   <div
214     className="navbar-context-meta"
215   />
216   <NavBarTabs>
217     <li>
218       <Link
219         className=""
220         onlyActiveOnIndex={false}
221         style={Object {}}
222         to="/organizations/foo/projects"
223       >
224         projects.page
225       </Link>
226     </li>
227     <li>
228       <Link
229         activeClassName="active"
230         onlyActiveOnIndex={false}
231         style={Object {}}
232         to={
233           Object {
234             "pathname": "/organizations/foo/issues",
235             "query": Object {
236               "resolved": "false",
237             },
238           }
239         }
240       >
241         issues.page
242       </Link>
243     </li>
244     <li>
245       <Link
246         activeClassName="active"
247         onlyActiveOnIndex={false}
248         style={Object {}}
249         to="/organizations/foo/quality_profiles"
250       >
251         quality_profiles.page
252       </Link>
253     </li>
254     <li>
255       <Link
256         activeClassName="active"
257         onlyActiveOnIndex={false}
258         style={Object {}}
259         to="/organizations/foo/rules"
260       >
261         coding_rules.page
262       </Link>
263     </li>
264     <li>
265       <Link
266         activeClassName="active"
267         onlyActiveOnIndex={false}
268         style={Object {}}
269         to={
270           Object {
271             "pathname": "/organizations/foo/quality_gates",
272           }
273         }
274       >
275         quality_gates.page
276       </Link>
277     </li>
278     <li>
279       <Link
280         activeClassName="active"
281         onlyActiveOnIndex={false}
282         style={Object {}}
283         to="/organizations/foo/members"
284       >
285         organization.members.page
286       </Link>
287     </li>
288   </NavBarTabs>
289 </ContextNavBar>
290 `;
291
292 exports[`undeletable org 1`] = `
293 <ContextNavBar
294   height={65}
295   id="context-navigation"
296 >
297   <div
298     className="navbar-context-header"
299   >
300     <h1
301       className="display-inline-block"
302     >
303       <OrganizationIcon
304         className="little-spacer-right"
305       />
306       <Link
307         className="link-base-color link-no-underline"
308         onlyActiveOnIndex={false}
309         style={Object {}}
310         to="/organizations/foo"
311       >
312         <strong>
313           Foo
314         </strong>
315       </Link>
316     </h1>
317   </div>
318   <div
319     className="navbar-context-meta"
320   />
321   <NavBarTabs>
322     <li>
323       <Link
324         className=""
325         onlyActiveOnIndex={false}
326         style={Object {}}
327         to="/organizations/foo/projects"
328       >
329         projects.page
330       </Link>
331     </li>
332     <li>
333       <Link
334         activeClassName="active"
335         onlyActiveOnIndex={false}
336         style={Object {}}
337         to={
338           Object {
339             "pathname": "/organizations/foo/issues",
340             "query": Object {
341               "resolved": "false",
342             },
343           }
344         }
345       >
346         issues.page
347       </Link>
348     </li>
349     <li>
350       <Link
351         activeClassName="active"
352         onlyActiveOnIndex={false}
353         style={Object {}}
354         to="/organizations/foo/quality_profiles"
355       >
356         quality_profiles.page
357       </Link>
358     </li>
359     <li>
360       <Link
361         activeClassName="active"
362         onlyActiveOnIndex={false}
363         style={Object {}}
364         to="/organizations/foo/rules"
365       >
366         coding_rules.page
367       </Link>
368     </li>
369     <li>
370       <Link
371         activeClassName="active"
372         onlyActiveOnIndex={false}
373         style={Object {}}
374         to={
375           Object {
376             "pathname": "/organizations/foo/quality_gates",
377           }
378         }
379       >
380         quality_gates.page
381       </Link>
382     </li>
383     <li>
384       <Link
385         activeClassName="active"
386         onlyActiveOnIndex={false}
387         style={Object {}}
388         to="/organizations/foo/members"
389       >
390         organization.members.page
391       </Link>
392     </li>
393     <li
394       className="dropdown"
395     >
396       <a
397         className="dropdown-toggle is-admin"
398         data-toggle="dropdown"
399         href="#"
400       >
401         layout.settings
402          
403         <i
404           className="icon-dropdown"
405         />
406       </a>
407       <ul
408         className="dropdown-menu"
409       >
410         <li>
411           <Link
412             activeClassName="active"
413             onlyActiveOnIndex={false}
414             style={Object {}}
415             to="/organizations/foo/groups"
416           >
417             user_groups.page
418           </Link>
419         </li>
420         <li>
421           <Link
422             activeClassName="active"
423             onlyActiveOnIndex={false}
424             style={Object {}}
425             to="/organizations/foo/permissions"
426           >
427             permissions.page
428           </Link>
429         </li>
430         <li>
431           <Link
432             activeClassName="active"
433             onlyActiveOnIndex={false}
434             style={Object {}}
435             to="/organizations/foo/permission_templates"
436           >
437             permission_templates
438           </Link>
439         </li>
440         <li>
441           <Link
442             activeClassName="active"
443             onlyActiveOnIndex={false}
444             style={Object {}}
445             to="/organizations/foo/projects_management"
446           >
447             projects_management
448           </Link>
449         </li>
450         <li>
451           <Link
452             activeClassName="active"
453             onlyActiveOnIndex={false}
454             style={Object {}}
455             to="/organizations/foo/edit"
456           >
457             edit
458           </Link>
459         </li>
460       </ul>
461     </li>
462   </NavBarTabs>
463 </ContextNavBar>
464 `;