A platform for community discussion. Free, open, simple.
DEV: Re-enable chat transcript nested system spec (#19758)
Martin Brennan697776159378
diff --git a/plugins/chat/spec/system/page_objects/chat/chat_channel.rb b/plugins/chat/spec/system/page_objects/chat/chat_channel.rbindex 6d17e6d1ad8..715c2a3d2ef 100644--- a/plugins/chat/spec/system/page_objects/chat/chat_channel.rb+++ b/plugins/chat/spec/system/page_objects/chat/chat_channel.rb@@ -69,6 +69,7 @@ module PageObjectsenddef send_message(text = nil)+ text = text.chomp if text.present? # having \n on the end of the string counts as an Enter keypressfind(".chat-composer-input").click # makes helper more reliable by ensuring focus is not lostfind(".chat-composer-input").fill_in(with: text)click_send_messagediff --git a/plugins/chat/spec/system/transcript_spec.rb b/plugins/chat/spec/system/transcript_spec.rbindex 9db9cd93921..ad5e75212b5 100644--- a/plugins/chat/spec/system/transcript_spec.rb+++ b/plugins/chat/spec/system/transcript_spec.rb@@ -173,7 +173,7 @@ RSpec.describe "Quoting chat message transcripts", type: :system, js: true docontext "when quoting a message in another message" dofab!(:message_1) { Fabricate(:chat_message, chat_channel: chat_channel_1) }- xit "quotes the message" do+ it "quotes the message" dochat_page.visit_channel(chat_channel_1)expect(chat_channel_page).to have_no_loading_skeleton