From 46b51ade8375869aa63cecb8b744270f329e1613 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 22 Dec 2022 23:23:54 +0100 Subject: [PATCH] DEV: more reliable send message helper (#19594) --- plugins/chat/spec/system/page_objects/chat/chat_channel.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/chat/spec/system/page_objects/chat/chat_channel.rb b/plugins/chat/spec/system/page_objects/chat/chat_channel.rb index ebf544dcba7..8919b1ee46e 100644 --- a/plugins/chat/spec/system/page_objects/chat/chat_channel.rb +++ b/plugins/chat/spec/system/page_objects/chat/chat_channel.rb @@ -62,6 +62,7 @@ module PageObjects end def send_message(text = nil) + find(".chat-composer-input").click # makes helper more reliable by ensuring focus is not lost find(".chat-composer-input").fill_in(with: text) click_send_message end