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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Switch `notifications/notification_center/notification_center_spec` to cuprite
Aaron Contrerasefe5a1f4a742
diff --git a/spec/features/notifications/notification_center/notification_center_spec.rb b/spec/features/notifications/notification_center/notification_center_spec.rbindex 3aea43552bd..b382e2a3250 100644--- a/spec/features/notifications/notification_center/notification_center_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_spec.rb@@ -2,6 +2,7 @@ require 'spec_helper'RSpec.describe "Notification center",js: true,+ with_cuprite: true,with_ee: %i[date_alerts],with_settings: { journal_aggregation_time_minutes: 0 } do# Notice that the setup in this file here is not following the normal rules as@@ -59,6 +60,7 @@ RSpec.describe "Notification center",it 'will not show all details of the journal' dovisit home_path+ wait_for_reloadcenter.expect_bell_count 2center.open@@ -76,12 +78,14 @@ RSpec.describe "Notification center",it 'can see the notification and dismiss it' dovisit home_path+ wait_for_reloadcenter.expect_bell_count 2center.opencenter.expect_work_package_item notificationcenter.expect_work_package_item notification2center.mark_all_read+ wait_for_network_idleretry_block donotification.reload@@ -104,6 +108,7 @@ RSpec.describe "Notification center",it 'can dismiss all notifications of the currently selected filter' dovisit home_path+ wait_for_reloadcenter.expect_bell_count '99+'center.open@@ -116,6 +121,7 @@ RSpec.describe "Notification center",side_menu.click_item 'Watcher'side_menu.finished_loadingcenter.mark_all_read+ wait_for_network_idlecenter.expect_bell_count '99+'side_menu.expect_item_with_count 'Inbox', 101@@ -126,6 +132,7 @@ RSpec.describe "Notification center",side_menu.click_item 'Inbox'side_menu.finished_loadingcenter.mark_all_read+ wait_for_network_idlecenter.expect_bell_count 0side_menu.expect_item_with_no_count 'Inbox'@@ -136,6 +143,7 @@ RSpec.describe "Notification center",it 'can open the split screen of the notification' dovisit home_path+ wait_for_reloadcenter.expect_bell_count 2center.open@@ -146,13 +154,14 @@ RSpec.describe "Notification center",center.expect_work_package_item notification2center.mark_notification_as_read notification-+ wait_for_network_idleretry_block donotification.reloadraise "Expected notification to be marked read" unless notification.read_ianendvisit home_path+ wait_for_reloadcenter.expect_bell_count 1center.open@@ -264,6 +273,7 @@ RSpec.describe "Notification center",it "displays the date alerts; allows reading and filtering them" dovisit home_path+ wait_for_reloadcenter.open# Three date alerts and the standard (created) notificationcenter.expect_bell_count 4@@ -274,11 +284,13 @@ RSpec.describe "Notification center",# Reading one will update the unread notification listcenter.mark_notification_as_read start_date_notification+ wait_for_network_idlecenter.expect_bell_count 3# Filtering for only date alert notifications (that are unread)side_menu.click_item 'Date alert'+ wait_for_reloadcenter.expect_work_package_item due_date_notificationcenter.expect_work_package_item overdue_date_notification@@ -299,6 +311,7 @@ RSpec.describe "Notification center",it 'opens the next notification after marking one as read' dovisit home_path+ wait_for_reloadcenter.expect_bell_count 2center.open@@ -307,6 +320,8 @@ RSpec.describe "Notification center",# Marking the first notification as read (via icon on the notification row)center.mark_notification_as_read notification+ wait_for_network_idle+retry_block donotification.reloadraise "Expected notification to be marked read" unless notification.read_ian@@ -318,6 +333,7 @@ RSpec.describe "Notification center",# When marking the second as closed (via the icon in the split screen)# the empty state is shownsplit_screen2.mark_notifications_as_read+ wait_for_network_idleretry_block donotification.reload@@ -353,6 +369,7 @@ RSpec.describe "Notification center",it 'aggregates notifications per work package and sets all as read when opened' dovisit home_path+ wait_for_reloadcenter.expect_bell_count 4center.open@@ -363,6 +380,7 @@ RSpec.describe "Notification center",split_screen.expect_opencenter.mark_notification_as_read notification4+ wait_for_network_idleretry_block donotification4.reload@@ -380,7 +398,7 @@ RSpec.describe "Notification center",split_screen2.expect_opencenter.mark_notification_as_read notification3-+ wait_for_network_idleretry_block donotification3.reloadraise "Expected notification to be marked read" unless notification3.read_iandiff --git a/spec/support/pages/notifications/center.rb b/spec/support/pages/notifications/center.rbindex 98d5a5c6fdb..a7aac604c39 100644--- a/spec/support/pages/notifications/center.rb+++ b/spec/support/pages/notifications/center.rb@@ -31,6 +31,7 @@ module Pagesclass Center < ::Pages::Pagedef openbell_element.click+ wait_for_network_idle if using_cuprite?expect_openenddiff --git a/spec/support/pages/work_packages/split_work_package.rb b/spec/support/pages/work_packages/split_work_package.rbindex dd8653777d4..beb6b1b9d5e 100644--- a/spec/support/pages/work_packages/split_work_package.rb+++ b/spec/support/pages/work_packages/split_work_package.rb@@ -48,6 +48,7 @@ module Pagesenddef expect_open+ wait_for_reload if using_cuprite?expect(page).to have_selector(@selector)expect_subjectend