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:
parent
ac2855789f
commit
e350b4c2c2
3 changed files with 24 additions and 15 deletions
|
@ -58,7 +58,9 @@ declare global {
|
|||
|
||||
function startHomeserver(template: string): Chainable<HomeserverInstance> {
|
||||
const homeserverName = Cypress.env("HOMESERVER");
|
||||
return cy.task<HomeserverInstance>(homeserverName + "Start", template);
|
||||
return cy.task<HomeserverInstance>(homeserverName + "Start", template, { log: false }).then((x) => {
|
||||
Cypress.log({ name: "startHomeserver", message: `Started homeserver instance ${x.serverId}` });
|
||||
});
|
||||
}
|
||||
|
||||
function stopHomeserver(homeserver?: HomeserverInstance): Chainable<AUTWindow> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue