@bigbinary/neeto-playwright-commons 1.26.36 → 1.27.1
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 +133 -103
- package/index.cjs.js.map +1 -1
- package/index.d.ts +47 -46
- package/index.js +133 -104
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2173,7 +2173,6 @@ declare class HelpAndProfilePage {
|
|
|
2173
2173
|
kbDocsBaseURL,
|
|
2174
2174
|
changelogBaseURL
|
|
2175
2175
|
}: HelpAndProfilePageInitializerProps);
|
|
2176
|
-
private hoverOnBody;
|
|
2177
2176
|
/**
|
|
2178
2177
|
*
|
|
2179
2178
|
* Opens the Help Center and expects the chat button within it to be visible.
|
|
@@ -2898,17 +2897,6 @@ declare class WebhooksPage {
|
|
|
2898
2897
|
/**
|
|
2899
2898
|
* @deprecated This method is deprecated. Use getTokenViaAPI instead.
|
|
2900
2899
|
*/
|
|
2901
|
-
/**
|
|
2902
|
-
*
|
|
2903
|
-
* Retrieves the webhook URL and token from a third-party site.
|
|
2904
|
-
*
|
|
2905
|
-
* Object containing webhook site URL and token.
|
|
2906
|
-
*
|
|
2907
|
-
* @example
|
|
2908
|
-
*
|
|
2909
|
-
* const { webhookSiteURL, webhookToken } = await webhooksPage.getWebhookURL();
|
|
2910
|
-
* @endexample
|
|
2911
|
-
*/
|
|
2912
2900
|
getWebhookURL: () => Promise<{
|
|
2913
2901
|
webhookSiteURL: string;
|
|
2914
2902
|
webhookToken: string | undefined;
|
|
@@ -4580,19 +4568,20 @@ declare class ApiKeysPage {
|
|
|
4580
4568
|
neetoPlaywrightUtilities: CustomCommands;
|
|
4581
4569
|
t: TFunction;
|
|
4582
4570
|
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
4571
|
+
private enableExpiryDate;
|
|
4583
4572
|
/**
|
|
4584
4573
|
*
|
|
4585
4574
|
* Used to fill in the details for creating or editing an API key.
|
|
4586
4575
|
*
|
|
4587
4576
|
* label (required): The name for the API key.
|
|
4588
4577
|
*
|
|
4589
|
-
* expiryDate (optional): The
|
|
4578
|
+
* expiryDate (optional): The expiry date for the API key, formatted as "DD/MM/YYYY".
|
|
4590
4579
|
*
|
|
4591
4580
|
* @example
|
|
4592
4581
|
*
|
|
4593
4582
|
* await apiKeysPage.fillApiKeyDetails({
|
|
4594
4583
|
* label: "API Key",
|
|
4595
|
-
* expiryDate: "
|
|
4584
|
+
* expiryDate: "08/11/2025"
|
|
4596
4585
|
* });
|
|
4597
4586
|
* @endexample
|
|
4598
4587
|
*/
|
|
@@ -4723,23 +4712,6 @@ declare class AuditLogsPage {
|
|
|
4723
4712
|
messageBuilders: MessageBuilders;
|
|
4724
4713
|
private admin;
|
|
4725
4714
|
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands, product?: NeetoProducts | undefined);
|
|
4726
|
-
verifyAuditLogs: <T extends ActionDataKey>({
|
|
4727
|
-
action,
|
|
4728
|
-
adminName,
|
|
4729
|
-
data
|
|
4730
|
-
}: VerifyAuditLogProps<T>) => Promise<void>;
|
|
4731
|
-
private assertAuditLogContent;
|
|
4732
|
-
/**
|
|
4733
|
-
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4734
|
-
*/
|
|
4735
|
-
verifyDataInPane: ({}: {}) => void;
|
|
4736
|
-
/**
|
|
4737
|
-
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4738
|
-
*/
|
|
4739
|
-
verifyAuditLog: ({}: {}) => Promise<void>;
|
|
4740
|
-
/**
|
|
4741
|
-
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4742
|
-
*/
|
|
4743
4715
|
/**
|
|
4744
4716
|
*
|
|
4745
4717
|
* Verifies an audit log entry by building the expected message based on the action type and data, then checking that the audit log content matches the expected message and current date.
|
|
@@ -4752,13 +4724,30 @@ declare class AuditLogsPage {
|
|
|
4752
4724
|
*
|
|
4753
4725
|
* @example
|
|
4754
4726
|
*
|
|
4755
|
-
* await auditLogsPage.
|
|
4727
|
+
* await auditLogsPage.verifyAuditLogs({
|
|
4756
4728
|
* action: ACTIONS.inviteUsers,
|
|
4757
4729
|
* adminName: "Oliver Smith",
|
|
4758
4730
|
* data: { emails: ["user1@example.com", "user2@example.com"] },
|
|
4759
4731
|
* });
|
|
4760
4732
|
* @endexample
|
|
4761
4733
|
*/
|
|
4734
|
+
verifyAuditLogs: <T extends ActionDataKey>({
|
|
4735
|
+
action,
|
|
4736
|
+
adminName,
|
|
4737
|
+
data
|
|
4738
|
+
}: VerifyAuditLogProps<T>) => Promise<void>;
|
|
4739
|
+
private assertAuditLogContent;
|
|
4740
|
+
/**
|
|
4741
|
+
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4742
|
+
*/
|
|
4743
|
+
verifyDataInPane: ({}: {}) => void;
|
|
4744
|
+
/**
|
|
4745
|
+
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4746
|
+
*/
|
|
4747
|
+
verifyAuditLog: ({}: {}) => Promise<void>;
|
|
4748
|
+
/**
|
|
4749
|
+
* @deprecated This method is deprecated. Use verifyAuditLogs instead.
|
|
4750
|
+
*/
|
|
4762
4751
|
verifyAuditLogEntry: ({}: {}) => Promise<void>;
|
|
4763
4752
|
}
|
|
4764
4753
|
interface CustomDomainPageProps {
|
|
@@ -5533,6 +5522,13 @@ declare const networkConditions: Record<"Slow 3G" | "Fast 3G" | "No Throttling",
|
|
|
5533
5522
|
declare const TEAM_MEMBER_TEXTS: {
|
|
5534
5523
|
emailSubject: string;
|
|
5535
5524
|
};
|
|
5525
|
+
declare const KEYBOARD_SHORTCUT_TEST_CASES: readonly [{
|
|
5526
|
+
readonly os: "windows";
|
|
5527
|
+
readonly agent: string;
|
|
5528
|
+
}, {
|
|
5529
|
+
readonly os: "mac";
|
|
5530
|
+
readonly agent: string;
|
|
5531
|
+
}];
|
|
5536
5532
|
/**
|
|
5537
5533
|
*
|
|
5538
5534
|
* newConversation: Text for initiating a new conversation.
|
|
@@ -6712,6 +6708,7 @@ declare const NEETO_FILTERS_SELECTORS: {
|
|
|
6712
6708
|
*
|
|
6713
6709
|
*/
|
|
6714
6710
|
declare const HELP_CENTER_SELECTORS: {
|
|
6711
|
+
helpMenuBtn: string;
|
|
6715
6712
|
helpButton: string;
|
|
6716
6713
|
documentationButton: string;
|
|
6717
6714
|
keyboardShortcutButton: string;
|
|
@@ -7882,6 +7879,23 @@ declare const readFileSyncIfExists: ReadFileSyncIfExists;
|
|
|
7882
7879
|
* @example
|
|
7883
7880
|
*
|
|
7884
7881
|
* const user = getGlobalUserState()
|
|
7882
|
+
*
|
|
7883
|
+
* console.log(userProps);
|
|
7884
|
+
*
|
|
7885
|
+
* Output:
|
|
7886
|
+
* {
|
|
7887
|
+
* firstName: 'André',
|
|
7888
|
+
* lastName: "O'Reilly",
|
|
7889
|
+
* otp: 111111,
|
|
7890
|
+
* domain: 'neetoform.net',
|
|
7891
|
+
* currentUserName: "André O'Reilly",
|
|
7892
|
+
* businessName: 'cpt-form-0903-0828-11339',
|
|
7893
|
+
* subdomainName: 'cpt-form-0903-0828-11339',
|
|
7894
|
+
* email: 'cpts9gnqty9+form+0903-0828-11339@bigbinary.com',
|
|
7895
|
+
* isLoggedIn: 'true',
|
|
7896
|
+
* baseUrl: 'https://cpt-form-0903-0828-11339.neetoform.net'
|
|
7897
|
+
* }
|
|
7898
|
+
*
|
|
7885
7899
|
* @endexample
|
|
7886
7900
|
*/
|
|
7887
7901
|
declare const getGlobalUserState: () => Record<string, string>;
|
|
@@ -7928,19 +7942,6 @@ declare const clearCredentials: ClearCredentials;
|
|
|
7928
7942
|
/**
|
|
7929
7943
|
* @deprecated Use hyphenate from neeto-cist instead.
|
|
7930
7944
|
*/
|
|
7931
|
-
/**
|
|
7932
|
-
*
|
|
7933
|
-
* Used to hyphenize the strings. It takes the following parameters:
|
|
7934
|
-
*
|
|
7935
|
-
* input: The string that need to hyphenized.
|
|
7936
|
-
*
|
|
7937
|
-
* @example
|
|
7938
|
-
*
|
|
7939
|
-
* import {hyphenize} from "@bigbinary/neeto-playwright-commons"
|
|
7940
|
-
* const name = hyphenize("hello world")
|
|
7941
|
-
* console.log(name) // hello-world
|
|
7942
|
-
* @endexample
|
|
7943
|
-
*/
|
|
7944
7945
|
declare const hyphenize: Hyphenize;
|
|
7945
7946
|
/**
|
|
7946
7947
|
*
|
|
@@ -8806,5 +8807,5 @@ interface Overrides {
|
|
|
8806
8807
|
* @endexample
|
|
8807
8808
|
*/
|
|
8808
8809
|
declare const definePlaywrightConfig: (overrides: Overrides) => PlaywrightTestConfig<{}, {}>;
|
|
8809
|
-
export { ACTIONS, ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_SELECTORS, AdminPanelPage, ApiKeysApi, ApiKeysPage, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, CustomCommands, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmbedBase, FILE_FORMATS, 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, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_DEV_ENV, IS_STAGING_ENV, ImageUploader, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, Member, MemberApis, MicrosoftPage, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_SEO_SELECTORS, NEETO_TEXT_MODIFIER_SELECTORS, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RailsEmailRakeClient, RailsEmailUtils, RoleApis, RolesPage, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, TABLE_SELECTORS, TAB_SELECTORS, TAGS_SELECTORS, TEAM_MEMBER_TEXTS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THEMES_SELECTORS, THEMES_TEXTS, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, fillCredentialsAndSubmit, filterUtils, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFormattedPhoneNumber, getFullUrl, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getIsoCodeFromPhoneCode, getListCount, globalShortcuts, grantClipboardPermissions, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTestData, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
8810
|
+
export { ACTIONS, ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_SELECTORS, AdminPanelPage, ApiKeysApi, ApiKeysPage, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, CustomCommands, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmbedBase, FILE_FORMATS, 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, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_DEV_ENV, IS_STAGING_ENV, ImageUploader, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, KEYBOARD_SHORTCUT_TEST_CASES, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, Member, MemberApis, MicrosoftPage, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_SEO_SELECTORS, NEETO_TEXT_MODIFIER_SELECTORS, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, RailsEmailRakeClient, RailsEmailUtils, RoleApis, RolesPage, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, TABLE_SELECTORS, TAB_SELECTORS, TAGS_SELECTORS, TEAM_MEMBER_TEXTS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THEMES_SELECTORS, THEMES_TEXTS, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_WEB_TEXTS, ZapierPage, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, executeWithThrottledResources, extractSubdomainFromError, fillCredentialsAndSubmit, filterUtils, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFormattedPhoneNumber, getFullUrl, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getIsoCodeFromPhoneCode, getListCount, globalShortcuts, grantClipboardPermissions, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTestData, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
8810
8811
|
export type { BaseThemeStyle, BaseThemeStyleType, ColumnMenuAction, CountryProps, CustomFixture, IntroPageThemeStyle, IntroPageThemeStyleType, ProjectName, ThemeCategory, ValueOf };
|