@bigbinary/neeto-playwright-commons 1.5.0 → 1.5.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/index.cjs.js CHANGED
@@ -170,6 +170,7 @@ const COMMON_SELECTORS = {
170
170
  subheader: "subheader",
171
171
  settingsLink: "Settings",
172
172
  ticketFieldTextInput: (label) => `${hyphenize(label)}-text-input`,
173
+ tableSpinner: ".ant-spin",
173
174
  };
174
175
 
175
176
  class CustomCommands {
@@ -201,7 +202,7 @@ class CustomCommands {
201
202
  const startTime = Date.now();
202
203
  await this.recursiveMethod(callback, condition, timeout, startTime);
203
204
  };
204
- this.verifySuccessToast = async ({ message, closeAfterVerification = true, }) => {
205
+ this.verifySuccessToast = async ({ message = null, closeAfterVerification = true, }) => {
205
206
  if (message) {
206
207
  await test.expect(this.page.getByTestId(COMMON_SELECTORS.toastMessage)).toContainText(message);
207
208
  }
@@ -210,6 +211,7 @@ class CustomCommands {
210
211
  }
211
212
  closeAfterVerification &&
212
213
  (await this.page.getByTestId(COMMON_SELECTORS.toastCloseButton).click());
214
+ await test.expect(this.page.locator(COMMON_SELECTORS.toastIcon)).toBeHidden();
213
215
  };
214
216
  this.reloadAndWait = async (requestCount) => {
215
217
  const reloadRequests = this.interceptMultipleResponses({