@bigbinary/neeto-playwright-commons 1.5.0 → 1.5.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/index.cjs.js CHANGED
@@ -201,7 +201,7 @@ class CustomCommands {
201
201
  const startTime = Date.now();
202
202
  await this.recursiveMethod(callback, condition, timeout, startTime);
203
203
  };
204
- this.verifySuccessToast = async ({ message, closeAfterVerification = true, }) => {
204
+ this.verifySuccessToast = async ({ message = null, closeAfterVerification = true, }) => {
205
205
  if (message) {
206
206
  await test.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message);
207
207
  }
@@ -210,6 +210,7 @@ class CustomCommands {
210
210
  }
211
211
  closeAfterVerification &&
212
212
  (await this.page.getByTestId(COMMON_SELECTORS.toastCloseButton).click());
213
+ await test.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toBeHidden();
213
214
  };
214
215
  this.reloadAndWait = async (requestCount) => {
215
216
  const reloadRequests = this.interceptMultipleResponses({