Ensure the bot has joined the correct room before we start the test (#11693)
This commit is contained in:
@@ -103,10 +103,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -111,10 +111,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -81,10 +81,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -109,10 +109,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -99,10 +99,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -114,10 +114,12 @@ describe("Read receipts", () => {
|
|||||||
// Invite the bot to both rooms
|
// Invite the bot to both rooms
|
||||||
cy.inviteUser(alphaRoomId, bot.getUserId());
|
cy.inviteUser(alphaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(alphaRoomId);
|
cy.viewRoomById(alphaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomAlpha).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
|
|
||||||
cy.inviteUser(betaRoomId, bot.getUserId());
|
cy.inviteUser(betaRoomId, bot.getUserId());
|
||||||
cy.viewRoomById(betaRoomId);
|
cy.viewRoomById(betaRoomId);
|
||||||
|
cy.get(".mx_LegacyRoomHeader").within(() => cy.findByTitle(roomBeta).should("exist"));
|
||||||
cy.findByText(botName + " joined the room").should("exist");
|
cy.findByText(botName + " joined the room").should("exist");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user