Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Switch `menu_items/top_menu_item_spec` to cuprite

Aaron Contrerasa5cafb21ff46
diff --git a/spec/features/menu_items/top_menu_item_spec.rb b/spec/features/menu_items/top_menu_item_spec.rb
index 340a4a0b111..6a7f6849a8e 100644
--- a/spec/features/menu_items/top_menu_item_spec.rb
+++ b/spec/features/menu_items/top_menu_item_spec.rb
@@ -28,7 +28,7 @@
require 'spec_helper'
-RSpec.describe 'Top menu items', js: true, selenium: true do
+RSpec.describe 'Top menu items', js: true, with_cuprite: true do
let(:user) { create(:user) }
let(:open_menu) { true }
@@ -68,13 +68,13 @@ RSpec.describe 'Top menu items', js: true, selenium: true do
end
describe 'Modules' do
- !let(:top_menu) { find(:css, "[title=#{I18n.t('label_modules')}]") }
+ let!(:top_menu) { find("[title=#{I18n.t('label_modules')}]") }
let(:news_item) { I18n.t('label_news_plural') }
let(:project_item) { I18n.t('label_projects_menu') }
let(:reporting_item) { I18n.t('cost_reports_title') }
- let(:all_items) { [news_item, project_item, reporting_item] }
+ let!(:all_items) { [news_item, project_item, reporting_item] }
context 'as an admin' do
let(:user) { create(:admin) }