@digital-ai/devops-page-object-release 0.0.0-snapshot-20260121085609 → 0.0.0-snapshot-20260121110715
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 +8 -10
- package/dist/main.js.map +1 -1
- package/dist/module.js +8 -10
- 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/CHANGELOG.md
CHANGED
package/dist/main.js
CHANGED
|
@@ -10376,23 +10376,21 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
|
|
|
10376
10376
|
default:
|
|
10377
10377
|
throw new Error(`Unsupported TEST_ENV value: ${env}`);
|
|
10378
10378
|
}
|
|
10379
|
-
}*/ async waitForKeycloakLogin() {
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
async login(userName, password) {
|
|
10379
|
+
}*/ /* private async waitForKeycloakLogin(): Promise<void> {
|
|
10380
|
+
await this.page.waitForSelector('form#kc-form-login', {
|
|
10381
|
+
state: 'visible',
|
|
10382
|
+
timeout: 15000,
|
|
10383
|
+
});
|
|
10384
|
+
}*/ async login(userName, password) {
|
|
10386
10385
|
const testEnv = undefined ?? "local";
|
|
10387
10386
|
await this.page.goto("./");
|
|
10388
10387
|
if (testEnv === "saas") {
|
|
10389
|
-
await this.waitForKeycloakLogin();
|
|
10388
|
+
//await this.waitForKeycloakLogin();
|
|
10390
10389
|
await this.page.locator('input[name="username"]').fill(userName);
|
|
10391
|
-
const passwordInput = this.page.locator("
|
|
10390
|
+
const passwordInput = this.page.locator('input[type="password"]');
|
|
10392
10391
|
await (0, $kKeXs$playwrighttest.expect)(passwordInput).toBeVisible({
|
|
10393
10392
|
timeout: 10000
|
|
10394
10393
|
});
|
|
10395
|
-
await passwordInput.click();
|
|
10396
10394
|
await passwordInput.fill(password);
|
|
10397
10395
|
} else {
|
|
10398
10396
|
await this.page.getByPlaceholder("User").fill(userName);
|