@bigbinary/neeto-playwright-commons 1.10.10 → 1.10.11

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/index.cjs.js CHANGED
@@ -3520,16 +3520,16 @@ class CustomCommands {
3520
3520
  (await this.page.getByTestId(COMMON_SELECTORS.toastCloseButton).click());
3521
3521
  await test$1.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toBeHidden();
3522
3522
  };
3523
- this.verifyToast = async ({ message = "", toastType = "success", closeAfterVerification = true, } = {}) => {
3523
+ this.verifyToast = async ({ message = "", toastType = "success", closeAfterVerification = true, timeout = 10000, } = {}) => {
3524
3524
  if (toastType === "error") {
3525
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.errorToastIcon)).toBeVisible({ timeout: 10000 });
3525
+ await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.errorToastIcon)).toBeVisible({ timeout });
3526
3526
  }
3527
3527
  const toastrCloseButton = this.page.getByTestId(COMMON_SELECTORS.toastCloseButton);
3528
3528
  if (!ramda.isEmpty(message)) {
3529
- await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message, { timeout: 10000 });
3529
+ await test$1.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message, { timeout });
3530
3530
  }
3531
3531
  else {
3532
- await test$1.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toContainText("👍");
3532
+ await test$1.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toContainText("👍", { timeout });
3533
3533
  }
3534
3534
  if (closeAfterVerification && (await toastrCloseButton.isVisible())) {
3535
3535
  await toastrCloseButton.click();