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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
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.rbindex 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 doactivity_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 checkactivity_tab.ckeditor.expect_include_value("@A Member wrote:\nFirst comment by member")endend@@ -817,7 +816,7 @@ RSpec.describe "Work package activity", :js, :with_cuprite doactivity_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")endendenddiff --git a/spec/support/components/work_packages/activities.rb b/spec/support/components/work_packages/activities.rbindex a8cc13c171b..792bf5c9f16 100644--- a/spec/support/components/work_packages/activities.rb+++ b/spec/support/components/work_packages/activities.rb@@ -287,10 +287,6 @@ module Componentsendexpect(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- endenddef get_all_comments_as_array