diff options
Diffstat (limited to 'spec/features/admin/admin_mode_spec.rb')
-rw-r--r-- | spec/features/admin/admin_mode_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/features/admin/admin_mode_spec.rb b/spec/features/admin/admin_mode_spec.rb index 769ff75b5a2..65249fa0235 100644 --- a/spec/features/admin/admin_mode_spec.rb +++ b/spec/features/admin/admin_mode_spec.rb @@ -2,9 +2,9 @@ require 'spec_helper' -RSpec.describe 'Admin mode', :js, feature_category: :not_owned do +RSpec.describe 'Admin mode', :js, feature_category: :shared do include MobileHelpers - include Spec::Support::Helpers::Features::TopNavSpecHelpers + include Features::TopNavSpecHelpers include StubENV let(:admin) { create(:admin) } @@ -50,7 +50,7 @@ RSpec.describe 'Admin mode', :js, feature_category: :not_owned do fill_in 'user_password', with: admin.password - click_button 'Enter Admin Mode' + click_button 'Enter admin mode' expect(page).to have_current_path(admin_root_path) end @@ -65,7 +65,7 @@ RSpec.describe 'Admin mode', :js, feature_category: :not_owned do fill_in 'user_password', with: admin.password - click_button 'Enter Admin Mode' + click_button 'Enter admin mode' expect(page).to have_current_path(admin_root_path) end @@ -111,7 +111,7 @@ RSpec.describe 'Admin mode', :js, feature_category: :not_owned do open_top_nav expect(page).to have_link(text: 'Admin', href: admin_root_path, visible: true) - expect(page).to have_link(text: 'Leave Admin Mode', href: destroy_admin_session_path, visible: true) + expect(page).to have_link(text: 'Leave admin mode', href: destroy_admin_session_path, visible: true) end end |