diff --git a/client/src/graphql/gql/mutations/updateTeam.gql b/client/src/graphql/gql/mutations/updateTeam.gql index d3f74c42..76877dc9 100644 --- a/client/src/graphql/gql/mutations/updateTeam.gql +++ b/client/src/graphql/gql/mutations/updateTeam.gql @@ -2,6 +2,7 @@ mutation UpdateTeam($input: UpdateTeamInput!) { updateTeam(input: $input) { success team { + id name } } diff --git a/server/users/tests/test_teams.py b/server/users/tests/test_teams.py index 8354ec9c..1a2a16f5 100644 --- a/server/users/tests/test_teams.py +++ b/server/users/tests/test_teams.py @@ -20,8 +20,22 @@ ME_QUERY = """ } """ -CREATE_TEAM_MUTATION = get_graphql_mutation('createTeam.gql') -JOIN_TEAM_MUTATION = get_graphql_mutation('joinTeam.gql') +TEAM_PARTS = """ +fragment TeamParts on TeamNode { + name + code + id + members { + firstName + lastName + id + isMe + } +} +""" + +CREATE_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('createTeam.gql') +JOIN_TEAM_MUTATION = TEAM_PARTS + get_graphql_mutation('joinTeam.gql') UPDATE_TEAM_MUTATION = get_graphql_mutation('updateTeam.gql') LEAVE_TEAM_MUTATION = get_graphql_mutation('me/leaveTeam.gql')