2018-09-11 14:14:03 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
|
|
exports[`Render should render component 1`] = `
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
className="page-action-bar"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="gf-form gf-form--grow"
|
|
|
|
|
>
|
2020-12-03 15:05:59 +00:00
|
|
|
<FilterInput
|
2019-02-12 16:31:11 +01:00
|
|
|
onChange={[Function]}
|
|
|
|
|
placeholder="Search members"
|
|
|
|
|
value=""
|
|
|
|
|
/>
|
2018-09-11 14:14:03 +02:00
|
|
|
</div>
|
2021-04-23 10:06:42 +02:00
|
|
|
<Button
|
|
|
|
|
className="pull-right"
|
2018-09-11 14:14:03 +02:00
|
|
|
disabled={false}
|
|
|
|
|
onClick={[Function]}
|
|
|
|
|
>
|
2019-02-12 17:08:40 +01:00
|
|
|
Add member
|
2021-04-23 10:06:42 +02:00
|
|
|
</Button>
|
2018-09-11 14:14:03 +02:00
|
|
|
</div>
|
2020-12-03 15:05:59 +00:00
|
|
|
<SlideDown
|
2018-09-11 14:14:03 +02:00
|
|
|
in={false}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="cta-form"
|
|
|
|
|
>
|
2021-04-23 10:06:42 +02:00
|
|
|
<CloseButton
|
2021-09-30 15:46:10 +01:00
|
|
|
aria-label="Close 'Add team member' dialogue"
|
2018-09-11 14:14:03 +02:00
|
|
|
onClick={[Function]}
|
2021-04-23 10:06:42 +02:00
|
|
|
/>
|
2021-09-30 15:46:10 +01:00
|
|
|
<Label
|
|
|
|
|
htmlFor="user-picker"
|
|
|
|
|
>
|
2019-02-12 17:08:40 +01:00
|
|
|
Add team member
|
2021-09-30 15:46:10 +01:00
|
|
|
</Label>
|
2018-09-11 14:14:03 +02:00
|
|
|
<div
|
|
|
|
|
className="gf-form-inline"
|
|
|
|
|
>
|
|
|
|
|
<UserPicker
|
2018-12-06 13:44:02 +01:00
|
|
|
className="min-width-30"
|
2021-09-30 15:46:10 +01:00
|
|
|
inputId="user-picker"
|
2018-09-11 14:14:03 +02:00
|
|
|
onSelected={[Function]}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-12-03 15:05:59 +00:00
|
|
|
</SlideDown>
|
2018-09-11 14:14:03 +02:00
|
|
|
<div
|
|
|
|
|
className="admin-list-table"
|
|
|
|
|
>
|
|
|
|
|
<table
|
|
|
|
|
className="filter-table filter-table--hover form-inline"
|
|
|
|
|
>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th />
|
|
|
|
|
<th>
|
2019-11-21 11:44:46 +01:00
|
|
|
Login
|
2018-09-11 14:14:03 +02:00
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
Email
|
|
|
|
|
</th>
|
2019-11-21 11:44:46 +01:00
|
|
|
<th>
|
|
|
|
|
Name
|
|
|
|
|
</th>
|
2020-12-03 15:05:59 +00:00
|
|
|
<WithFeatureToggle
|
2019-03-08 10:46:52 +01:00
|
|
|
featureToggle={false}
|
|
|
|
|
>
|
|
|
|
|
<th>
|
|
|
|
|
Permission
|
|
|
|
|
</th>
|
2020-12-03 15:05:59 +00:00
|
|
|
</WithFeatureToggle>
|
2018-09-11 14:14:03 +02:00
|
|
|
<th
|
|
|
|
|
style={
|
|
|
|
|
Object {
|
|
|
|
|
"width": "1%",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody />
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`Render should render team members 1`] = `
|
|
|
|
|
<div>
|
|
|
|
|
<div
|
|
|
|
|
className="page-action-bar"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="gf-form gf-form--grow"
|
|
|
|
|
>
|
2020-12-03 15:05:59 +00:00
|
|
|
<FilterInput
|
2019-02-12 16:31:11 +01:00
|
|
|
onChange={[Function]}
|
|
|
|
|
placeholder="Search members"
|
|
|
|
|
value=""
|
|
|
|
|
/>
|
2018-09-11 14:14:03 +02:00
|
|
|
</div>
|
2021-04-23 10:06:42 +02:00
|
|
|
<Button
|
|
|
|
|
className="pull-right"
|
2018-09-11 14:14:03 +02:00
|
|
|
disabled={false}
|
|
|
|
|
onClick={[Function]}
|
|
|
|
|
>
|
2019-02-12 17:08:40 +01:00
|
|
|
Add member
|
2021-04-23 10:06:42 +02:00
|
|
|
</Button>
|
2018-09-11 14:14:03 +02:00
|
|
|
</div>
|
2020-12-03 15:05:59 +00:00
|
|
|
<SlideDown
|
2018-09-11 14:14:03 +02:00
|
|
|
in={false}
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
className="cta-form"
|
|
|
|
|
>
|
2021-04-23 10:06:42 +02:00
|
|
|
<CloseButton
|
2021-09-30 15:46:10 +01:00
|
|
|
aria-label="Close 'Add team member' dialogue"
|
2018-09-11 14:14:03 +02:00
|
|
|
onClick={[Function]}
|
2021-04-23 10:06:42 +02:00
|
|
|
/>
|
2021-09-30 15:46:10 +01:00
|
|
|
<Label
|
|
|
|
|
htmlFor="user-picker"
|
|
|
|
|
>
|
2019-02-12 17:08:40 +01:00
|
|
|
Add team member
|
2021-09-30 15:46:10 +01:00
|
|
|
</Label>
|
2018-09-11 14:14:03 +02:00
|
|
|
<div
|
|
|
|
|
className="gf-form-inline"
|
|
|
|
|
>
|
|
|
|
|
<UserPicker
|
2018-12-06 13:44:02 +01:00
|
|
|
className="min-width-30"
|
2021-09-30 15:46:10 +01:00
|
|
|
inputId="user-picker"
|
2018-09-11 14:14:03 +02:00
|
|
|
onSelected={[Function]}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-12-03 15:05:59 +00:00
|
|
|
</SlideDown>
|
2018-09-11 14:14:03 +02:00
|
|
|
<div
|
|
|
|
|
className="admin-list-table"
|
|
|
|
|
>
|
|
|
|
|
<table
|
|
|
|
|
className="filter-table filter-table--hover form-inline"
|
|
|
|
|
>
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th />
|
|
|
|
|
<th>
|
2019-11-21 11:44:46 +01:00
|
|
|
Login
|
2018-09-11 14:14:03 +02:00
|
|
|
</th>
|
|
|
|
|
<th>
|
|
|
|
|
Email
|
|
|
|
|
</th>
|
2019-11-21 11:44:46 +01:00
|
|
|
<th>
|
|
|
|
|
Name
|
|
|
|
|
</th>
|
2020-12-03 15:05:59 +00:00
|
|
|
<WithFeatureToggle
|
2019-03-08 10:46:52 +01:00
|
|
|
featureToggle={false}
|
|
|
|
|
>
|
|
|
|
|
<th>
|
|
|
|
|
Permission
|
|
|
|
|
</th>
|
2020-12-03 15:05:59 +00:00
|
|
|
</WithFeatureToggle>
|
2018-09-11 14:14:03 +02:00
|
|
|
<th
|
|
|
|
|
style={
|
|
|
|
|
Object {
|
|
|
|
|
"width": "1%",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2020-02-14 15:16:07 +01:00
|
|
|
<Connect(TeamMemberRow)
|
2019-03-14 07:53:31 +01:00
|
|
|
editorsCanAdmin={false}
|
2018-09-11 14:14:03 +02:00
|
|
|
key="1"
|
2019-03-14 07:53:31 +01:00
|
|
|
member={
|
|
|
|
|
Object {
|
|
|
|
|
"avatarUrl": "some/url/",
|
|
|
|
|
"email": "test@test.com",
|
|
|
|
|
"labels": Array [
|
|
|
|
|
"label 1",
|
|
|
|
|
"label 2",
|
|
|
|
|
],
|
|
|
|
|
"login": "testUser-1",
|
2019-11-21 11:44:46 +01:00
|
|
|
"name": "testName",
|
2019-03-14 07:53:31 +01:00
|
|
|
"permission": 0,
|
|
|
|
|
"teamId": 1,
|
|
|
|
|
"userId": 1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
signedInUserIsTeamAdmin={true}
|
|
|
|
|
syncEnabled={false}
|
|
|
|
|
/>
|
2020-02-14 15:16:07 +01:00
|
|
|
<Connect(TeamMemberRow)
|
2019-03-14 07:53:31 +01:00
|
|
|
editorsCanAdmin={false}
|
2019-03-12 13:46:52 +01:00
|
|
|
key="2"
|
2019-03-14 07:53:31 +01:00
|
|
|
member={
|
|
|
|
|
Object {
|
|
|
|
|
"avatarUrl": "some/url/",
|
|
|
|
|
"email": "test@test.com",
|
|
|
|
|
"labels": Array [
|
|
|
|
|
"label 1",
|
|
|
|
|
"label 2",
|
|
|
|
|
],
|
|
|
|
|
"login": "testUser-2",
|
2019-11-21 11:44:46 +01:00
|
|
|
"name": "testName",
|
2019-03-14 07:53:31 +01:00
|
|
|
"permission": 0,
|
|
|
|
|
"teamId": 1,
|
|
|
|
|
"userId": 2,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
signedInUserIsTeamAdmin={true}
|
|
|
|
|
syncEnabled={false}
|
|
|
|
|
/>
|
2020-02-14 15:16:07 +01:00
|
|
|
<Connect(TeamMemberRow)
|
2019-03-14 07:53:31 +01:00
|
|
|
editorsCanAdmin={false}
|
2019-03-12 13:46:52 +01:00
|
|
|
key="3"
|
2019-03-14 07:53:31 +01:00
|
|
|
member={
|
|
|
|
|
Object {
|
|
|
|
|
"avatarUrl": "some/url/",
|
|
|
|
|
"email": "test@test.com",
|
|
|
|
|
"labels": Array [
|
|
|
|
|
"label 1",
|
|
|
|
|
"label 2",
|
|
|
|
|
],
|
|
|
|
|
"login": "testUser-3",
|
2019-11-21 11:44:46 +01:00
|
|
|
"name": "testName",
|
2019-03-14 07:53:31 +01:00
|
|
|
"permission": 0,
|
|
|
|
|
"teamId": 1,
|
|
|
|
|
"userId": 3,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
signedInUserIsTeamAdmin={true}
|
|
|
|
|
syncEnabled={false}
|
|
|
|
|
/>
|
2020-02-14 15:16:07 +01:00
|
|
|
<Connect(TeamMemberRow)
|
2019-03-14 07:53:31 +01:00
|
|
|
editorsCanAdmin={false}
|
2019-03-12 13:46:52 +01:00
|
|
|
key="4"
|
2019-03-14 07:53:31 +01:00
|
|
|
member={
|
|
|
|
|
Object {
|
|
|
|
|
"avatarUrl": "some/url/",
|
|
|
|
|
"email": "test@test.com",
|
|
|
|
|
"labels": Array [
|
|
|
|
|
"label 1",
|
|
|
|
|
"label 2",
|
|
|
|
|
],
|
|
|
|
|
"login": "testUser-4",
|
2019-11-21 11:44:46 +01:00
|
|
|
"name": "testName",
|
2019-03-14 07:53:31 +01:00
|
|
|
"permission": 0,
|
|
|
|
|
"teamId": 1,
|
|
|
|
|
"userId": 4,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
signedInUserIsTeamAdmin={true}
|
|
|
|
|
syncEnabled={false}
|
|
|
|
|
/>
|
2020-02-14 15:16:07 +01:00
|
|
|
<Connect(TeamMemberRow)
|
2019-03-14 07:53:31 +01:00
|
|
|
editorsCanAdmin={false}
|
2019-03-12 13:46:52 +01:00
|
|
|
key="5"
|
2019-03-14 07:53:31 +01:00
|
|
|
member={
|
|
|
|
|
Object {
|
|
|
|
|
"avatarUrl": "some/url/",
|
|
|
|
|
"email": "test@test.com",
|
|
|
|
|
"labels": Array [
|
|
|
|
|
"label 1",
|
|
|
|
|
"label 2",
|
|
|
|
|
],
|
|
|
|
|
"login": "testUser-5",
|
2019-11-21 11:44:46 +01:00
|
|
|
"name": "testName",
|
2019-03-14 07:53:31 +01:00
|
|
|
"permission": 4,
|
|
|
|
|
"teamId": 1,
|
|
|
|
|
"userId": 5,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
signedInUserIsTeamAdmin={true}
|
|
|
|
|
syncEnabled={false}
|
|
|
|
|
/>
|
2019-03-12 13:46:52 +01:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
`;
|