diff options
Diffstat (limited to 'spec/requests/api/graphql/group_query_spec.rb')
-rw-r--r-- | spec/requests/api/graphql/group_query_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/requests/api/graphql/group_query_spec.rb b/spec/requests/api/graphql/group_query_spec.rb index 391bae4cfcf..8e4f808f794 100644 --- a/spec/requests/api/graphql/group_query_spec.rb +++ b/spec/requests/api/graphql/group_query_spec.rb @@ -17,7 +17,15 @@ RSpec.describe 'getting group information' do # similar to the API "GET /groups/:id" describe "Query group(fullPath)" do def group_query(group) - graphql_query_for('group', 'fullPath' => group.full_path) + fields = all_graphql_fields_for('Group') + # TODO: Set required timelogs args elsewhere https://gitlab.com/gitlab-org/gitlab/-/issues/325499 + fields.selection['timelogs(startDate: "2021-03-01" endDate: "2021-03-30")'] = fields.selection.delete('timelogs') + + graphql_query_for( + 'group', + { fullPath: group.full_path }, + fields + ) end it_behaves_like 'a working graphql query' do |