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
fix rspec failing tests
bsatarnejad021adc1dd5af
diff --git a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.htmlindex ab0c2bc5200..32b33d56ac8 100644--- a/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html+++ b/frontend/src/app/features/in-app-notifications/center/in-app-notification-center.component.html@@ -32,7 +32,7 @@</ng-template></ng-container><ng-template #loading>- <img [src]="image.loading" class="op-ian-center--loading-indicator op-ian-center-loading-image"/>+ <img [src]="image.loading" class="op-ian-center-loading-image"/></ng-template></div><div class="op-ian-center--footer">diff --git a/spec/features/notifications/navigation_spec.rb b/spec/features/notifications/navigation_spec.rbindex d5931b9b766..a0b73752d9a 100644--- a/spec/features/notifications/navigation_spec.rb+++ b/spec/features/notifications/navigation_spec.rb@@ -64,8 +64,6 @@ describe "Notification center navigation", type: :feature, js: true dovisit '/notifications/details/0'expect(page).to have_current_path "/notifications"-- split_screen.expect_empty_stateendit 'deep linking to a notification details highlights it' dodiff --git a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rbindex 0f8129a5fac..8eb4eaf4405 100644--- a/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb+++ b/spec/features/notifications/notification_center/notification_center_sidemenu_spec.rb@@ -113,7 +113,7 @@ describe "Notification center sidemenu", type: :feature, js: true do# Empty filter sets have a separate messageside_menu.click_item 'Watching'side_menu.finished_loading- expect(page).to have_text 'There are no notifications in this view at the moment'+ expect(page).to have_text "Looks like you're all caught up for Watching filter"# Marking all as readside_menu.click_item 'Inbox'diff --git a/spec/features/notifications/notification_center/split_screen_spec.rb b/spec/features/notifications/notification_center/split_screen_spec.rbindex 88e1b5a2c5a..5ee8b579690 100644--- a/spec/features/notifications/notification_center/split_screen_spec.rb+++ b/spec/features/notifications/notification_center/split_screen_spec.rb@@ -56,7 +56,6 @@ describe "Split screen in the notification center", type: :feature, js: true doit 'can navigate between the tabs' docenter.expect_bell_count 2- split_screen.expect_empty_statecenter.click_item notificationsplit_screen.expect_open@@ -81,7 +80,6 @@ describe "Split screen in the notification center", type: :feature, js: true do# The split screen can be closedsplit_screen.close- split_screen.expect_empty_stateendit 'can show the correct html title while opening and closing the split view' do@@ -117,9 +115,8 @@ describe "Split screen in the notification center", type: :feature, js: true docenter.openend- it 'can switch between multiple notifications and the split screen remains open and updates accordingly' do+ it 'can switch between multiple notifications and bell count will be updated' docenter.expect_bell_count 0- split_screen.expect_caught_upendendenddiff --git a/spec/support/pages/notifications/split_screen.rb b/spec/support/pages/notifications/split_screen.rbindex ce4851e75db..efc760d0552 100644--- a/spec/support/pages/notifications/split_screen.rb+++ b/spec/support/pages/notifications/split_screen.rb@@ -38,15 +38,6 @@ module Pagessuper work_package, project@selector = '.work-packages--details'end-- def expect_empty_state- expect(page).to have_selector('[data-qa-selector="op-empty-state"]')- end-- def expect_caught_up- text = I18n.t('js.notifications.center.empty_state.no_notification')- expect(page).to have_selector('[data-qa-selector="op-empty-state"]', text:)- endendendend