A platform for community discussion. Free, open, simple.
DEV: Fix flaky emoji picker search in system specs (#44118)
Gabriel Grubbab37bffb0de77
diff --git a/spec/system/page_objects/components/emoji_picker.rb b/spec/system/page_objects/components/emoji_picker.rbindex 4824a92ee4c..69cb5c18779 100644--- a/spec/system/page_objects/components/emoji_picker.rb+++ b/spec/system/page_objects/components/emoji_picker.rb@@ -12,7 +12,9 @@ module PageObjectsenddef search_emoji(emoji_name)- find(".emoji-picker .filter-input").fill_in(with: emoji_name)+ # `fill_in` types the last character as a separate input event; when the two+ # land a debounce apart, results for the partial term render and are then replaced+ locator(".emoji-picker .filter-input").fill(emoji_name)enddef has_emoji?(emoji_name)