@bigbinary/neeto-playwright-commons 4.8.14 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +56 -56
  2. package/index.js +3 -1
  3. package/package.json +4 -4
package/index.d.ts CHANGED
@@ -148,10 +148,10 @@ declare class CustomCommands {
148
148
  * @endexample
149
149
  */
150
150
  initializeCsrfToken: () => Promise<string | null>;
151
- blockExternalResources: (page?: Page) => Promise<void[]>;
152
- blockInternalResources: (page?: Page) => Promise<void[]>;
153
- blockNonEssentialResourceTypes: (page?: Page) => Promise<void>;
154
- blockAllResources: (page?: Page) => Promise<[void, ...void[]]>;
151
+ blockExternalResources: (page?: Page) => Promise<_playwright_test.Disposable[]>;
152
+ blockInternalResources: (page?: Page) => Promise<_playwright_test.Disposable[]>;
153
+ blockNonEssentialResourceTypes: (page?: Page) => Promise<_playwright_test.Disposable>;
154
+ blockAllResources: (page?: Page) => Promise<[_playwright_test.Disposable, ..._playwright_test.Disposable[]]>;
155
155
  /**
156
156
  *
157
157
  * Command to wait for the floating action menu button to be visible. This method waits for the floating action menu button with a timeout of 25 seconds.
@@ -966,15 +966,15 @@ declare class ApiKeysApi {
966
966
  private neetoPlaywrightUtilities;
967
967
  private readonly API_KEYS_BASE_URL;
968
968
  constructor(neetoPlaywrightUtilities: CustomCommands);
969
- create: (label: string, type?: "general" | "zapier") => Promise<playwright_core.APIResponse | undefined>;
969
+ create: (label: string, type?: "general" | "zapier") => Promise<playwright_core.APIResponse<any> | undefined>;
970
970
  }
971
971
  declare class CustomDomainApi {
972
972
  private neetoPlaywrightUtilities;
973
973
  constructor(neetoPlaywrightUtilities: CustomCommands);
974
- create: (hostname: string, baseUrl?: string) => Promise<playwright_core.APIResponse | undefined>;
975
- delete: (customDomain: string) => Promise<playwright_core.APIResponse | undefined>;
976
- fetch: (baseUrl?: string) => Promise<playwright_core.APIResponse | undefined>;
977
- validate: (baseUrl?: string) => Promise<playwright_core.APIResponse | undefined>;
974
+ create: (hostname: string, baseUrl?: string) => Promise<playwright_core.APIResponse<any> | undefined>;
975
+ delete: (customDomain: string) => Promise<playwright_core.APIResponse<any> | undefined>;
976
+ fetch: (baseUrl?: string) => Promise<playwright_core.APIResponse<any> | undefined>;
977
+ validate: (baseUrl?: string) => Promise<playwright_core.APIResponse<any> | undefined>;
978
978
  }
979
979
  interface AllowedIpRange {
980
980
  ipStart: string;
@@ -988,8 +988,8 @@ declare class IpRestrictionsApi {
988
988
  ipStart,
989
989
  ipEnd,
990
990
  addressType
991
- }: AllowedIpRange) => Promise<playwright_core.APIResponse | undefined>;
992
- disable: () => Promise<playwright_core.APIResponse | undefined>;
991
+ }: AllowedIpRange) => Promise<playwright_core.APIResponse<any> | undefined>;
992
+ disable: () => Promise<playwright_core.APIResponse<any> | undefined>;
993
993
  }
994
994
  interface MailpitAddress {
995
995
  Name: string;
@@ -1071,12 +1071,12 @@ declare class MemberApis {
1071
1071
  private readonly teamMembersBaseUrl;
1072
1072
  private readonly teamsBaseUrl;
1073
1073
  constructor(neetoPlaywrightUtilities: CustomCommands);
1074
- create: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse | undefined>;
1075
- jobStatus: (jobId: string) => Promise<playwright_core.APIResponse | undefined>;
1076
- fetch: (params?: ParamProps) => Promise<playwright_core.APIResponse | undefined>;
1077
- fetchPermissions: () => Promise<playwright_core.APIResponse | undefined>;
1078
- update: (memberId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse | undefined>;
1079
- bulkUpdate: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse | undefined>;
1074
+ create: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
1075
+ jobStatus: (jobId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1076
+ fetch: (params?: ParamProps) => Promise<playwright_core.APIResponse<any> | undefined>;
1077
+ fetchPermissions: () => Promise<playwright_core.APIResponse<any> | undefined>;
1078
+ update: (memberId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
1079
+ bulkUpdate: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
1080
1080
  }
1081
1081
  type EmailAddress = string | string[];
1082
1082
  interface RailsEmailAttachment {
@@ -1135,10 +1135,10 @@ declare class RoleApis {
1135
1135
  private readonly BASE_URL;
1136
1136
  private readonly ORGANIZATION_ROLES_URL;
1137
1137
  constructor(neetoPlaywrightUtilities: CustomCommands);
1138
- fetch: (endpoint: "teams" | "permissions" | "organization_roles") => Promise<playwright_core.APIResponse | undefined>;
1139
- addRole: (roleName: string, permissionIds: string[]) => Promise<playwright_core.APIResponse | undefined>;
1140
- editRole: (roleId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse | undefined>;
1141
- deleteRole: (roleId: string, standardRoleId: string) => Promise<playwright_core.APIResponse | undefined>;
1138
+ fetch: (endpoint: "teams" | "permissions" | "organization_roles") => Promise<playwright_core.APIResponse<any> | undefined>;
1139
+ addRole: (roleName: string, permissionIds: string[]) => Promise<playwright_core.APIResponse<any> | undefined>;
1140
+ editRole: (roleId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
1141
+ deleteRole: (roleId: string, standardRoleId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1142
1142
  }
1143
1143
  type SecurityAuthType = "password" | "email" | "invite" | "member";
1144
1144
  type SecurityRequestParams = {
@@ -1172,7 +1172,7 @@ declare class SecurityApi {
1172
1172
  ownerId,
1173
1173
  auth,
1174
1174
  value
1175
- }: SecurityRequestParams) => Promise<playwright_core.APIResponse | undefined>;
1175
+ }: SecurityRequestParams) => Promise<playwright_core.APIResponse<any> | undefined>;
1176
1176
  }
1177
1177
  declare class TagsApi {
1178
1178
  private neetoPlaywrightUtilities;
@@ -1183,7 +1183,7 @@ declare class TagsApi {
1183
1183
  }: {
1184
1184
  body: Record<string, unknown>;
1185
1185
  tagsRequestUrl: string;
1186
- }) => Promise<playwright_core.APIResponse | undefined>;
1186
+ }) => Promise<playwright_core.APIResponse<any> | undefined>;
1187
1187
  }
1188
1188
  interface ThankYouApiRequestParams {
1189
1189
  entityId: string;
@@ -1196,14 +1196,14 @@ declare class ThankYouApi {
1196
1196
  create: ({
1197
1197
  entityId,
1198
1198
  title
1199
- }: Omit<ThankYouApiRequestParams, "thankYouPageId">) => Promise<playwright_core.APIResponse | undefined>;
1199
+ }: Omit<ThankYouApiRequestParams, "thankYouPageId">) => Promise<playwright_core.APIResponse<any> | undefined>;
1200
1200
  fetch: ({
1201
1201
  entityId
1202
- }: Pick<ThankYouApiRequestParams, "entityId">) => Promise<playwright_core.APIResponse | undefined>;
1202
+ }: Pick<ThankYouApiRequestParams, "entityId">) => Promise<playwright_core.APIResponse<any> | undefined>;
1203
1203
  update: ({
1204
1204
  thankYouPageId,
1205
1205
  entityId
1206
- }: Omit<ThankYouApiRequestParams, "title">) => Promise<playwright_core.APIResponse | undefined>;
1206
+ }: Omit<ThankYouApiRequestParams, "title">) => Promise<playwright_core.APIResponse<any> | undefined>;
1207
1207
  }
1208
1208
  declare class NeetoTowerApi {
1209
1209
  private neetoPlaywrightUtilities;
@@ -1233,9 +1233,9 @@ declare class NeetoTowerApi {
1233
1233
  }: {
1234
1234
  hostname: string;
1235
1235
  value: string;
1236
- }) => Promise<playwright_core.APIResponse | undefined>;
1237
- getRecords: () => Promise<playwright_core.APIResponse | undefined>;
1238
- deleteRecord: (dnsDomainId: string) => Promise<playwright_core.APIResponse | undefined>;
1236
+ }) => Promise<playwright_core.APIResponse<any> | undefined>;
1237
+ getRecords: () => Promise<playwright_core.APIResponse<any> | undefined>;
1238
+ deleteRecord: (dnsDomainId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1239
1239
  }
1240
1240
  declare class SlackApi {
1241
1241
  private neetoPlaywrightUtilities;
@@ -1259,20 +1259,20 @@ declare class SlackApi {
1259
1259
  * @endexample
1260
1260
  */
1261
1261
  private apiRequest;
1262
- fetchMessages: (channelId: string, unixTimestamp: number) => Promise<playwright_core.APIResponse | undefined>;
1263
- createChannel: (channelName: string) => Promise<playwright_core.APIResponse | undefined>;
1264
- addUser: (channelId: string, userId: string) => Promise<playwright_core.APIResponse | undefined>;
1265
- listChannels: () => Promise<playwright_core.APIResponse | undefined>;
1266
- archiveChannel: (channelId: string) => Promise<playwright_core.APIResponse | undefined>;
1267
- mockChannelDeleted: (channelId: string) => Promise<playwright_core.APIResponse | undefined>;
1262
+ fetchMessages: (channelId: string, unixTimestamp: number) => Promise<playwright_core.APIResponse<any> | undefined>;
1263
+ createChannel: (channelName: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1264
+ addUser: (channelId: string, userId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1265
+ listChannels: () => Promise<playwright_core.APIResponse<any> | undefined>;
1266
+ archiveChannel: (channelId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1267
+ mockChannelDeleted: (channelId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1268
1268
  }
1269
1269
  declare class WebhookSiteApi {
1270
1270
  private readonly request;
1271
1271
  private readonly WEBHOOK_SITE_BASE_URL;
1272
1272
  constructor(request: APIRequestContext);
1273
- create: () => Promise<_playwright_test.APIResponse>;
1274
- fetch: (token: string) => Promise<_playwright_test.APIResponse>;
1275
- configure: (tokenId: string, content?: string) => Promise<_playwright_test.APIResponse>;
1273
+ create: () => Promise<_playwright_test.APIResponse<any>>;
1274
+ fetch: (token: string) => Promise<_playwright_test.APIResponse<any>>;
1275
+ configure: (tokenId: string, content?: string) => Promise<_playwright_test.APIResponse<any>>;
1276
1276
  }
1277
1277
  type IntegrableType = "Form" | string;
1278
1278
  interface TwilioRequestParams {
@@ -1306,7 +1306,7 @@ declare class TwilioApi {
1306
1306
  fetch: ({
1307
1307
  integrableId,
1308
1308
  integrableType
1309
- }: TwilioRequestParams) => Promise<playwright_core.APIResponse | undefined>;
1309
+ }: TwilioRequestParams) => Promise<playwright_core.APIResponse<any> | undefined>;
1310
1310
  /**
1311
1311
  *
1312
1312
  * Disconnects an active integration. It takes the following parameters:
@@ -1319,7 +1319,7 @@ declare class TwilioApi {
1319
1319
  disconnect: ({
1320
1320
  integrableId,
1321
1321
  integrableType
1322
- }: TwilioRequestParams) => Promise<playwright_core.APIResponse | undefined>;
1322
+ }: TwilioRequestParams) => Promise<playwright_core.APIResponse<any> | undefined>;
1323
1323
  /**
1324
1324
  *
1325
1325
  * Connects an integration. It takes the following parameters:
@@ -1336,7 +1336,7 @@ declare class TwilioApi {
1336
1336
  connect: ({
1337
1337
  integrableId,
1338
1338
  integrableType
1339
- }: TwilioRequestParams) => Promise<playwright_core.APIResponse | undefined>;
1339
+ }: TwilioRequestParams) => Promise<playwright_core.APIResponse<any> | undefined>;
1340
1340
  }
1341
1341
  declare class Health {
1342
1342
  page: Page;
@@ -1753,7 +1753,7 @@ declare class FastmailApi {
1753
1753
  * @endexample
1754
1754
  */
1755
1755
  apiRequest: (method: string, body: Record<string, unknown>) => Promise<any>;
1756
- fetchAttachments: (blobId: string, attachmentName: string) => Promise<playwright_core.APIResponse | undefined>;
1756
+ fetchAttachments: (blobId: string, attachmentName: string) => Promise<playwright_core.APIResponse<any> | undefined>;
1757
1757
  }
1758
1758
  type Range<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Exclude<Acc[number], 0 | Acc["length"]> | N : Range<N, [...Acc, Acc["length"]]>;
1759
1759
  interface MessageSearchCriteria {
@@ -2193,7 +2193,7 @@ declare class SmsApi {
2193
2193
  private neetoPlaywrightUtilities;
2194
2194
  constructor(neetoPlaywrightUtilities: CustomCommands);
2195
2195
  fetchSms: (searchParams?: SmsSearchParams) => Promise<Sms[]>;
2196
- deleteSms: (receivedBefore: string) => Promise<playwright_core.APIResponse | undefined>;
2196
+ deleteSms: (receivedBefore: string) => Promise<playwright_core.APIResponse<any> | undefined>;
2197
2197
  /**
2198
2198
  *
2199
2199
  * Deletes every captured SMS for the app. Use it only when no other test or parallel worker asserts on SMS at the same time.
@@ -2203,7 +2203,7 @@ declare class SmsApi {
2203
2203
  * await smsUtils.purgeAllSms();
2204
2204
  * @endexample
2205
2205
  */
2206
- purgeAllSms: () => Promise<playwright_core.APIResponse | undefined>;
2206
+ purgeAllSms: () => Promise<playwright_core.APIResponse<any> | undefined>;
2207
2207
  }
2208
2208
  type SmsSearchCriteria = Omit<SmsSearchParams, "receivedAfter"> & {
2209
2209
  receivedAfter?: Date;
@@ -2282,7 +2282,7 @@ declare class SmsUtils {
2282
2282
  * await smsUtils.clearStaleSms(minutesAgo(10));
2283
2283
  * @endexample
2284
2284
  */
2285
- clearStaleSms: (receivedBefore?: Date) => Promise<playwright_core.APIResponse | undefined>;
2285
+ clearStaleSms: (receivedBefore?: Date) => Promise<playwright_core.APIResponse<any> | undefined>;
2286
2286
  /**
2287
2287
  *
2288
2288
  * Deletes every captured SMS for the app. Use it only when no other test or parallel worker asserts on SMS at the same time.
@@ -2292,7 +2292,7 @@ declare class SmsUtils {
2292
2292
  * await smsUtils.purgeAllSms();
2293
2293
  * @endexample
2294
2294
  */
2295
- purgeAllSms: () => Promise<playwright_core.APIResponse | undefined>;
2295
+ purgeAllSms: () => Promise<playwright_core.APIResponse<any> | undefined>;
2296
2296
  }
2297
2297
  type Hex = Lowercase<`#${string}`>;
2298
2298
  interface BaseThemeStyle {
@@ -4005,7 +4005,7 @@ declare class Member {
4005
4005
  newRole,
4006
4006
  subscriptionPlan
4007
4007
  }: EditMemberProps$1) => Promise<void>;
4008
- deactivateMemberViaRequest: (email: string) => Promise<APIResponse | undefined>;
4008
+ deactivateMemberViaRequest: (email: string) => Promise<APIResponse<any> | undefined>;
4009
4009
  generateRandomTeamMembers: ({
4010
4010
  count,
4011
4011
  role
@@ -6308,7 +6308,7 @@ declare class RolesPage {
6308
6308
  * await rolesPage.addCustomRoleViaRequest("Custom Role", ["Manage themes", "View roles"]);
6309
6309
  * @endexample
6310
6310
  */
6311
- addCustomRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse | undefined>;
6311
+ addCustomRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse<any> | undefined>;
6312
6312
  /**
6313
6313
  *
6314
6314
  * Used to edit an existing role via API request.
@@ -6322,7 +6322,7 @@ declare class RolesPage {
6322
6322
  * await rolesPage.editRoleViaRequest("Custom Role", ["Manage roles"]);
6323
6323
  * @endexample
6324
6324
  */
6325
- editRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse | undefined>;
6325
+ editRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse<any> | undefined>;
6326
6326
  /**
6327
6327
  *
6328
6328
  * Used to delete a role via API request.
@@ -6334,7 +6334,7 @@ declare class RolesPage {
6334
6334
  * await rolesPage.deleteRoleViaRequest("Custom Role");
6335
6335
  * @endexample
6336
6336
  */
6337
- deleteRoleViaRequest: (roleName: string, secondaryRoleName?: string) => Promise<_playwright_test.APIResponse | undefined>;
6337
+ deleteRoleViaRequest: (roleName: string, secondaryRoleName?: string) => Promise<_playwright_test.APIResponse<any> | undefined>;
6338
6338
  /**
6339
6339
  *
6340
6340
  * Used to add a role through the UI.
@@ -6645,7 +6645,7 @@ declare class TagsPage {
6645
6645
  name: string;
6646
6646
  description?: string;
6647
6647
  tagsRequestUrl: string;
6648
- }) => Promise<_playwright_test.APIResponse | undefined>;
6648
+ }) => Promise<_playwright_test.APIResponse<any> | undefined>;
6649
6649
  /**
6650
6650
  *
6651
6651
  * Used to navigate to merge tags page.
@@ -10595,8 +10595,8 @@ declare class NeetoEmailDeliveryApi {
10595
10595
  connect: ({
10596
10596
  ownerId,
10597
10597
  ...payload
10598
- }: EmailDeliveryConnectParams) => Promise<playwright_core.APIResponse | undefined>;
10599
- verifyEmail: (params: EmailDeliveryVerifyEmailParams) => Promise<playwright_core.APIResponse | undefined>;
10598
+ }: EmailDeliveryConnectParams) => Promise<playwright_core.APIResponse<any> | undefined>;
10599
+ verifyEmail: (params: EmailDeliveryVerifyEmailParams) => Promise<playwright_core.APIResponse<any> | undefined>;
10600
10600
  }
10601
10601
  interface ConnectRequestParams {
10602
10602
  provider: EmailDeliveryProvider;
@@ -10622,7 +10622,7 @@ declare class EmailDeliveryUtils {
10622
10622
  connectViaRequest: ({
10623
10623
  provider,
10624
10624
  ownerId
10625
- }: ConnectRequestParams) => Promise<_playwright_test.APIResponse | undefined>;
10625
+ }: ConnectRequestParams) => Promise<_playwright_test.APIResponse<any> | undefined>;
10626
10626
  verifyEmailViaRequest: ({
10627
10627
  subject,
10628
10628
  to,
@@ -10712,7 +10712,7 @@ declare class InboundEmailApis {
10712
10712
  * forwardedTo: supportEmail(subdomainName, "forward"), // optional — X-Forwarded-To
10713
10713
  * });
10714
10714
  */
10715
- create: (emailParams: InboundEmailParams) => Promise<playwright_core.APIResponse | undefined>;
10715
+ create: (emailParams: InboundEmailParams) => Promise<playwright_core.APIResponse<any> | undefined>;
10716
10716
  /**
10717
10717
  * Delivers a reply referencing a previous email via In-Reply-To and
10718
10718
  * References, so the host app threads it onto the existing record (in
@@ -10729,7 +10729,7 @@ declare class InboundEmailApis {
10729
10729
  * replyToMessageId: messageId, // Message-ID of the earlier email
10730
10730
  * });
10731
10731
  */
10732
- reply: (emailParams: ReplyInboundEmailParams) => Promise<playwright_core.APIResponse | undefined>;
10732
+ reply: (emailParams: ReplyInboundEmailParams) => Promise<playwright_core.APIResponse<any> | undefined>;
10733
10733
  private deliverSource;
10734
10734
  }
10735
10735
  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_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, 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, getDirname, getFormattedPhoneNumber, getFullUrl, 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 };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isPresent, keysToSnakeCase, hyphenate, humanize, noop as noop$2, isNotPresent, keysToCamelCase, findBy, dynamicArray, truncate, isNotEmpty, _findBy, isNotEqualDeep, randomPick } from '@bigbinary/neeto-cist';
2
- import { faker } from '@faker-js/faker';
2
+ import { faker } from '@faker-js/faker/locale/en';
3
3
  import * as fs from 'fs';
4
4
  import fs__default, { readFileSync, promises, existsSync, writeFileSync, unlinkSync, mkdirSync, rmSync, createWriteStream } from 'fs';
5
5
  import os from 'os';
@@ -129598,6 +129598,7 @@ const playdashProductionHealthConfig = {
129598
129598
  const railsPort = process.env.RAILS_SERVER_PORT;
129599
129599
  const vitePort = process.env.VITE_PORT;
129600
129600
  const isPlaywrightRun = process.env.PLAYWRIGHT_RUN === "true";
129601
+ const isIsolatedRetry = process.env.PW_ISOLATED_RETRY === "true";
129601
129602
  const PROJECT_NAMES = {
129602
129603
  setup: "setup",
129603
129604
  chromium: "chromium",
@@ -129664,6 +129665,7 @@ const definePlaywrightConfig = (overrides) => {
129664
129665
  timeout: 5 * 60 * 1000,
129665
129666
  workers: IS_CI ? 6 : 5,
129666
129667
  reporter: IS_CI ? reporter : [["line"]],
129668
+ retryStrategy: isIsolatedRetry ? "isolated" : "immediate",
129667
129669
  ...(specPatterns && { testMatch: specPatterns }),
129668
129670
  ...(IS_DEV_ENV && {
129669
129671
  webServer: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-playwright-commons",
3
- "version": "4.8.14",
3
+ "version": "4.9.0",
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",
@@ -44,7 +44,7 @@
44
44
  "@bigbinary/neeto-cist": "1.0.17",
45
45
  "@eslint/js": "^9.27.0",
46
46
  "@faker-js/faker": "10.5.0",
47
- "@playwright/test": "1.58.2",
47
+ "@playwright/test": "1.63.0",
48
48
  "@rollup/plugin-alias": "6.0.0",
49
49
  "@rollup/plugin-commonjs": "29.0.2",
50
50
  "@rollup/plugin-json": "6.1.0",
@@ -59,7 +59,7 @@
59
59
  "eslint": "9.27.0",
60
60
  "eslint-import-resolver-typescript": "^4.4.5",
61
61
  "eslint-plugin-import": "^2.32.0",
62
- "eslint-plugin-playwright": "^2.11.0",
62
+ "eslint-plugin-playwright": "^2.12.0",
63
63
  "globals": "^17.4.0",
64
64
  "husky": "9.0.11",
65
65
  "i18next": "22.5.1",
@@ -77,7 +77,7 @@
77
77
  "peerDependencies": {
78
78
  "@bigbinary/neeto-cist": "1.0.17",
79
79
  "@faker-js/faker": "10.5.0",
80
- "@playwright/test": "1.58.2",
80
+ "@playwright/test": "1.63.0",
81
81
  "dayjs": "1.11.19",
82
82
  "eslint-import-resolver-typescript": "^4.4.5",
83
83
  "i18next": "25.8.14",