@bigbinary/neeto-playwright-commons 1.15.3 → 1.16.0
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 +2961 -2657
- package/index.cjs.js.map +1 -1
- package/index.d.ts +88 -2
- package/index.js +2960 -2658
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -41,6 +41,11 @@ interface VerifyHelpPopoverProps {
|
|
|
41
41
|
helpURL?: string;
|
|
42
42
|
customPageContext?: Page;
|
|
43
43
|
}
|
|
44
|
+
interface SaveChangesProps {
|
|
45
|
+
closeAfterVerification?: boolean;
|
|
46
|
+
isPane?: boolean;
|
|
47
|
+
customPageContext?: Page;
|
|
48
|
+
}
|
|
44
49
|
type ConditionProps = Record<string, string>[];
|
|
45
50
|
type FilterProps = Record<string, ConditionProps>;
|
|
46
51
|
type ParamFilters = FilterProps[];
|
|
@@ -453,6 +458,34 @@ declare class CustomCommands {
|
|
|
453
458
|
* @endexample
|
|
454
459
|
*/
|
|
455
460
|
verifySearchTermBlock: (searchTerm?: string) => Promise<void>;
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* Used to save the changes made on the thank you page.
|
|
464
|
+
*
|
|
465
|
+
* @example
|
|
466
|
+
*
|
|
467
|
+
* await thankYouPage.saveChanges();
|
|
468
|
+
* @endexample
|
|
469
|
+
*/
|
|
470
|
+
saveChanges: ({
|
|
471
|
+
isPane,
|
|
472
|
+
customPageContext,
|
|
473
|
+
closeAfterVerification
|
|
474
|
+
}?: SaveChangesProps) => Promise<[void, false | void, void]>;
|
|
475
|
+
/**
|
|
476
|
+
*
|
|
477
|
+
* Method to hide the tooltip.
|
|
478
|
+
*
|
|
479
|
+
* triggerElement: Locator hovering on which tooltip was shown.
|
|
480
|
+
*
|
|
481
|
+
* customPageContext(optional): Custom page context on which tooltip is shown. Default to this.page.
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
*
|
|
485
|
+
* await hideTooltip();
|
|
486
|
+
* @endexample
|
|
487
|
+
*/
|
|
488
|
+
hideTooltip: (triggerElement: Locator, customPageContext?: Page) => Promise<void>;
|
|
456
489
|
}
|
|
457
490
|
type Range<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Exclude<Acc[number], 0 | Acc["length"]> | N : Range<N, [...Acc, Acc["length"]]>;
|
|
458
491
|
interface MessageSearchCriteria {
|
|
@@ -1568,6 +1601,7 @@ interface VerifyWebhookResponseParams extends Record<string, unknown> {
|
|
|
1568
1601
|
callback?: CallbackFunction;
|
|
1569
1602
|
parseFullResponseContent?: boolean;
|
|
1570
1603
|
webhookToken: string;
|
|
1604
|
+
timeout?: number;
|
|
1571
1605
|
}
|
|
1572
1606
|
interface VerifyWebhookDeliveriesParams extends Record<string, unknown> {
|
|
1573
1607
|
callback: CallbackFunction;
|
|
@@ -1631,11 +1665,14 @@ declare class WebhooksPage {
|
|
|
1631
1665
|
*
|
|
1632
1666
|
* Other parameters to be passed to the callback function.
|
|
1633
1667
|
*
|
|
1668
|
+
* timeout(optional): Timeout in milliseconds to fetch the latest response. Default is 20_000.
|
|
1669
|
+
*
|
|
1634
1670
|
* @example
|
|
1635
1671
|
*
|
|
1636
1672
|
* await webhooksPage.verifyLatestWebhookResponse({
|
|
1637
1673
|
* callback: ({ parsedResponse }) => console.log(parsedResponse),
|
|
1638
|
-
* webhookToken: "exampleToken"
|
|
1674
|
+
* webhookToken: "exampleToken",
|
|
1675
|
+
* timeout: 35_000
|
|
1639
1676
|
* });
|
|
1640
1677
|
* @endexample
|
|
1641
1678
|
*/
|
|
@@ -1643,6 +1680,7 @@ declare class WebhooksPage {
|
|
|
1643
1680
|
callback,
|
|
1644
1681
|
webhookToken,
|
|
1645
1682
|
parseFullResponseContent,
|
|
1683
|
+
timeout,
|
|
1646
1684
|
...otherParams
|
|
1647
1685
|
}: VerifyWebhookResponseParams) => Promise<void>;
|
|
1648
1686
|
/**
|
|
@@ -3249,6 +3287,9 @@ declare const PLURAL: {
|
|
|
3249
3287
|
declare const USER_AGENTS: {
|
|
3250
3288
|
windows: string;
|
|
3251
3289
|
mac: string;
|
|
3290
|
+
iPhone: string;
|
|
3291
|
+
iPad: string;
|
|
3292
|
+
android: string;
|
|
3252
3293
|
};
|
|
3253
3294
|
/**
|
|
3254
3295
|
*
|
|
@@ -6023,6 +6064,51 @@ declare const isGithubIssueOpen: (issueLinks: string[]) => Promise<boolean>;
|
|
|
6023
6064
|
* @endexample
|
|
6024
6065
|
*/
|
|
6025
6066
|
declare const hexToRGBA: (hex: string) => string;
|
|
6067
|
+
/**
|
|
6068
|
+
*
|
|
6069
|
+
* Simulates typing with a delay.
|
|
6070
|
+
*
|
|
6071
|
+
* @example
|
|
6072
|
+
*
|
|
6073
|
+
* import { simulateTypingWithDelay } from "@bigbinary/neeto-playwright-commons";
|
|
6074
|
+
*
|
|
6075
|
+
* await simulateTypingWithDelay({
|
|
6076
|
+
* field: page.getByTestId("email-field"),
|
|
6077
|
+
* value: "oliver@example.com",
|
|
6078
|
+
* delay: 600,
|
|
6079
|
+
* });
|
|
6080
|
+
* @endexample
|
|
6081
|
+
*/
|
|
6082
|
+
declare const simulateTypingWithDelay: ({
|
|
6083
|
+
field,
|
|
6084
|
+
value,
|
|
6085
|
+
delay
|
|
6086
|
+
}: {
|
|
6087
|
+
field: Locator;
|
|
6088
|
+
value: string;
|
|
6089
|
+
delay?: number;
|
|
6090
|
+
}) => Promise<void>;
|
|
6091
|
+
/**
|
|
6092
|
+
*
|
|
6093
|
+
* Simulates a click with a delay.
|
|
6094
|
+
*
|
|
6095
|
+
* @example
|
|
6096
|
+
*
|
|
6097
|
+
* import { simulateClickWithDelay } from "@bigbinary/neeto-playwright-commons";
|
|
6098
|
+
*
|
|
6099
|
+
* await simulateClickWithDelay({
|
|
6100
|
+
* element: page.getByTestId("submit-button"),
|
|
6101
|
+
* page: page,
|
|
6102
|
+
* });
|
|
6103
|
+
* @endexample
|
|
6104
|
+
*/
|
|
6105
|
+
declare const simulateClickWithDelay: ({
|
|
6106
|
+
element,
|
|
6107
|
+
page
|
|
6108
|
+
}: {
|
|
6109
|
+
element: Locator;
|
|
6110
|
+
page: Page;
|
|
6111
|
+
}) => Promise<void>;
|
|
6026
6112
|
interface PlaydashOverrides {
|
|
6027
6113
|
projectKey: string;
|
|
6028
6114
|
}
|
|
@@ -6050,4 +6136,4 @@ interface Overrides {
|
|
|
6050
6136
|
* @endexample
|
|
6051
6137
|
*/
|
|
6052
6138
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
6053
|
-
export { API_ROUTES, AUDIT_LOGS_TEXTS, AuditLogsPage, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CustomCommands, type CustomFixture, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, 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, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailerUtils, Member, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PLURAL, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAB_SELECTORS, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, ThankYouPage, 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, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
6139
|
+
export { API_ROUTES, AUDIT_LOGS_TEXTS, AuditLogsPage, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CustomCommands, type CustomFixture, DESCRIPTION_EDITOR_TEXTS, EMBED_SELECTORS, EMOJI_LABEL, 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, KEYBOARD_SHORTCUTS_SELECTORS, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_SELECTORS, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MailerUtils, Member, NEETO_AUTH_BASE_URL, NEETO_EDITOR_SELECTORS, NEETO_FILTERS_SELECTORS, NEETO_IMAGE_UPLOADER_SELECTORS, NEETO_ROUTES, NEETO_TEXT_MODIFIER_SELECTORS, OTP_EMAIL_PATTERN, OrganizationPage, PLURAL, PROFILE_SECTION_SELECTORS, PROJECT_TRANSLATIONS_PATH, ROLES_SELECTORS, ROUTES, SELECT_COUNTRY, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STORAGE_STATE, SidebarSection, SlackPage, TAB_SELECTORS, TAGS_SELECTORS, TEXT_MODIFIER_ROLES, TEXT_MODIFIER_SELECTORS, TEXT_MODIFIER_TAGS, THANK_YOU_SELECTORS, THIRD_PARTY_ROUTES, TOASTR_MESSAGES, TagsPage, TeamMembers, ThankYouPage, 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, generateStagingData, getByDataQA, getGlobalUserState, getImagePathAndName, getListCount, headerUtils, hexToRGB, hexToRGBA, hyphenize, i18nFixture, initializeCredentials, initializeTotp, isGithubIssueOpen, joinHyphenCase, joinString, login, loginWithoutSSO, memberUtils, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|