@bigbinary/neeto-playwright-commons 4.12.2 → 4.12.4-beta1
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/configs/eslint/host.js +2 -7
- package/index.d.ts +73 -8
- package/index.js +94 -86
- package/package.json +2 -4
- package/scripts/neeto-auth/setup.sh +0 -0
package/configs/eslint/host.js
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import path from "path";
|
|
2
2
|
import eslintConfig from "./common.js";
|
|
3
|
-
import { fileURLToPath } from "url";
|
|
4
|
-
import { dirname } from "path";
|
|
5
|
-
|
|
6
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
-
const __dirname = dirname(__filename);
|
|
8
3
|
|
|
9
4
|
const hostEslintConfig = ({ rules = {}, tsconfigRootDir = "", ignores }) => {
|
|
10
5
|
return eslintConfig({
|
|
@@ -16,14 +11,14 @@ const hostEslintConfig = ({ rules = {}, tsconfigRootDir = "", ignores }) => {
|
|
|
16
11
|
"warn",
|
|
17
12
|
{
|
|
18
13
|
translationsDir: path.resolve(
|
|
19
|
-
|
|
14
|
+
import.meta.dirname,
|
|
20
15
|
"../../../../../..",
|
|
21
16
|
"app/javascript/src/translations"
|
|
22
17
|
),
|
|
23
18
|
languages: ["en"],
|
|
24
19
|
nanosTranslationDir: [
|
|
25
20
|
path.resolve(
|
|
26
|
-
|
|
21
|
+
import.meta.dirname,
|
|
27
22
|
"../../../../../..",
|
|
28
23
|
"node_modules/@bigbinary/neeto-commons-frontend/translations"
|
|
29
24
|
),
|
package/index.d.ts
CHANGED
|
@@ -136,7 +136,6 @@ declare class CustomCommands {
|
|
|
136
136
|
baseURL: string | undefined;
|
|
137
137
|
csrfToken: string | null | undefined;
|
|
138
138
|
constructor(page: Page, request: APIRequestContext, baseURL?: string | undefined);
|
|
139
|
-
private waitUntilTimeout;
|
|
140
139
|
/**
|
|
141
140
|
*
|
|
142
141
|
* Command to initialize the Csrf token. The Csrf token is initialized by default if its not defined yet, whenever the method apiRequest is executed. Its helpful in cases when we want to hit the api request for two different applications.
|
|
@@ -4689,6 +4688,7 @@ declare const CERTIFICATE_LIMIT_EXCEEDED_REGEXP = "too many certificates \\(\\d+
|
|
|
4689
4688
|
declare const CERTIFICATE_LIMIT_EXCEEDED_MESSAGE = "Certificate limit exceeded for custom domain";
|
|
4690
4689
|
declare const CERTIFICATE_PROVISION_FAILED_MESSAGE = "Certificate provisioning failed for custom domain";
|
|
4691
4690
|
declare const CERTIFICATE_PROVISION_FAILED_REGEXP = "provisioning certificate for your domain";
|
|
4691
|
+
declare const TRAEFIK_NOT_FOUND_TEXT = "404 page not found";
|
|
4692
4692
|
declare const EXPORT_FILE_TYPES: {
|
|
4693
4693
|
readonly pdf: "pdf";
|
|
4694
4694
|
readonly excel: "excel";
|
|
@@ -6171,6 +6171,8 @@ declare class CustomDomainPage {
|
|
|
6171
6171
|
*
|
|
6172
6172
|
* newSubdomain (optional): A string representing the subdomain to use. If not provided, the method uses the subdomainName from the global user state.
|
|
6173
6173
|
*
|
|
6174
|
+
* options (optional):
|
|
6175
|
+
*
|
|
6174
6176
|
* The full custom domain URL, combining the subdomain and the constant domain suffix, or a unique review app domain on review apps.
|
|
6175
6177
|
*
|
|
6176
6178
|
* @example
|
|
@@ -6178,7 +6180,11 @@ declare class CustomDomainPage {
|
|
|
6178
6180
|
* const domain = customDomainPage.getCustomDomain("cpt-form-534343434");
|
|
6179
6181
|
* @endexample
|
|
6180
6182
|
*/
|
|
6181
|
-
getCustomDomain: (newSubdomain?: string
|
|
6183
|
+
getCustomDomain: (newSubdomain?: string, {
|
|
6184
|
+
shouldUseEdgeCertificate
|
|
6185
|
+
}?: {
|
|
6186
|
+
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6187
|
+
}) => string;
|
|
6182
6188
|
private getCustomDomainSuffix;
|
|
6183
6189
|
private generateReviewAppDomainPrefix;
|
|
6184
6190
|
/**
|
|
@@ -6193,6 +6199,18 @@ declare class CustomDomainPage {
|
|
|
6193
6199
|
* @endexample
|
|
6194
6200
|
*/
|
|
6195
6201
|
addCustomDomain: (domain: string) => Promise<void>;
|
|
6202
|
+
/**
|
|
6203
|
+
*
|
|
6204
|
+
* Adds a root domain via UI from the custom domain settings page, picks the "only add root domain" strategy and verifies that the domain is listed as pending. On review apps it connects an active domain with connectCustomDomainOnReviewApp instead.
|
|
6205
|
+
*
|
|
6206
|
+
* domain: The root domain to add. It is not used on review apps.
|
|
6207
|
+
*
|
|
6208
|
+
* @example
|
|
6209
|
+
*
|
|
6210
|
+
* await customDomainPage.addCustomDomainViaUI(faker.internet.domainName());
|
|
6211
|
+
* @endexample
|
|
6212
|
+
*/
|
|
6213
|
+
addCustomDomainViaUI: (domain: string) => Promise<void>;
|
|
6196
6214
|
/**
|
|
6197
6215
|
*
|
|
6198
6216
|
* Runs the custom domain flow on a review app from the custom domain settings page. Removes any existing custom domain, adds a *.review.neetoautomation.com domain via UI and validates it.
|
|
@@ -6233,6 +6251,7 @@ declare class CustomDomainPage {
|
|
|
6233
6251
|
private getDomainStatus;
|
|
6234
6252
|
private loginToCustomDomain;
|
|
6235
6253
|
private isEdgeCertificateDomain;
|
|
6254
|
+
private isCustomDomainRouted;
|
|
6236
6255
|
private waitForTrustedSSL;
|
|
6237
6256
|
private saveCustomDomainState;
|
|
6238
6257
|
private waitForDomainPropagation;
|
|
@@ -6240,46 +6259,87 @@ declare class CustomDomainPage {
|
|
|
6240
6259
|
*
|
|
6241
6260
|
* Used to set up a custom domain for the given product. This method is a high-level wrapper that handles connecting to the custom domain, logging in, and saving the session state. Skips execution if custom domain setup is disabled.
|
|
6242
6261
|
*
|
|
6262
|
+
* options (optional):
|
|
6263
|
+
*
|
|
6243
6264
|
* @example
|
|
6244
6265
|
*
|
|
6245
6266
|
* await customDomainPage.setupCustomDomain();
|
|
6246
6267
|
* @endexample
|
|
6247
6268
|
*/
|
|
6248
|
-
setupCustomDomain: (
|
|
6269
|
+
setupCustomDomain: ({
|
|
6270
|
+
shouldUseEdgeCertificate
|
|
6271
|
+
}?: {
|
|
6272
|
+
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6273
|
+
}) => Promise<void>;
|
|
6249
6274
|
/**
|
|
6250
6275
|
*
|
|
6251
6276
|
* Sets up a custom domain using the API instead of the UI.
|
|
6252
6277
|
*
|
|
6278
|
+
* options (optional):
|
|
6279
|
+
*
|
|
6253
6280
|
* @example
|
|
6254
6281
|
*
|
|
6255
6282
|
* await customDomainPage.setupCustomDomainViaAPI();
|
|
6283
|
+
*
|
|
6284
|
+
* await customDomainPage.setupCustomDomainViaAPI({
|
|
6285
|
+
* shouldUseEdgeCertificate: true,
|
|
6286
|
+
* });
|
|
6256
6287
|
* @endexample
|
|
6257
6288
|
*/
|
|
6258
|
-
setupCustomDomainViaAPI: (
|
|
6289
|
+
setupCustomDomainViaAPI: ({
|
|
6290
|
+
shouldUseEdgeCertificate
|
|
6291
|
+
}?: {
|
|
6292
|
+
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6293
|
+
}) => Promise<void>;
|
|
6259
6294
|
/**
|
|
6260
6295
|
*
|
|
6261
6296
|
* Connects and validates a custom domain for the specified product via the UI.
|
|
6262
6297
|
*
|
|
6263
6298
|
* subdomain (optional): The subdomain to use for generating the custom domain.
|
|
6264
6299
|
*
|
|
6300
|
+
* options (optional):
|
|
6301
|
+
*
|
|
6265
6302
|
* @example
|
|
6266
6303
|
*
|
|
6267
6304
|
* await customDomainPage.connectCustomDomain("cpt-form-534343434");
|
|
6305
|
+
*
|
|
6306
|
+
* await customDomainPage.connectCustomDomain("cpt-form-534343434", {
|
|
6307
|
+
* shouldUpdateBaseURL: false,
|
|
6308
|
+
* });
|
|
6268
6309
|
* @endexample
|
|
6269
6310
|
*/
|
|
6270
|
-
connectCustomDomain: (subdomain?: string
|
|
6311
|
+
connectCustomDomain: (subdomain?: string, {
|
|
6312
|
+
shouldUpdateBaseURL,
|
|
6313
|
+
shouldUseEdgeCertificate
|
|
6314
|
+
}?: {
|
|
6315
|
+
shouldUpdateBaseURL?: boolean | undefined;
|
|
6316
|
+
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6317
|
+
}) => Promise<void>;
|
|
6271
6318
|
/**
|
|
6272
6319
|
*
|
|
6273
6320
|
* Connects and validates a custom domain using only API calls.
|
|
6274
6321
|
*
|
|
6275
6322
|
* subdomain (optional): The subdomain to use for generating the custom domain. If omitted, uses the subdomain from global user state.
|
|
6276
6323
|
*
|
|
6324
|
+
* options (optional):
|
|
6325
|
+
*
|
|
6277
6326
|
* @example
|
|
6278
6327
|
*
|
|
6279
6328
|
* await customDomainPage.connectViaAPI("cpt-form-534343434");
|
|
6329
|
+
*
|
|
6330
|
+
* await customDomainPage.connectViaAPI("cpt-form-534343434", {
|
|
6331
|
+
* shouldUpdateBaseURL: false,
|
|
6332
|
+
* shouldUseEdgeCertificate: true,
|
|
6333
|
+
* });
|
|
6280
6334
|
* @endexample
|
|
6281
6335
|
*/
|
|
6282
|
-
connectViaAPI: (subdomain?: string
|
|
6336
|
+
connectViaAPI: (subdomain?: string, {
|
|
6337
|
+
shouldUpdateBaseURL,
|
|
6338
|
+
shouldUseEdgeCertificate
|
|
6339
|
+
}?: {
|
|
6340
|
+
shouldUpdateBaseURL?: boolean | undefined;
|
|
6341
|
+
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6342
|
+
}) => Promise<void>;
|
|
6283
6343
|
private validateDomain;
|
|
6284
6344
|
private awaitDomainValidation;
|
|
6285
6345
|
private getCustomDomainFromAPI;
|
|
@@ -7406,6 +7466,10 @@ declare const ADMIN_PANEL_SELECTORS: {
|
|
|
7406
7466
|
*
|
|
7407
7467
|
* activeTagContainer: Selector for the active tag container.
|
|
7408
7468
|
*
|
|
7469
|
+
* strategyContinueButton: Selector for the continue button in the root domain strategy step.
|
|
7470
|
+
*
|
|
7471
|
+
* onlyAddRootRadio: Selector for the "only add root domain" strategy radio input.
|
|
7472
|
+
*
|
|
7409
7473
|
*/
|
|
7410
7474
|
declare const CUSTOM_DOMAIN_SELECTORS: {
|
|
7411
7475
|
addCustomDomainButton: string;
|
|
@@ -7419,6 +7483,8 @@ declare const CUSTOM_DOMAIN_SELECTORS: {
|
|
|
7419
7483
|
dropdownButton: string;
|
|
7420
7484
|
activeTagContainer: string;
|
|
7421
7485
|
nameInputError: string;
|
|
7486
|
+
strategyContinueButton: string;
|
|
7487
|
+
onlyAddRootRadio: string;
|
|
7422
7488
|
};
|
|
7423
7489
|
/**
|
|
7424
7490
|
*
|
|
@@ -9459,7 +9525,6 @@ declare const joinString: JoinString;
|
|
|
9459
9525
|
* @endexample
|
|
9460
9526
|
*/
|
|
9461
9527
|
declare const readFileSyncIfExists: ReadFileSyncIfExists;
|
|
9462
|
-
declare const getDirname: (metaUrl: string) => string;
|
|
9463
9528
|
/**
|
|
9464
9529
|
*
|
|
9465
9530
|
* Returns the current logged in user info.
|
|
@@ -10831,5 +10896,5 @@ declare class InboundEmailApis {
|
|
|
10831
10896
|
private deliverSource;
|
|
10832
10897
|
private deliverViaMailgunIngress;
|
|
10833
10898
|
}
|
|
10834
|
-
export { ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES, API_KEYS_SELECTORS, API_ROUTES, APP_RESOURCES, AUDIT_LOGS_SELECTORS, ApiKeysApi, ApiKeysPage, ApiKeysPageV2, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CERTIFICATE_PROVISION_FAILED_MESSAGE, CERTIFICATE_PROVISION_FAILED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, ColorPickerUtils, CustomCommands, CustomCommandsV2, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_TIMEZONE_ID, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EDITOR_VERIFY_TEXT_COLOR, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmailDeliveryUtils, EmbedBase, FILE_FORMATS, FONTS_RESOURCES, FONT_SIZE_SELECTORS, FROM_EMAIL_ENV_KEYS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_ANALYTICS_SELECTORS, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GOOGLE_SHEETS_SELECTORS, GooglePage, HELP_CENTER_ROUTES, HELP_CENTER_SELECTORS, HelpAndProfilePage, HelpAndProfilePageV2, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_CI, IS_DEV_CI, IS_DEV_ENV, IS_MAILPIT_ENABLED, IS_PLAYWRIGHT_RUN, IS_REVIEW_ENV, IS_SHADCN_UI, IS_STAGING_ENV, IS_WEBKIT, ImageUploader, InboundEmailApis, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, KEYBOARD_SHORTCUT_TEST_CASES, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_DEFAULTS, LOGIN_SELECTORS, LOGIN_STRATEGIES, LOGIN_TIMEOUT, MAILPIT_BASE_URL, MAILPIT_DOMAIN_NAME, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, MailpitApi, 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, NeetoAuthServer, NeetoChatWidget, NeetoEmailDeliveryApi, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OTP_FETCH_TIMEOUT, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PRODUCT_ROLES_ROUTE_MAP, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, REVIEW_APP_CUSTOM_DOMAIN_SUFFIX, ROLES_SELECTORS, ROUTES, RailsEmailApiClient, RailsEmailUtils, RoleApis, RolesPage, RolesPageV2, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, SmsApi, SmsUtils, 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_RESOURCES, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, TeamMembersV2, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_TEST_EMAIL_V2, ZAPIER_WEB_TEXTS, ZapierPage, authenticateUser, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaApi, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, exampleEmail, executeWithThrottledResources, extractSubdomainFromError, filterUtils, fixedMenuSelector, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent,
|
|
10899
|
+
export { ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES, API_KEYS_SELECTORS, API_ROUTES, APP_RESOURCES, AUDIT_LOGS_SELECTORS, ApiKeysApi, ApiKeysPage, ApiKeysPageV2, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CERTIFICATE_PROVISION_FAILED_MESSAGE, CERTIFICATE_PROVISION_FAILED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, ColorPickerUtils, CustomCommands, CustomCommandsV2, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_TIMEZONE_ID, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EDITOR_VERIFY_TEXT_COLOR, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmailDeliveryUtils, EmbedBase, FILE_FORMATS, FONTS_RESOURCES, FONT_SIZE_SELECTORS, FROM_EMAIL_ENV_KEYS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_ANALYTICS_SELECTORS, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GOOGLE_SHEETS_SELECTORS, GooglePage, HELP_CENTER_ROUTES, HELP_CENTER_SELECTORS, HelpAndProfilePage, HelpAndProfilePageV2, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_CI, IS_DEV_CI, IS_DEV_ENV, IS_MAILPIT_ENABLED, IS_PLAYWRIGHT_RUN, IS_REVIEW_ENV, IS_SHADCN_UI, IS_STAGING_ENV, IS_WEBKIT, ImageUploader, InboundEmailApis, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, KEYBOARD_SHORTCUT_TEST_CASES, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_DEFAULTS, LOGIN_SELECTORS, LOGIN_STRATEGIES, LOGIN_TIMEOUT, MAILPIT_BASE_URL, MAILPIT_DOMAIN_NAME, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, MailpitApi, 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, NeetoAuthServer, NeetoChatWidget, NeetoEmailDeliveryApi, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OTP_FETCH_TIMEOUT, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PRODUCT_ROLES_ROUTE_MAP, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, REVIEW_APP_CUSTOM_DOMAIN_SUFFIX, ROLES_SELECTORS, ROUTES, RailsEmailApiClient, RailsEmailUtils, RoleApis, RolesPage, RolesPageV2, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, SmsApi, SmsUtils, 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_RESOURCES, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TRAEFIK_NOT_FOUND_TEXT, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, TeamMembersV2, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_TEST_EMAIL_V2, ZAPIER_WEB_TEXTS, ZapierPage, authenticateUser, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaApi, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, exampleEmail, executeWithThrottledResources, extractSubdomainFromError, filterUtils, fixedMenuSelector, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFormattedPhoneNumber, getFullUrl, getGithubToken, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getIsoCodeFromPhoneCode, getListCount, globalShortcuts, grantClipboardPermissions, hexToRGB, hexToRGBA, i18nFixture, imageRegex, initializeCredentials, initializeReviewAppCredentials, initializeTestData, initializeTotp, isGithubIssueOpen, isStagingOrganizationExpired, joinHyphenCase, joinString, login, loginToReviewApp, mailpitDomainName, minutesAgo, networkConditions, networkThrottlingUsingCDP, optionSelector, readFileAsBrowserFile, readFileSyncIfExists, removeCredentialFile, reviewAppBaseURL, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, waitForReviewApp, warmup, withCookieCache, writeDataToFile };
|
|
10835
10900
|
export type { BaseThemeStyle, BaseThemeStyleType, ColumnMenuAction, CountryProps, CustomFixture, EmailDeliveryConnectParams, EmailDeliveryProvider, EmailDeliveryVerifiedEmail, EmailDeliveryVerifyEmailParams, EmailDeliveryVerifyEmailResponse, EmailMatchCriteria, InboundEmailParams, IntroPageThemeStyle, IntroPageThemeStyleType, LoginStrategy, OAuthEmailDeliveryProvider, ProjectName, ReplyInboundEmailParams, Sms, SmsFilters, SmsProvider, SmsSearchCriteria, SmsSearchParams, ThemeCategory, ValueOf, WaitForSmsOptions };
|
package/index.js
CHANGED
|
@@ -2,18 +2,19 @@ import { isPresent, keysToSnakeCase, hyphenate, humanize, noop as noop$2, isNotP
|
|
|
2
2
|
import { faker } from '@faker-js/faker/locale/en';
|
|
3
3
|
import * as fs from 'fs';
|
|
4
4
|
import { readFileSync, writeFileSync, unlinkSync, mkdirSync, rmSync, existsSync, createWriteStream } from 'fs';
|
|
5
|
+
import { setTimeout as setTimeout$1 } from 'node:timers/promises';
|
|
5
6
|
import os from 'os';
|
|
6
7
|
import * as path from 'path';
|
|
7
|
-
import path__default
|
|
8
|
+
import path__default from 'path';
|
|
8
9
|
import { expect, test, chromium, defineConfig, devices } from '@playwright/test';
|
|
9
10
|
import { stringify } from 'picoquery';
|
|
10
11
|
import { getI18nInstance, initI18n } from 'playwright-i18next-fixture';
|
|
11
12
|
import { isEmpty, isNil, mergeAll, curry, isNotNil, not, pluck, mergeDeepLeft } from 'ramda';
|
|
12
13
|
import { spawn, execSync, spawnSync } from 'child_process';
|
|
13
|
-
import { fileURLToPath } from 'url';
|
|
14
14
|
import dayjs from 'dayjs';
|
|
15
15
|
import { Redis } from 'ioredis';
|
|
16
16
|
import { TOTP } from 'otpauth';
|
|
17
|
+
import { randomFillSync, createPrivateKey, randomBytes, createHmac } from 'node:crypto';
|
|
17
18
|
import { simpleParser } from 'mailparser';
|
|
18
19
|
import { parse as parse$1 } from 'node-html-parser';
|
|
19
20
|
import { Jimp } from 'jimp';
|
|
@@ -23,7 +24,6 @@ import customParseFormat from 'dayjs/plugin/customParseFormat.js';
|
|
|
23
24
|
import timezone from 'dayjs/plugin/timezone.js';
|
|
24
25
|
import utc from 'dayjs/plugin/utc.js';
|
|
25
26
|
import https from 'https';
|
|
26
|
-
import { createPrivateKey, randomBytes, createHmac } from 'node:crypto';
|
|
27
27
|
import { countries } from 'countries-list';
|
|
28
28
|
import { parsePhoneNumberWithError } from 'libphonenumber-js';
|
|
29
29
|
import * as http from 'http';
|
|
@@ -378,6 +378,7 @@ const CERTIFICATE_LIMIT_EXCEEDED_REGEXP = `too many certificates \\(\\d+\\) alre
|
|
|
378
378
|
const CERTIFICATE_LIMIT_EXCEEDED_MESSAGE = "Certificate limit exceeded for custom domain";
|
|
379
379
|
const CERTIFICATE_PROVISION_FAILED_MESSAGE = "Certificate provisioning failed for custom domain";
|
|
380
380
|
const CERTIFICATE_PROVISION_FAILED_REGEXP = "provisioning certificate for your domain";
|
|
381
|
+
const TRAEFIK_NOT_FOUND_TEXT = "404 page not found";
|
|
381
382
|
const EXPORT_FILE_TYPES = {
|
|
382
383
|
pdf: "pdf",
|
|
383
384
|
excel: "excel",
|
|
@@ -808,6 +809,8 @@ const CUSTOM_DOMAIN_SELECTORS = {
|
|
|
808
809
|
dropdownButton: "custom-domains-more-dropdown-button",
|
|
809
810
|
activeTagContainer: "active-tag-container",
|
|
810
811
|
nameInputError: "domain-name-input-error",
|
|
812
|
+
strategyContinueButton: "custom-domain-strategy-continue-button",
|
|
813
|
+
onlyAddRootRadio: "custom-domain-strategy-only-add-root-radio-input",
|
|
811
814
|
};
|
|
812
815
|
const API_KEYS_SELECTORS = {
|
|
813
816
|
countLabel: "api-keys-count",
|
|
@@ -1360,7 +1363,6 @@ const POLL_INTERVAL_MS = 1000;
|
|
|
1360
1363
|
const POLL_TIMEOUT_MS = 130_000;
|
|
1361
1364
|
const cookieKey = (provider) => `pw:cookies:${provider}`;
|
|
1362
1365
|
const lockKey = (provider) => `pw:lock:${provider}`;
|
|
1363
|
-
const sleep$2 = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
1364
1366
|
let cachedClient;
|
|
1365
1367
|
const log$2 = (msg) => console.log(`[cookieCache] ${msg}`);
|
|
1366
1368
|
const getRedis = () => {
|
|
@@ -1415,7 +1417,7 @@ const pollForCookies = (redis, provider, context) => {
|
|
|
1415
1417
|
}, POLL_TIMEOUT_MS));
|
|
1416
1418
|
const poll = async () => {
|
|
1417
1419
|
while (!timedOut) {
|
|
1418
|
-
await
|
|
1420
|
+
await setTimeout$1(POLL_INTERVAL_MS);
|
|
1419
1421
|
if (await restoreCookies(redis, provider, context))
|
|
1420
1422
|
return true;
|
|
1421
1423
|
if (!(await redis.exists(lockKey(provider))))
|
|
@@ -2241,9 +2243,7 @@ const loginToReviewApp = async ({ page, loginPath = "/login", }) => {
|
|
|
2241
2243
|
updateCredentials({ key: "isLoggedIn", value: "true" });
|
|
2242
2244
|
};
|
|
2243
2245
|
|
|
2244
|
-
const execCommand = (command) => execSync(command)
|
|
2245
|
-
.toString("utf-8")
|
|
2246
|
-
.replace(/[\n\r\s]+$/, "");
|
|
2246
|
+
const execCommand = (command) => execSync(command, { encoding: "utf8" }).trimEnd();
|
|
2247
2247
|
const joinString = (string1, string2, string3 = "", separator = " ") => {
|
|
2248
2248
|
if (string3 === "") {
|
|
2249
2249
|
return string1 + separator + string2;
|
|
@@ -2258,7 +2258,6 @@ const readFileSyncIfExists = (path = STORAGE_STATE) => {
|
|
|
2258
2258
|
return {};
|
|
2259
2259
|
}
|
|
2260
2260
|
};
|
|
2261
|
-
const getDirname = (metaUrl) => dirname(fileURLToPath(metaUrl));
|
|
2262
2261
|
const getGlobalUserState = () => readFileSyncIfExists()?.user;
|
|
2263
2262
|
const writeDataToFile = data => {
|
|
2264
2263
|
try {
|
|
@@ -3017,12 +3016,6 @@ const mimeTypeMap = {
|
|
|
3017
3016
|
ico: "image/x-icon",
|
|
3018
3017
|
svg: "image/svg+xml",
|
|
3019
3018
|
};
|
|
3020
|
-
const fillRandomBytes = (byteArray) => {
|
|
3021
|
-
const CHUNK_SIZE = 65536; //Maximum allowed per call by crypto.getRandomValues.
|
|
3022
|
-
for (let i = 0; i < byteArray.length; i += CHUNK_SIZE) {
|
|
3023
|
-
crypto.getRandomValues(byteArray.subarray(i, i + CHUNK_SIZE));
|
|
3024
|
-
}
|
|
3025
|
-
};
|
|
3026
3019
|
const serializeFileForBrowser = async (file) => {
|
|
3027
3020
|
const buffer = await file.arrayBuffer();
|
|
3028
3021
|
return {
|
|
@@ -3034,10 +3027,8 @@ const serializeFileForBrowser = async (file) => {
|
|
|
3034
3027
|
};
|
|
3035
3028
|
const generateRandomFile = ({ sizeInKB, fileType, fileName = `sample.${fileType}`, }) => {
|
|
3036
3029
|
const mimeType = mimeTypeMap[fileType];
|
|
3037
|
-
const byteArray = new Uint8Array(sizeInKB * 1024);
|
|
3038
|
-
|
|
3039
|
-
const blob = new Blob([byteArray], { type: mimeType });
|
|
3040
|
-
const file = new File([blob], fileName, { type: mimeType });
|
|
3030
|
+
const byteArray = randomFillSync(new Uint8Array(sizeInKB * 1024));
|
|
3031
|
+
const file = new File([byteArray], fileName, { type: mimeType });
|
|
3041
3032
|
return { file, fileName };
|
|
3042
3033
|
};
|
|
3043
3034
|
const readFileAsBrowserFile = ({ filePath, mimeType, }) => {
|
|
@@ -3045,14 +3036,12 @@ const readFileAsBrowserFile = ({ filePath, mimeType, }) => {
|
|
|
3045
3036
|
return new File([buffer], path__default.basename(filePath), { type: mimeType });
|
|
3046
3037
|
};
|
|
3047
3038
|
|
|
3048
|
-
const __dirname$6 = getDirname(import.meta.url);
|
|
3049
3039
|
const getImagePathAndName = (localImagePath) => {
|
|
3050
|
-
const imagePath = path__default.join(
|
|
3040
|
+
const imagePath = path__default.join(import.meta.dirname, localImagePath);
|
|
3051
3041
|
const imageName = path__default.basename(localImagePath, path__default.extname(localImagePath));
|
|
3052
3042
|
return { imagePath, imageName };
|
|
3053
3043
|
};
|
|
3054
3044
|
|
|
3055
|
-
const __dirname$5 = getDirname(import.meta.url);
|
|
3056
3045
|
const TOAST_DEFAULT_MESSAGE = "👍";
|
|
3057
3046
|
class CustomCommands {
|
|
3058
3047
|
page;
|
|
@@ -3068,7 +3057,6 @@ class CustomCommands {
|
|
|
3068
3057
|
this.baseURL = baseURL;
|
|
3069
3058
|
this.t = getI18nInstance().t;
|
|
3070
3059
|
}
|
|
3071
|
-
waitUntilTimeout = (timeout) => new Promise(resolve => setTimeout(resolve, timeout));
|
|
3072
3060
|
initializeCsrfToken = async () => {
|
|
3073
3061
|
this.csrfToken = await this.page
|
|
3074
3062
|
.locator("[name='csrf-token']")
|
|
@@ -3107,7 +3095,7 @@ class CustomCommands {
|
|
|
3107
3095
|
return await callback();
|
|
3108
3096
|
}
|
|
3109
3097
|
const timeToWaitInSecs = iteration > 3 ? 10 : Math.pow(2, iteration);
|
|
3110
|
-
await
|
|
3098
|
+
await setTimeout$1(timeToWaitInSecs * 1000);
|
|
3111
3099
|
return await this.recursiveMethod(callback, condition, timeout, startTime, iteration + 1);
|
|
3112
3100
|
};
|
|
3113
3101
|
executeRecursively = async ({ callback, condition, timeout = 5000, }) => {
|
|
@@ -3287,7 +3275,7 @@ class CustomCommands {
|
|
|
3287
3275
|
await expect(this.page.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.uploadedImage)).toHaveAttribute("src", new RegExp(imageName), { timeout: 20_000 });
|
|
3288
3276
|
};
|
|
3289
3277
|
uploadFileViaDispatch = async ({ fileNameWithType, assetsPath = "../../../e2e/assets/", dispatchEvent = "drop", droppableZone = this.page.getByTestId(COMMON_SELECTORS.fileUploadBody), }) => {
|
|
3290
|
-
const filePath = path__default.join(
|
|
3278
|
+
const filePath = path__default.join(import.meta.dirname, `${assetsPath}/${fileNameWithType}`);
|
|
3291
3279
|
const buffer = readFileSync(filePath).toString("base64");
|
|
3292
3280
|
const dataTransfer = await droppableZone.evaluateHandle((_, { buffer, fileNameWithType }) => {
|
|
3293
3281
|
const dataTransfer = new DataTransfer();
|
|
@@ -3396,7 +3384,7 @@ class CustomCommands {
|
|
|
3396
3384
|
verifyBreadcrumbs = async (titlesAndRoutes) => {
|
|
3397
3385
|
const header = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
|
|
3398
3386
|
const titles = pluck("title", titlesAndRoutes);
|
|
3399
|
-
const [last, ...links] = titlesAndRoutes.
|
|
3387
|
+
const [last, ...links] = titlesAndRoutes.toReversed();
|
|
3400
3388
|
await Promise.all([
|
|
3401
3389
|
expect(header).toContainText(titles),
|
|
3402
3390
|
expect(header).toHaveCount(titlesAndRoutes.length),
|
|
@@ -3572,7 +3560,7 @@ class CustomCommandsV2 extends CustomCommands {
|
|
|
3572
3560
|
verifyBreadcrumbs = async (titlesAndRoutes) => {
|
|
3573
3561
|
const header = this.page.getByTestId(COMMON_SELECTORS.breadcrumbHeader);
|
|
3574
3562
|
const titles = pluck("title", titlesAndRoutes);
|
|
3575
|
-
const [last, ...links] = titlesAndRoutes.
|
|
3563
|
+
const [last, ...links] = titlesAndRoutes.toReversed();
|
|
3576
3564
|
await Promise.all([
|
|
3577
3565
|
expect(header).toContainText(titles),
|
|
3578
3566
|
expect(header).toHaveCount(titlesAndRoutes.length),
|
|
@@ -4378,21 +4366,7 @@ class QRCodeUtils {
|
|
|
4378
4366
|
const qrCode = jsQR(new Uint8ClampedArray(imageData.data), imageData.width, imageData.height);
|
|
4379
4367
|
expect(qrCode?.data).toBe(qrCodeContent);
|
|
4380
4368
|
};
|
|
4381
|
-
decodeQRCodeFromFile =
|
|
4382
|
-
let decodedString;
|
|
4383
|
-
try {
|
|
4384
|
-
const buffer = readFileSync(filePath);
|
|
4385
|
-
const image = await Jimp.read(buffer);
|
|
4386
|
-
const bitmapData = new Uint8ClampedArray(image.bitmap.data);
|
|
4387
|
-
const qrData = jsQR(bitmapData, image.bitmap.width, image.bitmap.height);
|
|
4388
|
-
decodedString = qrData?.data;
|
|
4389
|
-
}
|
|
4390
|
-
catch (error) {
|
|
4391
|
-
console.error("Something went wrong while decoding the QR code");
|
|
4392
|
-
console.error(error);
|
|
4393
|
-
}
|
|
4394
|
-
return decodedString;
|
|
4395
|
-
};
|
|
4369
|
+
decodeQRCodeFromFile = decodeQRCodeFromFile;
|
|
4396
4370
|
}
|
|
4397
4371
|
|
|
4398
4372
|
const TESTING_SMS_PATH = "/api/v1/testing/sms";
|
|
@@ -6369,7 +6343,6 @@ const LIST_MODIFIER_TAGS = {
|
|
|
6369
6343
|
};
|
|
6370
6344
|
const EDITOR_VERIFY_TEXT_COLOR = "#e60000";
|
|
6371
6345
|
|
|
6372
|
-
const __dirname$4 = getDirname(import.meta.url);
|
|
6373
6346
|
class SlashCommandEditorPage {
|
|
6374
6347
|
page;
|
|
6375
6348
|
neetoPlaywrightUtilities;
|
|
@@ -6489,7 +6462,7 @@ class SlashCommandEditorPage {
|
|
|
6489
6462
|
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.browseText)
|
|
6490
6463
|
.click();
|
|
6491
6464
|
const fileUploader = await fileUploaderPromise;
|
|
6492
|
-
const imagePath = path.join(
|
|
6465
|
+
const imagePath = path.join(import.meta.dirname, filePath);
|
|
6493
6466
|
await fileUploader.setFiles(imagePath);
|
|
6494
6467
|
await expect(this.imageWrapper).toBeVisible({ timeout: 15_000 });
|
|
6495
6468
|
if (shouldRemoveImage) {
|
|
@@ -6564,7 +6537,6 @@ class SlashCommandEditorPage {
|
|
|
6564
6537
|
};
|
|
6565
6538
|
}
|
|
6566
6539
|
|
|
6567
|
-
const __dirname$3 = getDirname(import.meta.url);
|
|
6568
6540
|
class EditorPage {
|
|
6569
6541
|
page;
|
|
6570
6542
|
neetoPlaywrightUtilities;
|
|
@@ -6877,7 +6849,7 @@ class EditorPage {
|
|
|
6877
6849
|
const fileUploaderPromise = this.page.waitForEvent("filechooser");
|
|
6878
6850
|
await this.clickToolbarOption(this.editorAttachmentsButton, isButtonInMoreMenu);
|
|
6879
6851
|
const fileUploader = await fileUploaderPromise;
|
|
6880
|
-
const imagePath = path.join(
|
|
6852
|
+
const imagePath = path.join(import.meta.dirname, filePath);
|
|
6881
6853
|
await fileUploader.setFiles(imagePath);
|
|
6882
6854
|
await expect(this.attachmentPreview).toBeVisible();
|
|
6883
6855
|
if (shouldRemoveAttachment) {
|
|
@@ -6904,7 +6876,7 @@ class EditorPage {
|
|
|
6904
6876
|
.getByTestId(NEETO_IMAGE_UPLOADER_SELECTORS.browseText)
|
|
6905
6877
|
.click();
|
|
6906
6878
|
const fileUploader = await fileUploaderPromise;
|
|
6907
|
-
const imagePath = path.join(
|
|
6879
|
+
const imagePath = path.join(import.meta.dirname, filePath);
|
|
6908
6880
|
await fileUploader.setFiles(imagePath);
|
|
6909
6881
|
await expect(this.imageWrapper).toBeVisible({ timeout: 15_000 });
|
|
6910
6882
|
if (shouldRemoveImage) {
|
|
@@ -7004,7 +6976,7 @@ class EditorPage {
|
|
|
7004
6976
|
.getByTestId(NEETO_EDITOR_SELECTORS.imageUploadButton)
|
|
7005
6977
|
.click();
|
|
7006
6978
|
const fileUploader = await fileUploaderPromise;
|
|
7007
|
-
const imagePath = path.join(
|
|
6979
|
+
const imagePath = path.join(import.meta.dirname, filePath);
|
|
7008
6980
|
await fileUploader.setFiles(imagePath);
|
|
7009
6981
|
await expect(this.page.getByRole("figure")).toBeVisible({
|
|
7010
6982
|
timeout: 20_000,
|
|
@@ -8048,17 +8020,14 @@ class CustomDomainPage {
|
|
|
8048
8020
|
this.neetoPlaywrightUtilities = neetoPlaywrightUtilities;
|
|
8049
8021
|
this.customDomainApi = new CustomDomainApi(neetoPlaywrightUtilities);
|
|
8050
8022
|
}
|
|
8051
|
-
getCustomDomain = (newSubdomain) => {
|
|
8023
|
+
getCustomDomain = (newSubdomain, { shouldUseEdgeCertificate = false } = {}) => {
|
|
8052
8024
|
const { subdomainName } = getGlobalUserState();
|
|
8053
8025
|
this.subdomain = newSubdomain ?? subdomainName;
|
|
8054
8026
|
return IS_REVIEW_ENV
|
|
8055
8027
|
? `${this.generateReviewAppDomainPrefix()}.${REVIEW_APP_CUSTOM_DOMAIN_SUFFIX}`
|
|
8056
|
-
: `${this.subdomain}${this.getCustomDomainSuffix()}`;
|
|
8028
|
+
: `${this.subdomain}${this.getCustomDomainSuffix(shouldUseEdgeCertificate)}`;
|
|
8057
8029
|
};
|
|
8058
|
-
|
|
8059
|
-
getCustomDomainSuffix = () => CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX
|
|
8060
|
-
? `-neeto${this.product.toLowerCase()}.${CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX}`
|
|
8061
|
-
: `.${CUSTOM_DOMAIN_SUFFIX}`;
|
|
8030
|
+
getCustomDomainSuffix = (shouldUseEdgeCertificate) => `.${(shouldUseEdgeCertificate && CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX) || CUSTOM_DOMAIN_SUFFIX}`;
|
|
8062
8031
|
generateReviewAppDomainPrefix = () => {
|
|
8063
8032
|
const prNumber = process.env.REVIEW_APP_HOST?.split(".")[0]
|
|
8064
8033
|
.split("-")
|
|
@@ -8076,6 +8045,27 @@ class CustomDomainPage {
|
|
|
8076
8045
|
.getByTestId(CUSTOM_DOMAIN_SELECTORS.submitCustomDomainButton)
|
|
8077
8046
|
.click();
|
|
8078
8047
|
};
|
|
8048
|
+
addCustomDomainViaUI = async (domain) => {
|
|
8049
|
+
if (IS_REVIEW_ENV) {
|
|
8050
|
+
await this.connectCustomDomainOnReviewApp();
|
|
8051
|
+
return;
|
|
8052
|
+
}
|
|
8053
|
+
await this.addCustomDomain(domain);
|
|
8054
|
+
await this.page
|
|
8055
|
+
.getByTestId(CUSTOM_DOMAIN_SELECTORS.onlyAddRootRadio)
|
|
8056
|
+
.click();
|
|
8057
|
+
const strategyContinueButton = this.page.getByTestId(CUSTOM_DOMAIN_SELECTORS.strategyContinueButton);
|
|
8058
|
+
await strategyContinueButton.click();
|
|
8059
|
+
await expect(strategyContinueButton).toBeHidden();
|
|
8060
|
+
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
8061
|
+
await this.closeValidationPane();
|
|
8062
|
+
const customDomainItem = this.page.getByTestId(CUSTOM_DOMAIN_SELECTORS.customDomainItem);
|
|
8063
|
+
await Promise.all([
|
|
8064
|
+
expect(this.page.getByTestId(CUSTOM_DOMAIN_SELECTORS.disabledAddCustomDomainButton)).toBeDisabled(),
|
|
8065
|
+
expect(customDomainItem).toContainText(domain),
|
|
8066
|
+
expect(customDomainItem).toContainText(this.t("neetoCustomDomains.pendingTooltipDescription")),
|
|
8067
|
+
]);
|
|
8068
|
+
};
|
|
8079
8069
|
connectCustomDomainOnReviewApp = async () => {
|
|
8080
8070
|
const domain = this.getCustomDomain();
|
|
8081
8071
|
const settingsURL = this.page.url();
|
|
@@ -8123,8 +8113,9 @@ class CustomDomainPage {
|
|
|
8123
8113
|
await expect(validateButton).toBeHidden();
|
|
8124
8114
|
};
|
|
8125
8115
|
getProductSubdomainFromHostname = (hostname) => hostname
|
|
8126
|
-
.replace(RegExp(`(${[
|
|
8127
|
-
.
|
|
8116
|
+
.replace(RegExp(`(${[CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX, CUSTOM_DOMAIN_SUFFIX]
|
|
8117
|
+
.filter(Boolean)
|
|
8118
|
+
.map(suffix => `.${suffix}`.replace(/\./g, "\\."))
|
|
8128
8119
|
.join("|")})$`, "i"), "")
|
|
8129
8120
|
.toLowerCase();
|
|
8130
8121
|
getDomainStatus = async (hostname, baseURL) => {
|
|
@@ -8150,19 +8141,32 @@ class CustomDomainPage {
|
|
|
8150
8141
|
};
|
|
8151
8142
|
isEdgeCertificateDomain = () => !!CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX &&
|
|
8152
8143
|
this.customDomainURL.endsWith(`.${CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX}`);
|
|
8153
|
-
|
|
8154
|
-
.poll(() => new Promise(resolve => {
|
|
8144
|
+
isCustomDomainRouted = () => new Promise(resolve => {
|
|
8155
8145
|
https
|
|
8156
8146
|
.get(this.customDomainURL, { rejectUnauthorized: true }, res => {
|
|
8157
8147
|
res.resume();
|
|
8158
|
-
// Traefik answers 404 until an edge-certificate domain's route is loaded.
|
|
8159
|
-
|
|
8148
|
+
// Traefik answers a plain-text 404 until an edge-certificate domain's route is loaded.
|
|
8149
|
+
const isTraefikNotFound = res.statusCode === 404 &&
|
|
8150
|
+
!!res.headers["content-type"]?.startsWith("text/plain");
|
|
8151
|
+
resolve(!this.isEdgeCertificateDomain() || !isTraefikNotFound);
|
|
8160
8152
|
})
|
|
8161
8153
|
.on("error", () => {
|
|
8162
8154
|
resolve(false);
|
|
8163
8155
|
});
|
|
8164
|
-
})
|
|
8165
|
-
|
|
8156
|
+
});
|
|
8157
|
+
// A new edge-certificate route flaps between routed and 404 before it settles.
|
|
8158
|
+
waitForTrustedSSL = () => {
|
|
8159
|
+
const requiredRoutedResponses = this.isEdgeCertificateDomain() ? 3 : 1;
|
|
8160
|
+
let routedResponses = 0;
|
|
8161
|
+
return expect
|
|
8162
|
+
.poll(async () => {
|
|
8163
|
+
routedResponses = (await this.isCustomDomainRouted())
|
|
8164
|
+
? routedResponses + 1
|
|
8165
|
+
: 0;
|
|
8166
|
+
return routedResponses >= requiredRoutedResponses;
|
|
8167
|
+
}, { timeout: 60_000, intervals: [1_000, 2_000, 5_000] })
|
|
8168
|
+
.toBe(true);
|
|
8169
|
+
};
|
|
8166
8170
|
saveCustomDomainState = async () => {
|
|
8167
8171
|
const { user } = readFileSyncIfExists();
|
|
8168
8172
|
await this.loginPage.context().storageState({ path: STORAGE_STATE });
|
|
@@ -8171,7 +8175,9 @@ class CustomDomainPage {
|
|
|
8171
8175
|
updateCredentials({ key: "baseUrl", value: this.customDomainURL });
|
|
8172
8176
|
updateCredentials({
|
|
8173
8177
|
key: "domain",
|
|
8174
|
-
value:
|
|
8178
|
+
value: (this.isEdgeCertificateDomain() &&
|
|
8179
|
+
CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX) ||
|
|
8180
|
+
CUSTOM_DOMAIN_SUFFIX,
|
|
8175
8181
|
});
|
|
8176
8182
|
};
|
|
8177
8183
|
// Edge-certificate domains are already confirmed routable by waitForTrustedSSL.
|
|
@@ -8180,28 +8186,30 @@ class CustomDomainPage {
|
|
|
8180
8186
|
if (!this.isEdgeCertificateDomain())
|
|
8181
8187
|
await this.page.waitForTimeout(20_000);
|
|
8182
8188
|
};
|
|
8183
|
-
setupCustomDomain = async () => {
|
|
8189
|
+
setupCustomDomain = async ({ shouldUseEdgeCertificate = false } = {}) => {
|
|
8184
8190
|
if (shouldSkipCustomDomainSetup())
|
|
8185
8191
|
return;
|
|
8186
|
-
await this.connectCustomDomain();
|
|
8192
|
+
await this.connectCustomDomain(undefined, { shouldUseEdgeCertificate });
|
|
8187
8193
|
const context = await this.browser.newContext(EMPTY_STORAGE_STATE);
|
|
8188
8194
|
this.loginPage = await context.newPage();
|
|
8189
8195
|
await this.loginToCustomDomain();
|
|
8190
8196
|
await this.saveCustomDomainState();
|
|
8191
8197
|
};
|
|
8192
|
-
setupCustomDomainViaAPI = async () => {
|
|
8198
|
+
setupCustomDomainViaAPI = async ({ shouldUseEdgeCertificate = false, } = {}) => {
|
|
8193
8199
|
if (shouldSkipCustomDomainSetup())
|
|
8194
8200
|
return;
|
|
8195
|
-
await this.connectViaAPI();
|
|
8201
|
+
await this.connectViaAPI(undefined, { shouldUseEdgeCertificate });
|
|
8196
8202
|
const context = await this.browser.newContext(EMPTY_STORAGE_STATE);
|
|
8197
8203
|
this.loginPage = await context.newPage();
|
|
8198
8204
|
await this.loginToCustomDomain();
|
|
8199
8205
|
await this.saveCustomDomainState();
|
|
8200
8206
|
};
|
|
8201
|
-
connectCustomDomain = async (subdomain) => {
|
|
8207
|
+
connectCustomDomain = async (subdomain, { shouldUpdateBaseURL = true, shouldUseEdgeCertificate = false } = {}) => {
|
|
8202
8208
|
if (shouldSkipCustomDomainSetup())
|
|
8203
8209
|
return;
|
|
8204
|
-
const domain = this.getCustomDomain(subdomain
|
|
8210
|
+
const domain = this.getCustomDomain(subdomain, {
|
|
8211
|
+
shouldUseEdgeCertificate,
|
|
8212
|
+
});
|
|
8205
8213
|
const baseURL = baseURLGenerator(this.product, this.subdomain);
|
|
8206
8214
|
this.customDomainURL = `https://${domain}`;
|
|
8207
8215
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
@@ -8209,14 +8217,17 @@ class CustomDomainPage {
|
|
|
8209
8217
|
await this.neetoPlaywrightUtilities.waitForPageLoad();
|
|
8210
8218
|
await this.addCustomDomain(domain);
|
|
8211
8219
|
await this.validateCustomDomain(domain);
|
|
8212
|
-
|
|
8220
|
+
if (shouldUpdateBaseURL)
|
|
8221
|
+
process.env.BASE_URL = this.customDomainURL;
|
|
8213
8222
|
await this.waitForTrustedSSL();
|
|
8214
8223
|
await this.waitForDomainPropagation();
|
|
8215
8224
|
};
|
|
8216
|
-
connectViaAPI = async (subdomain) => {
|
|
8225
|
+
connectViaAPI = async (subdomain, { shouldUpdateBaseURL = true, shouldUseEdgeCertificate = false } = {}) => {
|
|
8217
8226
|
if (shouldSkipCustomDomainSetup())
|
|
8218
8227
|
return;
|
|
8219
|
-
const domain = this.getCustomDomain(subdomain
|
|
8228
|
+
const domain = this.getCustomDomain(subdomain, {
|
|
8229
|
+
shouldUseEdgeCertificate,
|
|
8230
|
+
});
|
|
8220
8231
|
this.customDomainURL = `https://${domain}`;
|
|
8221
8232
|
const baseURL = baseURLGenerator(this.product, this.subdomain);
|
|
8222
8233
|
await this.page.goto(`${baseURL}${ROUTES.admin}`);
|
|
@@ -8224,7 +8235,8 @@ class CustomDomainPage {
|
|
|
8224
8235
|
await this.customDomainApi.create(domain, baseURL);
|
|
8225
8236
|
await this.validateDomain(baseURL);
|
|
8226
8237
|
await this.awaitDomainValidation(domain, baseURL);
|
|
8227
|
-
|
|
8238
|
+
if (shouldUpdateBaseURL)
|
|
8239
|
+
process.env.BASE_URL = this.customDomainURL;
|
|
8228
8240
|
await this.waitForTrustedSSL();
|
|
8229
8241
|
await this.waitForDomainPropagation();
|
|
8230
8242
|
};
|
|
@@ -12301,15 +12313,13 @@ const CONFIG$1 = {
|
|
|
12301
12313
|
USERS_LOCK_RETRIES: 400,
|
|
12302
12314
|
USERS_LOCK_RETRY_INTERVAL_MS: 100,
|
|
12303
12315
|
};
|
|
12304
|
-
const
|
|
12305
|
-
const SCRIPTS_DIR$1 = path.join(__dirname$2, "scripts", "neeto-auth");
|
|
12316
|
+
const SCRIPTS_DIR$1 = path.join(import.meta.dirname, "scripts", "neeto-auth");
|
|
12306
12317
|
const escapeRubyString = (value) => value.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
12307
12318
|
const buildEmailCaptureInitializer = (targetApp) => {
|
|
12308
12319
|
const template = fs.readFileSync(path.join(SCRIPTS_DIR$1, "playwright_email_capture.rb.template"), "utf-8");
|
|
12309
12320
|
return template.replace("{{TARGET_APP}}", escapeRubyString(targetApp));
|
|
12310
12321
|
};
|
|
12311
12322
|
const log$1 = (msg) => console.log(`[NeetoAuth] ${msg}`);
|
|
12312
|
-
const sleep$1 = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
12313
12323
|
const httpCheck$1 = (port, timeout = 3000) => new Promise(resolve => {
|
|
12314
12324
|
const req = http.get(`http://localhost:${port}/`, () => resolve(true));
|
|
12315
12325
|
req.on("error", () => resolve(false));
|
|
@@ -12323,7 +12333,7 @@ const pollUntil = async (check, timeoutMs, intervalMs) => {
|
|
|
12323
12333
|
while (Date.now() < deadline) {
|
|
12324
12334
|
if (await check())
|
|
12325
12335
|
return true;
|
|
12326
|
-
await
|
|
12336
|
+
await setTimeout$1(intervalMs);
|
|
12327
12337
|
}
|
|
12328
12338
|
return false;
|
|
12329
12339
|
};
|
|
@@ -12388,7 +12398,7 @@ class NeetoAuthServer {
|
|
|
12388
12398
|
waitUntilDirIsFree = () => pollUntil(() => listPids(["+D", CONFIG$1.DIR]).length === 0, CONFIG$1.DIR_RELEASE_TIMEOUT_MS, CONFIG$1.DIR_RELEASE_POLL_MS);
|
|
12389
12399
|
killServerOnPort = async () => {
|
|
12390
12400
|
this.killPids(listServerPids(CONFIG$1.PORT), "SIGKILL");
|
|
12391
|
-
await
|
|
12401
|
+
await setTimeout$1(1000);
|
|
12392
12402
|
};
|
|
12393
12403
|
acquireSetupLock = async () => {
|
|
12394
12404
|
try {
|
|
@@ -12595,10 +12605,8 @@ const CONFIG = {
|
|
|
12595
12605
|
};
|
|
12596
12606
|
const DEFAULT_STATE = { pid: null, refCount: 0 };
|
|
12597
12607
|
const WIDGET_BASE_URL = `http://localhost:${CONFIG.PORT}`;
|
|
12598
|
-
const
|
|
12599
|
-
const SCRIPTS_DIR = path.join(__dirname$1, "scripts", "neeto-chat-widget");
|
|
12608
|
+
const SCRIPTS_DIR = path.join(import.meta.dirname, "scripts", "neeto-chat-widget");
|
|
12600
12609
|
const log = (msg) => console.log(`[NeetoChatWidget] ${msg}`);
|
|
12601
|
-
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
|
|
12602
12610
|
const httpCheck = (timeout = 3000) => new Promise(resolve => {
|
|
12603
12611
|
const req = http.get(`${WIDGET_BASE_URL}/main.js`, () => resolve(true));
|
|
12604
12612
|
req.on("error", () => resolve(false));
|
|
@@ -12624,7 +12632,7 @@ class NeetoChatWidget {
|
|
|
12624
12632
|
const nodeError = error;
|
|
12625
12633
|
if (nodeError.code !== "EEXIST")
|
|
12626
12634
|
throw error;
|
|
12627
|
-
await
|
|
12635
|
+
await setTimeout$1(CONFIG.LOCK_RETRY_MS);
|
|
12628
12636
|
}
|
|
12629
12637
|
}
|
|
12630
12638
|
try {
|
|
@@ -12712,7 +12720,7 @@ class NeetoChatWidget {
|
|
|
12712
12720
|
while (Date.now() < deadline) {
|
|
12713
12721
|
try {
|
|
12714
12722
|
process.kill(pid, 0);
|
|
12715
|
-
await
|
|
12723
|
+
await setTimeout$1(500);
|
|
12716
12724
|
}
|
|
12717
12725
|
catch {
|
|
12718
12726
|
return;
|
|
@@ -12734,7 +12742,7 @@ class NeetoChatWidget {
|
|
|
12734
12742
|
execSync(`lsof -ti tcp:${CONFIG.PORT} | xargs kill -9`, {
|
|
12735
12743
|
stdio: "ignore",
|
|
12736
12744
|
});
|
|
12737
|
-
await
|
|
12745
|
+
await setTimeout$1(1000);
|
|
12738
12746
|
}
|
|
12739
12747
|
catch {
|
|
12740
12748
|
// No process on that port — nothing to kill.
|
|
@@ -12748,7 +12756,7 @@ class NeetoChatWidget {
|
|
|
12748
12756
|
}
|
|
12749
12757
|
if (await httpCheck())
|
|
12750
12758
|
return;
|
|
12751
|
-
await
|
|
12759
|
+
await setTimeout$1(CONFIG.SERVER_POLL_INTERVAL_MS);
|
|
12752
12760
|
}
|
|
12753
12761
|
throw new Error(`[NeetoChatWidget] Widget did not start within ${timeoutMs / 1000}s.\nLog:\n${this.getLogContent()}`);
|
|
12754
12762
|
};
|
|
@@ -13282,4 +13290,4 @@ class InboundEmailApis {
|
|
|
13282
13290
|
};
|
|
13283
13291
|
}
|
|
13284
13292
|
|
|
13285
|
-
export { ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES, API_KEYS_SELECTORS, API_ROUTES, APP_RESOURCES, AUDIT_LOGS_SELECTORS, ApiKeysApi, ApiKeysPage, ApiKeysPageV2, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CERTIFICATE_PROVISION_FAILED_MESSAGE, CERTIFICATE_PROVISION_FAILED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, ColorPickerUtils, CustomCommands, CustomCommandsV2, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_TIMEZONE_ID, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EDITOR_VERIFY_TEXT_COLOR, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmailDeliveryUtils, EmbedBase, FILE_FORMATS, FONTS_RESOURCES, FONT_SIZE_SELECTORS, FROM_EMAIL_ENV_KEYS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_ANALYTICS_SELECTORS, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GOOGLE_SHEETS_SELECTORS, GooglePage, HELP_CENTER_ROUTES, HELP_CENTER_SELECTORS, HelpAndProfilePage, HelpAndProfilePageV2, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_CI, IS_DEV_CI, IS_DEV_ENV, IS_MAILPIT_ENABLED, IS_PLAYWRIGHT_RUN, IS_REVIEW_ENV, IS_SHADCN_UI, IS_STAGING_ENV, IS_WEBKIT, ImageUploader, InboundEmailApis, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, KEYBOARD_SHORTCUT_TEST_CASES, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_DEFAULTS, LOGIN_SELECTORS, LOGIN_STRATEGIES, LOGIN_TIMEOUT, MAILPIT_BASE_URL, MAILPIT_DOMAIN_NAME, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, MailpitApi, 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, NeetoAuthServer, NeetoChatWidget, NeetoEmailDeliveryApi, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OTP_FETCH_TIMEOUT, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PRODUCT_ROLES_ROUTE_MAP, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, REVIEW_APP_CUSTOM_DOMAIN_SUFFIX, ROLES_SELECTORS, ROUTES, RailsEmailApiClient, RailsEmailUtils, RoleApis, RolesPage, RolesPageV2, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, SmsApi, SmsUtils, 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_RESOURCES, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, TeamMembersV2, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_TEST_EMAIL_V2, ZAPIER_WEB_TEXTS, ZapierPage, authenticateUser, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaApi, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, exampleEmail, executeWithThrottledResources, extractSubdomainFromError, filterUtils, fixedMenuSelector, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent,
|
|
13293
|
+
export { ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES, API_KEYS_SELECTORS, API_ROUTES, APP_RESOURCES, AUDIT_LOGS_SELECTORS, ApiKeysApi, ApiKeysPage, ApiKeysPageV2, AuditLogsPage, BASE_URL, CALENDAR_LABELS, CERTIFICATE_LIMIT_EXCEEDED_MESSAGE, CERTIFICATE_LIMIT_EXCEEDED_REGEXP, CERTIFICATE_PROVISION_FAILED_MESSAGE, CERTIFICATE_PROVISION_FAILED_REGEXP, CHANGELOG_WIDGET_SELECTORS, CHAT_WIDGET_SELECTORS, CHAT_WIDGET_TEXTS, COLOR, COMMON_SELECTORS, COMMON_TEXTS, COMMUNITY_TEXTS, CREDENTIALS, CURRENT_TIME_RANGES, CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX, CUSTOM_DOMAIN_SELECTORS, CUSTOM_DOMAIN_SUFFIX, ColorPickerUtils, CustomCommands, CustomCommandsV2, CustomDomainApi, CustomDomainPage, DATE_FORMATS, DATE_PICKER_SELECTORS, DATE_RANGES, DATE_TEXTS, DEFAULT_TIMEZONE_ID, DEFAULT_WEBHOOKS_RESPONSE_TEXT, DESCRIPTION_EDITOR_TEXTS, EDITOR_VERIFY_TEXT_COLOR, EMBED_SELECTORS, EMOJI_LABEL, EMPTY_STORAGE_STATE, ENGAGE_TEXTS, ENVIRONMENT, EXAMPLE_URL, EXPANDED_FONT_SIZE, EXPORT_FILE_TYPES, EditorPage, EmailDeliveryUtils, EmbedBase, FILE_FORMATS, FONTS_RESOURCES, FONT_SIZE_SELECTORS, FROM_EMAIL_ENV_KEYS, GLOBAL_TRANSLATIONS_PATTERN, GOOGLE_ANALYTICS_SELECTORS, GOOGLE_CALENDAR_DATE_FORMAT, GOOGLE_LOGIN_SELECTORS, GOOGLE_LOGIN_TEXTS, GOOGLE_SHEETS_SELECTORS, GooglePage, HELP_CENTER_ROUTES, HELP_CENTER_SELECTORS, HelpAndProfilePage, HelpAndProfilePageV2, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_CI, IS_DEV_CI, IS_DEV_ENV, IS_MAILPIT_ENABLED, IS_PLAYWRIGHT_RUN, IS_REVIEW_ENV, IS_SHADCN_UI, IS_STAGING_ENV, IS_WEBKIT, ImageUploader, InboundEmailApis, IntegrationBase, IpRestrictionsApi, KEYBOARD_SHORTCUTS_SELECTORS, KEYBOARD_SHORTCUT_TEST_CASES, LIST_MODIFIER_SELECTORS, LIST_MODIFIER_TAGS, LOGIN_DEFAULTS, LOGIN_SELECTORS, LOGIN_STRATEGIES, LOGIN_TIMEOUT, MAILPIT_BASE_URL, MAILPIT_DOMAIN_NAME, MEMBER_FORM_SELECTORS, MEMBER_SELECTORS, MEMBER_TEXTS, MERGE_TAGS_SELECTORS, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, MailpitApi, 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, NeetoAuthServer, NeetoChatWidget, NeetoEmailDeliveryApi, NeetoTowerApi, ONBOARDING_SELECTORS, ORGANIZATION_TEXTS, OTP_EMAIL_PATTERN, OTP_FETCH_TIMEOUT, OrganizationPage, PAST_TIME_RANGES, PHONE_NUMBER_FORMATS, PLURAL, PRODUCT_ROLES_ROUTE_MAP, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, REVIEW_APP_CUSTOM_DOMAIN_SUFFIX, ROLES_SELECTORS, ROUTES, RailsEmailApiClient, RailsEmailUtils, RoleApis, RolesPage, RolesPageV2, SIGNUP_SELECTORS, SINGULAR, SLACK_DATA_QA_SELECTORS, SLACK_DEFAULT_CHANNEL, SLACK_SELECTORS, SLACK_WEB_TEXTS, STATUS_TEXTS, STORAGE_STATE, SecurityApi, SidebarSection, SlackApi, SlackPage, SmsApi, SmsUtils, 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_RESOURCES, THIRD_PARTY_ROUTES, TIME_RANGES, TOASTR_MESSAGES, TRAEFIK_NOT_FOUND_TEXT, TWILIO_SELECTORS, TagsApi, TagsPage, TeamMembers, TeamMembersV2, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WEBHOOK_SELECTORS, WebhookSiteApi, WebhooksPage, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, ZAPIER_TEST_EMAIL_V2, ZAPIER_WEB_TEXTS, ZapierPage, authenticateUser, baseURLGenerator, basicHTMLContent, clearCredentials, commands, cpuThrottlingUsingCDP, createOrganizationViaApi, createOrganizationViaRake, currencyUtils, dataQa, decodeQRCodeFromFile, definePlaywrightConfig, exampleEmail, executeWithThrottledResources, extractSubdomainFromError, filterUtils, fixedMenuSelector, generatePhoneNumber, generatePhoneNumberDetails, generateRandomBypassEmail, generateRandomFile, generateStagingData, getByDataQA, getClipboardContent, getFormattedPhoneNumber, getFullUrl, getGithubToken, getGlobalUserProps, getGlobalUserState, getImagePathAndName, getIsoCodeFromPhoneCode, getListCount, globalShortcuts, grantClipboardPermissions, hexToRGB, hexToRGBA, i18nFixture, imageRegex, initializeCredentials, initializeReviewAppCredentials, initializeTestData, initializeTotp, isGithubIssueOpen, isStagingOrganizationExpired, joinHyphenCase, joinString, login, loginToReviewApp, mailpitDomainName, minutesAgo, networkConditions, networkThrottlingUsingCDP, optionSelector, readFileAsBrowserFile, readFileSyncIfExists, removeCredentialFile, reviewAppBaseURL, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, stealth as stealthTest, tableUtils, toCamelCase, updateCredentials, waitForReviewApp, warmup, withCookieCache, writeDataToFile };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-playwright-commons",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.4-beta1",
|
|
4
4
|
"description": "A package encapsulating common playwright code across neeto projects.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-playwright-commons.git",
|
|
6
6
|
"license": "apache-2.0",
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
"@playwright/test": "1.63.0",
|
|
50
50
|
"@rollup/plugin-alias": "6.0.0",
|
|
51
51
|
"@rollup/plugin-commonjs": "29.0.2",
|
|
52
|
-
"@rollup/plugin-json": "6.1.0",
|
|
53
52
|
"@rollup/plugin-node-resolve": "16.0.3",
|
|
54
53
|
"@types/mailparser": "^3.4.6",
|
|
55
54
|
"@types/node": "22.9.0",
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
"rollup": "^4.60.1",
|
|
75
74
|
"rollup-plugin-analyzer": "4.0.0",
|
|
76
75
|
"rollup-plugin-dts": "^6.4.1",
|
|
77
|
-
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
78
76
|
"typescript": "6.0.3"
|
|
79
77
|
},
|
|
80
78
|
"peerDependencies": {
|
|
@@ -105,4 +103,4 @@
|
|
|
105
103
|
"puppeteer-extra-plugin-stealth": "2.11.2"
|
|
106
104
|
},
|
|
107
105
|
"packageManager": "yarn@4.18.1"
|
|
108
|
-
}
|
|
106
|
+
}
|
|
File without changes
|