@bigbinary/neeto-playwright-commons 1.19.6 → 1.19.7

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
@@ -1,9 +1,9 @@
1
1
  import * as playwright_core from 'playwright-core';
2
2
  import * as _playwright_test from '@playwright/test';
3
3
  import { Page, APIRequestContext, Response, Locator, APIResponse, Fixtures, PlaywrightWorkerArgs, PlaywrightWorkerOptions, PlaywrightTestArgs, PlaywrightTestOptions, Browser, BrowserContext, FrameLocator, CDPSession } from '@playwright/test';
4
+ import { TFunction } from 'i18next';
4
5
  import { FastmailApi } from 'apis/fastmail';
5
6
  import { I18nPlaywrightFixture } from 'playwright-i18next-fixture';
6
- import { TFunction } from 'i18next';
7
7
  import { TOTP, Secret } from 'otpauth';
8
8
  import { MemberApis as MemberApis$1 } from 'apis/members';
9
9
  import { RoleApis } from 'apis/roles';
@@ -101,6 +101,7 @@ interface VerifyTooltipProps {
101
101
  }
102
102
  declare class CustomCommands {
103
103
  page: Page;
104
+ t: TFunction;
104
105
  responses: string[];
105
106
  request: APIRequestContext;
106
107
  baseURL: string | undefined;
@@ -442,6 +443,18 @@ declare class CustomCommands {
442
443
  helpURL,
443
444
  customPageContext
444
445
  }: VerifyHelpPopoverProps) => Promise<void>;
446
+ /**
447
+ *
448
+ * Method to verify the help link on the page.
449
+ *
450
+ * helpURL: URL to match against the help link's href attribute. Matching is case-insensitive.
451
+ *
452
+ * @example
453
+ *
454
+ * await neetoPlaywrightUtilities.verifyHelpText("https://help.neetoform.com/a-sj53mrx");
455
+ * @endexample
456
+ */
457
+ verifyHelpText: (helpURL: string) => Promise<void>;
445
458
  /**
446
459
  *
447
460
  * Method to verify the term in the search term block.
@@ -541,6 +554,18 @@ declare class CustomCommands {
541
554
  dispatchEvent?: string;
542
555
  droppableZone?: Locator;
543
556
  }) => Promise<void>;
557
+ /**
558
+ *
559
+ * Method to verify the presence and content of the unsaved changes modal.
560
+ *
561
+ * shouldLeavePage (optional): A boolean indicating whether to simulate leaving the page (true) or staying on the page (false).Defaults to false.
562
+ *
563
+ * @example
564
+ *
565
+ * await neetoPlaywrightUtilities.verifyUnsavedChangesModal(true);
566
+ * @endexample
567
+ */
568
+ verifyUnsavedChangesModal: (shouldLeavePage?: boolean) => Promise<void>;
544
569
  }
