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
- try {
45
- const isVisible = await this.acceptPoliciesCheckbox.isVisible({ timeout: 2000 });
46
- if (isVisible) {
44
+ const checkboxCount = await this.acceptPoliciesCheckbox.count();
45
+ if (checkboxCount > 0) {
46
+ try {
47
47
  await this.checkAcceptPolicies();
48
48
  }
49
- }
50
- catch (error) {
51
- // Ignore if checkbox doesn't exist or is not interactable
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 (0, test_1.expect)(this.acceptPoliciesCheckbox).toBeVisible();
60
+ // await expect(this.acceptPoliciesCheckbox).toBeVisible();
61
61
  await (0, test_1.expect)(this.createAccountButton).toBeVisible();
62
62
  }
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "external-services-automation",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
4
4
  "description": "External services automation library for Playwright and Cucumber",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",