@digital-ai/devops-page-object-release 0.0.0-snapshot-20260123073622 → 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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @digital-ai/devops-page-object-release
2
2
 
3
- ## 0.0.0-snapshot-20260123073622
3
+ ## 0.0.0-snapshot-20260123084336
4
4
 
5
5
  ### Patch Changes
6
6
 
package/dist/main.js CHANGED
@@ -10320,14 +10320,18 @@ class $4ef41cf96a5fae4c$export$b8a61e5c71402559 {
10320
10320
 
10321
10321
 
10322
10322
 
10323
+
10323
10324
  class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$export$2b65d1d97338f32b) {
10324
10325
  /**
10325
10326
  * Login with username and password
10326
10327
  * @param userName
10327
10328
  * @param password
10328
10329
  */ async login(userName, password) {
10330
+ if (!$kKeXs$process.env.TEST_ENV) throw new Error("TEST_ENV is not defined. Aborting login.");
10331
+ const testEnv = $kKeXs$process.env.TEST_ENV;
10329
10332
  await this.page.goto("./");
10330
- if (this.page.url().includes("/auth/realms")) {
10333
+ if (testEnv === "saas") {
10334
+ //if (this.page.url().includes('/auth/realms')) {
10331
10335
  const usernameInput = this.page.locator('input[name="username"]');
10332
10336
  await usernameInput.waitFor({
10333
10337
  state: "visible",
@@ -11234,9 +11238,11 @@ function $6998c6a53a9eb4fa$var$encodeBasicAuth() {
11234
11238
  const password = $kKeXs$process.env.TEST_PASSWORD;
11235
11239
  const environment = $kKeXs$process.env.TEST_ENV;
11236
11240
  const base_url = $kKeXs$process.env.BASE_URL;
11237
- $kKeXs$process.stderr.write(`[ENV CHECK]\n` + ` TEST_USERNAME=${username}\n` + ` TEST_PASSWORD=${password}\n` + ` TEST_ENV=${environment}\n` + ` TEST_USERNAME=${base_url}\n`);
11241
+ $kKeXs$process.stderr.write(`[ENV CHECK]\n` + ` TEST_USERNAME=${username}\n` + ` TEST_PASSWORD=${password}\n` + ` TEST_ENV=${environment}\n` + ` TEST_BASEURL=${base_url}\n`);
11238
11242
  if (!username || !password) throw new Error("Missing TEST_USERNAME or TEST_PASSWORD in environment variables");
11239
- return $6998c6a53a9eb4fa$require$Buffer.from(`${username}:${password}`).toString("base64");
11243
+ const encoded = $6998c6a53a9eb4fa$require$Buffer.from(`${username}:${password}`).toString("base64");
11244
+ $kKeXs$process.stderr.write(`[AUTH CHECK]\n` + ` BasicAuth(base64)=${encoded}\n`);
11245
+ return encoded;
11240
11246
  }
11241
11247
  const $6998c6a53a9eb4fa$export$1d40aa9bc568f58d = {
11242
11248
  Authorization: `Basic ${$6998c6a53a9eb4fa$var$encodeBasicAuth()}`,