@bigbinary/neeto-playwright-commons 1.22.16 → 1.22.18

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
@@ -61,6 +61,7 @@ interface ApiRequestProps {
61
61
  data?: Record<string, unknown>;
62
62
  method?: HttpMethods;
63
63
  params?: ParamProps;
64
+ timeout?: number;
64
65
  }
65
66
  interface WaitForPageLoadParams {
66
67
  visibilityTimeout: number;
@@ -247,6 +248,7 @@ declare class CustomCommands {
247
248
  * method, // request method "get" | "patch" | "post" | "put" | "delete"
248
249
  * params, // request params
249
250
  * headers, // aditional request headers
251
+ * timeout, // request timeout in milliseconds (default: 30000)
250
252
  * });
251
253
  * @endexample
252
254
  */
@@ -754,6 +756,7 @@ declare class MailerUtils {
754
756
  receivedAfter,
755
757
  expectedEmailCount
756
758
  }?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<string[]>;
759
+ private matchesCriteria;
757
760
  /**
758
761
  *
759
762
  * This method is used to find a first email matching the search criteria. On top of the listMessage method, this method waits until a specific mail is received or the timeout is exceeded. This method is useful for fetching an email once an action is triggered since it waits for the message delivery and can be customized according to delays in email deliveries.
@@ -1602,6 +1605,24 @@ declare class HelpAndProfilePage {
1602
1605
  * @endexample
1603
1606
  */
1604
1607
  openAndVerifyCommunity: () => Promise<void>;
1608
+ /**
1609
+ *
1610
+ * Verifies the current subscription plan in Help Center.
1611
+ *
1612
+ * plan: Current subscription plan ("Free" or "Pro").
1613
+ *
1614
+ * product (optional): Name of the Neeto product to verify the plan for.
1615
+ *
1616
+ * @example
1617
+ *
1618
+ * // Verify current plan only
1619
+ * await helpAndProfilePage.verifySubscriptionPlan("Free");
1620
+ *
1621
+ * // Verify plan and specific product details
1622
+ * await helpAndProfilePage.verifySubscriptionPlan("Pro", "Chat");
1623
+ * @endexample
1624
+ */
1625
+ verifySubscriptionPlan: (plan: "Free" | "Pro", product?: NeetoProducts) => Promise<void>;
1605
1626
  }
1606
1627
  type IntegrationStatus = "connected" | "disconnected";
1607
1628
  type PartialInterceptMultipleResponsesParams$1 = Partial<InterceptMultipleResponsesParams>;
@@ -4168,6 +4189,7 @@ declare const ROUTES: {
4168
4189
  };
4169
4190
  auth: {
4170
4191
  adminPanel: string;
4192
+ billing: string;
4171
4193
  };
4172
4194
  };
