@bigbinary/neeto-playwright-commons 1.18.3 → 1.18.4
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/configs/eslint/common.js +1 -0
- package/index.cjs.js +18 -5
- package/index.cjs.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +18 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/configs/eslint/common.js
CHANGED
|
@@ -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.
|
|
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:
|
|
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
|
|
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 = {
|