external-services-automation 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,6 @@ export declare class PasswordSetupPage {
|
|
|
6
6
|
readonly confirmPasswordInput: Locator;
|
|
7
7
|
readonly continueButton: Locator;
|
|
8
8
|
readonly dontUseMFAButton: Locator;
|
|
9
|
-
readonly verifyYourIdentityTitle: Locator;
|
|
10
9
|
constructor(page: Page);
|
|
11
10
|
enterPassword(password: string): Promise<void>;
|
|
12
11
|
enterConfirmPassword(password: string): Promise<void>;
|
|
@@ -10,7 +10,6 @@ class PasswordSetupPage {
|
|
|
10
10
|
this.confirmPasswordInput = page.locator('input[name="p_second_password"]');
|
|
11
11
|
this.continueButton = page.locator('button[type="submit"]:has-text("Continue")');
|
|
12
12
|
this.dontUseMFAButton = page.locator('//button[contains(text(), "multi-factor authentication")]');
|
|
13
|
-
this.verifyYourIdentityTitle = page.locator('//h1[text()="Verify your identity"]');
|
|
14
13
|
}
|
|
15
14
|
async enterPassword(password) {
|
|
16
15
|
await this.passwordInput.fill(password);
|
|
@@ -33,12 +32,10 @@ class PasswordSetupPage {
|
|
|
33
32
|
await (0, test_1.expect)(this.continueButton).toBeVisible();
|
|
34
33
|
}
|
|
35
34
|
async dontUseMFA() {
|
|
36
|
-
|
|
37
|
-
if (await this.
|
|
35
|
+
await this.page.waitForTimeout(3000);
|
|
36
|
+
if (await this.dontUseMFAButton.isVisible()) {
|
|
38
37
|
await this.dontUseMFAButton.click();
|
|
39
|
-
console.log("clicked dontUseMFA");
|
|
40
38
|
}
|
|
41
|
-
console.log("exited dontUseMFA");
|
|
42
39
|
}
|
|
43
40
|
}
|
|
44
41
|
exports.PasswordSetupPage = PasswordSetupPage;
|