@digital-ai/devops-page-object-release 0.0.0-snapshot-20260121085609 → 0.0.0-snapshot-20260121110715

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
@@ -9440,23 +9440,21 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
9440
9440
  default:
9441
9441
  throw new Error(`Unsupported TEST_ENV value: ${env}`);
9442
9442
  }
9443
- }*/ async waitForKeycloakLogin() {
9444
- await this.page.waitForSelector("form#kc-form-login", {
9445
- state: "visible",
9446
- timeout: 15000
9447
- });
9448
- }
9449
- async login(userName, password) {
9443
+ }*/ /* private async waitForKeycloakLogin(): Promise<void> {
9444
+ await this.page.waitForSelector('form#kc-form-login', {
9445
+ state: 'visible',
9446
+ timeout: 15000,
9447
+ });
9448
+ }*/ async login(userName, password) {
9450
9449
  const testEnv = undefined ?? "local";
9451
9450
  await this.page.goto("./");
9452
9451
  if (testEnv === "saas") {
9453
- await this.waitForKeycloakLogin();
9452
+ //await this.waitForKeycloakLogin();
9454
9453
  await this.page.locator('input[name="username"]').fill(userName);
9455
- const passwordInput = this.page.locator("#password");
9454
+ const passwordInput = this.page.locator('input[type="password"]');
9456
9455
  await (0, $hOLA6$expect)(passwordInput).toBeVisible({
9457
9456
  timeout: 10000
9458
9457
  });
9459
- await passwordInput.click();
9460
9458
  await passwordInput.fill(password);
9461
9459
  } else {
9462
9460
  await this.page.getByPlaceholder("User").fill(userName);