@digital-ai/devops-page-object-release 0.0.0-snapshot-20260123085501 → 0.0.0-snapshot-20260123125310
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 +1 -1
- package/dist/main.js +11 -23
- package/dist/main.js.map +1 -1
- package/dist/module.js +11 -23
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -10329,31 +10329,22 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
|
|
|
10329
10329
|
*/ async login(userName, password) {
|
|
10330
10330
|
if (!$kKeXs$process.env.TEST_ENV) throw new Error("TEST_ENV is not defined. Aborting login.");
|
|
10331
10331
|
const testEnv = $kKeXs$process.env.TEST_ENV;
|
|
10332
|
-
$kKeXs$process.stderr.write(`[
|
|
10332
|
+
$kKeXs$process.stderr.write(`[UI Login Env:]\n` + ` TEST_ENV=${testEnv}\n`);
|
|
10333
10333
|
await this.page.goto("./");
|
|
10334
10334
|
if (testEnv === "saas") {
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
const
|
|
10338
|
-
await
|
|
10339
|
-
state: "visible",
|
|
10340
|
-
timeout: 10000
|
|
10341
|
-
});
|
|
10342
|
-
await usernameInput.fill(userName);
|
|
10343
|
-
const passwordInput = this.page.locator('input[name="password"]');
|
|
10344
|
-
await passwordInput.waitFor({
|
|
10345
|
-
state: "visible",
|
|
10346
|
-
timeout: 10000
|
|
10347
|
-
});
|
|
10348
|
-
await passwordInput.fill(password);
|
|
10335
|
+
const saasUsername = this.page.locator('input[name="username"]');
|
|
10336
|
+
await saasUsername.fill(userName);
|
|
10337
|
+
const saasPassword = this.page.locator('input[name="password"]');
|
|
10338
|
+
await saasPassword.fill(password);
|
|
10349
10339
|
} else {
|
|
10350
|
-
|
|
10351
|
-
await
|
|
10340
|
+
const localUsername = this.page.getByPlaceholder("User");
|
|
10341
|
+
await localUsername.fill(userName);
|
|
10342
|
+
const localPassword = this.page.getByPlaceholder("Password");
|
|
10343
|
+
await localPassword.fill(password);
|
|
10352
10344
|
}
|
|
10353
10345
|
await this.page.getByRole("button", {
|
|
10354
10346
|
name: /log in|sign in/i
|
|
10355
10347
|
}).click();
|
|
10356
|
-
await this.page.waitForTimeout(1000);
|
|
10357
10348
|
await this.closePendoModalWindow();
|
|
10358
10349
|
}
|
|
10359
10350
|
async loginWithoutReload(userName, password) {
|
|
@@ -11239,12 +11230,9 @@ function $6998c6a53a9eb4fa$var$encodeBasicAuth() {
|
|
|
11239
11230
|
const username = $kKeXs$process.env.TEST_USERNAME;
|
|
11240
11231
|
const password = $kKeXs$process.env.TEST_PASSWORD;
|
|
11241
11232
|
const environment = $kKeXs$process.env.TEST_ENV;
|
|
11242
|
-
|
|
11243
|
-
$kKeXs$process.stderr.write(`[ENV CHECK]\n` + ` TEST_USERNAME=${username}\n` + ` TEST_PASSWORD=${password}\n` + ` TEST_ENV=${environment}\n` + ` TEST_BASEURL=${base_url}\n`);
|
|
11233
|
+
$kKeXs$process.stderr.write(`[Fixtures Env:]\n` + ` TEST_ENV=${environment}\n`);
|
|
11244
11234
|
if (!username || !password) throw new Error("Missing TEST_USERNAME or TEST_PASSWORD in environment variables");
|
|
11245
|
-
|
|
11246
|
-
$kKeXs$process.stderr.write(`[AUTH CHECK]\n` + ` BasicAuth(base64)=${encoded}\n`);
|
|
11247
|
-
return encoded;
|
|
11235
|
+
return $6998c6a53a9eb4fa$require$Buffer.from(`${username}:${password}`).toString("base64");
|
|
11248
11236
|
}
|
|
11249
11237
|
const $6998c6a53a9eb4fa$export$1d40aa9bc568f58d = {
|
|
11250
11238
|
Authorization: `Basic ${$6998c6a53a9eb4fa$var$encodeBasicAuth()}`,
|