Skip to content

Commit 8e63406

Browse files
authored
fix: test login issue (#275)
1 parent b2a558f commit 8e63406

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

test/steps/LoginWindow.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,19 @@ export class LoginWindow {
3030
await this._targetPage.click('button.btn-primary');
3131
}
3232

33+
async confirmEmergencyAddress() {
34+
await this._targetPage.waitForFunction(
35+
'document.querySelector("body").innerText.includes("Confirm");'
36+
);
37+
await this._targetPage.click('button.btn-primary');
38+
}
39+
3340
async authorize() {
3441
await this._targetPage.waitForFunction(
3542
'document.querySelector("body").innerText.includes("Access Request");'
3643
);
3744
await this._targetPage.click('button.btn-primary');
38-
await this.submitEmergencyAddress();
45+
await this._targetPage.waitFor(200);
46+
await this.confirmEmergencyAddress();
3947
}
4048
}

0 commit comments

Comments
 (0)