diff --git a/modules/team_planner/spec/features/team_planner_menu_spec.rb b/modules/team_planner/spec/features/team_planner_menu_spec.rb index 917a6e8305..576b8ff9f3 100644 --- a/modules/team_planner/spec/features/team_planner_menu_spec.rb +++ b/modules/team_planner/spec/features/team_planner_menu_spec.rb @@ -29,7 +29,7 @@ #++ require 'spec_helper' -require_relative '../../../../spec/support/components/work_packages/query_menu.rb' +require_relative '../../../../spec/support/components/work_packages/query_menu' describe 'Team planner sidemenu', type: :feature, js: true do shared_let(:project) do @@ -56,7 +56,7 @@ describe 'Team planner sidemenu', type: :feature, js: true do click_link 'Team planner' end - query_menu.expect_menu_entry_not_visible('Create new planner') + query_menu.expect_menu_entry_not_visible('Create new planner') end end @@ -70,7 +70,6 @@ describe 'Team planner sidemenu', type: :feature, js: true do ] end - current_user { user_with_rights } it 'hides the create team planner option if you do not have rights' do diff --git a/modules/team_planner/spec/support/pages/team_planner.rb b/modules/team_planner/spec/support/pages/team_planner.rb index ed1293ab02..459ea25a35 100644 --- a/modules/team_planner/spec/support/pages/team_planner.rb +++ b/modules/team_planner/spec/support/pages/team_planner.rb @@ -177,7 +177,7 @@ module Pages end def expect_no_menu_item(name) - expect(page).to_not have_selector('.op-sidemenu--item-title', text: name) + expect(page).not_to have_selector('.op-sidemenu--item-title', text: name) end end end