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