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

attempt to fix flickering spec

ulfertsce50beb2f97c
diff --git a/spec/features/work_packages/details/inplace_editor/shared_examples.rb b/spec/features/work_packages/details/inplace_editor/shared_examples.rb
index 7ec13aaceac..a3ccf22963b 100644
--- a/spec/features/work_packages/details/inplace_editor/shared_examples.rb
+++ b/spec/features/work_packages/details/inplace_editor/shared_examples.rb
@@ -153,7 +153,9 @@ shared_examples 'a principal autocomplete field' do
# Close the autocompleter
field.input_element.send_keys :escape
+ sleep(0.01)
field.input_element.set('', fill_options: { clear: :backspace })
+ sleep(0.01)
field.input_element.send_keys(" @Laura Fo")
expect(page).to have_selector('.mention-list-item', text: mentioned_user.name)
expect(page).not_to have_selector('.mention-list-item', text: mentioned_group.name)