@digital-ai/devops-page-object-release 0.0.0-snapshot-20260121132732 → 0.0.0-snapshot-20260122084417
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 +26 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +26 -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
|
@@ -10382,7 +10382,32 @@ class $258749e0671c845a$export$f14c0e3f98d164c0 extends (0, $f8721861c660dd88$ex
|
|
|
10382
10382
|
timeout: 15000,
|
|
10383
10383
|
});
|
|
10384
10384
|
}*/ async login(userName, password) {
|
|
10385
|
-
|
|
10385
|
+
await this.page.goto("./");
|
|
10386
|
+
const localPassword = this.page.getByPlaceholder("Password");
|
|
10387
|
+
if (await localPassword.isVisible({
|
|
10388
|
+
timeout: 3000
|
|
10389
|
+
}).catch(()=>false)) {
|
|
10390
|
+
await this.page.getByPlaceholder("User").fill(userName);
|
|
10391
|
+
await localPassword.fill(password);
|
|
10392
|
+
} else {
|
|
10393
|
+
const usernameInput = this.page.locator('input[name="username"]');
|
|
10394
|
+
await usernameInput.waitFor({
|
|
10395
|
+
state: "visible",
|
|
10396
|
+
timeout: 10000
|
|
10397
|
+
});
|
|
10398
|
+
await usernameInput.fill(userName);
|
|
10399
|
+
const passwordInput = this.page.locator('input[type="password"]');
|
|
10400
|
+
await passwordInput.waitFor({
|
|
10401
|
+
state: "visible",
|
|
10402
|
+
timeout: 10000
|
|
10403
|
+
});
|
|
10404
|
+
await passwordInput.fill(password);
|
|
10405
|
+
}
|
|
10406
|
+
await this.page.getByRole("button", {
|
|
10407
|
+
name: /log in|sign in/i
|
|
10408
|
+
}).click();
|
|
10409
|
+
await this.page.waitForTimeout(1000);
|
|
10410
|
+
await this.closePendoModalWindow();
|
|
10386
10411
|
}
|
|
10387
10412
|
async loginWithoutReload(userName, password) {
|
|
10388
10413
|
let loadTriggered = false;
|