4173
4195
  /**
@@ -4565,6 +4587,12 @@ declare const LIST_MODIFIER_TAGS: {
4565
4587
  bulletList: string;
4566
4588
  orderedList: string;
4567
4589
  };
4590
+ declare const PHONE_NUMBER_FORMATS: {
4591
+ name: string;
4592
+ code: string;
4593
+ format: string;
4594
+ flag: string;
4595
+ }[];
4568
4596
  /**
4569
4597
  *
4570
4598
  * Common selectors for UI elements.
@@ -4844,6 +4872,7 @@ declare const COMMON_SELECTORS: {
4844
4872
  body: string;
4845
4873
  toastIcon: string;
4846
4874
  toastContainer: string;
4875
+ toastBody: string;
4847
4876
  paneModalCrossIcon: string;
4848
4877
  inputField: string;
4849
4878
  alertBox: string;
@@ -4885,6 +4914,7 @@ declare const COMMON_SELECTORS: {
4885
4914
  homeButton: string;
4886
4915
  neetoUiSwitch: string;
4887
4916
  floatingActionMenuButton: string;
4917
+ floatingActionMenuLink: string;
4888
4918
  columnsDropdownContainer: string;
4889
4919
  columnsDropdownButton: string;
4890
4920
  breadcrumbHeader: string;
@@ -4926,6 +4956,25 @@ declare const COMMON_SELECTORS: {
4926
4956
  continueButton: string;
4927
4957
  clearAllButton: string;
4928
4958
  requiredSwitch: string;
4959
+ qrCodeDownloadButton: string;
4960
+ linkCopyButton: string;
4961
+ moreDropdownIcon: string;
4962
+ previewButton: string;
4963
+ editButton: string;
4964
+ deleteButton: string;
4965
+ backButton: string;
4966
+ nameInputField: string;
4967
+ descriptionInputField: string;
4968
+ searchTextField: string;
4969
+ dragHandle: string;
4970
+ fileInputError: string;
4971
+ csvUploadInput: string;
4972
+ nuiCheckboxContainer: string;
4973
+ dynamicVariablesList: string;
4974
+ emailInputWrapper: string;
4975
+ switchWrapper: string;
4976
+ switchLabel: string;
4977
+ columnVisibilityBtn: (action: "hide-all" | "reset") => string;
4929
4978
  customSwitch: (switchLabel: string) => string;
4930
4979
  customMenuItem: (label: string) => string;
4931
4980
  customInputLabel: (name?: string) => string;
@@ -5502,6 +5551,12 @@ declare const MEMBER_SELECTORS: {
5502
5551
  deactivateButton: string;
5503
5552
  rolesButton: string;
5504
5553
  statusTag: string;
5554
+ exportMemberHeading: string;
5555
+ downloadAsRadioItem: (fileType: "pdf" | "excel" | "csv") => string;
5556
+ exportSubmitBtn: string;
5557
+ exportCancelBtn: string;
5558
+ downloadButton: string;
5559
+ manageAppListChk: string;
5505
5560
  menubarSubLink: (sublink: string) => string;
5506
5561
  takeActionStateOption: (option?: string) => string;
5507
5562
  checkboxLabel: (label: string) => string;
@@ -5652,6 +5707,9 @@ declare const ROLES_SELECTORS: {
5652
5707
  searchPermissionsInput: string;
5653
5708
  permissionDescription: string;
5654
5709
  rolesEditButton: string;
5710
+ roleCell: (roleName: string) => string;
5711
+ tablePermissionCheckbox: string;
5712
+ descriptionInputError: string;
5655
5713
  };
5656
5714
  /**
5657
5715
  *
@@ -5947,6 +6005,12 @@ declare const GOOGLE_LOGIN_SELECTORS: {
5947
6005
  totpChallengeSelector: string;
5948
6006
  signOutFrameLocator: string;
5949
6007
  };
6008
+ declare const GOOGLE_ANALYTICS_SELECTORS: {
6009
+ gaCode: string;
6010
+ };
6011
+ declare const GOOGLE_SHEETS_SELECTORS: {
6012
+ iframe: string;
6013
+ };
5950
6014
  /**
5951
6015
  *
5952
6016
  * Selectors for Slack components.
@@ -6163,6 +6227,10 @@ declare const ZAPIER_SELECTORS: {
6163
6227
  deleteApiButton: string;
6164
6228
  zapierSubLink: string;
6165
6229
  };
6230
+ declare const TWILIO_SELECTORS: {
6231
+ sidField: string;
6232
+ authTokenField: string;
6233
+ };
6166
6234
  /**
6167
6235
  *
6168
6236
  * Selectors for table components.
@@ -6227,6 +6295,7 @@ declare const ADMIN_PANEL_SELECTORS: {
6227
6295
  settingsItemHeading: string;
6228
6296
  settingsItemDescription: string;
6229
6297
  expiryDateInput: string;
6298
+ goBackButton: string;
6230
6299
  };
6231
6300
  /**
6232
6301
  *
@@ -6258,6 +6327,7 @@ declare const CUSTOM_DOMAIN_SELECTORS: {
6258
6327
  deleteCustomDomainButton: string;
6259
6328
  dropdownButton: string;
6260
6329
  activeTagContainer: string;
6330
+ nameInputError: string;
6261
6331
  };
6262
6332
  /**
6263
6333
  *
@@ -6297,6 +6367,17 @@ declare const API_KEYS_SELECTORS: {
6297
6367
  expiresAtField: string;
6298
6368
  createdAtField: string;
6299
6369
  };
6370
+ declare const IP_RESTRICTIONS_SELECTORS: {
6371
+ enableIPRestrictionChk: string;
6372
+ saveChanges: string;
6373
+ addIPRangeBtn: string;
6374
+ ipStartTextField: string;
6375
+ ipEndTextField: string;
6376
+ ipRangeDeleteBtn: string;
6377
+ ipStartInpError: string;
6378
+ ipEndInpError: string;
6379
+ typeSelectError: string;
6380
+ };
6300
6381
  /**
6301
6382
  *
6302
6383
  * Selectors for date picker components.
@@ -6319,6 +6400,17 @@ declare const DATE_PICKER_SELECTORS: {
6319
6400
  nextYearButton: string;
6320
6401
  prevYearButton: string;
6321
6402
  };
6403
+ declare const ONBOARDING_SELECTORS: {
6404
+ welcomeTitle: string;
6405
+ welcomeDescription: string;
6406
+ getStartedBtn: string;
6407
+ doLaterBtn: string;
6408
+ helpBtn: string;
6409
+ continueBtn: string;
6410
+ congratulationsTitle: string;
6411
+ congratulationsDescription: string;
6412
+ congratulationsBtn: string;
6413
+ };
6322
6414
  /**
6323
6415
  *
6324
6416
  * Function to initialize credentials of the current user in the storageState.
@@ -7229,6 +7321,59 @@ declare const generateRandomFile: ({
7229
7321
  file: File;
7230
7322
  fileName: string;
7231
7323
  };
7324
+ interface CountryProps {
7325
+ flag: string;
7326
+ code: string;
7327
+ name: string;
7328
+ number: string;
7329
+ }
7330
+ /**
7331
+ *
7332
+ * Formats a phone number with country code and flag for international display. Takes a country name and phone number, then returns a properly formatted international phone number string with the country flag.
7333
+ *
7334
+ * countryName: Name of the country (must match exactly with names in PHONE_NUMBER_FORMATS).
7335
+ *
7336
+ * phoneNumber: The phone number to format (without country code).
7337
+ *
7338
+ * string: Formatted phone number string with country flag and international format.
7339
+ *
7340
+ * @example
7341
+ *
7342
+ * import { getFormattedPhoneNumber } from "@utils/phoneNumbers";
7343
+ *
7344
+ * // Format a US phone number
7345
+ * const formattedNumber = getFormattedPhoneNumber("United States", "2121234567");
7346
+ * // Returns: "🇺🇸+1 212 123 4567"
7347
+ *
7348
+ * // Format an Indian phone number
7349
+ * const indianNumber = getFormattedPhoneNumber("India", "9876543210");
7350
+ * // Returns: "🇮🇳+91 98765 43210"
7351
+ * @endexample
7352
+ */
7353
+ declare const getFormattedPhoneNumber: (countryName: string, phoneNumber: string) => string;
7354
+ /**
7355
+ *
7356
+ * Generates random phone number details for testing purposes. Returns a complete phone number object with country information including flag, name, country code, and formatted number.
7357
+ *
7358
+ * CountryProps: Object containing:
7359
+ *
7360
+ * @example
7361
+ *
7362
+ * import { generatePhoneNumberDetails } from "@utils/phoneNumbers";
7363
+ *
7364
+ * // Generate random phone number details
7365
+ * const phoneDetails = generatePhoneNumberDetails();
7366
+ * console.log(phoneDetails);
7367
+ * // Example output:
7368
+ * // {
7369
+ * // flag: "🇺🇸",
7370
+ * // name: "United States",
7371
+ * // code: "+1",
7372
+ * // number: "2128765432"
7373
+ * // }
7374
+ * @endexample
7375
+ */
7376
+ declare const generatePhoneNumberDetails: () => CountryProps;
7232
7377
  interface PlaydashOverrides {
7233
7378
  projectKey: string;
7234
7379
  }
