dh-auth-library 2.2.0 → 2.2.2
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/dist/index.cjs.js +5 -4
- package/dist/index.es.js +5 -4
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -318,12 +318,12 @@ var BaseLoginPage = class extends nl_portal_playwright_libraries.BasePage {
|
|
|
318
318
|
* Accepts the app's cookie banner when the consumer supplied one, so the consent is in the saved session.
|
|
319
319
|
*/
|
|
320
320
|
async acceptCookiesForApp(options) {
|
|
321
|
-
if (options.cookieButton) {
|
|
321
|
+
if (options.cookieButton) try {
|
|
322
322
|
const cookieButton = options.cookieButton(this.page);
|
|
323
323
|
await cookieButton.click();
|
|
324
324
|
await cookieButton.waitFor({ state: "hidden" });
|
|
325
325
|
await this.page.waitForLoadState("networkidle", { timeout: 1e4 }).catch(() => {});
|
|
326
|
-
}
|
|
326
|
+
} catch (_noShowError) {}
|
|
327
327
|
}
|
|
328
328
|
};
|
|
329
329
|
//#endregion
|
|
@@ -345,11 +345,12 @@ var DigidLoginPage = class extends BaseLoginPage {
|
|
|
345
345
|
await this.openPage(startUrl);
|
|
346
346
|
await this.handleAnySpecialADLoginScreen();
|
|
347
347
|
try {
|
|
348
|
-
await loginButton.click();
|
|
348
|
+
await loginButton.click({ timeout: 3e4 });
|
|
349
349
|
} catch (_error) {
|
|
350
|
+
console.error(`Loginbutton click failed with error: ${_error}`);
|
|
350
351
|
await this.openPage(startUrl);
|
|
351
352
|
await this.handleAnySpecialADLoginScreen();
|
|
352
|
-
await loginButton.click();
|
|
353
|
+
await loginButton.click({ timeout: 3e4 });
|
|
353
354
|
}
|
|
354
355
|
if (!this.page.url().match(/authn/)) {
|
|
355
356
|
await this.loginWithDigid(account);
|
package/dist/index.es.js
CHANGED
|
@@ -294,12 +294,12 @@ var BaseLoginPage = class extends BasePage {
|
|
|
294
294
|
* Accepts the app's cookie banner when the consumer supplied one, so the consent is in the saved session.
|
|
295
295
|
*/
|
|
296
296
|
async acceptCookiesForApp(options) {
|
|
297
|
-
if (options.cookieButton) {
|
|
297
|
+
if (options.cookieButton) try {
|
|
298
298
|
const cookieButton = options.cookieButton(this.page);
|
|
299
299
|
await cookieButton.click();
|
|
300
300
|
await cookieButton.waitFor({ state: "hidden" });
|
|
301
301
|
await this.page.waitForLoadState("networkidle", { timeout: 1e4 }).catch(() => {});
|
|
302
|
-
}
|
|
302
|
+
} catch (_noShowError) {}
|
|
303
303
|
}
|
|
304
304
|
};
|
|
305
305
|
//#endregion
|
|
@@ -321,11 +321,12 @@ var DigidLoginPage = class extends BaseLoginPage {
|
|
|
321
321
|
await this.openPage(startUrl);
|
|
322
322
|
await this.handleAnySpecialADLoginScreen();
|
|
323
323
|
try {
|
|
324
|
-
await loginButton.click();
|
|
324
|
+
await loginButton.click({ timeout: 3e4 });
|
|
325
325
|
} catch (_error) {
|
|
326
|
+
console.error(`Loginbutton click failed with error: ${_error}`);
|
|
326
327
|
await this.openPage(startUrl);
|
|
327
328
|
await this.handleAnySpecialADLoginScreen();
|
|
328
|
-
await loginButton.click();
|
|
329
|
+
await loginButton.click({ timeout: 3e4 });
|
|
329
330
|
}
|
|
330
331
|
if (!this.page.url().match(/authn/)) {
|
|
331
332
|
await this.loginWithDigid(account);
|