@bigbinary/neeto-playwright-commons 1.19.1 → 1.19.2
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 +80 -9
- package/index.cjs.js.map +1 -1
- package/index.d.ts +135 -1
- package/index.js +79 -10
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -49,6 +49,11 @@ type ParamFilters = FilterProps[];
|
|
|
49
49
|
type BasicTypesInterface = Record<string, number | string | boolean>;
|
|
50
50
|
type ParamProps = Record<string, number | string | boolean | ParamFilters>;
|
|
51
51
|
type HttpMethods = "get" | "patch" | "post" | "put" | "delete";
|
|
52
|
+
type FileType = "csv" | "avi" | "doc" | "docx" | "flv" | "html" | "mp3" | "mp4" | "mpg" | "pdf" | "rtf" | "txt" | "webm" | "xls" | "xlsx" | "wma" | "zip" | "jpg" | "jpeg" | "png" | "gif";
|
|
53
|
+
interface BreadcrumbTitleAndRoute$1 {
|
|
54
|
+
title: string;
|
|
55
|
+
route: string;
|
|
56
|
+
}
|
|
52
57
|
interface ApiRequestProps {
|
|
53
58
|
url: string;
|
|
54
59
|
failOnStatusCode?: boolean;
|
|
@@ -477,6 +482,65 @@ declare class CustomCommands {
|
|
|
477
482
|
* @endexample
|
|
478
483
|
*/
|
|
479
484
|
hideTooltip: (triggerElement: Locator, customPageContext?: Page) => Promise<void>;
|
|
485
|
+
/**
|
|
486
|
+
*
|
|
487
|
+
* Verifies the breadcrumbs in the header of a web page. It takes the following parameters:
|
|
488
|
+
*
|
|
489
|
+
* page: An instance of the Playwright Page class representing the web page where the breadcrumbs are located.
|
|
490
|
+
*
|
|
491
|
+
* titlesAndRoutes: An array of objects containing the titles and routes of the breadcrumbs to verify.
|
|
492
|
+
*
|
|
493
|
+
* @example
|
|
494
|
+
*
|
|
495
|
+
* import { Page } from "@playwright/test";
|
|
496
|
+
* import { headerUtils } from "@bigbinary/neeto-playwright-commons";
|
|
497
|
+
*
|
|
498
|
+
* const breadcrumbs = [
|
|
499
|
+
* { title: "Home", route: "/" },
|
|
500
|
+
* { title: "Category", route: "/category" },
|
|
501
|
+
* { title: "Subcategory", route: "/category/subcategory" }
|
|
502
|
+
* ];
|
|
503
|
+
*
|
|
504
|
+
* await headerUtils.verifyBreadcrumbs({
|
|
505
|
+
* page,
|
|
506
|
+
* titlesAndRoutes: breadcrumbs
|
|
507
|
+
* });
|
|
508
|
+
* @endexample
|
|
509
|
+
*/
|
|
510
|
+
verifyBreadcrumbs: (titlesAndRoutes: BreadcrumbTitleAndRoute$1[]) => Promise<void>;
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* Function to upload a file by simulating a drop event on a droppable zone using the DataTransfer API.
|
|
514
|
+
*
|
|
515
|
+
* Note: React-dropzone, by default, uses File System API to upload files. Due to this we cannot use directly use waitForEvent("filechooser"). Ref: https://github.com/microsoft/playwright/issues/8850
|
|
516
|
+
*
|
|
517
|
+
* file: The File object to be uploaded. (e.g., using generateRandomFile()).
|
|
518
|
+
*
|
|
519
|
+
* dispatchEvent (optional): The DOM event to dispatch. Defaults to "drop".
|
|
520
|
+
*
|
|
521
|
+
* droppableZone (optional): A Playwright Locator representing the area to drop the file. Defaults to this.page.getByTestId("file-upload-body")
|
|
522
|
+
*
|
|
523
|
+
* @example
|
|
524
|
+
*
|
|
525
|
+
* import { generateRandomFile } from "@utils/fileUtils";
|
|
526
|
+
*
|
|
527
|
+
* const { file } = generateRandomFile({
|
|
528
|
+
* sizeInKB: 1024,
|
|
529
|
+
* fileType: "pdf",
|
|
530
|
+
* });
|
|
531
|
+
*
|
|
532
|
+
* await neetoPlaywrightUtilities.uploadFileViaDispatchV2({ file });
|
|
533
|
+
* @endexample
|
|
534
|
+
*/
|
|
535
|
+
uploadFileViaDispatchV2: ({
|
|
536
|
+
droppableZone,
|
|
537
|
+
dispatchEvent,
|
|
538
|
+
file
|
|
539
|
+
}: {
|
|
540
|
+
file: File;
|
|
541
|
+
dispatchEvent?: string;
|
|
542
|
+
droppableZone?: Locator;
|
|
543
|
+
}) => Promise<void>;
|
|
480
544
|
}
|
|
481
545
|
declare class MemberApis {
|
|
482
546
|
private neetoPlaywrightUtilities;
|
|
@@ -6658,6 +6722,76 @@ declare const simulateClickWithDelay: ({
|
|
|
6658
6722
|
element: Locator;
|
|
6659
6723
|
page: Page;
|
|
6660
6724
|
}) => Promise<void>;
|
|
6725
|
+
interface GenerateRandomFileProps {
|
|
6726
|
+
sizeInKB: number;
|
|
6727
|
+
fileType: FileType;
|
|
6728
|
+
fileName?: string;
|
|
6729
|
+
}
|
|
6730
|
+
/**
|
|
6731
|
+
*
|
|
6732
|
+
* Used to serialize a File object into a format that can be passed into the browser context using Playwright’s evaluateHandle.
|
|
6733
|
+
*
|
|
6734
|
+
* This is required because DOM File instances can't be transferred directly between Node and browser contexts.
|
|
6735
|
+
*
|
|
6736
|
+
* file: A File object generated in the Node/test context.
|
|
6737
|
+
*
|
|
6738
|
+
* Returns a plain object containing:
|
|
6739
|
+
*
|
|
6740
|
+
* name: File name.
|
|
6741
|
+
*
|
|
6742
|
+
* type: MIME type.
|
|
6743
|
+
*
|
|
6744
|
+
* lastModified: Last modified timestamp.
|
|
6745
|
+
*
|
|
6746
|
+
* buffer: Byte array representing file contents (as a regular array).
|
|
6747
|
+
*
|
|
6748
|
+
* @example
|
|
6749
|
+
*
|
|
6750
|
+
* import { serializeFileForBrowser } from "@utils/fileUtils";
|
|
6751
|
+
*
|
|
6752
|
+
* const serializedFile = await serializeFileForBrowser(file);
|
|
6753
|
+
* @endexample
|
|
6754
|
+
*/
|
|
6755
|
+
declare const serializeFileForBrowser: (file: File) => Promise<{
|
|
6756
|
+
name: string;
|
|
6757
|
+
type: string;
|
|
6758
|
+
lastModified: number;
|
|
6759
|
+
buffer: number[];
|
|
6760
|
+
}>;
|
|
6761
|
+
/**
|
|
6762
|
+
*
|
|
6763
|
+
* Used to generate a random File object of a specific size and type.
|
|
6764
|
+
*
|
|
6765
|
+
* sizeInKB: Size of the file in KB.
|
|
6766
|
+
*
|
|
6767
|
+
* fileType: Type/extension of the file (e.g., 'png', 'pdf', 'jpg').
|
|
6768
|
+
*
|
|
6769
|
+
* fileName (optional): Custom name for the generated file. Defaults to sample.{fileType}.
|
|
6770
|
+
*
|
|
6771
|
+
* Returns an object containing:
|
|
6772
|
+
*
|
|
6773
|
+
* file: The generated File object.
|
|
6774
|
+
*
|
|
6775
|
+
* fileName: The file name as a string.
|
|
6776
|
+
*
|
|
6777
|
+
* @example
|
|
6778
|
+
*
|
|
6779
|
+
* import { generateRandomFile } from "@utils/fileUtils";
|
|
6780
|
+
*
|
|
6781
|
+
* const { file, fileName } = generateRandomFile({
|
|
6782
|
+
* sizeInKB: 1024,
|
|
6783
|
+
* fileType: "png",
|
|
6784
|
+
* });
|
|
6785
|
+
* @endexample
|
|
6786
|
+
*/
|
|
6787
|
+
declare const generateRandomFile: ({
|
|
6788
|
+
sizeInKB,
|
|
6789
|
+
fileType,
|
|
6790
|
+
fileName
|
|
6791
|
+
}: GenerateRandomFileProps) => {
|
|
6792
|
+
file: File;
|
|
6793
|
+
fileName: string;
|
|
6794
|
+
};
|
|
6661
6795
|
interface PlaydashOverrides {
|
|
6662
6796
|
projectKey: string;
|
|
6663
6797
|
}
|
|
@@ -6685,4 +6819,4 @@ interface Overrides {
|
|
|
6685
6819
|
* @endexample
|
|
6686
6820
|
*/
|
|
6687
6821
|
declare const definePlaywrightConfig: (overrides: Overrides) => _playwright_test.PlaywrightTestConfig<{}, {}>;
|
|
6688
|
-
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, 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 };
|
|
6822
|
+
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, 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 };
|
package/index.js
CHANGED
|
@@ -771,6 +771,53 @@ const API_KEYS_SELECTORS = {
|
|
|
771
771
|
addApiKeyButton: "add-api-key-button",
|
|
772
772
|
};
|
|
773
773
|
|
|
774
|
+
const mimeTypeMap = {
|
|
775
|
+
csv: "text/csv",
|
|
776
|
+
avi: "video/x-msvideo",
|
|
777
|
+
doc: "application/msword",
|
|
778
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
779
|
+
flv: "video/x-flv",
|
|
780
|
+
html: "text/html",
|
|
781
|
+
mp3: "audio/mpeg",
|
|
782
|
+
mp4: "video/mp4",
|
|
783
|
+
mpg: "video/mpeg",
|
|
784
|
+
pdf: "application/pdf",
|
|
785
|
+
rtf: "application/rtf",
|
|
786
|
+
txt: "text/plain",
|
|
787
|
+
webm: "video/webm",
|
|
788
|
+
xls: "application/vnd.ms-excel",
|
|
789
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
790
|
+
wma: "audio/x-ms-wma",
|
|
791
|
+
zip: "application/zip",
|
|
792
|
+
jpg: "image/jpeg",
|
|
793
|
+
jpeg: "image/jpeg",
|
|
794
|
+
png: "image/png",
|
|
795
|
+
gif: "image/gif",
|
|
796
|
+
};
|
|
797
|
+
const fillRandomBytes = (byteArray) => {
|
|
798
|
+
const CHUNK_SIZE = 65536; //Maximum allowed per call by crypto.getRandomValues.
|
|
799
|
+
for (let i = 0; i < byteArray.length; i += CHUNK_SIZE) {
|
|
800
|
+
crypto.getRandomValues(byteArray.subarray(i, i + CHUNK_SIZE));
|
|
801
|
+
}
|
|
802
|
+
};
|
|
803
|
+
const serializeFileForBrowser = async (file) => {
|
|
804
|
+
const buffer = await file.arrayBuffer();
|
|
805
|
+
return {
|
|
806
|
+
name: file.name,
|
|
807
|
+
type: file.type,
|
|
808
|
+
lastModified: file.lastModified,
|
|
809
|
+
buffer: Array.from(new Uint8Array(buffer)),
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
const generateRandomFile = ({ sizeInKB, fileType, fileName = `sample.${fileType}`, }) => {
|
|
813
|
+
const mimeType = mimeTypeMap[fileType];
|
|
814
|
+
const byteArray = new Uint8Array(sizeInKB * 1024);
|
|
815
|
+
fillRandomBytes(byteArray);
|
|
816
|
+
const blob = new Blob([byteArray], { type: mimeType });
|
|
817
|
+
const file = new File([blob], fileName, { type: mimeType });
|
|
818
|
+
return { file, fileName };
|
|
819
|
+
};
|
|
820
|
+
|
|
774
821
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
775
822
|
|
|
776
823
|
function getDefaultExportFromCjs (x) {
|
|
@@ -4106,6 +4153,25 @@ class CustomCommands {
|
|
|
4106
4153
|
await expect(tooltip).toHaveCount(0);
|
|
4107
4154
|
}).toPass({ timeout: 30000 });
|
|
4108
4155
|
};
|
|
4156
|
+
this.verifyBreadcrumbs = async (titlesAndRoutes) => {
|
|
4157
|
+
const breadcrumbHeader = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
|
|
4158
|
+
await expect(breadcrumbHeader).toHaveCount(titlesAndRoutes.length);
|
|
4159
|
+
await Promise.all(titlesAndRoutes.map(({ title, route }) => expect(breadcrumbHeader.getByRole("link", {
|
|
4160
|
+
name: title,
|
|
4161
|
+
exact: true,
|
|
4162
|
+
})).toHaveAttribute("href", route)));
|
|
4163
|
+
};
|
|
4164
|
+
this.uploadFileViaDispatchV2 = async ({ droppableZone = this.page.getByTestId(COMMON_SELECTORS.fileUploadBody), dispatchEvent = "drop", file, }) => {
|
|
4165
|
+
const serializedFile = await serializeFileForBrowser(file);
|
|
4166
|
+
const dataTransfer = await droppableZone.evaluateHandle(async (_, { name, type, buffer, lastModified }) => {
|
|
4167
|
+
const uint8Array = new Uint8Array(buffer);
|
|
4168
|
+
const file = new File([uint8Array], name, { type, lastModified });
|
|
4169
|
+
const dataTransfer = new DataTransfer();
|
|
4170
|
+
dataTransfer.items.add(file);
|
|
4171
|
+
return dataTransfer;
|
|
4172
|
+
}, serializedFile);
|
|
4173
|
+
await droppableZone.dispatchEvent(dispatchEvent, { dataTransfer });
|
|
4174
|
+
};
|
|
4109
4175
|
this.page = page;
|
|
4110
4176
|
this.responses = [];
|
|
4111
4177
|
this.request = request;
|
|
@@ -35536,7 +35602,7 @@ var punycode_es6 = /*#__PURE__*/Object.freeze({
|
|
|
35536
35602
|
|
|
35537
35603
|
var require$$4$1 = /*@__PURE__*/getAugmentedNamespace(punycode_es6);
|
|
35538
35604
|
|
|
35539
|
-
const crypto$
|
|
35605
|
+
const crypto$2 = require$$0$5;
|
|
35540
35606
|
const Transform$1 = Stream$4.Transform;
|
|
35541
35607
|
|
|
35542
35608
|
let StreamHash$1 = class StreamHash extends Transform$1 {
|
|
@@ -35544,7 +35610,7 @@ let StreamHash$1 = class StreamHash extends Transform$1 {
|
|
|
35544
35610
|
super();
|
|
35545
35611
|
this.attachment = attachment;
|
|
35546
35612
|
this.algo = (algo || 'md5').toLowerCase();
|
|
35547
|
-
this.hash = crypto$
|
|
35613
|
+
this.hash = crypto$2.createHash(algo);
|
|
35548
35614
|
this.byteCount = 0;
|
|
35549
35615
|
}
|
|
35550
35616
|
|
|
@@ -61702,6 +61768,9 @@ const tableUtils = {
|
|
|
61702
61768
|
verifyFreezeColumnAction,
|
|
61703
61769
|
};
|
|
61704
61770
|
|
|
61771
|
+
/**
|
|
61772
|
+
* @deprecated This method is deprecated. Use verifyBreadcrumbs from neetoPlaywrightUtilities instead.
|
|
61773
|
+
*/
|
|
61705
61774
|
const verifyBreadcrumbs = async ({ page, titlesAndRoutes, }) => {
|
|
61706
61775
|
await expect(page.getByTestId(COMMON_SELECTORS.breadcrumbHeader)).toHaveCount(titlesAndRoutes.length);
|
|
61707
61776
|
await Promise.all(titlesAndRoutes.map(({ title, route }) => expect(page.getByTestId(COMMON_SELECTORS.breadcrumbHeader).getByRole("link", {
|
|
@@ -143159,7 +143228,7 @@ const Readable = Stream$4.Readable;
|
|
|
143159
143228
|
const BUFFER = Symbol('buffer');
|
|
143160
143229
|
const TYPE = Symbol('type');
|
|
143161
143230
|
|
|
143162
|
-
class Blob {
|
|
143231
|
+
let Blob$1 = class Blob {
|
|
143163
143232
|
constructor() {
|
|
143164
143233
|
this[TYPE] = '';
|
|
143165
143234
|
|
|
@@ -143250,15 +143319,15 @@ class Blob {
|
|
|
143250
143319
|
blob[BUFFER] = slicedBuffer;
|
|
143251
143320
|
return blob;
|
|
143252
143321
|
}
|
|
143253
|
-
}
|
|
143322
|
+
};
|
|
143254
143323
|
|
|
143255
|
-
Object.defineProperties(Blob.prototype, {
|
|
143324
|
+
Object.defineProperties(Blob$1.prototype, {
|
|
143256
143325
|
size: { enumerable: true },
|
|
143257
143326
|
type: { enumerable: true },
|
|
143258
143327
|
slice: { enumerable: true }
|
|
143259
143328
|
});
|
|
143260
143329
|
|
|
143261
|
-
Object.defineProperty(Blob.prototype, Symbol.toStringTag, {
|
|
143330
|
+
Object.defineProperty(Blob$1.prototype, Symbol.toStringTag, {
|
|
143262
143331
|
value: 'Blob',
|
|
143263
143332
|
writable: false,
|
|
143264
143333
|
enumerable: false,
|
|
@@ -143390,7 +143459,7 @@ Body.prototype = {
|
|
|
143390
143459
|
return consumeBody.call(this).then(function (buf) {
|
|
143391
143460
|
return Object.assign(
|
|
143392
143461
|
// Prevent copying
|
|
143393
|
-
new Blob([], {
|
|
143462
|
+
new Blob$1([], {
|
|
143394
143463
|
type: ct.toLowerCase()
|
|
143395
143464
|
}), {
|
|
143396
143465
|
[BUFFER]: buf
|
|
@@ -194207,7 +194276,7 @@ var require$$4 = {
|
|
|
194207
194276
|
const fs = fs__default;
|
|
194208
194277
|
const path = Path__default;
|
|
194209
194278
|
const os = require$$0$6;
|
|
194210
|
-
const crypto = require$$0$5;
|
|
194279
|
+
const crypto$1 = require$$0$5;
|
|
194211
194280
|
const packageJson = require$$4;
|
|
194212
194281
|
|
|
194213
194282
|
const version = packageJson.version;
|
|
@@ -194493,7 +194562,7 @@ function decrypt (encrypted, keyStr) {
|
|
|
194493
194562
|
ciphertext = ciphertext.subarray(12, -16);
|
|
194494
194563
|
|
|
194495
194564
|
try {
|
|
194496
|
-
const aesgcm = crypto.createDecipheriv('aes-256-gcm', key, nonce);
|
|
194565
|
+
const aesgcm = crypto$1.createDecipheriv('aes-256-gcm', key, nonce);
|
|
194497
194566
|
aesgcm.setAuthTag(authTag);
|
|
194498
194567
|
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`
|
|
194499
194568
|
} catch (error) {
|
|
@@ -194748,5 +194817,5 @@ const definePlaywrightConfig = (overrides) => {
|
|
|
194748
194817
|
});
|
|
194749
194818
|
};
|
|
194750
194819
|
|
|
194751
|
-
export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysPage, AuditLogsPage, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CustomCommands, CustomDomainPage as CustomDomainsPage, 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, MemberApis$1 as 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, 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, stealth as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
194820
|
+
export { ADMIN_PANEL_SELECTORS, API_KEYS_SELECTORS, API_ROUTES, AUDIT_LOGS_TEXTS, AdminPanelPage, ApiKeysPage, AuditLogsPage, BASE_URL, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, CREDENTIALS, CUSTOM_DOMAIN_SELECTORS, CustomCommands, CustomDomainPage as CustomDomainsPage, 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, MemberApis$1 as 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, 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, 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, stealth as stealthTest, tableUtils, toCamelCase, updateCredentials, writeDataToFile };
|
|
194752
194821
|
//# sourceMappingURL=index.js.map
|