You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-30 02:21:17 +03:00
Deflakey threads
cypress test (#10632)
`inviteUser` is asynchronous so you can't just call it and plough straight on. Also some logging improvements which helped debug this
This commit is contained in:
committed by
GitHub
parent
ac2855789f
commit
e350b4c2c2
@ -174,7 +174,9 @@ Cypress.Commands.add("createSpace", (options: ICreateRoomOpts): Chainable<string
|
||||
|
||||
Cypress.Commands.add("inviteUser", (roomId: string, userId: string): Chainable<{}> => {
|
||||
return cy.getClient().then(async (cli: MatrixClient) => {
|
||||
return cli.invite(roomId, userId);
|
||||
const res = await cli.invite(roomId, userId);
|
||||
Cypress.log({ name: "inviteUser", message: `sent invite in ${roomId} for ${userId}` });
|
||||
return res;
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user