@digital-ai/devops-page-object-release 0.0.0-snapshot-20260123083000 → 0.0.0-snapshot-20260123084336

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
@@ -9384,14 +9384,18 @@ class $e72552cbf941ecfa$export$b8a61e5c71402559 {
9384
9384
 
9385
9385
 
9386
9386
 
9387
+
9387
9388
  class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$export$2b65d1d97338f32b) {
9388
9389
  /**
9389
9390
  * Login with username and password
9390
9391
  * @param userName
9391
9392
  * @param password
9392
9393
  */ async login(userName, password) {
9394
+ if (!$hOLA6$env.TEST_ENV) throw new Error("TEST_ENV is not defined. Aborting login.");
9395
+ const testEnv = $hOLA6$env.TEST_ENV;
9393
9396
  await this.page.goto("./");
9394
- if (this.page.url().includes("/auth/realms")) {
9397
+ if (testEnv === "saas") {
9398
+ //if (this.page.url().includes('/auth/realms')) {
9395
9399
  const usernameInput = this.page.locator('input[name="username"]');
9396
9400
  await usernameInput.waitFor({
9397
9401
  state: "visible",