Skip to content

A platform for community discussion. Free, open, simple.

DEV: fix failing specs (#35507)

Joffrey JAFFEUXc2e4cb30af30
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 5b07114b4b6..b900286d3bd 100644
--- a/plugins/chat/spec/system/page_objects/chat/chat_channel.rb
+++ b/plugins/chat/spec/system/page_objects/chat/chat_channel.rb
@@ -117,7 +117,7 @@ module PageObjects
def send_message(text = nil)
text ||= fake_chat_message
text = text.chomp if text.present? # having \n on the end of the string counts as an Enter keypress
- composer.fill_in(with: text)
+ fill_composer(text)
click_send_message
expect(page).to have_no_css(".chat-message.-not-processed")
text
diff --git a/plugins/chat/spec/system/page_objects/chat/chat_thread.rb b/plugins/chat/spec/system/page_objects/chat/chat_thread.rb
index 1c79bd8b290..ee49c7ac2db 100644
--- a/plugins/chat/spec/system/page_objects/chat/chat_thread.rb
+++ b/plugins/chat/spec/system/page_objects/chat/chat_thread.rb
@@ -102,7 +102,7 @@ module PageObjects
def send_message(text = nil)
text ||= fake_chat_message
text = text.chomp if text.present? # having \n on the end of the string counts as an Enter keypress
- composer.fill_in(with: text)
+ fill_composer(text)
click_send_message
expect(page).to have_no_css(".chat-message.-not-processed")
click_composer