@bigbinary/neeto-playwright-commons 1.17.5 → 1.17.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.cjs.js +2719 -2901
- package/index.cjs.js.map +1 -1
- package/index.d.ts +80 -23
- package/index.js +2719 -2902
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -113,6 +113,9 @@ declare class CustomCommands {
|
|
|
113
113
|
* @endexample
|
|
114
114
|
*/
|
|
115
115
|
initializeCsrfToken: () => Promise<string | null>;
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated Use UI assertions instead.
|
|
118
|
+
*/
|
|
116
119
|
/**
|
|
117
120
|
*
|
|
118
121
|
* Command to wait until a response with URL responseUrl is found. Optionally,
|
|
@@ -694,10 +697,68 @@ declare class MailerUtils {
|
|
|
694
697
|
*/
|
|
695
698
|
generateRandomEmail: () => string;
|
|
696
699
|
}
|
|
700
|
+
interface BaseThemeStyle {
|
|
701
|
+
primaryColor: Hex;
|
|
702
|
+
secondaryColor: Hex;
|
|
703
|
+
primaryTextColor: Hex;
|
|
704
|
+
secondaryTextColor: Hex;
|
|
705
|
+
backgroundColor: Hex;
|
|
706
|
+
cardBackgroundColor: Hex;
|
|
707
|
+
cardTextColor: Hex;
|
|
708
|
+
linkColor: Hex;
|
|
709
|
+
}
|
|
710
|
+
type BaseThemeStyleType = keyof BaseThemeStyle;
|
|
711
|
+
type Hex = Lowercase<`#${string}`>;
|
|
712
|
+
/**
|
|
713
|
+
*
|
|
714
|
+
* This function converts a hexadecimal color code to its RGBA equivalent.
|
|
715
|
+
*
|
|
716
|
+
* @example
|
|
717
|
+
*
|
|
718
|
+
* import { hexToRGBA } from "@bigbinary/neeto-playwright-commons";
|
|
719
|
+
*
|
|
720
|
+
* // Convert hexadecimal color code to RGB
|
|
721
|
+
* const rgbaColor = hexToRGBA("#ffffff29");
|
|
722
|
+
*
|
|
723
|
+
* console.log(rgbaColor); // Output: 'rgba(255, 255, 255, 0.16)'
|
|
724
|
+
*
|
|
725
|
+
* // Convert another hexadecimal color code to RGB
|
|
726
|
+
* const anotherRGBAColor = hexToRGBA("#00ff00ff");
|
|
727
|
+
*
|
|
728
|
+
* console.log(anotherRGBAColor); // Output: 'rgba(0, 255, 0, 1)'
|
|
729
|
+
* @endexample
|
|
730
|
+
*/
|
|
731
|
+
declare const hexToRGBA: (hex: string) => string;
|
|
732
|
+
declare class ColorPickerUtils {
|
|
733
|
+
private page;
|
|
734
|
+
constructor(page: Page);
|
|
735
|
+
pickColor: (styleType: BaseThemeStyleType, color: Hex) => Promise<void>;
|
|
736
|
+
/**
|
|
737
|
+
*
|
|
738
|
+
* This function converts a hexadecimal color code to its RGBA equivalent.
|
|
739
|
+
*
|
|
740
|
+
* @example
|
|
741
|
+
*
|
|
742
|
+
* import { hexToRGBA } from "@bigbinary/neeto-playwright-commons";
|
|
743
|
+
*
|
|
744
|
+
* // Convert hexadecimal color code to RGB
|
|
745
|
+
* const rgbaColor = hexToRGBA("#ffffff29");
|
|
746
|
+
*
|
|
747
|
+
* console.log(rgbaColor); // Output: 'rgba(255, 255, 255, 0.16)'
|
|
748
|
+
*
|
|
749
|
+
* // Convert another hexadecimal color code to RGB
|
|
750
|
+
* const anotherRGBAColor = hexToRGBA("#00ff00ff");
|
|
751
|
+
*
|
|
752
|
+
* console.log(anotherRGBAColor); // Output: 'rgba(0, 255, 0, 1)'
|
|
753
|
+
* @endexample
|
|
754
|
+
*/
|
|
755
|
+
hexToRGBA: (hex: string) => string;
|
|
756
|
+
}
|
|
697
757
|
interface CustomFixture {
|
|
698
758
|
neetoPlaywrightUtilities: CustomCommands;
|
|
699
759
|
page: Page;
|
|
700
760
|
mailerUtils: MailerUtils;
|
|
761
|
+
colorPicker: ColorPickerUtils;
|
|
701
762
|
}
|
|
702
763
|
type Commands = Fixtures<CustomFixture, PlaywrightWorkerArgs & PlaywrightWorkerOptions, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
|
|
703
764
|
declare const commands: Commands;
|
|
@@ -4509,6 +4570,8 @@ declare const FONT_SIZE_SELECTORS: {
|
|
|
4509
4570
|
*
|
|
4510
4571
|
* colorpickerEditableInput: Selector for the color picker editable input.
|
|
4511
4572
|
*
|
|
4573
|
+
* colorpickerEditableInputTextbox: Selector for the color picker editable input textbox.
|
|
4574
|
+
*
|
|
4512
4575
|
* showIconCheckbox: Selector for the show icon checkbox.
|
|
4513
4576
|
*
|
|
4514
4577
|
* elementIdInput: Selector for the element ID input field.
|
|
@@ -4534,6 +4597,7 @@ declare const EMBED_SELECTORS: {
|
|
|
4534
4597
|
buttonTextColorLabel: string;
|
|
4535
4598
|
colorPickerTarget: string;
|
|
4536
4599
|
colorpickerEditableInput: string;
|
|
4600
|
+
colorpickerEditableInputTextbox: string;
|
|
4537
4601
|
showIconCheckbox: string;
|
|
4538
4602
|
elementIdInput: string;
|
|
4539
4603
|
previewElementPopupButton: string;
|
|
@@ -5450,6 +5514,21 @@ declare const TABLE_SELECTORS: {
|
|
|
5450
5514
|
columnHeaderTitle: (columnName: string) => string;
|
|
5451
5515
|
columnMenuButton: string;
|
|
5452
5516
|
};
|
|
5517
|
+
/**
|
|
5518
|
+
*
|
|
5519
|
+
* Selectors for theme components.
|
|
5520
|
+
*
|
|
5521
|
+
* @example
|
|
5522
|
+
*
|
|
5523
|
+
* import { THEMES_SELECTORS } from "@bigbinary/neeto-playwright-commons";
|
|
5524
|
+
* @endexample
|
|
5525
|
+
* colorPickerDropdownContainer(colorHex: string): Selector for the color picker dropdown container.
|
|
5526
|
+
*
|
|
5527
|
+
*/
|
|
5528
|
+
declare const THEMES_SELECTORS: {
|
|
5529
|
+
colorPickerDropdownContainer: (colorHex: string) => string;
|
|
5530
|
+
themeStyle: (styleType: BaseThemeStyleType) => string;
|
|
5531
|
+
};
|
|
5453
5532
|
/**
|
|
5454
5533
|
*
|
|
5455
5534
|
* Function to initialize credentials of the current user in the storageState.
|
|
@@ -6200,28 +6279,6 @@ declare const currencyUtils: {
|
|
|
6200
6279
|
* @endexample
|
|
6201
6280
|
*/
|
|
6202
6281
|
declare const isGithubIssueOpen: (issueLinks: string[]) => Promise<boolean>;
|
|
6203
|
-
/**
|
|
6204
|
-
*
|
|
6205
|
-
* This function converts a hexadecimal color code to its RGBA equivalent.
|
|
6206
|
-
*
|
|
6207
|
-
* hex: A string representing the hexadecimal color code to be converted to RGBA.
|
|
6208
|
-
*
|
|
6209
|
-
* @example
|
|
6210
|
-
*
|
|
6211
|
-
* import { hexToRGBA } from "@bigbinary/neeto-playwright-commons";
|
|
6212
|
-
*
|
|
6213
|
-
* // Convert hexadecimal color code to RGB
|
|
6214
|
-
* const rgbaColor = hexToRGBA("#ffffff29");
|
|
6215
|
-
*
|
|
6216
|
-
* console.log(rgbaColor); // Output: 'rgba(255, 255, 255, 0.16)'
|
|
6217
|
-
*
|
|
6218
|
-
* // Convert another hexadecimal color code to RGB
|
|
6219
|
-
* const anotherRGBAColor = hexToRGBA("#00ff00ff");
|
|
6220
|
-
*
|
|
6221
|
-
* console.log(anotherRGBAColor); // Output: 'rgba(0, 255, 0, 1)'
|
|
6222
|
-
* @endexample
|
|
6223
|
-
*/
|
|
6224
|
-
declare const hexToRGBA: (hex: string) => string;
|
|
6225
6282
|
/**
|
|
6226
6283
|
*
|
|
6227
6284
|
* Simulates typing with a delay.
|
|
@@ -6294,4 +6351,4 @@ interface Overrides {
|
|
|
6294
6351
|
* @endexample
|
|
6295
6352
|
*/
|
|
6296
6353
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
6297
|
-
export { API_ROUTES, AUDIT_LOGS_TEXTS, ApiKeysPage, AuditLogsPage, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CustomCommands, 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, 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, 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, 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, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
6354
|
+
export { API_ROUTES, AUDIT_LOGS_TEXTS, ApiKeysPage, AuditLogsPage, BASE_URL, type BaseThemeStyleType, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CustomCommands, 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, 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, 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, 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, networkConditions, networkThrottlingUsingCDP, readFileSyncIfExists, removeCredentialFile, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|