Workaround Rust Crypto key upload race condition for Playwright tests (#12076)
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -193,6 +193,10 @@ export class Bot extends Client {
|
|||||||
await cli.startClient();
|
await cli.startClient();
|
||||||
|
|
||||||
if (opts.bootstrapCrossSigning) {
|
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({
|
await cli.getCrypto()!.bootstrapCrossSigning({
|
||||||
authUploadDeviceSigningKeys: async (func) => {
|
authUploadDeviceSigningKeys: async (func) => {
|
||||||
await func({
|
await func({
|
||||||
|
|||||||
Reference in New Issue
Block a user