]> source.dussan.org Git - sonarqube.git/blob
9a13da1aa2137bfba1064a56e4b836cb6100cc56
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should not render actions for non admin 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <HelmetWrapper
8     defer={true}
9     encodeSpecialCharacters={true}
10     title="organization.members.page"
11   />
12   <MembersPageHeader
13     total={2}
14   />
15   <MembersListHeader
16     handleSearch={[Function]}
17     total={2}
18   />
19   <MembersList
20     members={
21       Array [
22         Object {
23           "avatar": "",
24           "groupCount": 3,
25           "login": "admin",
26           "name": "Admin Istrator",
27         },
28         Object {
29           "avatar": "7daf6c79d4802916d83f6266e24850af",
30           "groupCount": 1,
31           "login": "john",
32           "name": "John Doe",
33         },
34       ]
35     }
36     organization={
37       Object {
38         "key": "foo",
39         "name": "Foo",
40       }
41     }
42     removeMember={[Function]}
43     updateMemberGroups={[Function]}
44   />
45   <ListFooter
46     count={2}
47     loadMore={[Function]}
48     ready={true}
49     total={2}
50   />
51 </div>
52 `;
53
54 exports[`should render actions for admin 1`] = `
55 <div
56   className="page page-limited"
57 >
58   <HelmetWrapper
59     defer={true}
60     encodeSpecialCharacters={true}
61     title="organization.members.page"
62   />
63   <MembersPageHeader
64     loading={true}
65     total={2}
66   >
67     <div
68       className="page-actions"
69     >
70       <div
71         className="button-group"
72       >
73         <AddMemberForm
74           addMember={[Function]}
75           organization={
76             Object {
77               "canAdmin": true,
78               "key": "foo",
79               "name": "Foo",
80             }
81           }
82         />
83       </div>
84     </div>
85   </MembersPageHeader>
86   <MembersListHeader
87     handleSearch={[Function]}
88     total={2}
89   />
90   <MembersList
91     members={
92       Array [
93         Object {
94           "avatar": "",
95           "groupCount": 3,
96           "login": "admin",
97           "name": "Admin Istrator",
98         },
99         Object {
100           "avatar": "7daf6c79d4802916d83f6266e24850af",
101           "groupCount": 1,
102           "login": "john",
103           "name": "John Doe",
104         },
105       ]
106     }
107     organization={
108       Object {
109         "canAdmin": true,
110         "key": "foo",
111         "name": "Foo",
112       }
113     }
114     removeMember={[Function]}
115     updateMemberGroups={[Function]}
116   />
117   <ListFooter
118     count={2}
119     loadMore={[Function]}
120     ready={false}
121     total={2}
122   />
123 </div>
124 `;