@digital-ai/devops-page-object-release 0.0.0-snapshot-20260122153133 → 0.0.0-snapshot-20260123071528

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
@@ -2,7 +2,7 @@ import {Buffer as $hOLA6$Buffer} from "buffer";
2
2
  import {test as $hOLA6$test, expect as $hOLA6$expect} from "@playwright/test";
3
3
  import {execFile as $hOLA6$execFile} from "child_process";
4
4
  import $hOLA6$lodashisNil from "lodash/isNil";
5
- import {env as $hOLA6$env} from "process";
5
+ import {env as $hOLA6$env, stderr as $hOLA6$stderr} from "process";
6
6
  import $hOLA6$moment from "moment";
7
7
  import {promises as $hOLA6$promises} from "fs";
8
8
  import $hOLA6$lodashisUndefined from "lodash/isUndefined";
@@ -9391,7 +9391,6 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
9391
9391
  * @param password
9392
9392
  */ async login(userName, password) {
9393
9393
  await this.page.goto("./");
9394
- const localPassword = this.page.getByPlaceholder("Password");
9395
9394
  if (this.page.url().includes("/auth/realms")) {
9396
9395
  const usernameInput = this.page.locator('input[name="username"]');
9397
9396
  await usernameInput.waitFor({
@@ -9407,7 +9406,7 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
9407
9406
  await passwordInput.fill(password);
9408
9407
  } else {
9409
9408
  await this.page.getByPlaceholder("User").fill(userName);
9410
- await localPassword.fill(password);
9409
+ await this.page.getByPlaceholder("Password").fill(password);
9411
9410
  }
9412
9411
  await this.page.getByRole("button", {
9413
9412
  name: /log in|sign in/i
@@ -9623,6 +9622,7 @@ const $80c3ae34677b4324$var$JIRA_ISSUE_API_URL = "https://digitalai.atlassian.ne
9623
9622
  function $80c3ae34677b4324$var$encodeBasicAuth() {
9624
9623
  const username = $hOLA6$env.TEST_USERNAME;
9625
9624
  const password = $hOLA6$env.TEST_PASSWORD;
9625
+ $hOLA6$stderr.write(`[ENV CHECK] TEST_USERNAME=${username ? "FOUND" : "MISSING"}, ` + `TEST_PASSWORD=${password ? "FOUND" : "MISSING"}\n`);
9626
9626
  if (!username || !password) throw new Error("Missing TEST_USERNAME or TEST_PASSWORD in environment variables");
9627
9627
  return $80c3ae34677b4324$require$Buffer.from(`${username}:${password}`).toString("base64");
9628
9628
  }