external-services-automation 1.0.20 → 1.0.22
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.
|
@@ -41,14 +41,14 @@ class RegisterPage {
|
|
|
41
41
|
if (acceptMarketing) {
|
|
42
42
|
await this.checkMarketingOptIn();
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
const checkboxCount = await this.acceptPoliciesCheckbox.count();
|
|
45
|
+
if (checkboxCount > 0) {
|
|
46
|
+
try {
|
|
47
47
|
await this.checkAcceptPolicies();
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
catch (error) {
|
|
50
|
+
// Ignore if checkbox is not interactable
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
await this.clickCreateAccount();
|
|
54
54
|
}
|
|
@@ -57,7 +57,7 @@ class RegisterPage {
|
|
|
57
57
|
await (0, test_1.expect)(this.lastNameInput).toBeVisible();
|
|
58
58
|
await (0, test_1.expect)(this.emailInput).toBeVisible();
|
|
59
59
|
await (0, test_1.expect)(this.marketingOptInCheckbox).toBeVisible();
|
|
60
|
-
await
|
|
60
|
+
// await expect(this.acceptPoliciesCheckbox).toBeVisible();
|
|
61
61
|
await (0, test_1.expect)(this.createAccountButton).toBeVisible();
|
|
62
62
|
}
|
|
63
63
|
}
|