1// Jest Snapshot v1, https://goo.gl/fbAQLP
2
3exports[`Render should render team members when sync enabled 1`] = `
4<tr
5  key="1"
6>
7  <td
8    className="width-4 text-center"
9  >
10    <img
11      aria-label="Avatar for team member \\"testName\\""
12      className="filter-table__avatar"
13      src="some/url/"
14    />
15  </td>
16  <td>
17    testUser
18  </td>
19  <td>
20    test@test.com
21  </td>
22  <td>
23    testName
24  </td>
25  <WithFeatureToggle
26    featureToggle={false}
27  >
28    <td
29      className="width-5 team-permissions"
30    >
31      <div
32        className="gf-form"
33      >
34        <span>
35          Member
36        </span>
37      </div>
38    </td>
39  </WithFeatureToggle>
40  <td>
41    <TagBadge
42      count={0}
43      key="LDAP"
44      label="LDAP"
45      onClick={[Function]}
46      removeIcon={false}
47    />
48  </td>
49  <td
50    className="text-right"
51  >
52    <DeleteButton
53      aria-label="Remove team member"
54      disabled={true}
55      onConfirm={[Function]}
56      size="sm"
57    />
58  </td>
59</tr>
60`;
61
62exports[`Render when feature toggle editorsCanAdmin is turned off should not render permissions 1`] = `
63<tr
64  key="1"
65>
66  <td
67    className="width-4 text-center"
68  >
69    <img
70      aria-label="Avatar for team member \\"testName\\""
71      className="filter-table__avatar"
72      src="some/url/"
73    />
74  </td>
75  <td>
76    testUser
77  </td>
78  <td>
79    test@test.com
80  </td>
81  <td>
82    testName
83  </td>
84  <WithFeatureToggle
85    featureToggle={false}
86  >
87    <td
88      className="width-5 team-permissions"
89    >
90      <div
91        className="gf-form"
92      >
93        <Select
94          allowCustomValue={false}
95          autoFocus={false}
96          backspaceRemovesValue={true}
97          className="gf-form-select-box__control--menu-right"
98          components={
99            Object {
100              "Group": [Function],
101              "IndicatorsContainer": [Function],
102              "MenuList": [Function],
103              "Option": [Function],
104              "SingleValue": [Function],
105            }
106          }
107          isClearable={false}
108          isDisabled={false}
109          isLoading={false}
110          isMulti={false}
111          isSearchable={false}
112          maxMenuHeight={300}
113          menuShouldPortal={true}
114          onChange={[Function]}
115          openMenuOnFocus={false}
116          options={
117            Array [
118              Object {
119                "description": "Is team member",
120                "label": "Member",
121                "value": 0,
122              },
123              Object {
124                "description": "Can add/remove permissions, members and delete team.",
125                "label": "Admin",
126                "value": 4,
127              },
128            ]
129          }
130          tabSelectsValue={true}
131          value={
132            Object {
133              "description": "Is team member",
134              "label": "Member",
135              "value": 0,
136            }
137          }
138        />
139      </div>
140    </td>
141  </WithFeatureToggle>
142  <td
143    className="text-right"
144  >
145    <DeleteButton
146      aria-label="Remove team member"
147      disabled={false}
148      onConfirm={[Function]}
149      size="sm"
150    />
151  </td>
152</tr>
153`;
154
155exports[`Render when feature toggle editorsCanAdmin is turned on should render permissions select if user is team admin 1`] = `
156<tr
157  key="1"
158>
159  <td
160    className="width-4 text-center"
161  >
162    <img
163      aria-label="Avatar for team member \\"testName\\""
164      className="filter-table__avatar"
165      src="some/url/"
166    />
167  </td>
168  <td>
169    testUser
170  </td>
171  <td>
172    test@test.com
173  </td>
174  <td>
175    testName
176  </td>
177  <WithFeatureToggle
178    featureToggle={true}
179  >
180    <td
181      className="width-5 team-permissions"
182    >
183      <div
184        className="gf-form"
185      >
186        <Select
187          allowCustomValue={false}
188          autoFocus={false}
189          backspaceRemovesValue={true}
190          className="gf-form-select-box__control--menu-right"
191          components={
192            Object {
193              "Group": [Function],
194              "IndicatorsContainer": [Function],
195              "MenuList": [Function],
196              "Option": [Function],
197              "SingleValue": [Function],
198            }
199          }
200          isClearable={false}
201          isDisabled={false}
202          isLoading={false}
203          isMulti={false}
204          isSearchable={false}
205          maxMenuHeight={300}
206          menuShouldPortal={true}
207          onChange={[Function]}
208          openMenuOnFocus={false}
209          options={
210            Array [
211              Object {
212                "description": "Is team member",
213                "label": "Member",
214                "value": 0,
215              },
216              Object {
217                "description": "Can add/remove permissions, members and delete team.",
218                "label": "Admin",
219                "value": 4,
220              },
221            ]
222          }
223          tabSelectsValue={true}
224          value={
225            Object {
226              "description": "Is team member",
227              "label": "Member",
228              "value": 0,
229            }
230          }
231        />
232      </div>
233    </td>
234  </WithFeatureToggle>
235  <td
236    className="text-right"
237  >
238    <DeleteButton
239      aria-label="Remove team member"
240      disabled={false}
241      onConfirm={[Function]}
242      size="sm"
243    />
244  </td>
245</tr>
246`;
247
248exports[`Render when feature toggle editorsCanAdmin is turned on should render span and disable buttons if user is team member 1`] = `
249<tr
250  key="1"
251>
252  <td
253    className="width-4 text-center"
254  >
255    <img
256      aria-label="Avatar for team member \\"testName\\""
257      className="filter-table__avatar"
258      src="some/url/"
259    />
260  </td>
261  <td>
262    testUser
263  </td>
264  <td>
265    test@test.com
266  </td>
267  <td>
268    testName
269  </td>
270  <WithFeatureToggle
271    featureToggle={true}
272  >
273    <td
274      className="width-5 team-permissions"
275    >
276      <div
277        className="gf-form"
278      >
279        <span>
280          Member
281        </span>
282      </div>
283    </td>
284  </WithFeatureToggle>
285  <td
286    className="text-right"
287  >
288    <DeleteButton
289      aria-label="Remove team member"
290      disabled={true}
291      onConfirm={[Function]}
292      size="sm"
293    />
294  </td>
295</tr>
296`;
297