@digital-ai/devops-page-object-release 0.0.0-snapshot-20260122084417 → 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-20260122084417
3
+ ## 0.0.0-snapshot-20260122094725
4
4
 
5
5
  ### Patch Changes
6
6
 
package/dist/main.js CHANGED
@@ -10381,33 +10381,28 @@ 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
- await this.page.goto("./");
10386
- const localPassword = this.page.getByPlaceholder("Password");
10387
- if (await localPassword.isVisible({
10388
- timeout: 3000
10389
- }).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({
10395
- state: "visible",
10396
- timeout: 10000
10397
- });
10398
- await usernameInput.fill(userName);
10399
- const passwordInput = this.page.locator('input[type="password"]');
10400
- await passwordInput.waitFor({
10401
- state: "visible",
10402
- timeout: 10000
10403
- });
10404
- await passwordInput.fill(password);
10405
- }
10406
- await this.page.getByRole("button", {
10407
- name: /log in|sign in/i
10408
- }).click();
10409
- await this.page.waitForTimeout(1000);
10410
- await this.closePendoModalWindow();
10405
+ throw new Error("TEST_ENV is not defined. Aborting login.");
10411
10406
  }
10412
10407
  async loginWithoutReload(userName, password) {
10413
10408
  let loadTriggered = false;