@digital-ai/devops-page-object-release 0.0.0-snapshot-20260121132732 → 0.0.0-snapshot-20260122094725

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20260121132732
3
+ ## 0.0.0-snapshot-20260122094725
4
4
 
5
5
  ### Patch Changes
6
6
 
package/dist/main.js CHANGED
@@ -10381,6 +10381,26 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
10381
10381
  state: 'visible',
10382
10382
  timeout: 15000,
10383
10383
  });
10384
+ }*/ /*async login(userName: string, password: string): Promise<void> {
10385
+ await this.page.goto('./');
10386
+
10387
+ const localPassword = this.page.getByPlaceholder('Password');
10388
+
10389
+ if (await localPassword.isVisible({ timeout: 3000 }).catch(() => false)) {
10390
+ await this.page.getByPlaceholder('User').fill(userName);
10391
+ await localPassword.fill(password);
10392
+ } else {
10393
+ const usernameInput = this.page.locator('input[name="username"]');
10394
+ await usernameInput.waitFor({ state: 'visible', timeout: 10000 });
10395
+ await usernameInput.fill(userName);
10396
+
10397
+ const passwordInput = this.page.locator('input[type="password"]');
10398
+ await passwordInput.waitFor({ state: 'visible', timeout: 10000 });
10399
+ await passwordInput.fill(password);
10400
+ }
10401
+ await this.page.getByRole('button', { name: /log in|sign in/i }).click();
10402
+ await this.page.waitForTimeout(1000);
10403
+ await this.closePendoModalWindow();
10384
10404
  }*/ async login(userName, password) {
10385
10405
  throw new Error("TEST_ENV is not defined. Aborting login.");
10386
10406
  }