external-services-automation 1.0.24 → 1.0.26

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.
@@ -8,7 +8,7 @@ class LoginPage {
8
8
  this.nextButton = page.locator('.kinde-button.kinde-button-variant-primary');
9
9
  this.passwordInput = page.locator('#verify_password_p_password');
10
10
  this.email_not_exists = page.locator('#sign_up_sign_in_credentials_p_email_error_msg');
11
- this.createAccountLink = page.locator('.kinde-text-link[href*="register"]');
11
+ this.createAccountLink = page.locator('//span[@class="signup-cta"]//a[text()="Sign up"]');
12
12
  }
13
13
  async navigate() {
14
14
  await this.page.goto('/login');
@@ -5,10 +5,10 @@ const test_1 = require("@playwright/test");
5
5
  class PasswordSetupPage {
6
6
  constructor(page) {
7
7
  this.page = page;
8
- this.pageTitle = page.locator('h1:has-text("Password setup")');
8
+ this.pageTitle = page.getByRole('heading', { name: 'Password setup' });
9
9
  this.passwordInput = page.locator('input[name="p_first_password"]');
10
10
  this.confirmPasswordInput = page.locator('input[name="p_second_password"]');
11
- this.continueButton = page.locator('button[type="submit"]:has-text("Continue")');
11
+ this.continueButton = page.getByRole('button', { name: 'Continue' });
12
12
  this.dontUseMFAButton = page.locator('//button[contains(text(), "multi-factor authentication")]');
13
13
  }
14
14
  async enterPassword(password) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "external-services-automation",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "External services automation library for Playwright and Cucumber",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",