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

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
@@ -9450,11 +9450,22 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
9450
9450
  await this.page.goto("./");
9451
9451
  if (testEnv === "saas") {
9452
9452
  //await this.waitForKeycloakLogin();
9453
- await this.page.locator('input[name="username"]').fill(userName);
9454
- const passwordInput = this.page.locator('input[type="password"]');
9455
- await (0, $hOLA6$expect)(passwordInput).toBeVisible({
9456
- timeout: 10000
9453
+ const usernameInput = this.page.locator('input[name="username"]');
9454
+ await usernameInput.fill(userName);
9455
+ // 🔥 Force Keycloak to enable password
9456
+ await usernameInput.dispatchEvent("input");
9457
+ await usernameInput.dispatchEvent("change");
9458
+ await usernameInput.dispatchEvent("blur");
9459
+ // PASSWORD
9460
+ const passwordInput = this.page.locator('input[name="password"]');
9461
+ await passwordInput.waitFor({
9462
+ state: "attached",
9463
+ timeout: 15000
9457
9464
  });
9465
+ await (0, $hOLA6$expect)(passwordInput).toBeEnabled({
9466
+ timeout: 15000
9467
+ });
9468
+ await passwordInput.focus();
9458
9469
  await passwordInput.fill(password);
9459
9470
  } else {
9460
9471
  await this.page.getByPlaceholder("User").fill(userName);