Migrate crypto test to cypress (#8833)

This commit is contained in:
Michael Weimann 2022-06-30 10:59:25 +02:00 committed by GitHub
parent 171f5adff6
commit 7e47749ce2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 207 additions and 72 deletions

View file

@ -167,7 +167,7 @@ describe("Spaces", () => {
it("should allow user to invite another to a space", () => {
let bot: MatrixClient;
cy.getBot(synapse, "BotBob").then(_bot => {
cy.getBot(synapse, { displayName: "BotBob" }).then(_bot => {
bot = _bot;
});
@ -202,7 +202,7 @@ describe("Spaces", () => {
});
getSpacePanelButton("My Space").should("exist");
cy.getBot(synapse, "BotBob").then({ timeout: 10000 }, async bot => {
cy.getBot(synapse, { displayName: "BotBob" }).then({ timeout: 10000 }, async bot => {
const { room_id: roomId } = await bot.createRoom(spaceCreateOptions("Space Space"));
await bot.invite(roomId, user.userId);
});