1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

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
10 changed files with 207 additions and 72 deletions

View File

@ -53,6 +53,10 @@ declare global {
* @param data The data to store.
*/
setAccountData(type: string, data: object): Chainable<{}>;
/**
* Boostraps cross-signing.
*/
bootstrapCrossSigning(): Chainable<void>;
}
}
}
@ -103,3 +107,11 @@ Cypress.Commands.add("setAccountData", (type: string, data: object): Chainable<{
return cli.setAccountData(type, data);
});
});
Cypress.Commands.add("bootstrapCrossSigning", () => {
cy.window({ log: false }).then(win => {
win.mxMatrixClientPeg.matrixClient.bootstrapCrossSigning({
authUploadDeviceSigningKeys: async func => { await func({}); },
});
});
});