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
[#45912] added feature spec with more then 100 notifications
Eric Schubert88912f79a0df
diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.html b/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.htmlindex dfcbbb9eb34..43a9e793d56 100644--- a/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.html+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/mark-all-as-read/mark-all-as-read-button.component.html@@ -3,11 +3,8 @@class="button"(click)="markAllRead()">- <op-icon icon-classes="button--icon icon-mark-all-read">- </op-icon><span- class="button--text"- [textContent]="text.mark_all_read"- >- </span>-</button>\ No newline at end of file+ class="spot-icon spot-icon_mark-all-read"+ ></span>+ <span>{{text.mark_all_read}}</span>+</button>diff --git a/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.html b/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.htmlindex 15b3ac1747b..9e908097337 100644--- a/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.html+++ b/frontend/src/app/features/in-app-notifications/center/toolbar/settings/notification-settings-button.component.html@@ -3,11 +3,8 @@[href]="myNotificationSettingsLink"target="_blank">- <op-icon icon-classes="button--icon icon-settings">- </op-icon><span- class="button--text"- [textContent]="text.mySettings"- >- </span>-</a>\ No newline at end of file+ class="spot-icon spot-icon_settings"+ ></span>+ <span>{{text.mySettings}}</span>+</a>diff --git a/spec/features/notifications/notification_center/notification_center_spec.rb b/spec/features/notifications/notification_center/notification_center_spec.rbindex d677a9ebe42..8057f11a6ec 100644--- a/spec/features/notifications/notification_center/notification_center_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_spec.rb@@ -95,6 +95,55 @@ describe "Notification center",center.expect_bell_count 0end+ context 'with more the 100 notifications' do+ let(:notifications) do+ Array(0..204).map do |item|+ reason = if item < 100+ :mentioned+ else+ :watched+ end++ create(:notification,+ recipient:,+ project: project1,+ resource: work_package,+ reason:)+ end+ end++ it 'can dismiss all notifications of the currently selected filter' do+ visit home_path+ center.expect_bell_count '99+'+ center.open++ # side menu items show full count of notifications (inbox has one more due to the "Created" notification)+ side_menu.expect_item_with_count 'Inbox', 206+ side_menu.expect_item_with_count 'Mentioned', 100+ side_menu.expect_item_with_count 'Watcher', 105++ # select watcher filter and mark all as read+ side_menu.click_item 'Watcher'+ side_menu.finished_loading+ center.mark_all_read++ center.expect_bell_count '99+'+ side_menu.expect_item_with_count 'Inbox', 101+ side_menu.expect_item_with_count 'Mentioned', 100+ side_menu.expect_item_with_no_count 'Watcher'++ # select inbox and mark all as read+ side_menu.click_item 'Inbox'+ side_menu.finished_loading+ center.mark_all_read++ center.expect_bell_count 0+ side_menu.expect_item_with_no_count 'Inbox'+ side_menu.expect_item_with_no_count 'Mentioned'+ side_menu.expect_item_with_no_count 'Watcher'+ end+ end+it 'can open the split screen of the notification' dovisit home_pathcenter.expect_bell_count 2