@bigbinary/neeto-playwright-commons 1.22.9 → 1.22.11
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 +7 -4
- package/index.cjs.js.map +1 -1
- package/index.d.ts +13 -1
- package/index.js +7 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -3534,6 +3534,7 @@ const globalShortcuts = (t) => [
|
|
|
3534
3534
|
sequence: "ctrl+enter",
|
|
3535
3535
|
},
|
|
3536
3536
|
];
|
|
3537
|
+
const generatePhoneNumber = () => `${"+91"} 9${faker.faker.string.numeric(4)} ${faker.faker.string.numeric(5)}`;
|
|
3537
3538
|
|
|
3538
3539
|
const optionSelector = (option) => `neeto-editor-fixed-menu-${option}-option`;
|
|
3539
3540
|
const fixedMenuSelector = (selector) => `neeto-editor-fixed-menu-${selector}`;
|
|
@@ -3782,6 +3783,7 @@ const PROFILE_SECTION_SELECTORS = {
|
|
|
3782
3783
|
profileAvatar: "profile-avatar",
|
|
3783
3784
|
actionHeaderUserEmail: "floating-action-menu-header-user-email",
|
|
3784
3785
|
submitButton: "ntm-profile-submit-button",
|
|
3786
|
+
manageBillingAndSubscriptionsButton: "manage-billing-subscriptions-menu-button",
|
|
3785
3787
|
};
|
|
3786
3788
|
|
|
3787
3789
|
const ROLES_SELECTORS = {
|
|
@@ -189351,7 +189353,7 @@ class HelpAndProfilePage {
|
|
|
189351
189353
|
});
|
|
189352
189354
|
});
|
|
189353
189355
|
};
|
|
189354
|
-
this.openAuthLinkAndVerify = async ({
|
|
189356
|
+
this.openAuthLinkAndVerify = async ({ linkTestId, redirectLink, }) => {
|
|
189355
189357
|
var _a, _b;
|
|
189356
189358
|
await this.page
|
|
189357
189359
|
.getByTestId(COMMON_SELECTORS.pane)
|
|
@@ -189359,7 +189361,7 @@ class HelpAndProfilePage {
|
|
|
189359
189361
|
.click();
|
|
189360
189362
|
await this.page
|
|
189361
189363
|
.getByTestId(COMMON_SELECTORS.dropdownContainer)
|
|
189362
|
-
.
|
|
189364
|
+
.getByTestId(linkTestId)
|
|
189363
189365
|
.click();
|
|
189364
189366
|
await test$1.expect(this.page).toHaveURL(new RegExp(NEETO_AUTH_BASE_URL((_b = (_a = readFileSyncIfExists()) === null || _a === void 0 ? void 0 : _a.user) === null || _b === void 0 ? void 0 : _b.subdomainName)));
|
|
189365
189367
|
await test$1.expect(this.page).toHaveURL(new RegExp(redirectLink));
|
|
@@ -189378,7 +189380,7 @@ class HelpAndProfilePage {
|
|
|
189378
189380
|
await test$1.expect(profileSidebarHeader).toContainText(this.t("neetoTeamMembers.profile.common.myProfile"));
|
|
189379
189381
|
await this.openAuthLinkAndVerify({
|
|
189380
189382
|
redirectLink: ROUTES.myProfile,
|
|
189381
|
-
|
|
189383
|
+
linkTestId: PROFILE_SECTION_SELECTORS.manageBillingAndSubscriptionsButton,
|
|
189382
189384
|
});
|
|
189383
189385
|
});
|
|
189384
189386
|
await test$1.test.step("3: Open Help center and verify", this.openHelpCenterV2);
|
|
@@ -189399,7 +189401,7 @@ class HelpAndProfilePage {
|
|
|
189399
189401
|
await test$1.expect(profileSidebarHeader).toContainText(this.t("neetoTeamMembers.profile.common.myProfile"));
|
|
189400
189402
|
await this.openAuthLinkAndVerify({
|
|
189401
189403
|
redirectLink: ROUTES.myProfile,
|
|
189402
|
-
|
|
189404
|
+
linkTestId: PROFILE_SECTION_SELECTORS.manageBillingAndSubscriptionsButton,
|
|
189403
189405
|
});
|
|
189404
189406
|
});
|
|
189405
189407
|
await test$1.test.step("3: Open Help center and verify", this.openHelpCenter);
|
|
@@ -195627,6 +195629,7 @@ exports.definePlaywrightConfig = definePlaywrightConfig;
|
|
|
195627
195629
|
exports.executeWithThrottledResources = executeWithThrottledResources;
|
|
195628
195630
|
exports.extractSubdomainFromError = extractSubdomainFromError;
|
|
195629
195631
|
exports.filterUtils = filterUtils;
|
|
195632
|
+
exports.generatePhoneNumber = generatePhoneNumber;
|
|
195630
195633
|
exports.generateRandomBypassEmail = generateRandomBypassEmail;
|
|
195631
195634
|
exports.generateRandomFile = generateRandomFile;
|
|
195632
195635
|
exports.generateStagingData = generateStagingData;
|