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

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.html
index 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.rb
index 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 do
visit '/notifications/details/0'
expect(page).to have_current_path "/notifications"
-
- split_screen.expect_empty_state
end
it 'deep linking to a notification details highlights it' do
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 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 message
side_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 read
side_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.rb
index 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 do
it 'can navigate between the tabs' do
center.expect_bell_count 2
- split_screen.expect_empty_state
center.click_item notification
split_screen.expect_open
@@ -81,7 +80,6 @@ describe "Split screen in the notification center", type: :feature, js: true do
# The split screen can be closed
split_screen.close
- split_screen.expect_empty_state
end
it '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 do
center.open
end
- 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' do
center.expect_bell_count 0
- split_screen.expect_caught_up
end
end
end
diff --git a/spec/support/pages/notifications/split_screen.rb b/spec/support/pages/notifications/split_screen.rb
index ce4851e75db..efc760d0552 100644
--- a/spec/support/pages/notifications/split_screen.rb
+++ b/spec/support/pages/notifications/split_screen.rb
@@ -38,15 +38,6 @@ module Pages
super 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:)
- end
end
end
end