Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Workaround Rust Crypto key upload race condition for Playwright tests (
Browse files Browse the repository at this point in the history
…#12076)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
  • Loading branch information
t3chguy authored Dec 21, 2023
1 parent e4d9e3e commit b77e24d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions playwright/pages/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ export class Bot extends Client {
await cli.startClient();

if (opts.bootstrapCrossSigning) {
// XXX: workaround https://github.com/element-hq/element-web/issues/26755
// wait for out device list to be available, as a proxy for the device keys having been uploaded.
await cli.getCrypto()!.getUserDeviceInfo([credentials.userId]);

await cli.getCrypto()!.bootstrapCrossSigning({
authUploadDeviceSigningKeys: async (func) => {
await func({
Expand Down

0 comments on commit b77e24d

Please sign in to comment.