545
570
  declare class MemberApis {
546
571
  private neetoPlaywrightUtilities;
@@ -4607,7 +4632,35 @@ declare const LIST_MODIFIER_TAGS: {
4607
4632
  *
4608
4633
  * pendingTagContainer: Selector for pending tag container.
4609
4634
  *
4610
- * nextYearButton: Selector for next-year button,
4635
+ * nextYearButton: Selector for next-year button.
4636
+ *
4637
+ * secretKeyInputField: Selector for the secret key input field.
4638
+ *
4639
+ * activeSwitch: Selector for the active/inactive toggle switch.
4640
+ *
4641
+ * labelInputField: Selector for a generic label input field.
4642
+ *
4643
+ * imageUploadModal: Selector for the image upload modal.
4644
+ *
4645
+ * neetoLogo: Selector for the sidebar logo.
4646
+ *
4647
+ * clearSelectIndicator: Selector for the clear option.
4648
+ *
4649
+ * menubarContainer: Selector for the menubar container.
4650
+ *
4651
+ * multiEmailInputContainer: Selector for the multi-email input field.
4652
+ *
4653
+ * linkInputError: Selector for displaying link input validation errors.
4654
+ *
4655
+ * continueButton: Selector for the continue button.
4656
+ *
4657
+ * clearAllButton: Selector for the clear all button.
4658
+ *
4659
+ * requiredSwitch: Selector for the required toggle switch.
4660
+ *
4661
+ * customSwitch: Selector for a custom-labeled switch.
4662
+ *
4663
+ * `customMenuItem: Selector for a custom menu item.
4611
4664
  *
4612
4665
  */
4613
4666
  declare const COMMON_SELECTORS: {
@@ -4670,7 +4723,7 @@ declare const COMMON_SELECTORS: {
4670
4723
  sidebarToggle: string;
4671
4724
  subheader: string;
4672
4725
  settingsLink: string;
4673
- ticketFieldTextInput: (label: string | number) => string;
4726
+ ticketFieldTextInput: (label: string) => string;
4674
4727
  appSwitcherButton: string;
4675
4728
  appSwitcherWrapper: string;
4676
4729
  tableSpinner: string;
@@ -4700,17 +4753,31 @@ declare const COMMON_SELECTORS: {
4700
4753
  buttonSpinner: string;
4701
4754
  pendingTagContainer: string;
4702
4755
  nextYearButton: string;
4703
- customSelectValueContainer: (label?: string) => string;
4704
- customDropDownMenu: (label?: string) => string;
4705
4756
  popoverTitle: string;
4706
4757
  helpPopoverButton: string;
4707
4758
  helpPopoverDesc: string;
4708
4759
  helpPopoverLinkButton: string;
4709
4760
  copyToClipboardButton: string;
4710
4761
  subheaderRight: string;
4762
+ secretKeyInputField: string;
4763
+ activeSwitch: string;
4764
+ labelInputField: string;
4765
+ imageUploadModal: string;
4766
+ neetoLogo: string;
4767
+ clearSelectIndicator: string;
4768
+ menubarContainer: string;
4769
+ multiEmailInputContainer: string;
4770
+ linkInputError: string;
4771
+ continueButton: string;
4772
+ clearAllButton: string;
4773
+ requiredSwitch: string;
4774
+ customSwitch: (switchLabel: string) => string;
4775
+ customMenuItem: (label: string) => string;
4711
4776
  customInputLabel: (name?: string) => string;
4712
4777
  customInputField: (name?: string) => string;
4713
4778
  customSelectContainer: (name: string) => string;
4779
+ customSelectContainerWrapper: (label: string) => string;
4780
+ customSelectValueContainer: (label?: string) => string;
4714
4781
  customCheckboxLabel: (name: string) => string;
4715
4782
  errorImage: string;
4716
4783
  customDropdownIcon: (label?: string) => string;
@@ -4718,6 +4785,7 @@ declare const COMMON_SELECTORS: {
4718
4785
  checkboxInput: (option?: string) => string;
4719
4786
  radioInput: (option?: string) => string;
4720
4787
  selectOptionError: (option: string) => string;
4788
+ customDropDownMenu: (label?: string) => string;
4721
4789
  };
4722
4790
  /**
4723
4791
  *
@@ -4830,6 +4898,16 @@ declare const THANK_YOU_SELECTORS: {
4830
4898
  *
4831
4899
  * characterCount: Selector for the character count.
4832
4900
  *
4901
+ * tableOption: Selector for the table option in the editor menu.
4902
+ *
4903
+ * tableCreateButton: Selector for the button that creates a table in the editor.
4904
+ *
4905
+ * videoUploadOption: Selector for the video upload option in the editor.
4906
+ *
4907
+ * editorMenuWrapper: Selector for the wrapper of the fixed editor menu.
4908
+ *
4909
+ * editorMediaUploaderTab: Selector for the media upload tab.
4910
+ *
4833
4911
  */
4834
4912
  declare const NEETO_EDITOR_SELECTORS: {
4835
4913
  fontSize: string;
@@ -4884,6 +4962,11 @@ declare const NEETO_EDITOR_SELECTORS: {
4884
4962
  dynamicVariablesButton: string;
4885
4963
  emojiContainer: string;
4886
4964
  characterCount: string;
4965
+ tableOption: string;
4966
+ tableCreateButton: string;
4967
+ videoUploadOption: string;
4968
+ editorMenuWrapper: string;
4969
+ editorMediaUploaderTab: string;
4887
4970
  dynamicVariableSelector: (variable: string) => string;
4888
4971
  };
4889
4972
  declare const NEETO_TEXT_MODIFIER_SELECTORS: {
@@ -5033,6 +5116,14 @@ declare const EMBED_SELECTORS: {
5033
5116
  *
5034
5117
  * filtersTermBlock: Custom selector for filters term block.
5035
5118
  *
5119
+ * filtersSegmentName: Selector for the filter segment name input.
5120
+ *
5121
+ * activeSelectContainer: Selector for the container holding the active status filter.
5122
+ *
5123
+ * dateRange: Selector for a specific date range filter by name.
5124
+ *
5125
+ * segmentLabel: Selector for a specific segment block label.
5126
+ *
5036
5127
  */
5037
5128
  declare const NEETO_FILTERS_SELECTORS: {
5038
5129
  emailSelectContainer: string;
@@ -5052,8 +5143,12 @@ declare const NEETO_FILTERS_SELECTORS: {
5052
5143
  paneModalCrossIcon: string;
5053
5144
  searchTermBlock: string;
5054
5145
  categoriesFilter: string;
5146
+ filtersSegmentName: string;
5147
+ activeSelectContainer: string;
5055
5148
  neetoFiltersFilter: (filterName: string) => string;
5056
5149
  filtersTermBlock: (filterType?: string) => string;
5150
+ dateRange: (filterName: string) => string;
5151
+ segmentLabel: (label: string) => string;
5057
5152
  };
5058
5153
  /**
5059
5154
  *
@@ -5498,6 +5593,20 @@ declare const TAB_SELECTORS: {
5498
5593
  *
5499
5594
  * descriptionTextArea: Selector for the description text area for tags.
5500
5595
  *
5596
+ * addTagButton: Selector for the button to add a new tag.
5597
+ *
5598
+ * tagSearchField: Selector for the tag search input field.
5599
+ *
5600
+ * deleteTagButton: Selector for the button to delete a tag.
5601
+ *
5602
+ * metaDataCard: Selector for the metadata card container.
5603
+ *
5604
+ * metaDataBlock: Selector for individual metadata blocks inside the card.
5605
+ *
5606
+ * tagContainer: Selector for the tag container.
5607
+ *
5608
+ * tagsCount: Selector for tags count text.
5609
+ *
5501
5610
  */
5502
5611
  declare const TAGS_SELECTORS: {
5503
5612
  newTagButton: string;
@@ -5514,6 +5623,7 @@ declare const TAGS_SELECTORS: {
5514
5623
  metaDataCard: string;
5515
5624
  metaDataBlock: string;
5516
5625
  tagContainer: string;
5626
+ tagsCount: string;
5517
5627
  };
5518
5628
  /**
5519
5629
  *
@@ -5579,7 +5689,9 @@ declare const MERGE_TAGS_SELECTORS: {
5579
5689
  *
5580
5690
  * chatQuestionHeader: Selector for the chat question header.
5581
5691
  *
5582
- * openButton: Selector for the chat widget open button.
5692
+ * openChat: Selector for the chat widget open button.
5693
+ *
5694
+ * homeScreenSubtitle: Selector for the home screen subtitle.
5583
5695
  *
5584
5696
  */
5585
5697
  declare const CHAT_WIDGET_SELECTORS: {
@@ -5592,6 +5704,7 @@ declare const CHAT_WIDGET_SELECTORS: {
5592
5704
  closeChat: string;
5593
5705
  chatQuestionHeader: string;
5594
5706
  openChat: string;
5707
+ homeScreenSubtitle: string;
5595
5708
  };
5596
5709
  /**
5597
5710
  *
@@ -5651,6 +5764,8 @@ declare const KEYBOARD_SHORTCUTS_SELECTORS: {
5651
5764
  *
5652
5765
  * manageButton: Selector for the manage button.
5653
5766
  *
5767
+ * integrationConnectedTag: Selector for the connected tag.
5768
+ *
5654
5769
  */
5655
5770
  declare const INTEGRATION_SELECTORS: {
5656
5771
  integrationCard: (integration: string) => string;
@@ -5658,6 +5773,7 @@ declare const INTEGRATION_SELECTORS: {
5658
5773
  integrationStatusTag: string;
5659
5774
  disconnectButton: string;
5660
5775
  manageButton: string;
5776
+ integrationConnectedTag: string;
5661
5777
  };
5662
5778
  declare const GOOGLE_LOGIN_SELECTORS: {
5663
5779
  totpNext: string;
@@ -5796,6 +5912,10 @@ declare const SLACK_DATA_QA_SELECTORS: {
5796
5912
  *
5797
5913
  * deleteSecret: Selector for delete secret key button.
5798
5914
  *
5915
+ * editWebhookButton: Selector for edit API key button.
5916
+ *
5917
+ * deleteWebhookButton: Selector for delete API key button.
5918
+ *
5799
5919
  */
5800
5920
  declare const WEBHOOK_SELECTORS: {
5801
5921
  addNewWebhook: string;
@@ -5808,6 +5928,8 @@ declare const WEBHOOK_SELECTORS: {
5808
5928
  eventsSelectError: string;
5809
5929
  regenerateSecret: string;
5810
5930
  deleteSecret: string;
5931
+ editWebhookButton: string;
5932
+ deleteWebhookButton: string;
5811
5933
  };
5812
5934
  /**
5813
5935
  *
@@ -5978,11 +6100,55 @@ declare const CUSTOM_DOMAIN_SELECTORS: {
5978
6100
  *
5979
6101
  * addApiKeyButton: Selector for the add API key button.
5980
6102
  *
6103
+ * apiKeysLabelField: Selector for the API key label input field.
6104
+ *
6105
+ * apiKeysExpiresAtField: Selector for the API key expiry input field.
6106
+ *
6107
+ * expiryDateInputError: Selector for the expiry date input error message.
6108
+ *
6109
+ * expiryDateInput: Selector for the expiry date input field.
6110
+ *
6111
+ * tokenField: Selector for the token input or display field.
6112
+ *
6113
+ * expiresAtField: Selector for the expiry date field.
6114
+ *
6115
+ * createdAtField: Selector for the API key creation date field.
6116
+ *
5981
6117
  */
5982
6118
  declare const API_KEYS_SELECTORS: {
5983
6119
  editApiKeyButton: string;
5984
6120
  deleteApiKeyButton: string;
5985
6121
  addApiKeyButton: string;
6122
+ apiKeysLabelField: string;
6123
+ apiKeysExpiresAtField: string;
6124
+ expiryDateInputError: string;
6125
+ expiryDateInput: string;
6126
+ apiKeysField: string;
6127
+ tokenField: string;
6128
+ expiresAtField: string;
6129
+ createdAtField: string;
6130
+ };
6131
+ /**
6132
+ *
6133
+ * Selectors for date picker components.
6134
+ *
6135
+ * pickerInput: Selector for the picker input field.
6136
+ *
6137
+ * datePicker: Selector for the date picker component.
6138
+ *
6139
+ * timePicker: Selector for the time picker component.
6140
+ *
6141
+ * nextYearButton: Selector for the button to navigate to the next year.
6142
+ *
6143
+ * prevYearButton: Selector for the button to navigate to the previous year.
6144
+ *
6145
+ */
6146
+ declare const DATE_PICKER_SELECTORS: {
6147
+ pickerInput: string;
6148
+ datePicker: string;
6149
+ timePicker: string;
6150
+ nextYearButton: string;
6151
+ prevYearButton: string;
5986
6152
  };
5987
6153
  /**
5988
6154
  *
@@ -6903,4 +7069,4 @@ interface Overrides {
6903
7069
  * @endexample
6904
7070
  */
6905
7071
  declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
6906
- export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysPage, AuditLogsPage, BASE_URL, type BaseThemeStyle, type BaseThemeStyleType, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CustomCommands, CustomDomainPage as CustomDomainsPage, type CustomFixture, 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_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RolesPage, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_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, TagsPage, TeamMembers, ThankYouPage, type ThemeCategory, USER_AGENTS, WEBHOOK_SELECTORS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, currencyUtils, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
7072
+ export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysPage, AuditLogsPage, BASE_URL, type BaseThemeStyle, type BaseThemeStyleType, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CustomCommands, CustomDomainPage as CustomDomainsPage, 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_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RolesPage, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_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, TagsPage, TeamMembers, ThankYouPage, type ThemeCategory, USER_AGENTS, WEBHOOK_SELECTORS, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, currencyUtils, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, filterUtils, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };