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 `notifications/notification_center/notification_center_sidemenu_spec` to cuprite

Aaron Contrerasf4276d15cccb
diff --git a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
index 61a291c6a29..2d3ccef5de3 100644
--- a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
+++ b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb
@@ -2,6 +2,7 @@ require 'spec_helper'
RSpec.describe "Notification center sidemenu",
js: true,
+ with_cuprite: true,
with_ee: %i[date_alerts] do
shared_let(:project) { create(:project) }
shared_let(:project2) { create(:project) }
@@ -71,6 +72,7 @@ RSpec.describe "Notification center sidemenu",
notifications
login_as recipient
center.visit!
+ wait_for_reload
end
context 'with no notifications to show' do
diff --git a/spec/support/components/common/sidemenu.rb b/spec/support/components/common/sidemenu.rb
index 5a3b4e753f2..c723a9aa9b4 100644
--- a/spec/support/components/common/sidemenu.rb
+++ b/spec/support/components/common/sidemenu.rb
@@ -60,6 +60,7 @@ module Components
end
def finished_loading
+ wait_for_network_idle if using_cuprite?
expect(page).not_to have_selector('[data-qa-selector="op-ian-center--loading-indicator"]')
end