DEV: more reliable send message helper (#19594)

This commit is contained in:
Joffrey JAFFEUX 2022-12-22 23:23:54 +01:00 committed by GitHub
parent 6ea6b385e0
commit 46b51ade83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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