@@ -7257,4 +7402,4 @@ interface Overrides {
7257
7402
  * @endexample
7258
7403
  */
7259
7404
  declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
7260
- export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysApi, ApiKeysPage, AuditLogsPage, BASE_URL, type BaseThemeStyle, type BaseThemeStyleType, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, CustomCommands, CustomDomainPage, type CustomFixture, DATE_PICKER_SELECTORS, DATE_TEXTS, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GooglePage, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, type IntroPageThemeStyle, type IntroPageThemeStyleType, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailerUtils, Member, MemberApis, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OrganizationPage, PLURAL, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RoleApis, RolesPage, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TABLE_SELECTORS, TAB_SELECTORS, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THEMES_SELECTORS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsApi, TagsPage, TeamMembers, ThankYouPage, type ThemeCategory, USER_AGENTS, WEBHOOK_SELECTORS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, currencyUtils, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generatePhoneNumber, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFullUrl, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getListCount, globalShortcuts, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
7405
+ export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysApi, ApiKeysPage, AuditLogsPage, BASE_URL, type BaseThemeStyle, type BaseThemeStyleType, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, type CountryProps, CustomCommands, CustomDomainPage, type CustomFixture, DATE_PICKER_SELECTORS, DATE_TEXTS, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXPANDED_FONT_SIZE, EditorPage, EmbedBase, FONT_SIZE_SELECTORS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_ANALYTICS_SELECTORS, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GOOGLE_SHEETS_SELECTORS, GooglePage, HELP_CENTER_SELECTORS, HelpAndProfilePage, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IP_RESTRICTIONS_SELECTORS, IS_STAGING_ENV, ImageUploader, IntegrationBase, type IntroPageThemeStyle, type IntroPageThemeStyleType, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailerUtils, Member, MemberApis, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OrganizationPage, PHONE_NUMBER_FORMATS, PLURAL, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RoleApis, RolesPage, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TABLE_SELECTORS, TAB_SELECTORS, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THEMES_SELECTORS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, ThankYouPage, type ThemeCategory, USER_AGENTS, WEBHOOK_SELECTORS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, currencyUtils, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFormattedPhoneNumber, getFullUrl, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getListCount, globalShortcuts, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };