dh-auth-library 2.2.0 → 2.2.1

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 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
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dh-auth-library",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Gemeente-DenHaag/dh-auth-library.git"