]> source.dussan.org Git - sonarqube.git/blob
f42167519ef26df98e152ef5aa1b530b39eea3f1
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render the users organizations when they are not activated 1`] = `
4 <li
5   className="dropdown js-user-authenticated open"
6 >
7   <a
8     className="dropdown-toggle navbar-avatar"
9     href="#"
10     onClick={[Function]}
11   >
12     <Connect(Avatar)
13       email="foo@bar.baz"
14       name="foo"
15       size={24}
16     />
17   </a>
18   <ul
19     className="dropdown-menu dropdown-menu-right"
20   >
21     <li
22       className="dropdown-item"
23     >
24       <div
25         className="text-ellipsis text-muted"
26         title="foo"
27       >
28         <strong>
29           foo
30         </strong>
31       </div>
32       <div
33         className="little-spacer-top text-ellipsis text-muted"
34         title="foo@bar.baz"
35       >
36         foo@bar.baz
37       </div>
38     </li>
39     <li
40       className="divider"
41     />
42     <li>
43       <Link
44         onClick={[Function]}
45         onlyActiveOnIndex={false}
46         style={Object {}}
47         to="/account"
48       >
49         my_account.page
50       </Link>
51     </li>
52     <li>
53       <a
54         href="#"
55         onClick={[Function]}
56       >
57         layout.logout
58       </a>
59     </li>
60   </ul>
61 </li>
62 `;
63
64 exports[`should render the right interface for anonymous user 1`] = `
65 <li>
66   <a
67     className="navbar-login"
68     href="#"
69     onClick={[Function]}
70   >
71     layout.login
72   </a>
73 </li>
74 `;
75
76 exports[`should render the right interface for logged in user 1`] = `
77 <li
78   className="dropdown js-user-authenticated open"
79 >
80   <a
81     className="dropdown-toggle navbar-avatar"
82     href="#"
83     onClick={[Function]}
84   >
85     <Connect(Avatar)
86       email="foo@bar.baz"
87       name="foo"
88       size={24}
89     />
90   </a>
91   <ul
92     className="dropdown-menu dropdown-menu-right"
93   >
94     <li
95       className="dropdown-item"
96     >
97       <div
98         className="text-ellipsis text-muted"
99         title="foo"
100       >
101         <strong>
102           foo
103         </strong>
104       </div>
105       <div
106         className="little-spacer-top text-ellipsis text-muted"
107         title="foo@bar.baz"
108       >
109         foo@bar.baz
110       </div>
111     </li>
112     <li
113       className="divider"
114     />
115     <li>
116       <Link
117         onClick={[Function]}
118         onlyActiveOnIndex={false}
119         style={Object {}}
120         to="/account"
121       >
122         my_account.page
123       </Link>
124     </li>
125     <li>
126       <a
127         href="#"
128         onClick={[Function]}
129       >
130         layout.logout
131       </a>
132     </li>
133   </ul>
134 </li>
135 `;
136
137 exports[`should render the users organizations 1`] = `
138 <li
139   className="dropdown js-user-authenticated open"
140 >
141   <a
142     className="dropdown-toggle navbar-avatar"
143     href="#"
144     onClick={[Function]}
145   >
146     <Connect(Avatar)
147       email="foo@bar.baz"
148       name="foo"
149       size={24}
150     />
151   </a>
152   <ul
153     className="dropdown-menu dropdown-menu-right"
154   >
155     <li
156       className="dropdown-item"
157     >
158       <div
159         className="text-ellipsis text-muted"
160         title="foo"
161       >
162         <strong>
163           foo
164         </strong>
165       </div>
166       <div
167         className="little-spacer-top text-ellipsis text-muted"
168         title="foo@bar.baz"
169       >
170         foo@bar.baz
171       </div>
172     </li>
173     <li
174       className="divider"
175     />
176     <li>
177       <Link
178         onClick={[Function]}
179         onlyActiveOnIndex={false}
180         style={Object {}}
181         to="/account"
182       >
183         my_account.page
184       </Link>
185     </li>
186     <li
187       className="divider"
188       role="separator"
189     />
190     <li
191       className="dropdown-header spacer-left"
192     >
193       my_organizations
194     </li>
195     <li>
196       <OrganizationLink
197         onClick={[Function]}
198         organization={
199           Object {
200             "key": "bar",
201             "name": "bar",
202           }
203         }
204       >
205         <span
206           className="spacer-left"
207         >
208           bar
209         </span>
210       </OrganizationLink>
211     </li>
212     <li>
213       <OrganizationLink
214         onClick={[Function]}
215         organization={
216           Object {
217             "key": "foo",
218             "name": "Foo",
219           }
220         }
221       >
222         <span
223           className="spacer-left"
224         >
225           Foo
226         </span>
227       </OrganizationLink>
228     </li>
229     <li>
230       <OrganizationLink
231         onClick={[Function]}
232         organization={
233           Object {
234             "key": "myorg",
235             "name": "MyOrg",
236           }
237         }
238       >
239         <span
240           className="spacer-left"
241         >
242           MyOrg
243         </span>
244       </OrganizationLink>
245     </li>
246     <li
247       className="divider"
248       role="separator"
249     />
250     <li>
251       <a
252         href="#"
253         onClick={[Function]}
254       >
255         layout.logout
256       </a>
257     </li>
258   </ul>
259 </li>
260 `;
261
262 exports[`should update the component correctly when the user changes to anonymous 1`] = `
263 <li
264   className="dropdown js-user-authenticated open"
265 >
266   <a
267     className="dropdown-toggle navbar-avatar"
268     href="#"
269     onClick={[Function]}
270   >
271     <Connect(Avatar)
272       email="foo@bar.baz"
273       name="foo"
274       size={24}
275     />
276   </a>
277   <ul
278     className="dropdown-menu dropdown-menu-right"
279   >
280     <li
281       className="dropdown-item"
282     >
283       <div
284         className="text-ellipsis text-muted"
285         title="foo"
286       >
287         <strong>
288           foo
289         </strong>
290       </div>
291       <div
292         className="little-spacer-top text-ellipsis text-muted"
293         title="foo@bar.baz"
294       >
295         foo@bar.baz
296       </div>
297     </li>
298     <li
299       className="divider"
300     />
301     <li>
302       <Link
303         onClick={[Function]}
304         onlyActiveOnIndex={false}
305         style={Object {}}
306         to="/account"
307       >
308         my_account.page
309       </Link>
310     </li>
311     <li>
312       <a
313         href="#"
314         onClick={[Function]}
315       >
316         layout.logout
317       </a>
318     </li>
319   </ul>
320 </li>
321 `;
322
323 exports[`should update the component correctly when the user changes to anonymous 2`] = `
324 <li>
325   <a
326     className="navbar-login"
327     href="#"
328     onClick={[Function]}
329   >
330     layout.login
331   </a>
332 </li>
333 `;