@bigbinary/neeto-playwright-commons 1.8.0 → 1.8.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
@@ -218,7 +218,7 @@ class CustomCommands {
218
218
  await this.recursiveMethod(callback, condition, timeout, startTime);
219
219
  };
220
220
  this.verifySuccessToast = async ({ message = "", closeAfterVerification = true, } = {}) => {
221
- if (ramda.isEmpty(message)) {
221
+ if (!ramda.isEmpty(message)) {
222
222
  await test.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message);
223
223
  }
224
224
  else {