@bigbinary/neeto-playwright-commons 1.18.3 → 1.18.5

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.
@@ -62,6 +62,7 @@ const commonEslintConfig = ({
62
62
  "playwright/require-top-level-describe": "error",
63
63
  "playwright/require-soft-assertions": "off",
64
64
  "playwright/valid-expect": "error",
65
+ "playwright/no-standalone-expect": "warn",
65
66
  "playwright/prefer-lowercase-title": [
66
67
  "error",
67
68
  { ignoreTopLevelDescribe: true, allowedPrefixes: ["Step"] },
package/index.cjs.js CHANGED
@@ -60747,6 +60747,8 @@ class TeamMembers {
60747
60747
  .getByTestId(COMMON_SELECTORS.selectOption(option))
60748
60748
  .click();
60749
60749
  }
60750
+ await this.neetoPlaywrightUtilities.waitForPageLoad();
60751
+ await test$1.expect(this.page.locator(COMMON_SELECTORS.tableSpinner)).toBeHidden();
60750
60752
  };
60751
60753
  this.filterMembers = async ({ email = { id: "", condition: "Is" }, roles = [], name = "", }) => {
60752
60754
  await this.page.getByTestId(NEETO_FILTERS_SELECTORS.filterButton).click();
@@ -60768,9 +60770,7 @@ class TeamMembers {
60768
60770
  .fill(name));
60769
60771
  neetoCist.isPresent(roles) &&
60770
60772
  (await this.filterMembersByMultiSelect({ selectedOptions: roles }));
60771
- await this.page
60772
- .getByTestId(NEETO_FILTERS_SELECTORS.filterDoneButton)
60773
- .click();
60773
+ await this.applyFilter();
60774
60774
  };
60775
60775
  this.getMemberRowByName = (name) => this.page.getByRole("row").filter({
60776
60776
  has: this.page.getByTestId(MEMBER_SELECTORS.memberNameCell(name)),
@@ -60841,6 +60841,14 @@ class TeamMembers {
60841
60841
  name: email,
60842
60842
  exact: true,
60843
60843
  })).toBeVisible();
60844
+ this.applyFilter = async () => {
60845
+ await test$1.expect(this.page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeVisible();
60846
+ await this.neetoPlaywrightUtilities.waitForPageLoad();
60847
+ await test$1.expect(this.page.locator(COMMON_SELECTORS.tableSpinner)).toBeHidden();
60848
+ await this.page
60849
+ .getByTestId(NEETO_FILTERS_SELECTORS.filterDoneButton)
60850
+ .click();
60851
+ };
60844
60852
  this.page = page;
60845
60853
  this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
60846
60854
  this.t = playwrightI18nextFixture.getI18nInstance().t;
@@ -61009,7 +61017,7 @@ class OrganizationPage {
61009
61017
  await this.page.getByTestId(COMMON_SELECTORS.checkbox).click();
61010
61018
  const profileSubmitButton = this.page.getByTestId(SIGNUP_SELECTORS.profileSubmitButton);
61011
61019
  await profileSubmitButton.click();
61012
- await test$1.expect(profileSubmitButton).toBeHidden({ timeout: 45000 });
61020
+ await test$1.expect(profileSubmitButton).toBeHidden({ timeout: 60000 });
61013
61021
  await this.neetoPlaywrightUtilities.waitForPageLoad();
61014
61022
  };
61015
61023
  this.loginAndOnboard = async ({ email, firstName, lastName, country, handleOnboarding, baseURL = process.env.BASE_URL, fetchOtpFromEmail, }) => {
@@ -192992,7 +193000,12 @@ const clearFiltersFromActionBlock = async (page) => {
192992
193000
  await page
192993
193001
  .getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)
192994
193002
  .click();
192995
- await test$1.expect(page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeHidden();
193003
+ await Promise.all([
193004
+ test$1.expect(page.getByTestId(NEETO_FILTERS_SELECTORS.neetoFiltersBarClearButton)).toBeHidden(),
193005
+ test$1.expect(page.locator(COMMON_SELECTORS.tableSpinner)).toHaveCount(0, {
193006
+ timeout: 15000,
193007
+ }),
193008
+ ]);
192996
193009
  }
192997
193010
  };
192998
193011
  const filterUtils = {
@@ -194657,6 +194670,9 @@ const definePlaywrightConfig = (overrides) => {
194657
194670
  timezoneId: "Asia/Calcutta",
194658
194671
  geolocation: { latitude: 18.553187, longitude: 73.948313 }, // BB Pune office
194659
194672
  permissions: ["geolocation"],
194673
+ launchOptions: {
194674
+ args: ["--js-flags=--max-old-space-size=4096"],
194675
+ },
194660
194676
  ...useOverrides,
194661
194677
  },
194662
194678
  projects: useCustomProjects
@@ -194669,7 +194685,10 @@ const definePlaywrightConfig = (overrides) => {
194669
194685
  },
194670
194686
  {
194671
194687
  name: "chromium",
194672
- use: { ...test$1.devices["Desktop Chrome"], storageState: STORAGE_STATE },
194688
+ use: {
194689
+ ...test$1.devices["Desktop Chrome"],
194690
+ storageState: STORAGE_STATE,
194691
+ },
194673
194692
  dependencies: ["setup"],
194674
194693
  },
194675
194694
  { name: "cleanup credentials", testMatch: "global.teardown.ts" },