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

Wait for debounce after clearing field

Oliver Günther6770b1766e3f
diff --git a/spec/features/work_packages/details/date_editor_spec.rb b/spec/features/work_packages/details/date_editor_spec.rb
index a047e3fc3dc..516d0c7f4ca 100644
--- a/spec/features/work_packages/details/date_editor_spec.rb
+++ b/spec/features/work_packages/details/date_editor_spec.rb
@@ -211,12 +211,11 @@ describe 'date inplace editor',
it 'saves the date when clearing and then confirming' do
start_date.activate!
- sleep 1
-
start_date.input_element.click
start_date.clear with_backspace: true
start_date.input_element.send_keys :backspace
+ sleep 1
start_date.save!
work_packages_page.expect_and_dismiss_toaster message: 'Successful update.'