Skip to content

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

DEV: Fix a flaky chat shortcut test (#33966)

Gary Pendergast62c711b7c4f7
diff --git a/plugins/chat/spec/system/shortcuts/full_page_spec.rb b/plugins/chat/spec/system/shortcuts/full_page_spec.rb
index 93b7d9eab35..4de162e79bb 100644
--- a/plugins/chat/spec/system/shortcuts/full_page_spec.rb
+++ b/plugins/chat/spec/system/shortcuts/full_page_spec.rb
@@ -5,6 +5,7 @@ RSpec.describe "Shortcuts | full page", type: :system do
fab!(:current_user, :user)
let(:chat) { PageObjects::Pages::Chat.new }
+ let(:channel_page) { PageObjects::Pages::ChatChannel.new }
before do
chat_system_bootstrap
@@ -19,7 +20,7 @@ RSpec.describe "Shortcuts | full page", type: :system do
page.send_keys("e")
- expect(find(".chat-composer__input").value).to eq("e")
+ expect(channel_page.composer).to have_value("e")
end
end
end