aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/organizationMembers
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-10-24 09:56:27 +0200
committerSonarTech <sonartech@sonarsource.com>2018-10-26 20:21:00 +0200
commit3026740ee3e483b542aca2fad5f5e79a931faa87 (patch)
treec9866b262771baa0bd3470b8d831392c6ced1f92 /server/sonar-web/src/main/js/apps/organizationMembers
parent69bcb8faa2f40f0e0e6e6a8427d178c02df2eff6 (diff)
downloadsonarqube-3026740ee3e483b542aca2fad5f5e79a931faa87.tar.gz
sonarqube-3026740ee3e483b542aca2fad5f5e79a931faa87.zip
update web dependencies
Diffstat (limited to 'server/sonar-web/src/main/js/apps/organizationMembers')
-rw-r--r--server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/AddMemberForm-test.tsx.snap8
-rw-r--r--server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/MembersListItem-test.tsx.snap76
-rw-r--r--server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap180
3 files changed, 128 insertions, 136 deletions
diff --git a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/AddMemberForm-test.tsx.snap b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/AddMemberForm-test.tsx.snap
index ca0444d7328..895c48986d7 100644
--- a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/AddMemberForm-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/AddMemberForm-test.tsx.snap
@@ -1,18 +1,18 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`should render and open the modal 1`] = `
-<React.Fragment>
+<Fragment>
<Button
key="add-member-button"
onClick={[Function]}
>
organization.members.add
</Button>
-</React.Fragment>
+</Fragment>
`;
exports[`should render and open the modal 2`] = `
-<React.Fragment>
+<Fragment>
<Button
key="add-member-button"
onClick={[Function]}
@@ -73,5 +73,5 @@ exports[`should render and open the modal 2`] = `
</footer>
</form>
</Modal>
-</React.Fragment>
+</Fragment>
`;
diff --git a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/MembersListItem-test.tsx.snap b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/MembersListItem-test.tsx.snap
index 2f04b608477..b97c6a82959 100644
--- a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/MembersListItem-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/MembersListItem-test.tsx.snap
@@ -28,26 +28,24 @@ exports[`should groups at 0 if the groupCount field is not defined (just added u
>
organization.members.x_groups.0
</td>
- <React.Fragment>
- <td
- className="nowrap text-middle text-right"
- >
- <ActionsDropdown>
- <ActionsDropdownItem
- onClick={[Function]}
- >
- organization.members.manage_groups
- </ActionsDropdownItem>
- <ActionsDropdownDivider />
- <ActionsDropdownItem
- destructive={true}
- onClick={[Function]}
- >
- organization.members.remove
- </ActionsDropdownItem>
- </ActionsDropdown>
- </td>
- </React.Fragment>
+ <td
+ className="nowrap text-middle text-right"
+ >
+ <ActionsDropdown>
+ <ActionsDropdownItem
+ onClick={[Function]}
+ >
+ organization.members.manage_groups
+ </ActionsDropdownItem>
+ <ActionsDropdownDivider />
+ <ActionsDropdownItem
+ destructive={true}
+ onClick={[Function]}
+ >
+ organization.members.remove
+ </ActionsDropdownItem>
+ </ActionsDropdown>
+ </td>
</tr>
`;
@@ -105,25 +103,23 @@ exports[`should render actions and groups for admin 1`] = `
>
organization.members.x_groups.3
</td>
- <React.Fragment>
- <td
- className="nowrap text-middle text-right"
- >
- <ActionsDropdown>
- <ActionsDropdownItem
- onClick={[Function]}
- >
- organization.members.manage_groups
- </ActionsDropdownItem>
- <ActionsDropdownDivider />
- <ActionsDropdownItem
- destructive={true}
- onClick={[Function]}
- >
- organization.members.remove
- </ActionsDropdownItem>
- </ActionsDropdown>
- </td>
- </React.Fragment>
+ <td
+ className="nowrap text-middle text-right"
+ >
+ <ActionsDropdown>
+ <ActionsDropdownItem
+ onClick={[Function]}
+ >
+ organization.members.manage_groups
+ </ActionsDropdownItem>
+ <ActionsDropdownDivider />
+ <ActionsDropdownItem
+ destructive={true}
+ onClick={[Function]}
+ >
+ organization.members.remove
+ </ActionsDropdownItem>
+ </ActionsDropdown>
+ </td>
</tr>
`;
diff --git a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
index 336f1e66691..bbc33cb4737 100644
--- a/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
+++ b/server/sonar-web/src/main/js/apps/organizationMembers/__tests__/__snapshots__/OrganizationMembers-test.tsx.snap
@@ -40,63 +40,61 @@ exports[`should fetch members and groups and render for admin 1`] = `
/>
</div>
</MembersPageHeader>
- <React.Fragment>
- <MembersListHeader
- handleSearch={[Function]}
- total={3}
- />
- <MembersList
- members={
- Array [
- Object {
- "avatar": "",
- "groupCount": 3,
- "login": "admin",
- "name": "Admin Istrator",
- },
- Object {
- "avatar": "7daf6c79d4802916d83f6266e24850af",
- "groupCount": 1,
- "login": "john",
- "name": "John Doe",
- },
- ]
- }
- organization={
+ <MembersListHeader
+ handleSearch={[Function]}
+ total={3}
+ />
+ <MembersList
+ members={
+ Array [
Object {
- "canAdmin": true,
- "key": "foo",
- "name": "Foo",
- }
- }
- organizationGroups={
- Array [
- Object {
- "default": true,
- "description": "",
- "id": 1,
- "membersCount": 2,
- "name": "Members",
- },
- Object {
- "default": false,
- "description": "",
- "id": 2,
- "membersCount": 0,
- "name": "Watchers",
- },
- ]
+ "avatar": "",
+ "groupCount": 3,
+ "login": "admin",
+ "name": "Admin Istrator",
+ },
+ Object {
+ "avatar": "7daf6c79d4802916d83f6266e24850af",
+ "groupCount": 1,
+ "login": "john",
+ "name": "John Doe",
+ },
+ ]
+ }
+ organization={
+ Object {
+ "canAdmin": true,
+ "key": "foo",
+ "name": "Foo",
}
- removeMember={[Function]}
- updateMemberGroups={[Function]}
- />
- <ListFooter
- count={2}
- loadMore={[Function]}
- ready={true}
- total={3}
- />
- </React.Fragment>
+ }
+ organizationGroups={
+ Array [
+ Object {
+ "default": true,
+ "description": "",
+ "id": 1,
+ "membersCount": 2,
+ "name": "Members",
+ },
+ Object {
+ "default": false,
+ "description": "",
+ "id": 2,
+ "membersCount": 0,
+ "name": "Watchers",
+ },
+ ]
+ }
+ removeMember={[Function]}
+ updateMemberGroups={[Function]}
+ />
+ <ListFooter
+ count={2}
+ loadMore={[Function]}
+ ready={true}
+ total={3}
+ />
</div>
`;
@@ -133,44 +131,42 @@ exports[`should fetch members and render for non-admin 2`] = `
<MembersPageHeader
loading={false}
/>
- <React.Fragment>
- <MembersListHeader
- handleSearch={[Function]}
- total={3}
- />
- <MembersList
- members={
- Array [
- Object {
- "avatar": "",
- "groupCount": 3,
- "login": "admin",
- "name": "Admin Istrator",
- },
- Object {
- "avatar": "7daf6c79d4802916d83f6266e24850af",
- "groupCount": 1,
- "login": "john",
- "name": "John Doe",
- },
- ]
- }
- organization={
+ <MembersListHeader
+ handleSearch={[Function]}
+ total={3}
+ />
+ <MembersList
+ members={
+ Array [
Object {
- "key": "foo",
- "name": "Foo",
- }
+ "avatar": "",
+ "groupCount": 3,
+ "login": "admin",
+ "name": "Admin Istrator",
+ },
+ Object {
+ "avatar": "7daf6c79d4802916d83f6266e24850af",
+ "groupCount": 1,
+ "login": "john",
+ "name": "John Doe",
+ },
+ ]
+ }
+ organization={
+ Object {
+ "key": "foo",
+ "name": "Foo",
}
- organizationGroups={Array []}
- removeMember={[Function]}
- updateMemberGroups={[Function]}
- />
- <ListFooter
- count={2}
- loadMore={[Function]}
- ready={true}
- total={3}
- />
- </React.Fragment>
+ }
+ organizationGroups={Array []}
+ removeMember={[Function]}
+ updateMemberGroups={[Function]}
+ />
+ <ListFooter
+ count={2}
+ loadMore={[Function]}
+ ready={true}
+ total={3}
+ />
</div>
`;