Better sync between convo and protocol stores
This commit is contained in:
parent
442cc43b94
commit
fbf91a4d79
10 changed files with 195 additions and 14 deletions
|
@ -266,7 +266,7 @@ export class Bootstrap {
|
|||
return path.join(this.backupPath, fileName);
|
||||
}
|
||||
|
||||
public unlink(): Promise<void> {
|
||||
public eraseStorage(): Promise<void> {
|
||||
return this.resetAppStorage();
|
||||
}
|
||||
|
||||
|
@ -304,6 +304,18 @@ export class Bootstrap {
|
|||
|
||||
const app = await this.startApp(extraConfig);
|
||||
|
||||
const window = await app.getWindow();
|
||||
const qrCode = window.locator(
|
||||
'.module-InstallScreenQrCodeNotScannedStep__qr-code__code'
|
||||
);
|
||||
const relinkButton = window.locator('.LeftPaneDialog__icon--relink');
|
||||
await qrCode.or(relinkButton).waitFor();
|
||||
if (await relinkButton.isVisible()) {
|
||||
debug('unlinked, clicking left pane button');
|
||||
await relinkButton.click();
|
||||
await qrCode.waitFor();
|
||||
}
|
||||
|
||||
const provision = await this.server.waitForProvision();
|
||||
|
||||
const provisionURL = await app.waitForProvisionURL();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue