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

properly set up notification in spec

ulferts7f6453e772be
diff --git a/spec/features/notifications/notification_center/notification_center_spec.rb b/spec/features/notifications/notification_center/notification_center_spec.rb
index 50bba830180..4a896f4c784 100644
--- a/spec/features/notifications/notification_center/notification_center_spec.rb
+++ b/spec/features/notifications/notification_center/notification_center_spec.rb
@@ -118,12 +118,19 @@ describe "Notification center", type: :feature, js: true, with_settings: { journ
end
context "with a new notification" do
+ let(:work_package3) do
+ create :work_package,
+ project: project1,
+ author: other_user
+ end
let(:notification3) do
create :notification,
reason: :commented,
recipient:,
+ resource: work_package3,
project: project1,
actor: other_user,
+ journal: work_package3.journals.reload.last,
read_ian: true
end