diff options
author | Felipe Artur <felipefac@gmail.com> | 2016-10-28 15:07:26 -0200 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-10-31 09:05:01 +0000 |
commit | cabc2a716035ef61bec661db44958ee2e48ea841 (patch) | |
tree | 98932c313dfc9f35e7cb81c01c37904daba5c4bd /spec/features/projects/features_visibility_spec.rb | |
parent | 696f09c7bf15c090c46a7d9abe14e0c769576db2 (diff) | |
download | gitlab-ce-cabc2a716035ef61bec661db44958ee2e48ea841.tar.gz |
Fix builds tab visibilityissue_23951
Diffstat (limited to 'spec/features/projects/features_visibility_spec.rb')
-rw-r--r-- | spec/features/projects/features_visibility_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/projects/features_visibility_spec.rb b/spec/features/projects/features_visibility_spec.rb index 1d4484a9edd..d25cf7fb353 100644 --- a/spec/features/projects/features_visibility_spec.rb +++ b/spec/features/projects/features_visibility_spec.rb @@ -41,6 +41,22 @@ describe 'Edit Project Settings', feature: true do end end end + + context "pipelines subtabs" do + it "shows builds when enabled" do + visit namespace_project_pipelines_path(project.namespace, project) + + expect(page).to have_selector(".shortcuts-builds") + end + + it "hides builds when disabled" do + allow(Ability).to receive(:allowed?).with(member, :read_builds, project).and_return(false) + + visit namespace_project_pipelines_path(project.namespace, project) + + expect(page).not_to have_selector(".shortcuts-builds") + end + end end describe 'project features visibility pages' do |