diff options
Diffstat (limited to 'spec/graphql/types/project_type_spec.rb')
-rw-r--r-- | spec/graphql/types/project_type_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/graphql/types/project_type_spec.rb b/spec/graphql/types/project_type_spec.rb index 961e12288d4..7433d465b38 100644 --- a/spec/graphql/types/project_type_spec.rb +++ b/spec/graphql/types/project_type_spec.rb @@ -25,7 +25,7 @@ RSpec.describe GitlabSchema.types['Project'] do only_allow_merge_if_pipeline_succeeds request_access_enabled only_allow_merge_if_all_discussions_are_resolved printing_merge_request_link_enabled namespace group statistics repository merge_requests merge_request issues - issue milestones pipelines removeSourceBranchAfterMerge sentryDetailedError snippets + issue milestones pipelines removeSourceBranchAfterMerge pipeline_counts sentryDetailedError snippets grafanaIntegration autocloseReferencedIssues suggestion_commit_message environments environment boards jira_import_status jira_imports services releases release alert_management_alerts alert_management_alert alert_management_alert_status_counts @@ -35,6 +35,7 @@ RSpec.describe GitlabSchema.types['Project'] do pipeline_analytics squash_read_only sast_ci_configuration cluster_agent cluster_agents agent_configurations ci_template timelogs merge_commit_template squash_commit_template work_item_types + recent_issue_boards ci_config_path_or_default ] expect(described_class).to include_graphql_fields(*expected_fields) @@ -299,6 +300,8 @@ RSpec.describe GitlabSchema.types['Project'] do :merged_before, :created_after, :created_before, + :updated_after, + :updated_before, :author_username, :assignee_username, :reviewer_username, @@ -309,6 +312,13 @@ RSpec.describe GitlabSchema.types['Project'] do end end + describe 'pipelineCounts field' do + subject { described_class.fields['pipelineCounts'] } + + it { is_expected.to have_graphql_type(Types::Ci::PipelineCountsType) } + it { is_expected.to have_graphql_resolver(Resolvers::Ci::ProjectPipelineCountsResolver) } + end + describe 'snippets field' do subject { described_class.fields['snippets'] } |