Make messaging/relink mock test more reliable
Co-authored-by: Fedor Indutny <indutny@signal.org>
This commit is contained in:
parent
3914216f5c
commit
c040cb2d6c
6 changed files with 63 additions and 19 deletions
|
@ -305,6 +305,8 @@ export class Bootstrap {
|
|||
const app = await this.startApp(extraConfig);
|
||||
|
||||
const window = await app.getWindow();
|
||||
|
||||
debug('looking for QR code or relink button');
|
||||
const qrCode = window.locator(
|
||||
'.module-InstallScreenQrCodeNotScannedStep__qr-code__code'
|
||||
);
|
||||
|
@ -316,10 +318,13 @@ export class Bootstrap {
|
|||
await qrCode.waitFor();
|
||||
}
|
||||
|
||||
debug('waiting for provision');
|
||||
const provision = await this.server.waitForProvision();
|
||||
|
||||
debug('waiting for provision URL');
|
||||
const provisionURL = await app.waitForProvisionURL();
|
||||
|
||||
debug('completing provision');
|
||||
this.privDesktop = await provision.complete({
|
||||
provisionURL,
|
||||
primaryDevice: this.phone,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue