]> source.dussan.org Git - sonarqube.git/blob
5017c675591a9fc83e26f1980b0a10ab29498d63
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="page page-limited"
6 >
7   <Suggestions
8     suggestions="global_permissions"
9   />
10   <Helmet
11     defer={false}
12     encodeSpecialCharacters={true}
13     prioritizeSeoTags={false}
14     title="global_permissions.permission"
15   />
16   <PageHeader
17     loading={true}
18   />
19   <AllHoldersList
20     filter="all"
21     grantPermissionToGroup={[Function]}
22     grantPermissionToUser={[Function]}
23     groups={[]}
24     loading={true}
25     onFilter={[Function]}
26     onLoadMore={[Function]}
27     onQuery={[Function]}
28     permissions={
29       [
30         {
31           "description": "global_permissions.admin.desc",
32           "key": "admin",
33           "name": "global_permissions.admin",
34         },
35         {
36           "category": "administer",
37           "permissions": [
38             {
39               "description": "global_permissions.gateadmin.desc",
40               "key": "gateadmin",
41               "name": "global_permissions.gateadmin",
42             },
43             {
44               "description": "global_permissions.profileadmin.desc",
45               "key": "profileadmin",
46               "name": "global_permissions.profileadmin",
47             },
48           ],
49         },
50         {
51           "description": "global_permissions.scan.desc",
52           "key": "scan",
53           "name": "global_permissions.scan",
54         },
55         {
56           "category": "creator",
57           "permissions": [
58             {
59               "description": "global_permissions.provisioning.desc",
60               "key": "provisioning",
61               "name": "global_permissions.provisioning",
62             },
63           ],
64         },
65       ]
66     }
67     query=""
68     revokePermissionFromGroup={[Function]}
69     revokePermissionFromUser={[Function]}
70     users={[]}
71   />
72 </div>
73 `;
74
75 exports[`should render correctly 2`] = `
76 <div
77   className="page page-limited"
78 >
79   <Suggestions
80     suggestions="global_permissions"
81   />
82   <Helmet
83     defer={false}
84     encodeSpecialCharacters={true}
85     prioritizeSeoTags={false}
86     title="global_permissions.permission"
87   />
88   <PageHeader
89     loading={false}
90   />
91   <AllHoldersList
92     filter="all"
93     grantPermissionToGroup={[Function]}
94     grantPermissionToUser={[Function]}
95     groups={
96       [
97         {
98           "name": "Anyone",
99           "permissions": [
100             "admin",
101             "codeviewer",
102             "issueadmin",
103           ],
104         },
105         {
106           "description": "SonarSource team",
107           "id": "1",
108           "name": "SonarSource",
109           "permissions": [],
110         },
111       ]
112     }
113     groupsPaging={
114       {
115         "pageIndex": 1,
116         "pageSize": 100,
117         "total": 2,
118       }
119     }
120     loading={false}
121     onFilter={[Function]}
122     onLoadMore={[Function]}
123     onQuery={[Function]}
124     permissions={
125       [
126         {
127           "description": "global_permissions.admin.desc",
128           "key": "admin",
129           "name": "global_permissions.admin",
130         },
131         {
132           "category": "administer",
133           "permissions": [
134             {
135               "description": "global_permissions.gateadmin.desc",
136               "key": "gateadmin",
137               "name": "global_permissions.gateadmin",
138             },
139             {
140               "description": "global_permissions.profileadmin.desc",
141               "key": "profileadmin",
142               "name": "global_permissions.profileadmin",
143             },
144           ],
145         },
146         {
147           "description": "global_permissions.scan.desc",
148           "key": "scan",
149           "name": "global_permissions.scan",
150         },
151         {
152           "category": "creator",
153           "permissions": [
154             {
155               "description": "global_permissions.provisioning.desc",
156               "key": "provisioning",
157               "name": "global_permissions.provisioning",
158             },
159           ],
160         },
161       ]
162     }
163     query=""
164     revokePermissionFromGroup={[Function]}
165     revokePermissionFromUser={[Function]}
166     users={
167       [
168         {
169           "avatar": "admin-avatar",
170           "email": "admin@gmail.com",
171           "login": "admin",
172           "name": "Admin Admin",
173           "permissions": [
174             "admin",
175           ],
176         },
177         {
178           "avatar": "user-avatar-1",
179           "email": "user1@gmail.com",
180           "login": "user1",
181           "name": "User Number 1",
182           "permissions": [],
183         },
184         {
185           "avatar": "user-avatar-2",
186           "email": "user2@gmail.com",
187           "login": "user2",
188           "name": "User Number 2",
189           "permissions": [],
190         },
191       ]
192     }
193     usersPaging={
194       {
195         "pageIndex": 1,
196         "pageSize": 100,
197         "total": 3,
198       }
199     }
200   />
201 </div>
202 `;