A platform for community discussion. Free, open, simple.
FIX: more reliable archive channel spec (#19605)
Joffrey JAFFEUX64dcd44c949b
diff --git a/plugins/chat/spec/system/archive_channel_spec.rb b/plugins/chat/spec/system/archive_channel_spec.rbindex 409d86671b6..4a2e77c4d48 100644--- a/plugins/chat/spec/system/archive_channel_spec.rb+++ b/plugins/chat/spec/system/archive_channel_spec.rb@@ -114,9 +114,11 @@ RSpec.describe "Archive channel", type: :system, js: true doit "can be retried" dochat.visit_channel(channel_1)click_button(I18n.t("js.chat.channel_archive.retry"))- visit(find(".chat-channel-archive-status a")["href"])- expect(page).to have_content(archive.destination_topic_title)+ new_window = window_opened_by { find(".chat-channel-archive-status a").click }+ within_window(new_window) do+ expect(page).to have_content(archive.destination_topic_title)+ endendendend