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

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,10 +9440,17 @@ 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 login(userName, password) {
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) {
9444
9450
  const testEnv = undefined ?? "local";
9445
9451
  await this.page.goto("./");
9446
9452
  if (testEnv === "saas") {
9453
+ await this.waitForKeycloakLogin();
9447
9454
  await this.page.locator('input[name="username"]').fill(userName);
9448
9455
  const passwordInput = this.page.locator("#password");
9449
9456
  await (0, $hOLA6$expect)(passwordInput).toBeVisible({