From 8e91c9cc9231efb4002fe22c01ce1606ae7c4968 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 13 Dec 2022 11:56:21 +0100 Subject: [PATCH] bootstrap with a different user --- plugins/chat/spec/system/transcript_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/chat/spec/system/transcript_spec.rb b/plugins/chat/spec/system/transcript_spec.rb index 526076e010..7960bb7146 100644 --- a/plugins/chat/spec/system/transcript_spec.rb +++ b/plugins/chat/spec/system/transcript_spec.rb @@ -15,7 +15,8 @@ RSpec.describe "Quoting chat message transcripts", type: :system, js: true do let(:topic_page) { PageObjects::Pages::Topic.new } before do - chat_system_bootstrap(current_user, [chat_channel_1]) + chat_system_bootstrap(Fabricate(:admin), [chat_channel_1]) + chat_channel_1.add(current_user) sign_in(current_user) end