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

avoid flaky spec in the future

Jonas Jabaribe0138724c9c
diff --git a/spec/features/work_packages/details/inplace_editor/subject_editor_spec.rb b/spec/features/work_packages/details/inplace_editor/subject_editor_spec.rb
index 46ae1b1b632..eccc108ad7d 100644
--- a/spec/features/work_packages/details/inplace_editor/subject_editor_spec.rb
+++ b/spec/features/work_packages/details/inplace_editor/subject_editor_spec.rb
@@ -83,6 +83,9 @@ RSpec.describe "subject inplace editor", :js, :selenium do
field.display_element.click
+ # try to avoid flakyness with the waiting approach
+ wait_for { page }.to have_content(I18n.t("notice_locking_conflict_danger"))
+
work_packages_page.expect_conflict_error_banner
end