diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 12:08:42 +0300 |
commit | b76ae638462ab0f673e5915986070518dd3f9ad3 (patch) | |
tree | bdab0533383b52873be0ec0eb4d3c66598ff8b91 /spec/features/dashboard/active_tab_spec.rb | |
parent | 434373eabe7b4be9593d18a585fb763f1e5f1a6f (diff) |
Add latest changes from gitlab-org/gitlab@14-2-stable-eev14.2.0-rc42
Diffstat (limited to 'spec/features/dashboard/active_tab_spec.rb')
-rw-r--r-- | spec/features/dashboard/active_tab_spec.rb | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/spec/features/dashboard/active_tab_spec.rb b/spec/features/dashboard/active_tab_spec.rb deleted file mode 100644 index aa767d75c00..00000000000 --- a/spec/features/dashboard/active_tab_spec.rb +++ /dev/null @@ -1,43 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -# TODO: This entire spec file can be deleted once the combined_menu feature is fully rolled -# out and the flag is removed, because it will then be irrelevant (there will be no more tabs). -# Feature flag removal issue: https://gitlab.com/gitlab-org/gitlab/-/issues/324086 -RSpec.describe 'Dashboard Active Tab', :js do - shared_examples 'combined_menu: feature flag examples' do - before do - sign_in(create(:user)) - end - - shared_examples 'page has active tab' do |title| - it "#{title} tab" do - subject - - expect(page).to have_selector('.navbar-sub-nav li.active', count: 1) - expect(find('.navbar-sub-nav li.active')).to have_content(title) - end - end - - context 'on dashboard projects' do - it_behaves_like 'page has active tab', 'Projects' do - subject { visit dashboard_projects_path } - end - end - - context 'on dashboard groups' do - it_behaves_like 'page has active tab', 'Groups' do - subject { visit dashboard_groups_path } - end - end - end - - context 'with combined_menu feature flag off' do - before do - stub_feature_flags(combined_menu: false) - end - - it_behaves_like 'combined_menu: feature flag examples' - end -end |