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

fixed shared context

Jonas Jabari7063ca819dfe
diff --git a/spec/features/work_packages/shared_contexts.rb b/spec/features/work_packages/shared_contexts.rb
index 7977b46730e..9df433def42 100644
--- a/spec/features/work_packages/shared_contexts.rb
+++ b/spec/features/work_packages/shared_contexts.rb
@@ -29,6 +29,8 @@
# Ensure the page is completely loaded before the spec is run.
# The status filter is loaded very late in the page setup.
RSpec.shared_context "ensure wp details pane update done" do
+ let(:activity_tab) { Components::WorkPackages::Activities.new(work_package) }
+
after do
unless update_user
raise "Expect to have a let called 'update_user' defining which user \
@@ -37,7 +39,6 @@ RSpec.shared_context "ensure wp details pane update done" do
# safeguard to ensure all backend queries
# have been answered before starting a new spec
- expect(page).to have_css(".op-user-activity--user-name",
- text: update_user.name)
+ activity_tab.expect_journal_notes_header(text: update_user.name)
end
end