@bigbinary/neeto-playwright-commons 1.10.13 → 1.10.15

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.d.ts CHANGED
@@ -4985,6 +4985,20 @@ declare const filterUtils: {
4985
4985
  * @endexample
4986
4986
  */
4987
4987
  openFilterPane: (page: Page) => Promise<void>;
4988
+ /**
4989
+ *
4990
+ * Clear the filters applied on a page using the clear button
4991
+ *
4992
+ * page: An instance of the Playwright Page class representing the web page from where filters need to be cleared.
4993
+ *
4994
+ * @example
4995
+ *
4996
+ * import { Page } from "@playwright/test";
4997
+ * import { filterUtils } from "@bigbinary/neeto-playwright-commons";
4998
+ *
4999
+ * await filterUtils.clearFiltersFromActionBlock(page);
5000
+ * @endexample
5001
+ */
4988
5002
  clearFiltersFromActionBlock: (page: Page) => Promise<void>;
4989
5003
  };
4990
5004
  /**
package/index.js CHANGED
@@ -14703,7 +14703,7 @@ class OrganizationPage {
14703
14703
  this.fillOrganizationDetails = async ({ credentials, appName, }) => {
14704
14704
  await this.page
14705
14705
  .getByTestId(SIGNUP_SELECTORS.organizationNameTextField)
14706
- .fill(credentials.businessName);
14706
+ .fill(humanize(credentials.businessName));
14707
14707
  const fetchSubdomainAvailability = this.neetoPlaywrightUtilities.interceptMultipleResponses({
14708
14708
  responseUrl: ROUTES.subdomainAvailability,
14709
14709
  timeout: 60 * 1000,
@@ -148179,10 +148179,15 @@ const openFilterPane = async (page) => {
148179
148179
  await expect(page.getByTestId(COMMON_SELECTORS.paneHeader)).toHaveText(getI18nInstance().t("neetoFilters.common.filters"));
148180
148180
  };
148181
148181
  const clearFiltersFromActionBlock = async (page) => {
148182
- await page
148182
+ const isClearButtonVisible = await page
148183
148183
  .getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)
148184
- .click();
148185
- await expect(page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeHidden();
148184
+ .isVisible();
148185
+ if (isClearButtonVisible) {
148186
+ await page
148187
+ .getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)
148188
+ .click();
148189
+ await expect(page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeHidden();
148190
+ }
148186
148191
  };
148187
148192
  const filterUtils = {
148188
148193
  openFilterPane,