]> source.dussan.org Git - sonarqube.git/blob
a56353133711c7170d0852834c2eaf153dc34528
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should groups at 0 if the groupCount field is not defined (just added user) 1`] = `
4 <tr>
5   <td
6     className="thin nowrap"
7   >
8     <Connect(Avatar)
9       hash="7daf6c79d4802916d83f6266e24850af"
10       name="John Doe"
11       size={36}
12     />
13   </td>
14   <td
15     className="nowrap text-middle"
16   >
17     <strong>
18       John Doe
19     </strong>
20     <span
21       className="note little-spacer-left"
22     >
23       john
24     </span>
25   </td>
26   <td
27     className="text-right text-middle"
28   >
29     organization.members.x_groups.0
30   </td>
31   <td
32     className="nowrap text-middle text-right"
33   >
34     <div
35       className="dropdown"
36     >
37       <button
38         className="dropdown-toggle little-spacer-right"
39         data-toggle="dropdown"
40       >
41         <i
42           className="icon-settings"
43         />
44          
45         <i
46           className="icon-dropdown"
47         />
48       </button>
49       <ul
50         className="dropdown-menu dropdown-menu-right"
51       >
52         <li>
53           <ManageMemberGroupsForm
54             member={
55               Object {
56                 "avatar": "7daf6c79d4802916d83f6266e24850af",
57                 "login": "john",
58                 "name": "John Doe",
59               }
60             }
61             organization={
62               Object {
63                 "canAdmin": true,
64                 "key": "foo",
65                 "name": "Foo",
66               }
67             }
68           />
69         </li>
70         <li
71           className="divider"
72           role="separator"
73         />
74         <li>
75           <RemoveMemberForm
76             member={
77               Object {
78                 "avatar": "7daf6c79d4802916d83f6266e24850af",
79                 "login": "john",
80                 "name": "John Doe",
81               }
82             }
83             organization={
84               Object {
85                 "canAdmin": true,
86                 "key": "foo",
87                 "name": "Foo",
88               }
89             }
90           />
91         </li>
92       </ul>
93     </div>
94   </td>
95 </tr>
96 `;
97
98 exports[`should not render actions and groups for non admin 1`] = `
99 <tr>
100   <td
101     className="thin nowrap"
102   >
103     <Connect(Avatar)
104       hash=""
105       name="Admin Istrator"
106       size={36}
107     />
108   </td>
109   <td
110     className="nowrap text-middle"
111   >
112     <strong>
113       Admin Istrator
114     </strong>
115     <span
116       className="note little-spacer-left"
117     >
118       admin
119     </span>
120   </td>
121 </tr>
122 `;
123
124 exports[`should render actions and groups for admin 1`] = `
125 <tr>
126   <td
127     className="thin nowrap"
128   >
129     <Connect(Avatar)
130       hash=""
131       name="Admin Istrator"
132       size={36}
133     />
134   </td>
135   <td
136     className="nowrap text-middle"
137   >
138     <strong>
139       Admin Istrator
140     </strong>
141     <span
142       className="note little-spacer-left"
143     >
144       admin
145     </span>
146   </td>
147   <td
148     className="text-right text-middle"
149   >
150     organization.members.x_groups.3
151   </td>
152   <td
153     className="nowrap text-middle text-right"
154   >
155     <div
156       className="dropdown"
157     >
158       <button
159         className="dropdown-toggle little-spacer-right"
160         data-toggle="dropdown"
161       >
162         <i
163           className="icon-settings"
164         />
165          
166         <i
167           className="icon-dropdown"
168         />
169       </button>
170       <ul
171         className="dropdown-menu dropdown-menu-right"
172       >
173         <li>
174           <ManageMemberGroupsForm
175             member={
176               Object {
177                 "avatar": "",
178                 "groupCount": 3,
179                 "login": "admin",
180                 "name": "Admin Istrator",
181               }
182             }
183             organization={
184               Object {
185                 "canAdmin": true,
186                 "key": "foo",
187                 "name": "Foo",
188               }
189             }
190           />
191         </li>
192         <li
193           className="divider"
194           role="separator"
195         />
196         <li>
197           <RemoveMemberForm
198             member={
199               Object {
200                 "avatar": "",
201                 "groupCount": 3,
202                 "login": "admin",
203                 "name": "Admin Istrator",
204               }
205             }
206             organization={
207               Object {
208                 "canAdmin": true,
209                 "key": "foo",
210                 "name": "Foo",
211               }
212             }
213           />
214         </li>
215       </ul>
216     </div>
217   </td>
218 </tr>
219 `;