From 20f5adc9a9301028810862a03a11b6130b93f644 Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 6 Oct 2022 16:09:40 +0200 Subject: [PATCH] avoid autojoin latency in "should be usable for a conversation" (#9364) --- cypress/e2e/threads/threads.spec.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/threads/threads.spec.ts b/cypress/e2e/threads/threads.spec.ts index 1cc6848ec5..5af2d07d79 100644 --- a/cypress/e2e/threads/threads.spec.ts +++ b/cypress/e2e/threads/threads.spec.ts @@ -73,7 +73,10 @@ describe("Threads", () => { it("should be usable for a conversation", () => { let bot: MatrixClient; - cy.getBot(synapse, { displayName: "BotBob" }).then(_bot => { + cy.getBot(synapse, { + displayName: "BotBob", + autoAcceptInvites: false, + }).then(_bot => { bot = _bot; }); @@ -81,6 +84,7 @@ describe("Threads", () => { cy.createRoom({}).then(_roomId => { roomId = _roomId; cy.inviteUser(roomId, bot.getUserId()); + bot.joinRoom(roomId); cy.visit("/#/room/" + roomId); });