diff options
Diffstat (limited to 'spec/features/dashboard/active_tab_spec.rb')
-rw-r--r-- | spec/features/dashboard/active_tab_spec.rb | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/spec/features/dashboard/active_tab_spec.rb b/spec/features/dashboard/active_tab_spec.rb deleted file mode 100644 index ae750be4d4a..00000000000 --- a/spec/features/dashboard/active_tab_spec.rb +++ /dev/null @@ -1,47 +0,0 @@ -require 'spec_helper' - -RSpec.describe 'Dashboard Active Tab', js: true, feature: true do - before do - login_as :user - end - - shared_examples 'page has active tab' do |title| - it "#{title} tab" do - find('.global-dropdown-toggle').trigger('click') - expect(page).to have_selector('.global-dropdown-menu li.active', count: 1) - expect(find('.global-dropdown-menu li.active')).to have_content(title) - end - end - - context 'on dashboard projects' do - before do - visit dashboard_projects_path - end - - it_behaves_like 'page has active tab', 'Projects' - end - - context 'on dashboard issues' do - before do - visit issues_dashboard_path - end - - it_behaves_like 'page has active tab', 'Issues' - end - - context 'on dashboard merge requests' do - before do - visit merge_requests_dashboard_path - end - - it_behaves_like 'page has active tab', 'Merge Requests' - end - - context 'on dashboard groups' do - before do - visit dashboard_groups_path - end - - it_behaves_like 'page has active tab', 'Groups' - end -end |