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

Commit b77e24d

Browse files
authored
Workaround Rust Crypto key upload race condition for Playwright tests (#12076)
Signed-off-by: Michael Telatynski <[email protected]>
1 parent e4d9e3e commit b77e24d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

playwright/pages/bot.ts

+4
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ export class Bot extends Client {
193193
await cli.startClient();
194194

195195
if (opts.bootstrapCrossSigning) {
196+
// XXX: workaround https://github.com/element-hq/element-web/issues/26755
197+
// wait for out device list to be available, as a proxy for the device keys having been uploaded.
198+
await cli.getCrypto()!.getUserDeviceInfo([credentials.userId]);
199+
196200
await cli.getCrypto()!.bootstrapCrossSigning({
197201
authUploadDeviceSigningKeys: async (func) => {
198202
await func({

0 commit comments

Comments
 (0)