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

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/dist/module.js CHANGED
@@ -9446,31 +9446,7 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
9446
9446
  timeout: 15000,
9447
9447
  });
9448
9448
  }*/ async login(userName, password) {
9449
- const testEnv = undefined ?? "local";
9450
- await this.page.goto("./");
9451
- if (testEnv === "saas") {
9452
- //await this.waitForKeycloakLogin();
9453
- const usernameInput = this.page.locator('input[name="username"]');
9454
- await usernameInput.fill(userName);
9455
- await usernameInput.press("Tab"); // Move focus to next field
9456
- const passwordInput = this.page.locator('input[type="password"]');
9457
- await (0, $hOLA6$expect)(passwordInput).toBeVisible({
9458
- timeout: 10000
9459
- });
9460
- await passwordInput.fill(password);
9461
- } else {
9462
- await this.page.getByPlaceholder("User").fill(userName);
9463
- await this.page.getByPlaceholder("Password").fill(password);
9464
- }
9465
- await this.page.getByRole("button", {
9466
- name: /log in|sign in/i
9467
- }).click();
9468
- //await expect(this.page).toHaveTitle('Digital.ai Release');
9469
- //await this.page.locator('input#username').fill(userName, { timeout: 1000 });
9470
- //await this.page.locator('input#password').fill(password, { timeout: 10000 });
9471
- //await this.page.getByRole('button', { name: 'Log in' }).click({ timeout: 10000 });
9472
- await this.page.waitForTimeout(1000);
9473
- await this.closePendoModalWindow();
9449
+ throw new Error("TEST_ENV is not defined. Aborting login.");
9474
9450
  }
9475
9451
  async loginWithoutReload(userName, password) {
9476
9452
  let loadTriggered = false;