Cypress - stabilise "creating a DM should work" test (#9373)

* better error message for failed bot room join

* wait for room invite before attempting bot join

* remove sent receipt assertion

* lint

* remove debug formatting

* use RoomMemberEvent enum from window
This commit is contained in:
Kerry 2022-10-07 13:34:28 +02:00 committed by GitHub
parent 7fd2fb9359
commit 13458250bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 5 deletions

View file

@ -128,7 +128,7 @@ Cypress.Commands.add("botJoinRoomByName", (cli: MatrixClient, roomName: string):
return cy.botJoinRoom(cli, room.roomId);
}
return cy.wrap(Promise.reject());
return cy.wrap(Promise.reject(`Bot room join failed. Cannot find room '${roomName}'`));
});
Cypress.Commands.add("botSendMessage", (