From 6021fa2fc624b7d6902273bae55c5b8b2b2b3fff Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Fri, 9 Sep 2022 09:14:13 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- .../projects/show/user_sees_setup_shortcut_buttons_spec.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb') diff --git a/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb b/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb index 89f6b4237a4..5056e245fed 100644 --- a/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb +++ b/spec/features/projects/show/user_sees_setup_shortcut_buttons_spec.rb @@ -288,6 +288,17 @@ RSpec.describe 'Projects > Show > User sees setup shortcut buttons' do end end + it 'no Auto DevOps button if builds feature is disabled' do + project.project_feature.update_attribute(:builds_access_level, ProjectFeature::DISABLED) + + visit project_path(project) + + page.within('.project-buttons') do + expect(page).not_to have_link('Enable Auto DevOps') + expect(page).not_to have_link('Auto DevOps enabled') + end + end + it 'no "Enable Auto DevOps" button when .gitlab-ci.yml already exists' do Files::CreateService.new( project, -- cgit v1.2.3