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 gitlab activity spec

Jonas Jabari3fc9045ff9e8
diff --git a/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb b/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb
index 858596c2457..a07d87b004f 100644
--- a/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb
+++ b/modules/gitlab_integration/spec/features/work_package_gitlab_issue_activity_spec.rb
@@ -71,6 +71,7 @@ RSpec.describe "Work Package Activity Tab",
end
let(:work_package_page) { Pages::SplitWorkPackage.new(work_package, project) }
+ let(:activity_tab) { Components::WorkPackages::Activities.new(work_package) }
context "when there is an issue event" do
before do
@@ -90,7 +91,7 @@ RSpec.describe "Work Package Activity Tab",
end
it "renders a comment referencing the issue" do
- expect(page).to have_css(".user-comment > .message", text: expected_comment)
+ activity_tab.expect_journal_notes(text: expected_comment)
end
end
end