@digital-ai/devops-page-object-release 0.0.0-snapshot-20260121085609 → 0.0.0-snapshot-20260121111815
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 -11
- package/dist/main.js.map +1 -1
- package/dist/module.js +11 -11
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -9440,23 +9440,23 @@ class $4444bee76761dfb1$export$f14c0e3f98d164c0 extends (0, $9626bc9256ce31f7$ex
|
|
|
9440
9440
|
default:
|
|
9441
9441
|
throw new Error(`Unsupported TEST_ENV value: ${env}`);
|
|
9442
9442
|
}
|
|
9443
|
-
}*/ async waitForKeycloakLogin() {
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
async login(userName, password) {
|
|
9443
|
+
}*/ /* private async waitForKeycloakLogin(): Promise<void> {
|
|
9444
|
+
await this.page.waitForSelector('form#kc-form-login', {
|
|
9445
|
+
state: 'visible',
|
|
9446
|
+
timeout: 15000,
|
|
9447
|
+
});
|
|
9448
|
+
}*/ async login(userName, password) {
|
|
9450
9449
|
const testEnv = undefined ?? "local";
|
|
9451
9450
|
await this.page.goto("./");
|
|
9452
9451
|
if (testEnv === "saas") {
|
|
9453
|
-
await this.waitForKeycloakLogin();
|
|
9454
|
-
|
|
9455
|
-
|
|
9452
|
+
//await this.waitForKeycloakLogin();
|
|
9453
|
+
const usernameInput = this.page.locator('input[name="username"]');
|
|
9454
|
+
await usernameInput.fill(userName);
|
|
9455
|
+
await usernameInput.press("Tab"); // Move focus to next field
|
|
9456
|
+
const passwordInput = this.page.locator('input[type="password"]');
|
|
9456
9457
|
await (0, $hOLA6$expect)(passwordInput).toBeVisible({
|
|
9457
9458
|
timeout: 10000
|
|
9458
9459
|
});
|
|
9459
|
-
await passwordInput.click();
|
|
9460
9460
|
await passwordInput.fill(password);
|
|
9461
9461
|
} else {
|
|
9462
9462
|
await this.page.getByPlaceholder("User").fill(userName);
|