@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/CHANGELOG.md +1 -1
- package/dist/main.js +5 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -1
- 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
|
@@ -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 (
|
|
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",
|