diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/features/projects/active_tabs_spec.rb | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/features/projects/active_tabs_spec.rb')
-rw-r--r-- | spec/features/projects/active_tabs_spec.rb | 34 |
1 files changed, 2 insertions, 32 deletions
diff --git a/spec/features/projects/active_tabs_spec.rb b/spec/features/projects/active_tabs_spec.rb index 39950adc83f..b8c928004ed 100644 --- a/spec/features/projects/active_tabs_spec.rb +++ b/spec/features/projects/active_tabs_spec.rb @@ -24,17 +24,6 @@ RSpec.describe 'Project active tab' do expect(page).to have_selector('.sidebar-top-level-items > li.active', count: 1) expect(find('.sidebar-top-level-items > li.active')).to have_content(project.name) end - - context 'when feature flag :sidebar_refactor is disabled' do - before do - stub_feature_flags(sidebar_refactor: false) - - visit project_path(project) - end - - it_behaves_like 'page has active tab', 'Project' - it_behaves_like 'page has active sub tab', 'Details' - end end context 'on Project information' do @@ -80,11 +69,7 @@ RSpec.describe 'Project active tab' do end context 'on project Issues' do - let(:feature_flag_value) { true } - before do - stub_feature_flags(sidebar_refactor: feature_flag_value) - visit project_issues_path(project) end @@ -98,21 +83,6 @@ RSpec.describe 'Project active tab' do it_behaves_like 'page has active tab', 'Issues' it_behaves_like 'page has active sub tab', 'Milestones' end - - context 'when feature flag is disabled' do - let(:feature_flag_value) { false } - - %w(Milestones Labels).each do |sub_menu| - context "on project Issues/#{sub_menu}" do - before do - click_tab(sub_menu) - end - - it_behaves_like 'page has active tab', 'Issues' - it_behaves_like 'page has active sub tab', sub_menu - end - end - end end context 'on project Merge Requests' do @@ -168,9 +138,9 @@ RSpec.describe 'Project active tab' do visit project_cycle_analytics_path(project) end - context 'on project Analytics/Value Stream Analytics' do + context 'on project Analytics/Value stream Analytics' do it_behaves_like 'page has active tab', _('Analytics') - it_behaves_like 'page has active sub tab', _('Value Stream') + it_behaves_like 'page has active sub tab', _('Value stream') end context 'on project Analytics/"CI/CD"' do |