@bigbinary/neeto-playwright-commons 1.9.1 → 1.9.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 +9 -6
- package/index.cjs.js.map +1 -1
- package/index.d.ts +7 -5
- package/index.js +9 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -204,6 +204,9 @@ const getByDataQA = ramda.curry((page, dataQa) => {
|
|
|
204
204
|
});
|
|
205
205
|
|
|
206
206
|
const COMMON_SELECTORS = {
|
|
207
|
+
emailInputError: "email-input-error",
|
|
208
|
+
pane: "pane-wrapper",
|
|
209
|
+
sideBar: "sidebar",
|
|
207
210
|
copyButton: "copy-button",
|
|
208
211
|
spinner: ".neeto-ui-spinner",
|
|
209
212
|
subheaderText: "subheader-left",
|
|
@@ -2597,15 +2600,15 @@ class CustomCommands {
|
|
|
2597
2600
|
await pageContext.reload();
|
|
2598
2601
|
await reloadRequests;
|
|
2599
2602
|
};
|
|
2600
|
-
this.waitForPageLoad = async ({
|
|
2603
|
+
this.waitForPageLoad = async ({ visibilityTimeout = 35000, customPageContext, } = {}) => {
|
|
2601
2604
|
const pageContext = customPageContext !== null && customPageContext !== void 0 ? customPageContext : this.page;
|
|
2602
2605
|
await pageContext.waitForLoadState("load");
|
|
2603
2606
|
await Promise.all([
|
|
2604
2607
|
test$1.expect(pageContext.getByTestId(COMMON_SELECTORS.pageLoader)).toBeHidden({
|
|
2605
|
-
timeout:
|
|
2608
|
+
timeout: visibilityTimeout,
|
|
2606
2609
|
}),
|
|
2607
2610
|
test$1.expect(pageContext.getByTestId(COMMON_SELECTORS.spinner)).toBeHidden({
|
|
2608
|
-
timeout:
|
|
2611
|
+
timeout: visibilityTimeout,
|
|
2609
2612
|
}),
|
|
2610
2613
|
]);
|
|
2611
2614
|
};
|
|
@@ -2632,14 +2635,14 @@ class CustomCommands {
|
|
|
2632
2635
|
};
|
|
2633
2636
|
this.selectOptionFromDropdown = async ({ selectValueContainer, selectMenu, value, options = {}, }) => {
|
|
2634
2637
|
Object.assign({
|
|
2635
|
-
|
|
2638
|
+
visibilityTimeout: 2000,
|
|
2636
2639
|
textAssertionTimeout: 1000,
|
|
2637
2640
|
retryTimeout: 20000,
|
|
2638
2641
|
}, options);
|
|
2639
2642
|
await test$1.expect(async () => {
|
|
2640
2643
|
await this.page.getByTestId(selectValueContainer).click();
|
|
2641
2644
|
await test$1.expect(this.page.getByTestId(selectMenu)).toBeVisible({
|
|
2642
|
-
timeout: options.
|
|
2645
|
+
timeout: options.visibilityTimeout,
|
|
2643
2646
|
});
|
|
2644
2647
|
await this.page.getByTestId(selectMenu).getByText(value).click();
|
|
2645
2648
|
await test$1.expect(this.page.getByTestId(selectValueContainer)).toContainText(value, { timeout: options.textAssertionTimeout });
|
|
@@ -13901,7 +13904,7 @@ const ROLES_SELECTORS = {
|
|
|
13901
13904
|
tableHeaderRoleTitle: "ntm-roles-table-header-role-title",
|
|
13902
13905
|
permissionCheckbox: "ntm-roles-permission-checkbox",
|
|
13903
13906
|
editRoleButton: "ntm-roles-table-edit-role-button",
|
|
13904
|
-
deleteRoleButton: "
|
|
13907
|
+
deleteRoleButton: "ntm-roles-table-delete-role-button",
|
|
13905
13908
|
permissionCard: "ntm-roles-permission-card",
|
|
13906
13909
|
};
|
|
13907
13910
|
|