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 quote comment flaky test (#17949)

Bruno Pagno219baab57515
diff --git a/spec/features/activities/work_package/activities_spec.rb b/spec/features/activities/work_package/activities_spec.rb
index d0a538f1f45..61dc33e5da5 100644
--- a/spec/features/activities/work_package/activities_spec.rb
+++ b/spec/features/activities/work_package/activities_spec.rb
@@ -796,7 +796,6 @@ RSpec.describe "Work package activity", :js, :with_cuprite do
activity_tab.quote_comment(first_comment_by_member)
# expect the quoted comment to be shown
- # include value because ckeditor is returning a bunch of invisible characters and breaking the check
activity_tab.ckeditor.expect_include_value("@A Member wrote:\nFirst comment by member")
end
end
@@ -817,7 +816,7 @@ RSpec.describe "Work package activity", :js, :with_cuprite do
activity_tab.quote_comment(first_comment_by_member)
# expect the original comment and quote are shown
- activity_tab.ckeditor.expect_value("Partial message:\n@A Member wrote:\nFirst comment by member")
+ activity_tab.ckeditor.expect_include_value("Partial message:\n@A Member wrote:\nFirst comment by member")
end
end
end
diff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rb
index a8cc13c171b..792bf5c9f16 100644
--- a/spec/support/components/work_packages/activities.rb
+++ b/spec/support/components/work_packages/activities.rb
@@ -287,10 +287,6 @@ module Components
end
expect(page).to have_test_selector("op-work-package-journal-form-element")
-
- page.within_test_selector("op-work-package-journal-form-element") do
- page.find_test_selector("op-submit-work-package-journal-form").click
- end
end
def get_all_comments_as_array