@bigbinary/neeto-playwright-commons 4.12.6 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -4
- package/index.d.ts +508 -2761
- package/index.js +473 -2432
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -91,10 +91,6 @@ interface WaitForPageLoadParams {
|
|
|
91
91
|
customPageContext: Page | undefined;
|
|
92
92
|
waitForOption: "serial" | "parallel";
|
|
93
93
|
}
|
|
94
|
-
interface WaitForPaneToLoadParams {
|
|
95
|
-
visibilityTimeout: number;
|
|
96
|
-
customPageContext: Page;
|
|
97
|
-
}
|
|
98
94
|
type ApiRequest = (props: ApiRequestProps & Record<string, unknown>) => Promise<APIResponse | undefined>;
|
|
99
95
|
interface FieldValue {
|
|
100
96
|
field: string;
|
|
@@ -153,14 +149,15 @@ declare class CustomCommands {
|
|
|
153
149
|
blockAllResources: (page?: Page) => Promise<[_playwright_test.Disposable, ..._playwright_test.Disposable[]]>;
|
|
154
150
|
/**
|
|
155
151
|
*
|
|
156
|
-
* 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
|
|
152
|
+
* 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 30 seconds. Pass a page to wait on a page other than the POM's.
|
|
157
153
|
*
|
|
158
154
|
* @example
|
|
159
155
|
*
|
|
160
156
|
* await neetoPlaywrightUtilities.waitForFloatingMenu();
|
|
157
|
+
* await neetoPlaywrightUtilities.waitForFloatingMenu(otherPage);
|
|
161
158
|
* @endexample
|
|
162
159
|
*/
|
|
163
|
-
waitForFloatingMenu: () => Promise<void>;
|
|
160
|
+
waitForFloatingMenu: (customPageContext?: Page) => Promise<void>;
|
|
164
161
|
/**
|
|
165
162
|
*
|
|
166
163
|
* Command to wait until a response with URL responseUrl is found. Optionally,
|
|
@@ -211,15 +208,9 @@ declare class CustomCommands {
|
|
|
211
208
|
condition,
|
|
212
209
|
timeout
|
|
213
210
|
}: ExecuteRecursivelyParams) => Promise<unknown>;
|
|
214
|
-
/**
|
|
215
|
-
* @deprecated Targets the react-toastify-based Toastr from
|
|
216
|
-
* @bigbinary/neetoui. Use verifyToastV2 instead for apps whose Toastr
|
|
217
|
-
* comes from @bigbinary/neeto-atoms (sonner-based, e.g. neeto-engage-web).
|
|
218
|
-
* Kept only for apps still on the legacy neetoui Toastr.
|
|
219
|
-
*/
|
|
220
211
|
/**
|
|
221
212
|
*
|
|
222
|
-
* Command to assert the
|
|
213
|
+
* Command to assert the toast rendered by @bigbinary/neeto-atoms. It takes the following parameters:
|
|
223
214
|
*
|
|
224
215
|
* closeAfterVerification(optional): Boolean to close the toast after verification. Default is true.
|
|
225
216
|
*
|
|
@@ -253,42 +244,6 @@ declare class CustomCommands {
|
|
|
253
244
|
toastCloseTimeout,
|
|
254
245
|
customPageContext
|
|
255
246
|
}?: Partial<VerifyToastParams>) => Promise<void>;
|
|
256
|
-
/**
|
|
257
|
-
*
|
|
258
|
-
* Command to assert the toastr message rendered by @bigbinary/neeto-atoms's sonner-based Toastr. Use this instead of verifyToast for apps that have moved to @bigbinary/neeto-atoms (e.g. neeto-engage-web). It takes the following parameters:
|
|
259
|
-
*
|
|
260
|
-
* closeAfterVerification(optional): Boolean to close the toast after verification. Default is true.
|
|
261
|
-
*
|
|
262
|
-
* message(optional): Text that should be on toast.
|
|
263
|
-
*
|
|
264
|
-
* toastType(optional): Type of toast. It takes success, error, info or warning as it's value. Default is success.
|
|
265
|
-
*
|
|
266
|
-
* timeout(optional): Timeout in milliseconds to wait for the toast to appear. Default is 10_000.
|
|
267
|
-
*
|
|
268
|
-
* toastCloseTimeout(optional): Timeout in milliseconds to wait for the toast to disappear after closing. Default is 10_000.
|
|
269
|
-
*
|
|
270
|
-
* customPageContext(optional): Custom page context on which to verify the toast.
|
|
271
|
-
*
|
|
272
|
-
* @example
|
|
273
|
-
*
|
|
274
|
-
* await neetoPlaywrightUtilities.verifyToastV2({
|
|
275
|
-
* message: "Toastr message",
|
|
276
|
-
* closeAfterVerification: false,
|
|
277
|
-
* toastType: "error",
|
|
278
|
-
* timeout: 20_000,
|
|
279
|
-
* toastCloseTimeout: 15_000,
|
|
280
|
-
* customPageContext: this.page,
|
|
281
|
-
* });
|
|
282
|
-
* @endexample
|
|
283
|
-
*/
|
|
284
|
-
verifyToastV2: ({
|
|
285
|
-
message,
|
|
286
|
-
toastType,
|
|
287
|
-
closeAfterVerification,
|
|
288
|
-
timeout,
|
|
289
|
-
toastCloseTimeout,
|
|
290
|
-
customPageContext
|
|
291
|
-
}?: Partial<VerifyToastParams>) => Promise<void>;
|
|
292
247
|
/**
|
|
293
248
|
*
|
|
294
249
|
* Command to wait until the page has no loaders or spinners.
|
|
@@ -306,22 +261,6 @@ declare class CustomCommands {
|
|
|
306
261
|
customPageContext,
|
|
307
262
|
waitForOption
|
|
308
263
|
}?: Partial<WaitForPageLoadParams>) => Promise<void>;
|
|
309
|
-
/**
|
|
310
|
-
*
|
|
311
|
-
* Command to wait until the pane body is visible and the pane has no spinners.
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
*
|
|
315
|
-
* await neetoPlaywrightUtilities.waitForPaneToLoad({
|
|
316
|
-
* visibilityTimeout = 35_000,
|
|
317
|
-
* customPageContext,
|
|
318
|
-
* });
|
|
319
|
-
* @endexample
|
|
320
|
-
*/
|
|
321
|
-
waitForPaneToLoad: ({
|
|
322
|
-
visibilityTimeout,
|
|
323
|
-
customPageContext
|
|
324
|
-
}?: Partial<WaitForPaneToLoadParams>) => Promise<void>;
|
|
325
264
|
/**
|
|
326
265
|
*
|
|
327
266
|
* Command to send an API request.
|
|
@@ -354,11 +293,11 @@ declare class CustomCommands {
|
|
|
354
293
|
*
|
|
355
294
|
* options: is an object with the following optional parameters:
|
|
356
295
|
*
|
|
357
|
-
*
|
|
296
|
+
* visibilityTimeout: is the time to wait for the select input to be visible. Default is 5000ms.
|
|
358
297
|
*
|
|
359
|
-
* textAssertionTimeout: is the time to wait for the selected value to be visible in the select input. Default is
|
|
298
|
+
* textAssertionTimeout: is the time to wait for the selected value to be visible in the select input. Default is 5000ms.
|
|
360
299
|
*
|
|
361
|
-
* retryTimeout: is the time to wait until the select operation is completed. Default is
|
|
300
|
+
* retryTimeout: is the time to wait until the select operation is completed. Default is 60000ms.
|
|
362
301
|
*
|
|
363
302
|
* @example
|
|
364
303
|
*
|
|
@@ -373,7 +312,7 @@ declare class CustomCommands {
|
|
|
373
312
|
* label,
|
|
374
313
|
* value,
|
|
375
314
|
* options:{
|
|
376
|
-
*
|
|
315
|
+
* visibilityTimeout:200,
|
|
377
316
|
* textAssertionTimeout:1000,
|
|
378
317
|
* retryTimeout:20000
|
|
379
318
|
* },
|
|
@@ -384,22 +323,14 @@ declare class CustomCommands {
|
|
|
384
323
|
label,
|
|
385
324
|
value,
|
|
386
325
|
page,
|
|
387
|
-
options
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
page,
|
|
393
|
-
options
|
|
326
|
+
options: {
|
|
327
|
+
visibilityTimeout,
|
|
328
|
+
textAssertionTimeout,
|
|
329
|
+
retryTimeout
|
|
330
|
+
}
|
|
394
331
|
}: SelectOptionFromDropdownParams) => Promise<void>;
|
|
395
332
|
waitForSheetOpen: () => Promise<void>;
|
|
396
333
|
waitForSheetClose: () => Promise<void>;
|
|
397
|
-
selectOptionFromDropdownV2: ({
|
|
398
|
-
label,
|
|
399
|
-
value,
|
|
400
|
-
page,
|
|
401
|
-
options
|
|
402
|
-
}: SelectOptionFromDropdownParams) => Promise<void>;
|
|
403
334
|
/**
|
|
404
335
|
*
|
|
405
336
|
* Command to verify the value of a field. It can take either a single object or an array of objects, each representing a field and its expected value.
|
|
@@ -537,7 +468,7 @@ declare class CustomCommands {
|
|
|
537
468
|
}: VerifyTooltipProps) => Promise<void>;
|
|
538
469
|
/**
|
|
539
470
|
*
|
|
540
|
-
* Method to verify title, content and the help link of help popover by hovering the trigger element. The
|
|
471
|
+
* Method to verify title, content and the help link of help popover by hovering the trigger element. The title, content, and link are located directly via their own testids.
|
|
541
472
|
*
|
|
542
473
|
* customPageContext (optional): The custom page on which tooltip needs to be verified. Defaults to this.page.
|
|
543
474
|
*
|
|
@@ -630,6 +561,7 @@ declare class CustomCommands {
|
|
|
630
561
|
* @endexample
|
|
631
562
|
*/
|
|
632
563
|
hideTooltip: (triggerElement: Locator, customPageContext?: Page) => Promise<void>;
|
|
564
|
+
protected hidePopoverContent: (contentLocator: Locator, customPageContext?: Page) => Promise<void>;
|
|
633
565
|
/**
|
|
634
566
|
*
|
|
635
567
|
* Verifies the breadcrumbs in the header of a web page. It takes the following parameters:
|
|
@@ -868,119 +800,6 @@ declare class CustomCommands {
|
|
|
868
800
|
*/
|
|
869
801
|
moveCursorAtBottom: () => Promise<void>;
|
|
870
802
|
}
|
|
871
|
-
declare class CustomCommandsV2 extends CustomCommands {
|
|
872
|
-
/**
|
|
873
|
-
*
|
|
874
|
-
* Command to select an option from a select input. It retries until the select
|
|
875
|
-
*
|
|
876
|
-
* operation is completed. It takes the following parameters:
|
|
877
|
-
*
|
|
878
|
-
* label (optional): is the label for the menu and the select input container. Default is nui.
|
|
879
|
-
*
|
|
880
|
-
* value: is the value to be selected.
|
|
881
|
-
*
|
|
882
|
-
* page (optional): is the custom page context. Default is POM's page.
|
|
883
|
-
*
|
|
884
|
-
* options: is an object with the following optional parameters:
|
|
885
|
-
*
|
|
886
|
-
* visiblityTimeout: is the time to wait for the select input to be visible. Default is 2000ms.
|
|
887
|
-
*
|
|
888
|
-
* textAssertionTimeout: is the time to wait for the selected value to be visible in the select input. Default is 1000ms.
|
|
889
|
-
*
|
|
890
|
-
* retryTimeout: is the time to wait until the select operation is completed. Default is 20000ms.
|
|
891
|
-
*
|
|
892
|
-
* @example
|
|
893
|
-
*
|
|
894
|
-
* await neetoPlaywrightUtilities.selectOptionFromDropdown({
|
|
895
|
-
* label,
|
|
896
|
-
* value,
|
|
897
|
-
* options = {},
|
|
898
|
-
* });
|
|
899
|
-
* // or
|
|
900
|
-
*
|
|
901
|
-
* await neetoPlaywrightUtilities.selectOptionFromDropdown({
|
|
902
|
-
* label,
|
|
903
|
-
* value,
|
|
904
|
-
* options:{
|
|
905
|
-
* visiblityTimeout:200,
|
|
906
|
-
* textAssertionTimeout:1000,
|
|
907
|
-
* retryTimeout:20000
|
|
908
|
-
* },
|
|
909
|
-
* });
|
|
910
|
-
* @endexample
|
|
911
|
-
*/
|
|
912
|
-
selectOptionFromDropdown: ({
|
|
913
|
-
label,
|
|
914
|
-
value,
|
|
915
|
-
page,
|
|
916
|
-
options
|
|
917
|
-
}: SelectOptionFromDropdownParams) => Promise<void>;
|
|
918
|
-
/**
|
|
919
|
-
*
|
|
920
|
-
* Method to verify title, content and the help link of help popover by hovering the trigger element. The CustomCommandsV2 variant locates the title, content, and link directly via their own testids (rather than inside a shared tooltip container).
|
|
921
|
-
*
|
|
922
|
-
* customPageContext (optional): The custom page on which tooltip needs to be verified. Defaults to this.page.
|
|
923
|
-
*
|
|
924
|
-
* triggerElement: The element hovering which the tooltip will be shown.
|
|
925
|
-
*
|
|
926
|
-
* title (optional): The title of the tooltip container.
|
|
927
|
-
*
|
|
928
|
-
* content (optional): The content of the tooltip container.
|
|
929
|
-
*
|
|
930
|
-
* helpURL (optional): The help URL in tooltip container navigating to the help docs.
|
|
931
|
-
*
|
|
932
|
-
* @example
|
|
933
|
-
*
|
|
934
|
-
* await verifyHelpPopover({
|
|
935
|
-
* customPageContext: page,
|
|
936
|
-
* triggerElement: page.getByTestId("tooltip"),
|
|
937
|
-
* content: "content of tooltip container",
|
|
938
|
-
* });
|
|
939
|
-
* @endexample
|
|
940
|
-
*/
|
|
941
|
-
verifyHelpPopover: ({
|
|
942
|
-
triggerElement,
|
|
943
|
-
title,
|
|
944
|
-
content,
|
|
945
|
-
helpURL,
|
|
946
|
-
customPageContext
|
|
947
|
-
}: VerifyHelpPopoverProps) => Promise<void>;
|
|
948
|
-
/**
|
|
949
|
-
*
|
|
950
|
-
* Method to verify the help link on the page.
|
|
951
|
-
*
|
|
952
|
-
* helpURL: URL to match against the help link's href attribute. Matching is case-insensitive.
|
|
953
|
-
*
|
|
954
|
-
* @example
|
|
955
|
-
*
|
|
956
|
-
* await neetoPlaywrightUtilities.verifyHelpText("https://help.neetoform.com/a-sj53mrx");
|
|
957
|
-
* @endexample
|
|
958
|
-
*/
|
|
959
|
-
verifyHelpText: (helpURL: string) => Promise<void>;
|
|
960
|
-
/**
|
|
961
|
-
*
|
|
962
|
-
* Verifies the breadcrumbs in the header of a web page. It takes the following parameters:
|
|
963
|
-
*
|
|
964
|
-
* titlesAndRoutes: An array of objects containing the titles and routes of the breadcrumbs to verify. The order of the array must match the display order of breadcrumbs on the page.
|
|
965
|
-
*
|
|
966
|
-
* @example
|
|
967
|
-
*
|
|
968
|
-
* await neetoPlaywrightUtilities.verifyBreadcrumbs([
|
|
969
|
-
* { title: "Home", route: "/" },
|
|
970
|
-
* { title: "Category", route: "/category" },
|
|
971
|
-
* { title: "Subcategory", route: "/category/subcategory" }
|
|
972
|
-
* ]);
|
|
973
|
-
* @endexample
|
|
974
|
-
*/
|
|
975
|
-
verifyBreadcrumbs: (titlesAndRoutes: BreadcrumbTitleAndRoute[]) => Promise<void>;
|
|
976
|
-
protected hidePopoverContent: (triggerElement: Locator, contentLocator: Locator, customPageContext?: Page) => Promise<void>;
|
|
977
|
-
}
|
|
978
|
-
declare class ApiKeysApi {
|
|
979
|
-
private neetoPlaywrightUtilities;
|
|
980
|
-
private readonly API_KEYS_BASE_URL;
|
|
981
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
982
|
-
create: (label: string, type?: "general" | "zapier") => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
983
|
-
}
|
|
984
803
|
declare class CustomDomainApi {
|
|
985
804
|
private neetoPlaywrightUtilities;
|
|
986
805
|
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
@@ -1060,13 +879,6 @@ declare class MailpitApi {
|
|
|
1060
879
|
readonly baseUrl: string;
|
|
1061
880
|
private readonly headers;
|
|
1062
881
|
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1063
|
-
/**
|
|
1064
|
-
*
|
|
1065
|
-
* Used to authorize the Fastmail API and get the account details. There is usually no need to call this method since this is invoked when the fixture is setup and will save the credentials for all the future callback of mailerUtils methods.
|
|
1066
|
-
*
|
|
1067
|
-
* This method doesn't accept any arguments and doesn't return anything.
|
|
1068
|
-
*
|
|
1069
|
-
*/
|
|
1070
882
|
authorizeAndSetAccountId: () => Promise<void>;
|
|
1071
883
|
private warnOnUnexpectedResponse;
|
|
1072
884
|
search: ({
|
|
@@ -1079,18 +891,6 @@ declare class MailpitApi {
|
|
|
1079
891
|
fetchRawMessage: (id: string) => Promise<Buffer<ArrayBufferLike> | null>;
|
|
1080
892
|
deleteMessages: (ids: string[]) => Promise<void>;
|
|
1081
893
|
}
|
|
1082
|
-
declare class MemberApis {
|
|
1083
|
-
private neetoPlaywrightUtilities;
|
|
1084
|
-
private readonly teamMembersBaseUrl;
|
|
1085
|
-
private readonly teamsBaseUrl;
|
|
1086
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1087
|
-
create: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1088
|
-
jobStatus: (jobId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1089
|
-
fetch: (params?: ParamProps) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1090
|
-
fetchPermissions: () => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1091
|
-
update: (memberId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1092
|
-
bulkUpdate: (body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1093
|
-
}
|
|
1094
894
|
type EmailAddress = string | string[];
|
|
1095
895
|
interface RailsEmailAttachment {
|
|
1096
896
|
name: string;
|
|
@@ -1132,27 +932,6 @@ declare class RailsEmailApiClient {
|
|
|
1132
932
|
clearEmails: () => Promise<unknown>;
|
|
1133
933
|
clearStaleEmails: (receivedBefore: string) => Promise<unknown>;
|
|
1134
934
|
}
|
|
1135
|
-
declare class RoleApis {
|
|
1136
|
-
private neetoPlaywrightUtilities;
|
|
1137
|
-
/**
|
|
1138
|
-
*
|
|
1139
|
-
* Description: Base URL for API endpoints.
|
|
1140
|
-
*
|
|
1141
|
-
* Value: "/api/v1"
|
|
1142
|
-
*
|
|
1143
|
-
* @example
|
|
1144
|
-
*
|
|
1145
|
-
* import { BASE_URL } from "@neetoplaywright";
|
|
1146
|
-
* @endexample
|
|
1147
|
-
*/
|
|
1148
|
-
private readonly BASE_URL;
|
|
1149
|
-
private readonly ORGANIZATION_ROLES_URL;
|
|
1150
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1151
|
-
fetch: (endpoint: "teams" | "permissions" | "organization_roles") => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1152
|
-
addRole: (roleName: string, permissionIds: string[]) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1153
|
-
editRole: (roleId: string, body: Record<string, unknown>) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1154
|
-
deleteRole: (roleId: string, standardRoleId: string) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1155
|
-
}
|
|
1156
935
|
type SecurityAuthType = "password" | "email" | "invite" | "member";
|
|
1157
936
|
type SecurityRequestParams = {
|
|
1158
937
|
ownerId?: string;
|
|
@@ -1187,17 +966,6 @@ declare class SecurityApi {
|
|
|
1187
966
|
value
|
|
1188
967
|
}: SecurityRequestParams) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1189
968
|
}
|
|
1190
|
-
declare class TagsApi {
|
|
1191
|
-
private neetoPlaywrightUtilities;
|
|
1192
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1193
|
-
create: ({
|
|
1194
|
-
body,
|
|
1195
|
-
tagsRequestUrl
|
|
1196
|
-
}: {
|
|
1197
|
-
body: Record<string, unknown>;
|
|
1198
|
-
tagsRequestUrl: string;
|
|
1199
|
-
}) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1200
|
-
}
|
|
1201
969
|
interface ThankYouApiRequestParams {
|
|
1202
970
|
entityId: string;
|
|
1203
971
|
title: string;
|
|
@@ -1356,7 +1124,6 @@ declare class Health {
|
|
|
1356
1124
|
private readonly email;
|
|
1357
1125
|
private loginPage;
|
|
1358
1126
|
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
1359
|
-
private getProductSpecificRolesRoute;
|
|
1360
1127
|
/**
|
|
1361
1128
|
*
|
|
1362
1129
|
* Navigates to the given route (default: /admin/admin-panel), waits for the page to
|
|
@@ -1395,8 +1162,14 @@ declare class Health {
|
|
|
1395
1162
|
*
|
|
1396
1163
|
* @example
|
|
1397
1164
|
*
|
|
1165
|
+
* import { RolesPage } from "@neetoteammembers";
|
|
1166
|
+
*
|
|
1398
1167
|
* await health.verifyAppIsLive(async () => {
|
|
1399
|
-
* await test.step("
|
|
1168
|
+
* await test.step("3: Verify adding & removing roles", () =>
|
|
1169
|
+
* new RolesPage(page, neetoPlaywrightUtilities).verifyAddAndDeleteRole()
|
|
1170
|
+
* );
|
|
1171
|
+
*
|
|
1172
|
+
* await test.step("4: Verify dashboard", async () => {
|
|
1400
1173
|
* await expect(
|
|
1401
1174
|
* page.getByRole("heading", { name: "Dashboard" })
|
|
1402
1175
|
* ).toBeVisible();
|
|
@@ -1527,7 +1300,7 @@ declare class RailsEmailUtils {
|
|
|
1527
1300
|
*
|
|
1528
1301
|
* test("sample test", async ({ mailerUtils }) => {
|
|
1529
1302
|
* const message = await mailerUtils.listMessages({
|
|
1530
|
-
* to:
|
|
1303
|
+
* to: mailpitEmailId,
|
|
1531
1304
|
* from: senderEmailId,
|
|
1532
1305
|
* subject: "login code",
|
|
1533
1306
|
* body: "neeto",
|
|
@@ -1548,7 +1321,7 @@ declare class RailsEmailUtils {
|
|
|
1548
1321
|
*
|
|
1549
1322
|
* This method is used to find a first email matching the search criteria. On top of the listMessage method, this method waits until a specific mail is received or the timeout is exceeded. This method is useful for fetching an email once an action is triggered since it waits for the message delivery and can be customized according to delays in email deliveries.
|
|
1550
1323
|
*
|
|
1551
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to find messages. In other environments, it
|
|
1324
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to find messages. In other environments, it reads Mailpit.
|
|
1552
1325
|
*
|
|
1553
1326
|
* messageSearchCriteria: An object containing the search criteria for matching the messages. The object can contain the keys, from, to, subject and body. All the keys of the object are optional. The values of the object are of string type and are case-insensitive. The following key-value pairs can be used:
|
|
1554
1327
|
*
|
|
@@ -1596,7 +1369,7 @@ declare class RailsEmailUtils {
|
|
|
1596
1369
|
*
|
|
1597
1370
|
* test("sample test", async ({ mailerUtils }) => {
|
|
1598
1371
|
* const message = await mailerUtils.findMessage({
|
|
1599
|
-
* to:
|
|
1372
|
+
* to: mailpitEmailId,
|
|
1600
1373
|
* from: senderEmailId,
|
|
1601
1374
|
* subject: "login code",
|
|
1602
1375
|
* body: "neeto",
|
|
@@ -1621,7 +1394,7 @@ declare class RailsEmailUtils {
|
|
|
1621
1394
|
*
|
|
1622
1395
|
* A helper method that is used to find the first code value from the matching email body. This method has been built to match the Neeto OTP emails.
|
|
1623
1396
|
*
|
|
1624
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to find OTP. In other environments, it
|
|
1397
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to find OTP. In other environments, it reads Mailpit.
|
|
1625
1398
|
*
|
|
1626
1399
|
* The method accepts the following named arguments:
|
|
1627
1400
|
*
|
|
@@ -1649,7 +1422,7 @@ declare class RailsEmailUtils {
|
|
|
1649
1422
|
*
|
|
1650
1423
|
* This method is used to return an attachment from the first email matching the search criteria. It supports filtering attachments by name, by MIME content-type, or both. If no matching attachment is found, an error is thrown.
|
|
1651
1424
|
*
|
|
1652
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to fetch attachments. In other environments, it
|
|
1425
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to fetch attachments. In other environments, it reads Mailpit.
|
|
1653
1426
|
*
|
|
1654
1427
|
* attachmentFilter: An object used to identify the attachment. At least one of the following keys should be provided:
|
|
1655
1428
|
*
|
|
@@ -1694,7 +1467,7 @@ declare class RailsEmailUtils {
|
|
|
1694
1467
|
* const attachment = await mailerUtils.getEmailAttachment(
|
|
1695
1468
|
* { name: "invite" },
|
|
1696
1469
|
* {
|
|
1697
|
-
* to:
|
|
1470
|
+
* to: mailpitEmailId,
|
|
1698
1471
|
* from: senderEmailId,
|
|
1699
1472
|
* subject: "Event details",
|
|
1700
1473
|
* },
|
|
@@ -1712,7 +1485,7 @@ declare class RailsEmailUtils {
|
|
|
1712
1485
|
* const attachment = await mailerUtils.getEmailAttachment(
|
|
1713
1486
|
* { type: "text/calendar" },
|
|
1714
1487
|
* {
|
|
1715
|
-
* to:
|
|
1488
|
+
* to: mailpitEmailId,
|
|
1716
1489
|
* from: senderEmailId,
|
|
1717
1490
|
* subject: "Event details",
|
|
1718
1491
|
* }
|
|
@@ -1729,44 +1502,6 @@ declare class RailsEmailUtils {
|
|
|
1729
1502
|
timeout
|
|
1730
1503
|
}?: Partial<FindMessageFilterOptions$1> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<AttachmentDetails$1 | undefined>;
|
|
1731
1504
|
}
|
|
1732
|
-
interface FastmailHeaders {
|
|
1733
|
-
"Content-Type": "application/json";
|
|
1734
|
-
Authorization: `Bearer ${string}`;
|
|
1735
|
-
}
|
|
1736
|
-
declare class FastmailApi {
|
|
1737
|
-
private neetoPlaywrightUtilities;
|
|
1738
|
-
headers: FastmailHeaders;
|
|
1739
|
-
accountId: string | undefined;
|
|
1740
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1741
|
-
private assertApiKey;
|
|
1742
|
-
/**
|
|
1743
|
-
*
|
|
1744
|
-
* Used to authorize the Fastmail API and get the account details. There is usually no need to call this method since this is invoked when the fixture is setup and will save the credentials for all the future callback of mailerUtils methods.
|
|
1745
|
-
*
|
|
1746
|
-
* This method doesn't accept any arguments and doesn't return anything.
|
|
1747
|
-
*
|
|
1748
|
-
*/
|
|
1749
|
-
authorizeAndSetAccountId: () => Promise<void>;
|
|
1750
|
-
/**
|
|
1751
|
-
*
|
|
1752
|
-
* Command to send an API request.
|
|
1753
|
-
*
|
|
1754
|
-
* @example
|
|
1755
|
-
*
|
|
1756
|
-
* await neetoPlaywrightUtilities.apiRequest({
|
|
1757
|
-
* url: "/api/v1/tags",
|
|
1758
|
-
* failOnStatusCode, // throws error for status codes other than 2xx and 3xx
|
|
1759
|
-
* body, // request body
|
|
1760
|
-
* method, // request method "get" | "patch" | "post" | "put" | "delete"
|
|
1761
|
-
* params, // request params
|
|
1762
|
-
* headers, // aditional request headers
|
|
1763
|
-
* timeout, // request timeout in milliseconds (default: 30000)
|
|
1764
|
-
* });
|
|
1765
|
-
* @endexample
|
|
1766
|
-
*/
|
|
1767
|
-
apiRequest: (method: string, body: Record<string, unknown>) => Promise<any>;
|
|
1768
|
-
fetchAttachments: (blobId: string, attachmentName: string) => Promise<playwright_core.APIResponse<any> | undefined>;
|
|
1769
|
-
}
|
|
1770
1505
|
type Range<N extends number, Acc extends number[] = []> = Acc["length"] extends N ? Exclude<Acc[number], 0 | Acc["length"]> | N : Range<N, [...Acc, Acc["length"]]>;
|
|
1771
1506
|
interface MessageSearchCriteria {
|
|
1772
1507
|
from: string;
|
|
@@ -1834,14 +1569,19 @@ interface FormattedList {
|
|
|
1834
1569
|
}
|
|
1835
1570
|
declare class MailerUtils {
|
|
1836
1571
|
private neetoPlaywrightUtilities;
|
|
1837
|
-
accountId: string | undefined;
|
|
1838
|
-
fastmailApi: FastmailApi;
|
|
1839
1572
|
mailpitApi: MailpitApi;
|
|
1840
1573
|
railsEmailUtils: RailsEmailUtils;
|
|
1841
1574
|
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
1842
|
-
private queryEmail;
|
|
1843
1575
|
private buildMessageBodies;
|
|
1576
|
+
private matchesCriteria;
|
|
1577
|
+
private toIdentifiers;
|
|
1578
|
+
private toMailpitAttachments;
|
|
1579
|
+
private toFormattedList;
|
|
1580
|
+
private matchesSummaryCriteria;
|
|
1581
|
+
private warnOnNonMailpitRecipient;
|
|
1582
|
+
private queryMailpitEmails;
|
|
1844
1583
|
private getEmails;
|
|
1584
|
+
private pollForMailpitSummaries;
|
|
1845
1585
|
/**
|
|
1846
1586
|
*
|
|
1847
1587
|
* This method is used to list a set of messages matching a specific search criteria. It immediately returns the available list of messages matching the search criteria and doesn't wait until a matching message is found. Due to this reason delays in email deliveries should be accounted while using this method. This method is useful in asserting negative test cases and asserting a list of emails matching a certain pattern.
|
|
@@ -1894,7 +1634,7 @@ declare class MailerUtils {
|
|
|
1894
1634
|
*
|
|
1895
1635
|
* test("sample test", async ({ mailerUtils }) => {
|
|
1896
1636
|
* const message = await mailerUtils.listMessages({
|
|
1897
|
-
* to:
|
|
1637
|
+
* to: mailpitEmailId,
|
|
1898
1638
|
* from: senderEmailId,
|
|
1899
1639
|
* subject: "login code",
|
|
1900
1640
|
* body: "neeto",
|
|
@@ -1906,18 +1646,17 @@ declare class MailerUtils {
|
|
|
1906
1646
|
* });
|
|
1907
1647
|
* @endexample
|
|
1908
1648
|
*/
|
|
1909
|
-
listMessages: (messageSearchCriteria?: Partial<MessageSearchCriteria> | undefined, listMessagesFilterCriteria?: Partial<ListMessagesFilterCriteria> | undefined) => Promise<FormattedList
|
|
1649
|
+
listMessages: (messageSearchCriteria?: Partial<MessageSearchCriteria> | undefined, listMessagesFilterCriteria?: Partial<ListMessagesFilterCriteria> | undefined) => Promise<FormattedList[]>;
|
|
1910
1650
|
getEmailIds: (messageSearchCriteria?: Partial<MessageSearchCriteria>, {
|
|
1911
1651
|
timeout,
|
|
1912
1652
|
receivedAfter,
|
|
1913
1653
|
expectedEmailCount
|
|
1914
1654
|
}?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<string[]>;
|
|
1915
|
-
private matchesCriteria;
|
|
1916
1655
|
/**
|
|
1917
1656
|
*
|
|
1918
1657
|
* This method is used to find a first email matching the search criteria. On top of the listMessage method, this method waits until a specific mail is received or the timeout is exceeded. This method is useful for fetching an email once an action is triggered since it waits for the message delivery and can be customized according to delays in email deliveries.
|
|
1919
1658
|
*
|
|
1920
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to find messages. In other environments, it
|
|
1659
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to find messages. In other environments, it reads Mailpit.
|
|
1921
1660
|
*
|
|
1922
1661
|
* messageSearchCriteria: An object containing the search criteria for matching the messages. The object can contain the keys, from, to, subject and body. All the keys of the object are optional. The values of the object are of string type and are case-insensitive. The following key-value pairs can be used:
|
|
1923
1662
|
*
|
|
@@ -1965,7 +1704,7 @@ declare class MailerUtils {
|
|
|
1965
1704
|
*
|
|
1966
1705
|
* test("sample test", async ({ mailerUtils }) => {
|
|
1967
1706
|
* const message = await mailerUtils.findMessage({
|
|
1968
|
-
* to:
|
|
1707
|
+
* to: mailpitEmailId,
|
|
1969
1708
|
* from: senderEmailId,
|
|
1970
1709
|
* subject: "login code",
|
|
1971
1710
|
* body: "neeto",
|
|
@@ -1986,7 +1725,7 @@ declare class MailerUtils {
|
|
|
1986
1725
|
*
|
|
1987
1726
|
* A helper method that is used to find the first code value from the matching email body. This method has been built to match the Neeto OTP emails.
|
|
1988
1727
|
*
|
|
1989
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to find OTP. In other environments, it
|
|
1728
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to find OTP. In other environments, it reads Mailpit.
|
|
1990
1729
|
*
|
|
1991
1730
|
* The method accepts the following named arguments:
|
|
1992
1731
|
*
|
|
@@ -2012,9 +1751,9 @@ declare class MailerUtils {
|
|
|
2012
1751
|
}: FindOtpFromEmailParams) => Promise<string | undefined>;
|
|
2013
1752
|
/**
|
|
2014
1753
|
*
|
|
2015
|
-
* Generates a random
|
|
1754
|
+
* Generates a random Mailpit email on MAILPIT_DOMAIN_NAME (default mail.neetoautomation.com).
|
|
2016
1755
|
*
|
|
2017
|
-
* Returns a random
|
|
1756
|
+
* Returns a random email ending with the Mailpit domain.
|
|
2018
1757
|
*
|
|
2019
1758
|
*/
|
|
2020
1759
|
generateRandomEmail: () => string;
|
|
@@ -2026,7 +1765,7 @@ declare class MailerUtils {
|
|
|
2026
1765
|
*
|
|
2027
1766
|
* This method is used to return an attachment from the first email matching the search criteria. It supports filtering attachments by name, by MIME content-type, or both. If no matching attachment is found, an error is thrown.
|
|
2028
1767
|
*
|
|
2029
|
-
* Note: In development environment, this method uses the Rails testing HTTP API to fetch attachments. In other environments, it
|
|
1768
|
+
* Note: In development environment, this method uses the Rails testing HTTP API to fetch attachments. In other environments, it reads Mailpit.
|
|
2030
1769
|
*
|
|
2031
1770
|
* attachmentFilter: An object used to identify the attachment. At least one of the following keys should be provided:
|
|
2032
1771
|
*
|
|
@@ -2071,7 +1810,7 @@ declare class MailerUtils {
|
|
|
2071
1810
|
* const attachment = await mailerUtils.getEmailAttachment(
|
|
2072
1811
|
* { name: "invite" },
|
|
2073
1812
|
* {
|
|
2074
|
-
* to:
|
|
1813
|
+
* to: mailpitEmailId,
|
|
2075
1814
|
* from: senderEmailId,
|
|
2076
1815
|
* subject: "Event details",
|
|
2077
1816
|
* },
|
|
@@ -2089,7 +1828,7 @@ declare class MailerUtils {
|
|
|
2089
1828
|
* const attachment = await mailerUtils.getEmailAttachment(
|
|
2090
1829
|
* { type: "text/calendar" },
|
|
2091
1830
|
* {
|
|
2092
|
-
* to:
|
|
1831
|
+
* to: mailpitEmailId,
|
|
2093
1832
|
* from: senderEmailId,
|
|
2094
1833
|
* subject: "Event details",
|
|
2095
1834
|
* }
|
|
@@ -2105,45 +1844,6 @@ declare class MailerUtils {
|
|
|
2105
1844
|
receivedAfter,
|
|
2106
1845
|
expectedEmailCount
|
|
2107
1846
|
}?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<AttachmentDetails | undefined>;
|
|
2108
|
-
private toIdentifiers;
|
|
2109
|
-
private toMailpitAttachments;
|
|
2110
|
-
private toFormattedList;
|
|
2111
|
-
private matchesSummaryCriteria;
|
|
2112
|
-
private warnOnNonMailpitRecipient;
|
|
2113
|
-
private queryMailpitEmails;
|
|
2114
|
-
private getEmailsV2;
|
|
2115
|
-
private pollForMailpitSummaries;
|
|
2116
|
-
listMessagesV2: (messageSearchCriteria?: Partial<MessageSearchCriteria> | undefined, listMessagesFilterCriteria?: Partial<ListMessagesFilterCriteria> | undefined) => Promise<FormattedList[]>;
|
|
2117
|
-
getEmailIdsV2: (messageSearchCriteria?: Partial<MessageSearchCriteria>, {
|
|
2118
|
-
timeout,
|
|
2119
|
-
receivedAfter,
|
|
2120
|
-
expectedEmailCount
|
|
2121
|
-
}?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<string[]>;
|
|
2122
|
-
findMessageV2: (messageSearchCriteria?: Partial<MessageSearchCriteria>, {
|
|
2123
|
-
timeout,
|
|
2124
|
-
receivedAfter,
|
|
2125
|
-
expectedEmailCount
|
|
2126
|
-
}?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<FormattedList | Record<string, never>>;
|
|
2127
|
-
findOtpFromEmailV2: ({
|
|
2128
|
-
email,
|
|
2129
|
-
subjectSubstring,
|
|
2130
|
-
timeout,
|
|
2131
|
-
receivedAfter,
|
|
2132
|
-
expectedEmailCount
|
|
2133
|
-
}: FindOtpFromEmailParams) => Promise<string | undefined>;
|
|
2134
|
-
generateRandomEmailV2: () => string;
|
|
2135
|
-
getLatestMessageIdV2: (subject: string, {
|
|
2136
|
-
timeout,
|
|
2137
|
-
receivedAfter
|
|
2138
|
-
}?: Partial<FindMessageFilterOptions> | undefined) => Promise<string | undefined>;
|
|
2139
|
-
getEmailAttachmentV2: ({
|
|
2140
|
-
name,
|
|
2141
|
-
type
|
|
2142
|
-
}: AttachmentFilter, messageSearchCriteria?: Partial<MessageSearchCriteria>, {
|
|
2143
|
-
timeout,
|
|
2144
|
-
receivedAfter,
|
|
2145
|
-
expectedEmailCount
|
|
2146
|
-
}?: Partial<FindMessageFilterOptions> | undefined, shouldThrowErrorOnTimeout?: boolean) => Promise<AttachmentDetails | undefined>;
|
|
2147
1847
|
}
|
|
2148
1848
|
/**
|
|
2149
1849
|
*
|
|
@@ -2795,9 +2495,7 @@ declare class HelpAndProfilePage {
|
|
|
2795
2495
|
}: HelpAndProfilePageInitializerProps);
|
|
2796
2496
|
/**
|
|
2797
2497
|
*
|
|
2798
|
-
* Opens the Help Center
|
|
2799
|
-
*
|
|
2800
|
-
* V2 variant clicks the floating action menu button instead of hovering it.
|
|
2498
|
+
* Opens the Help Center by clicking the floating action menu button and expects the help menu to be visible.
|
|
2801
2499
|
*
|
|
2802
2500
|
* @example
|
|
2803
2501
|
*
|
|
@@ -2889,8 +2587,9 @@ declare class HelpAndProfilePage {
|
|
|
2889
2587
|
verifyLogout: () => Promise<void>;
|
|
2890
2588
|
protected openAuthLinkAndVerify: ({
|
|
2891
2589
|
linkTestId,
|
|
2892
|
-
redirectLink
|
|
2893
|
-
|
|
2590
|
+
redirectLink,
|
|
2591
|
+
appPath
|
|
2592
|
+
}: OpenAuthLinkAndVerifyProps) => Promise<void>;
|
|
2894
2593
|
protected fillTextFields: ({
|
|
2895
2594
|
firstName,
|
|
2896
2595
|
lastName,
|
|
@@ -2916,9 +2615,9 @@ declare class HelpAndProfilePage {
|
|
|
2916
2615
|
protected uploadImage: (imageName: string) => Promise<void>;
|
|
2917
2616
|
/**
|
|
2918
2617
|
*
|
|
2919
|
-
* Updates basic profile info in the profile
|
|
2618
|
+
* Updates basic profile info in the profile sheet (image, fields, dropdowns,
|
|
2920
2619
|
*
|
|
2921
|
-
* submit, then waits for the
|
|
2620
|
+
* submit, then waits for the sheet to close).
|
|
2922
2621
|
*
|
|
2923
2622
|
* contact: First name, last name, and optional phone number. settings:
|
|
2924
2623
|
*
|
|
@@ -2951,7 +2650,7 @@ declare class HelpAndProfilePage {
|
|
|
2951
2650
|
}: BasicInfoParams) => Promise<void>;
|
|
2952
2651
|
/**
|
|
2953
2652
|
*
|
|
2954
|
-
* Opens the My profile
|
|
2653
|
+
* Opens the My profile sheet from Help Center and verifies the sheet header.
|
|
2955
2654
|
*
|
|
2956
2655
|
* @example
|
|
2957
2656
|
*
|
|
@@ -3018,10 +2717,6 @@ declare class HelpAndProfilePage {
|
|
|
3018
2717
|
* @endexample
|
|
3019
2718
|
*/
|
|
3020
2719
|
verifyWorkspace: () => Promise<void>;
|
|
3021
|
-
/**
|
|
3022
|
-
* @deprecated This method is deprecated. Use verifyWorkspace instead.
|
|
3023
|
-
*/
|
|
3024
|
-
verifyProfileAndOrganizationLinks: () => Promise<void>;
|
|
3025
2720
|
/**
|
|
3026
2721
|
*
|
|
3027
2722
|
* Opens and verifies the Neeto status in Help Center.
|
|
@@ -3077,119 +2772,6 @@ declare class HelpAndProfilePage {
|
|
|
3077
2772
|
*/
|
|
3078
2773
|
verifyThemeSwitcher: (expectedScreenshot: string) => Promise<void>;
|
|
3079
2774
|
}
|
|
3080
|
-
declare class HelpAndProfilePageV2 extends HelpAndProfilePage {
|
|
3081
|
-
openAppSwitcher: () => Promise<void>;
|
|
3082
|
-
/**
|
|
3083
|
-
*
|
|
3084
|
-
* Opens the Help Center and expects the chat button within it to be visible. The
|
|
3085
|
-
*
|
|
3086
|
-
* V2 variant clicks the floating action menu button instead of hovering it.
|
|
3087
|
-
*
|
|
3088
|
-
* @example
|
|
3089
|
-
*
|
|
3090
|
-
* await helpAndProfilePage.openHelpCenter();
|
|
3091
|
-
* @endexample
|
|
3092
|
-
*/
|
|
3093
|
-
openHelpCenter: () => Promise<void>;
|
|
3094
|
-
/**
|
|
3095
|
-
*
|
|
3096
|
-
* Opens and verifies the keyboard shortcuts pane in Help Center. It takes the
|
|
3097
|
-
*
|
|
3098
|
-
* following parameters:
|
|
3099
|
-
*
|
|
3100
|
-
* productShortcuts: Array of objects containing description and sequence of
|
|
3101
|
-
*
|
|
3102
|
-
* product shortcuts. osPlatform: Platform for keyboard shortcuts ("mac" or
|
|
3103
|
-
*
|
|
3104
|
-
* "windows").
|
|
3105
|
-
*
|
|
3106
|
-
* @example
|
|
3107
|
-
*
|
|
3108
|
-
* await helpAndProfilePage.openAndVerifyKeyboardShortcutsPane(
|
|
3109
|
-
* productShortcuts,
|
|
3110
|
-
* "windows"
|
|
3111
|
-
* );
|
|
3112
|
-
* @endexample
|
|
3113
|
-
*/
|
|
3114
|
-
openAndVerifyKeyboardShortcutsPane: (productShortcuts: {
|
|
3115
|
-
description: string;
|
|
3116
|
-
sequence: string;
|
|
3117
|
-
}[], osPlatform?: "mac" | "windows") => Promise<void>;
|
|
3118
|
-
protected openAuthLinkAndVerify: ({
|
|
3119
|
-
linkTestId,
|
|
3120
|
-
redirectLink,
|
|
3121
|
-
appPath
|
|
3122
|
-
}: OpenAuthLinkAndVerifyProps) => Promise<void>;
|
|
3123
|
-
/**
|
|
3124
|
-
*
|
|
3125
|
-
* Command to upload an image to image uploader and verify it. It takes the following parameters:
|
|
3126
|
-
*
|
|
3127
|
-
* localImagePath: Path to image.
|
|
3128
|
-
*
|
|
3129
|
-
* @example
|
|
3130
|
-
*
|
|
3131
|
-
* await neetoPlaywrightUtilities.uploadImage("../assets/image.png");
|
|
3132
|
-
* @endexample
|
|
3133
|
-
*/
|
|
3134
|
-
protected uploadImage: (imageName: string) => Promise<void>;
|
|
3135
|
-
/**
|
|
3136
|
-
*
|
|
3137
|
-
* Updates basic profile info in the profile pane (image, fields, dropdowns,
|
|
3138
|
-
*
|
|
3139
|
-
* submit, then waits for the pane to close).
|
|
3140
|
-
*
|
|
3141
|
-
* contact: First name, last name, and optional phone number. settings:
|
|
3142
|
-
*
|
|
3143
|
-
* Country, timezone, time format, and date format. imageName: File under
|
|
3144
|
-
*
|
|
3145
|
-
* images/ for the uploader.
|
|
3146
|
-
*
|
|
3147
|
-
* @example
|
|
3148
|
-
*
|
|
3149
|
-
* await helpAndProfilePage.updateBasicInfo({
|
|
3150
|
-
* contact: {
|
|
3151
|
-
* firstName: "Ada",
|
|
3152
|
-
* lastName: "Lovelace",
|
|
3153
|
-
* phoneNumber: "+1234567890",
|
|
3154
|
-
* },
|
|
3155
|
-
* settings: {
|
|
3156
|
-
* country: "Australia",
|
|
3157
|
-
* timeZone: "Australian Eastern Standard Time",
|
|
3158
|
-
* timeFormat: "24 hour",
|
|
3159
|
-
* dateFormat: "DD/MM/YYYY",
|
|
3160
|
-
* },
|
|
3161
|
-
* imageName: "sample.png",
|
|
3162
|
-
* });
|
|
3163
|
-
* @endexample
|
|
3164
|
-
*/
|
|
3165
|
-
updateBasicInfo: ({
|
|
3166
|
-
contact,
|
|
3167
|
-
settings,
|
|
3168
|
-
imageName
|
|
3169
|
-
}: BasicInfoParams) => Promise<void>;
|
|
3170
|
-
/**
|
|
3171
|
-
*
|
|
3172
|
-
* Opens the My profile pane from Help Center and verifies the pane header.
|
|
3173
|
-
*
|
|
3174
|
-
* @example
|
|
3175
|
-
*
|
|
3176
|
-
* await helpAndProfilePage.openProfile();
|
|
3177
|
-
* @endexample
|
|
3178
|
-
*/
|
|
3179
|
-
openProfile: () => Promise<void>;
|
|
3180
|
-
/**
|
|
3181
|
-
*
|
|
3182
|
-
* Verifies profile actions including billing/subscriptions access, update email
|
|
3183
|
-
*
|
|
3184
|
-
* navigation, and basic info update flow.
|
|
3185
|
-
*
|
|
3186
|
-
* @example
|
|
3187
|
-
*
|
|
3188
|
-
* await helpAndProfilePage.verifyProfile();
|
|
3189
|
-
* @endexample
|
|
3190
|
-
*/
|
|
3191
|
-
verifyProfile: () => Promise<void>;
|
|
3192
|
-
}
|
|
3193
2775
|
type IntegrationStatus = "connected" | "disconnected";
|
|
3194
2776
|
type PartialInterceptMultipleResponsesParams = Partial<InterceptMultipleResponsesParams>;
|
|
3195
2777
|
interface IntegrationBaseParams {
|
|
@@ -3690,137 +3272,6 @@ declare class SlackPage extends IntegrationBase {
|
|
|
3690
3272
|
kind
|
|
3691
3273
|
}: CreateNewSlackChannelParams) => Promise<void>;
|
|
3692
3274
|
}
|
|
3693
|
-
interface WebhooksPageParams {
|
|
3694
|
-
page: Page;
|
|
3695
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
3696
|
-
}
|
|
3697
|
-
type CallbackFunction = (args: Record<string, unknown>) => void;
|
|
3698
|
-
interface VerifyWebhookResponseParams extends Record<string, unknown> {
|
|
3699
|
-
callback?: CallbackFunction;
|
|
3700
|
-
parseFullResponseContent?: boolean;
|
|
3701
|
-
webhookToken: string;
|
|
3702
|
-
timeout?: number;
|
|
3703
|
-
}
|
|
3704
|
-
interface VerifyWebhookDeliveriesParams extends Record<string, unknown> {
|
|
3705
|
-
callback: CallbackFunction;
|
|
3706
|
-
}
|
|
3707
|
-
interface VerifyWebhookDeliveryByEventParams extends Record<string, unknown> {
|
|
3708
|
-
event: string;
|
|
3709
|
-
callbackToVerifyDeliveries: (args: Record<string, unknown>) => void;
|
|
3710
|
-
}
|
|
3711
|
-
declare class WebhooksPage {
|
|
3712
|
-
page: Page;
|
|
3713
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
3714
|
-
webhookSiteApi: WebhookSiteApi;
|
|
3715
|
-
t: TFunction;
|
|
3716
|
-
constructor({
|
|
3717
|
-
page,
|
|
3718
|
-
neetoPlaywrightUtilities
|
|
3719
|
-
}: WebhooksPageParams);
|
|
3720
|
-
/**
|
|
3721
|
-
*
|
|
3722
|
-
* Retrieves the webhook URL and token via API request from webhook.site.
|
|
3723
|
-
*
|
|
3724
|
-
* Object containing webhook site URL and token.
|
|
3725
|
-
*
|
|
3726
|
-
* @example
|
|
3727
|
-
*
|
|
3728
|
-
* const { webhookSiteURL, webhookToken } = await webhooksPage.getTokenViaAPI();
|
|
3729
|
-
* @endexample
|
|
3730
|
-
*/
|
|
3731
|
-
getTokenViaAPI: () => Promise<{
|
|
3732
|
-
webhookToken: never;
|
|
3733
|
-
webhookSiteURL: string;
|
|
3734
|
-
}>;
|
|
3735
|
-
/**
|
|
3736
|
-
*
|
|
3737
|
-
* Adds a webhook using the provided webhook site URL. It takes the following parameters:
|
|
3738
|
-
*
|
|
3739
|
-
* webhookSiteURL: URL of the webhook site.
|
|
3740
|
-
*
|
|
3741
|
-
* @example
|
|
3742
|
-
*
|
|
3743
|
-
* await webhooksPage.addWebhook({ webhookSiteURL: "https://example.com/webhook" });
|
|
3744
|
-
* @endexample
|
|
3745
|
-
*/
|
|
3746
|
-
addWebhook: ({
|
|
3747
|
-
webhookSiteURL
|
|
3748
|
-
}: {
|
|
3749
|
-
webhookSiteURL: string;
|
|
3750
|
-
}) => Promise<void>;
|
|
3751
|
-
/**
|
|
3752
|
-
*
|
|
3753
|
-
* Verifies the latest webhook response. It takes the following parameters:
|
|
3754
|
-
*
|
|
3755
|
-
* callback: Callback function to execute on parsed response.
|
|
3756
|
-
*
|
|
3757
|
-
* webhookToken: Token of the webhook.
|
|
3758
|
-
*
|
|
3759
|
-
* parseFullResponseContent: Option to pass the full response content to the callback function. Defaults to false.
|
|
3760
|
-
*
|
|
3761
|
-
* Other parameters to be passed to the callback function.
|
|
3762
|
-
*
|
|
3763
|
-
* timeout(optional): Timeout in milliseconds to fetch the latest response. Default is 20_000.
|
|
3764
|
-
*
|
|
3765
|
-
* @example
|
|
3766
|
-
*
|
|
3767
|
-
* await webhooksPage.verifyLatestWebhookResponse({
|
|
3768
|
-
* callback: ({ parsedResponse }) => console.log(parsedResponse),
|
|
3769
|
-
* webhookToken: "exampleToken",
|
|
3770
|
-
* timeout: 35_000
|
|
3771
|
-
* });
|
|
3772
|
-
* @endexample
|
|
3773
|
-
*/
|
|
3774
|
-
verifyLatestWebhookResponse: ({
|
|
3775
|
-
callback,
|
|
3776
|
-
webhookToken,
|
|
3777
|
-
parseFullResponseContent,
|
|
3778
|
-
timeout,
|
|
3779
|
-
...otherParams
|
|
3780
|
-
}: VerifyWebhookResponseParams) => Promise<void>;
|
|
3781
|
-
/**
|
|
3782
|
-
*
|
|
3783
|
-
* Verifies webhook deliveries. It takes the following parameters:
|
|
3784
|
-
*
|
|
3785
|
-
* callback: Callback function to execute on parsed response.
|
|
3786
|
-
*
|
|
3787
|
-
* Other parameters to be passed to the callback function.
|
|
3788
|
-
*
|
|
3789
|
-
* @example
|
|
3790
|
-
*
|
|
3791
|
-
* await webhooksPage.verifyWebhookDeliveries({
|
|
3792
|
-
* callback: ({ parsedResponse }) => console.log(parsedResponse)
|
|
3793
|
-
* });
|
|
3794
|
-
* @endexample
|
|
3795
|
-
*/
|
|
3796
|
-
verifyWebhookDeliveries: ({
|
|
3797
|
-
callback,
|
|
3798
|
-
...otherParams
|
|
3799
|
-
}: VerifyWebhookDeliveriesParams) => Promise<void>;
|
|
3800
|
-
/**
|
|
3801
|
-
*
|
|
3802
|
-
* Verifies webhook delivery by event. It takes the following parameters:
|
|
3803
|
-
*
|
|
3804
|
-
* event: Event name.
|
|
3805
|
-
*
|
|
3806
|
-
* callbackToVerifyDeliveries: Callback function to execute on parsed response.
|
|
3807
|
-
*
|
|
3808
|
-
* Other parameters to be passed to the callback function.
|
|
3809
|
-
*
|
|
3810
|
-
* @example
|
|
3811
|
-
*
|
|
3812
|
-
* await webhooksPage.verifyWebhookDeliveryByEvent({
|
|
3813
|
-
* event: "eventName",
|
|
3814
|
-
* callbackToVerifyDeliveries: ({ parsedResponse }) => console.log(parsedResponse)
|
|
3815
|
-
* });
|
|
3816
|
-
* @endexample
|
|
3817
|
-
*/
|
|
3818
|
-
verifyWebhookDeliveryByEvent: ({
|
|
3819
|
-
event,
|
|
3820
|
-
callbackToVerifyDeliveries,
|
|
3821
|
-
...fieldsToBeVerified
|
|
3822
|
-
}: VerifyWebhookDeliveryByEventParams) => Promise<void>;
|
|
3823
|
-
}
|
|
3824
3275
|
interface ZapierPageInitializer {
|
|
3825
3276
|
page: Page;
|
|
3826
3277
|
neetoPlaywrightUtilities: CustomCommands;
|
|
@@ -3837,6 +3288,9 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
3837
3288
|
zapierWebPage: Page;
|
|
3838
3289
|
continueButton: Locator;
|
|
3839
3290
|
mailerUtils: MailerUtils;
|
|
3291
|
+
private readonly zapId;
|
|
3292
|
+
private readonly zapierLoginEmail;
|
|
3293
|
+
private readonly zapierLoginPassword;
|
|
3840
3294
|
private stepBlock;
|
|
3841
3295
|
private navbar;
|
|
3842
3296
|
private zapToggle;
|
|
@@ -3960,79 +3414,6 @@ declare class ZapierPage extends IntegrationBase {
|
|
|
3960
3414
|
* @endexample
|
|
3961
3415
|
*/
|
|
3962
3416
|
disconnectAndVerify: (toastMessage?: string) => Promise<void>;
|
|
3963
|
-
/**
|
|
3964
|
-
*
|
|
3965
|
-
* Creates a new Zapier API key with the given label and copies it to the
|
|
3966
|
-
*
|
|
3967
|
-
* clipboard.
|
|
3968
|
-
*
|
|
3969
|
-
* apiKeyLabel : The label/name to assign to the newly created API key.
|
|
3970
|
-
*
|
|
3971
|
-
* The value of the generated API key copied from the clipboard.
|
|
3972
|
-
*
|
|
3973
|
-
* @example
|
|
3974
|
-
*
|
|
3975
|
-
* const apiKey = await zapierPage.generateAPIKey("Your API Key");
|
|
3976
|
-
* @endexample
|
|
3977
|
-
*/
|
|
3978
|
-
generateAPIKey: (apiKeyLabel: string) => Promise<string>;
|
|
3979
|
-
}
|
|
3980
|
-
type SubscriptionPlan = "free" | "pro";
|
|
3981
|
-
interface UpdateEmailProps {
|
|
3982
|
-
oldEmail: string;
|
|
3983
|
-
newEmail: string;
|
|
3984
|
-
role?: string;
|
|
3985
|
-
}
|
|
3986
|
-
interface AddMemberProps {
|
|
3987
|
-
email: string;
|
|
3988
|
-
role?: string;
|
|
3989
|
-
appName: string;
|
|
3990
|
-
subscriptionPlan?: SubscriptionPlan;
|
|
3991
|
-
}
|
|
3992
|
-
interface EditMemberProps$1 {
|
|
3993
|
-
email: string;
|
|
3994
|
-
newEmail?: string;
|
|
3995
|
-
firstName?: string;
|
|
3996
|
-
lastName?: string;
|
|
3997
|
-
newRole?: string;
|
|
3998
|
-
subscriptionPlan?: SubscriptionPlan;
|
|
3999
|
-
}
|
|
4000
|
-
declare class Member {
|
|
4001
|
-
memberApis: MemberApis;
|
|
4002
|
-
constructor(neetoPlaywrightUtilities: CustomCommands);
|
|
4003
|
-
addMemberViaRequest: ({
|
|
4004
|
-
email,
|
|
4005
|
-
role,
|
|
4006
|
-
appName,
|
|
4007
|
-
subscriptionPlan
|
|
4008
|
-
}: AddMemberProps) => Promise<void>;
|
|
4009
|
-
editMemberViaRequest: ({
|
|
4010
|
-
email,
|
|
4011
|
-
newEmail,
|
|
4012
|
-
firstName,
|
|
4013
|
-
lastName,
|
|
4014
|
-
newRole,
|
|
4015
|
-
subscriptionPlan
|
|
4016
|
-
}: EditMemberProps$1) => Promise<void>;
|
|
4017
|
-
deactivateMemberViaRequest: (email: string) => Promise<APIResponse<any> | undefined>;
|
|
4018
|
-
generateRandomTeamMembers: ({
|
|
4019
|
-
count,
|
|
4020
|
-
role
|
|
4021
|
-
}: {
|
|
4022
|
-
count?: number | undefined;
|
|
4023
|
-
role?: string | undefined;
|
|
4024
|
-
}) => {
|
|
4025
|
-
firstName: string;
|
|
4026
|
-
lastName: string;
|
|
4027
|
-
email: string;
|
|
4028
|
-
role: string;
|
|
4029
|
-
}[];
|
|
4030
|
-
getUserIdViaAPI: (email: string) => Promise<string>;
|
|
4031
|
-
updateEmailViaAPI: ({
|
|
4032
|
-
oldEmail,
|
|
4033
|
-
newEmail,
|
|
4034
|
-
role
|
|
4035
|
-
}: UpdateEmailProps) => Promise<void>;
|
|
4036
3417
|
}
|
|
4037
3418
|
interface KeyValuePair$1 {
|
|
4038
3419
|
key: string;
|
|
@@ -4187,8 +3568,6 @@ declare class EditorPage {
|
|
|
4187
3568
|
private fixedMenuOptions;
|
|
4188
3569
|
private moreMenuOptions;
|
|
4189
3570
|
private verifyFontSize;
|
|
4190
|
-
private verifyFontSizeV1;
|
|
4191
|
-
private verifyFontSizeV2;
|
|
4192
3571
|
private verifyTextModifiers;
|
|
4193
3572
|
private verifyTextDeskModifier;
|
|
4194
3573
|
private pickHighlightColor;
|
|
@@ -4471,948 +3850,133 @@ declare class ImageUploader {
|
|
|
4471
3850
|
height
|
|
4472
3851
|
}?: Partial<SelectImage>) => Promise<void>;
|
|
4473
3852
|
}
|
|
3853
|
+
declare const FILE_FORMATS: {
|
|
3854
|
+
readonly csv: "csv";
|
|
3855
|
+
readonly avi: "avi";
|
|
3856
|
+
readonly doc: "doc";
|
|
3857
|
+
readonly docx: "docx";
|
|
3858
|
+
readonly flv: "flv";
|
|
3859
|
+
readonly html: "html";
|
|
3860
|
+
readonly mp3: "mp3";
|
|
3861
|
+
readonly mp4: "mp4";
|
|
3862
|
+
readonly mpg: "mpg";
|
|
3863
|
+
readonly pdf: "pdf";
|
|
3864
|
+
readonly rtf: "rtf";
|
|
3865
|
+
readonly txt: "txt";
|
|
3866
|
+
readonly webm: "webm";
|
|
3867
|
+
readonly xls: "xls";
|
|
3868
|
+
readonly xlsx: "xlsx";
|
|
3869
|
+
readonly wma: "wma";
|
|
3870
|
+
readonly zip: "zip";
|
|
3871
|
+
readonly jpg: "jpg";
|
|
3872
|
+
readonly jpeg: "jpeg";
|
|
3873
|
+
readonly png: "png";
|
|
3874
|
+
readonly ico: "ico";
|
|
3875
|
+
readonly svg: "svg";
|
|
3876
|
+
readonly gif: "gif";
|
|
3877
|
+
};
|
|
3878
|
+
type ValueOf<T> = T[keyof T];
|
|
3879
|
+
type FileType = ValueOf<typeof FILE_FORMATS>;
|
|
3880
|
+
interface GenerateRandomFileProps {
|
|
3881
|
+
sizeInKB: number;
|
|
3882
|
+
fileType: FileType;
|
|
3883
|
+
fileName?: string;
|
|
3884
|
+
}
|
|
3885
|
+
interface ReadFileAsBrowserFileProps {
|
|
3886
|
+
filePath: string;
|
|
3887
|
+
mimeType: string;
|
|
3888
|
+
}
|
|
4474
3889
|
/**
|
|
4475
3890
|
*
|
|
4476
|
-
*
|
|
3891
|
+
* Used to serialize a File object into a format that can be passed into the browser context using Playwright’s evaluateHandle.
|
|
4477
3892
|
*
|
|
4478
|
-
*
|
|
3893
|
+
* This is required because DOM File instances can't be transferred directly between Node and browser contexts.
|
|
4479
3894
|
*
|
|
4480
|
-
*
|
|
3895
|
+
* file: A File object generated in the Node/test context.
|
|
4481
3896
|
*
|
|
4482
|
-
*
|
|
3897
|
+
* Returns a plain object containing:
|
|
4483
3898
|
*
|
|
4484
|
-
*
|
|
3899
|
+
* name: File name.
|
|
4485
3900
|
*
|
|
4486
|
-
*
|
|
4487
|
-
*
|
|
4488
|
-
*
|
|
4489
|
-
*
|
|
4490
|
-
*
|
|
4491
|
-
*
|
|
4492
|
-
*
|
|
4493
|
-
*
|
|
4494
|
-
* }
|
|
4495
|
-
*
|
|
4496
|
-
*
|
|
4497
|
-
*
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
*
|
|
4511
|
-
*
|
|
4512
|
-
*
|
|
4513
|
-
*
|
|
4514
|
-
*
|
|
4515
|
-
*
|
|
4516
|
-
*
|
|
4517
|
-
*
|
|
4518
|
-
*
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
*
|
|
4523
|
-
*
|
|
4524
|
-
*
|
|
4525
|
-
*
|
|
4526
|
-
*
|
|
4527
|
-
*
|
|
4528
|
-
*
|
|
4529
|
-
*
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
*
|
|
4541
|
-
*
|
|
4542
|
-
*
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
*
|
|
4552
|
-
*
|
|
4553
|
-
*
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
*
|
|
4559
|
-
*
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
* Path to project-specific translations file.
|
|
4566
|
-
*
|
|
4567
|
-
*/
|
|
4568
|
-
declare const PROJECT_TRANSLATIONS_PATH = "../app/javascript/src/translations/en.json";
|
|
4569
|
-
/**
|
|
4570
|
-
*
|
|
4571
|
-
* Default credentials for testing purposes for development env.
|
|
4572
|
-
*
|
|
4573
|
-
*/
|
|
4574
|
-
declare const CREDENTIALS: {
|
|
4575
|
-
firstName: string;
|
|
4576
|
-
lastName: string;
|
|
4577
|
-
name: string;
|
|
4578
|
-
email: string;
|
|
4579
|
-
password: string;
|
|
4580
|
-
subdomainName: string;
|
|
4581
|
-
};
|
|
4582
|
-
/**
|
|
4583
|
-
*
|
|
4584
|
-
* Pattern for the subject of OTP emails.
|
|
4585
|
-
*
|
|
4586
|
-
*/
|
|
4587
|
-
declare const OTP_EMAIL_PATTERN = "Your login code is";
|
|
4588
|
-
/**
|
|
4589
|
-
*
|
|
4590
|
-
* Default Slack channel.
|
|
4591
|
-
*
|
|
4592
|
-
*/
|
|
4593
|
-
declare const SLACK_DEFAULT_CHANNEL = "general";
|
|
4594
|
-
declare const CUSTOM_DOMAIN_SUFFIX = "neetoautomation.com";
|
|
4595
|
-
declare const REVIEW_APP_CUSTOM_DOMAIN_SUFFIX = "review.neetoautomation.com";
|
|
4596
|
-
declare const CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX: string | undefined;
|
|
4597
|
-
/**
|
|
4598
|
-
*
|
|
4599
|
-
* Function to generate Zapier test email address based on the product. It takes the following parameters:
|
|
4600
|
-
*
|
|
4601
|
-
* product: Product name.
|
|
4602
|
-
*
|
|
4603
|
-
* @example
|
|
4604
|
-
*
|
|
4605
|
-
* const testEmail = ZAPIER_TEST_EMAIL("neetoChat");
|
|
4606
|
-
*
|
|
4607
|
-
* console.log(testEmail) // `neeto-neetoChat-zapier-test@${process.env.FASTMAIL_DOMAIN_NAME}`
|
|
4608
|
-
* @endexample
|
|
4609
|
-
*/
|
|
4610
|
-
declare const ZAPIER_TEST_EMAIL: (product: string) => string;
|
|
4611
|
-
declare const MAILPIT_BASE_URL = "https://mailpit.neetodeployapp.com";
|
|
4612
|
-
declare const MAILPIT_DOMAIN_NAME = "mail.neetoautomation.com";
|
|
4613
|
-
declare const IS_MAILPIT_ENABLED: boolean;
|
|
4614
|
-
declare const IS_SHADCN_UI: boolean;
|
|
4615
|
-
declare const mailpitDomainName: () => string;
|
|
4616
|
-
declare const ZAPIER_TEST_EMAIL_V2: (product: string) => string;
|
|
4617
|
-
declare const SINGULAR: {
|
|
4618
|
-
count: number;
|
|
4619
|
-
};
|
|
4620
|
-
declare const PLURAL: {
|
|
4621
|
-
count: number;
|
|
4622
|
-
};
|
|
4623
|
-
declare const COLOR: {
|
|
4624
|
-
transparent: string;
|
|
4625
|
-
softBlue: string;
|
|
4626
|
-
};
|
|
4627
|
-
declare const DATE_TEXTS: {
|
|
4628
|
-
now: string;
|
|
4629
|
-
nextYear: string;
|
|
4630
|
-
};
|
|
4631
|
-
/**
|
|
4632
|
-
*
|
|
4633
|
-
* The initial, empty state of browser storage, including empty cookies and origins.
|
|
4634
|
-
*
|
|
4635
|
-
*/
|
|
4636
|
-
declare const EMPTY_STORAGE_STATE: {
|
|
4637
|
-
storageState: {
|
|
4638
|
-
cookies: never[];
|
|
4639
|
-
origins: never[];
|
|
4640
|
-
};
|
|
4641
|
-
};
|
|
4642
|
-
declare const CURRENT_TIME_RANGES: {
|
|
4643
|
-
readonly last24Hours: "Last 24 hours";
|
|
4644
|
-
readonly thisWeek: "This week";
|
|
4645
|
-
readonly thisMonth: "This month";
|
|
4646
|
-
readonly thisYear: "This year";
|
|
4647
|
-
readonly thisQuarter: "This quarter";
|
|
4648
|
-
readonly last30Days: "Last 30 days";
|
|
4649
|
-
readonly last7Days: "Last 7 days";
|
|
4650
|
-
};
|
|
4651
|
-
declare const PAST_TIME_RANGES: {
|
|
4652
|
-
readonly lastWeek: "Last week";
|
|
4653
|
-
readonly lastMonth: "Last month";
|
|
4654
|
-
readonly lastYear: "Last year";
|
|
4655
|
-
readonly lastQuarter: "Last quarter";
|
|
4656
|
-
};
|
|
4657
|
-
declare const TIME_RANGES: {
|
|
4658
|
-
readonly customDuration: "Custom duration";
|
|
4659
|
-
readonly last24Hours: "Last 24 hours";
|
|
4660
|
-
readonly thisWeek: "This week";
|
|
4661
|
-
readonly thisMonth: "This month";
|
|
4662
|
-
readonly thisYear: "This year";
|
|
4663
|
-
readonly thisQuarter: "This quarter";
|
|
4664
|
-
readonly last30Days: "Last 30 days";
|
|
4665
|
-
readonly last7Days: "Last 7 days";
|
|
4666
|
-
readonly lastWeek: "Last week";
|
|
4667
|
-
readonly lastMonth: "Last month";
|
|
4668
|
-
readonly lastYear: "Last year";
|
|
4669
|
-
readonly lastQuarter: "Last quarter";
|
|
4670
|
-
};
|
|
4671
|
-
declare const DATE_RANGES: {
|
|
4672
|
-
readonly after: "After";
|
|
4673
|
-
readonly before: "Before";
|
|
4674
|
-
readonly customDateRange: "Custom date range";
|
|
4675
|
-
readonly last24Hours: "Last 24 hours";
|
|
4676
|
-
readonly thisWeek: "This week";
|
|
4677
|
-
readonly thisMonth: "This month";
|
|
4678
|
-
readonly thisYear: "This year";
|
|
4679
|
-
readonly thisQuarter: "This quarter";
|
|
4680
|
-
readonly last30Days: "Last 30 days";
|
|
4681
|
-
readonly last7Days: "Last 7 days";
|
|
4682
|
-
readonly lastWeek: "Last week";
|
|
4683
|
-
readonly lastMonth: "Last month";
|
|
4684
|
-
readonly lastYear: "Last year";
|
|
4685
|
-
readonly lastQuarter: "Last quarter";
|
|
4686
|
-
};
|
|
4687
|
-
declare const CERTIFICATE_LIMIT_EXCEEDED_REGEXP = "too many certificates \\(\\d+\\) already issued for \"neetoautomation.com\"";
|
|
4688
|
-
declare const CERTIFICATE_LIMIT_EXCEEDED_MESSAGE = "Certificate limit exceeded for custom domain";
|
|
4689
|
-
declare const CERTIFICATE_PROVISION_FAILED_MESSAGE = "Certificate provisioning failed for custom domain";
|
|
4690
|
-
declare const CERTIFICATE_PROVISION_FAILED_REGEXP = "provisioning certificate for your domain";
|
|
4691
|
-
declare const TRAEFIK_NOT_FOUND_TEXT = "404 page not found";
|
|
4692
|
-
declare const EXPORT_FILE_TYPES: {
|
|
4693
|
-
readonly pdf: "pdf";
|
|
4694
|
-
readonly excel: "excel";
|
|
4695
|
-
readonly csv: "csv";
|
|
4696
|
-
};
|
|
4697
|
-
declare const CALENDAR_LABELS: {
|
|
4698
|
-
readonly month: "month panel";
|
|
4699
|
-
readonly year: "year panel";
|
|
4700
|
-
};
|
|
4701
|
-
declare const DATE_FORMATS: {
|
|
4702
|
-
readonly month: "MMM";
|
|
4703
|
-
readonly year: "YYYY";
|
|
4704
|
-
readonly date: "DD/MM/YYYY";
|
|
4705
|
-
readonly calendarDate: "YYYY-MM-DD";
|
|
4706
|
-
};
|
|
4707
|
-
declare const FILE_FORMATS: {
|
|
4708
|
-
readonly csv: "csv";
|
|
4709
|
-
readonly avi: "avi";
|
|
4710
|
-
readonly doc: "doc";
|
|
4711
|
-
readonly docx: "docx";
|
|
4712
|
-
readonly flv: "flv";
|
|
4713
|
-
readonly html: "html";
|
|
4714
|
-
readonly mp3: "mp3";
|
|
4715
|
-
readonly mp4: "mp4";
|
|
4716
|
-
readonly mpg: "mpg";
|
|
4717
|
-
readonly pdf: "pdf";
|
|
4718
|
-
readonly rtf: "rtf";
|
|
4719
|
-
readonly txt: "txt";
|
|
4720
|
-
readonly webm: "webm";
|
|
4721
|
-
readonly xls: "xls";
|
|
4722
|
-
readonly xlsx: "xlsx";
|
|
4723
|
-
readonly wma: "wma";
|
|
4724
|
-
readonly zip: "zip";
|
|
4725
|
-
readonly jpg: "jpg";
|
|
4726
|
-
readonly jpeg: "jpeg";
|
|
4727
|
-
readonly png: "png";
|
|
4728
|
-
readonly ico: "ico";
|
|
4729
|
-
readonly svg: "svg";
|
|
4730
|
-
readonly gif: "gif";
|
|
4731
|
-
};
|
|
4732
|
-
type ValueOf<T> = T[keyof T];
|
|
4733
|
-
type FileType = ValueOf<typeof FILE_FORMATS>;
|
|
4734
|
-
interface GenerateRandomFileProps {
|
|
4735
|
-
sizeInKB: number;
|
|
4736
|
-
fileType: FileType;
|
|
4737
|
-
fileName?: string;
|
|
4738
|
-
}
|
|
4739
|
-
interface ReadFileAsBrowserFileProps {
|
|
4740
|
-
filePath: string;
|
|
4741
|
-
mimeType: string;
|
|
4742
|
-
}
|
|
4743
|
-
/**
|
|
4744
|
-
*
|
|
4745
|
-
* Used to serialize a File object into a format that can be passed into the browser context using Playwright’s evaluateHandle.
|
|
4746
|
-
*
|
|
4747
|
-
* This is required because DOM File instances can't be transferred directly between Node and browser contexts.
|
|
4748
|
-
*
|
|
4749
|
-
* file: A File object generated in the Node/test context.
|
|
4750
|
-
*
|
|
4751
|
-
* Returns a plain object containing:
|
|
4752
|
-
*
|
|
4753
|
-
* name: File name.
|
|
4754
|
-
*
|
|
4755
|
-
* type: MIME type.
|
|
4756
|
-
*
|
|
4757
|
-
* lastModified: Last modified timestamp.
|
|
4758
|
-
*
|
|
4759
|
-
* buffer: Byte array representing file contents (as a regular array).
|
|
4760
|
-
*
|
|
4761
|
-
* @example
|
|
4762
|
-
*
|
|
4763
|
-
* import { serializeFileForBrowser } from "@utils/fileUtils";
|
|
4764
|
-
*
|
|
4765
|
-
* const serializedFile = await serializeFileForBrowser(file);
|
|
4766
|
-
* @endexample
|
|
4767
|
-
*/
|
|
4768
|
-
declare const serializeFileForBrowser: (file: File) => Promise<{
|
|
4769
|
-
name: string;
|
|
4770
|
-
type: string;
|
|
4771
|
-
lastModified: number;
|
|
4772
|
-
buffer: number[];
|
|
4773
|
-
}>;
|
|
4774
|
-
/**
|
|
4775
|
-
*
|
|
4776
|
-
* Used to generate a random File object of a specific size and type.
|
|
4777
|
-
*
|
|
4778
|
-
* sizeInKB: Size of the file in KB.
|
|
4779
|
-
*
|
|
4780
|
-
* fileType: Type/extension of the file (e.g., 'png', 'pdf', 'jpg').
|
|
4781
|
-
*
|
|
4782
|
-
* fileName (optional): Custom name for the generated file. Defaults to sample.{fileType}.
|
|
4783
|
-
*
|
|
4784
|
-
* Returns an object containing:
|
|
4785
|
-
*
|
|
4786
|
-
* file: The generated File object.
|
|
4787
|
-
*
|
|
4788
|
-
* fileName: The file name as a string.
|
|
4789
|
-
*
|
|
4790
|
-
* @example
|
|
4791
|
-
*
|
|
4792
|
-
* import { generateRandomFile } from "@utils/fileUtils";
|
|
4793
|
-
*
|
|
4794
|
-
* const { file, fileName } = generateRandomFile({
|
|
4795
|
-
* sizeInKB: 1024,
|
|
4796
|
-
* fileType: "png",
|
|
4797
|
-
* });
|
|
4798
|
-
* @endexample
|
|
4799
|
-
*/
|
|
4800
|
-
declare const generateRandomFile: ({
|
|
4801
|
-
sizeInKB,
|
|
4802
|
-
fileType,
|
|
4803
|
-
fileName
|
|
4804
|
-
}: GenerateRandomFileProps) => {
|
|
4805
|
-
file: File;
|
|
4806
|
-
fileName: string;
|
|
4807
|
-
};
|
|
4808
|
-
/**
|
|
4809
|
-
*
|
|
4810
|
-
* Used to read a file from disk and build a MIME-correct File object suitable for uploadFileViaDispatchV2, unlike generateRandomFile which fills the file with random bytes.
|
|
4811
|
-
*
|
|
4812
|
-
* filePath: Absolute (or already-resolved) path of the file to read.
|
|
4813
|
-
*
|
|
4814
|
-
* mimeType: MIME type to set on the resulting File object.
|
|
4815
|
-
*
|
|
4816
|
-
* Returns a File object named after filePath's basename.
|
|
4817
|
-
*
|
|
4818
|
-
* @example
|
|
4819
|
-
*
|
|
4820
|
-
* import path from "path";
|
|
4821
|
-
*
|
|
4822
|
-
* import { readFileAsBrowserFile } from "@utils/fileUtils";
|
|
4823
|
-
*
|
|
4824
|
-
* const file = readFileAsBrowserFile({
|
|
4825
|
-
* filePath: path.join(__dirname, "../assets/files/sample.docx"),
|
|
4826
|
-
* mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
4827
|
-
* });
|
|
4828
|
-
* @endexample
|
|
4829
|
-
*/
|
|
4830
|
-
declare const readFileAsBrowserFile: ({
|
|
4831
|
-
filePath,
|
|
4832
|
-
mimeType
|
|
4833
|
-
}: ReadFileAsBrowserFileProps) => File;
|
|
4834
|
-
type emailCondition = "Contains" | "Does not contain" | "Is" | "Is not" | "Starts with" | "Does not start with" | "Ends with" | "Does not end with";
|
|
4835
|
-
interface EditMemberProps {
|
|
4836
|
-
email: string;
|
|
4837
|
-
firstName: string;
|
|
4838
|
-
lastName: string;
|
|
4839
|
-
role: string;
|
|
4840
|
-
}
|
|
4841
|
-
declare class TeamMembers {
|
|
4842
|
-
page: Page;
|
|
4843
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
4844
|
-
t: TFunction;
|
|
4845
|
-
constructor({
|
|
4846
|
-
page,
|
|
4847
|
-
neetoPlaywrightUtilities
|
|
4848
|
-
}: {
|
|
4849
|
-
page: Page;
|
|
4850
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
4851
|
-
});
|
|
4852
|
-
/**
|
|
4853
|
-
*
|
|
4854
|
-
* Used to navigate to the team members page.
|
|
4855
|
-
*
|
|
4856
|
-
* @example
|
|
4857
|
-
*
|
|
4858
|
-
* await teamMembers.navigateToTeamMembers();
|
|
4859
|
-
* @endexample
|
|
4860
|
-
*/
|
|
4861
|
-
navigateToTeamMembers: () => Promise<void>;
|
|
4862
|
-
openMemberPane: () => Promise<void>;
|
|
4863
|
-
fillMemberForm: (emails: string[], role?: string) => Promise<void>;
|
|
4864
|
-
/**
|
|
4865
|
-
*
|
|
4866
|
-
* Used to add a member using the add button in the header. It takes the following parameters:
|
|
4867
|
-
*
|
|
4868
|
-
* emails (optional): The emails of the members to be added. Default is an example email.
|
|
4869
|
-
*
|
|
4870
|
-
* role (optional): The role of the new members. Default is standard.
|
|
4871
|
-
*
|
|
4872
|
-
* @example
|
|
4873
|
-
*
|
|
4874
|
-
* await teamMembers.addMemberViaUI({
|
|
4875
|
-
* emails: ["sam@example.com", "tom@example.com"],
|
|
4876
|
-
* role: "admin",
|
|
4877
|
-
* });
|
|
4878
|
-
* @endexample
|
|
4879
|
-
*/
|
|
4880
|
-
addMemberViaUI: ({
|
|
4881
|
-
emails,
|
|
4882
|
-
role
|
|
4883
|
-
}?: {
|
|
4884
|
-
emails?: string[];
|
|
4885
|
-
role?: string;
|
|
4886
|
-
}) => Promise<void>;
|
|
4887
|
-
submit: () => Promise<void>;
|
|
4888
|
-
/**
|
|
4889
|
-
*
|
|
4890
|
-
* Used to search and verify the member by providing email as the search term. It takes the following parameters:
|
|
4891
|
-
*
|
|
4892
|
-
* email (required): The email of the member to be searched.
|
|
4893
|
-
*
|
|
4894
|
-
* @example
|
|
4895
|
-
*
|
|
4896
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
4897
|
-
* email: "sam@example.com",
|
|
4898
|
-
* });
|
|
4899
|
-
* @endexample
|
|
4900
|
-
*/
|
|
4901
|
-
searchAndVerifyMemberByEmail: ({
|
|
4902
|
-
email
|
|
4903
|
-
}: {
|
|
4904
|
-
email: string;
|
|
4905
|
-
}) => Promise<void>;
|
|
4906
|
-
/**
|
|
4907
|
-
*
|
|
4908
|
-
* Used to edit a member using the edit button in row dropdown. A member has to be searched before editing. It takes the following parameters:
|
|
4909
|
-
*
|
|
4910
|
-
* email (optional): The new email of the member.
|
|
4911
|
-
*
|
|
4912
|
-
* role (optional): The new role of the member. Default is standard.
|
|
4913
|
-
*
|
|
4914
|
-
* firstName (optional): The new first name of the member.
|
|
4915
|
-
*
|
|
4916
|
-
* lastName (optional): The new last name of the member.
|
|
4917
|
-
*
|
|
4918
|
-
* @example
|
|
4919
|
-
*
|
|
4920
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
4921
|
-
* email: "sam@example.com",
|
|
4922
|
-
* });
|
|
4923
|
-
* await teamMembers.editMemberViaUI({
|
|
4924
|
-
* email: "tom@example.com",
|
|
4925
|
-
* role: "admin",
|
|
4926
|
-
* firstName: "Tom",
|
|
4927
|
-
* lastName: "Hanks",
|
|
4928
|
-
* });
|
|
4929
|
-
* @endexample
|
|
4930
|
-
* @example
|
|
4931
|
-
*
|
|
4932
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
4933
|
-
* email: "sam@example.com",
|
|
4934
|
-
* });
|
|
4935
|
-
* await teamMembers.editMemberViaUI();
|
|
4936
|
-
*
|
|
4937
|
-
* // This will change the role of the member with email "sam@example.com" to the `standard` role.
|
|
4938
|
-
* @endexample
|
|
4939
|
-
*/
|
|
4940
|
-
editMemberViaUI: ({
|
|
4941
|
-
email,
|
|
4942
|
-
firstName,
|
|
4943
|
-
lastName,
|
|
4944
|
-
role
|
|
4945
|
-
}?: Partial<EditMemberProps>) => Promise<void>;
|
|
4946
|
-
/**
|
|
4947
|
-
*
|
|
4948
|
-
* Used to remove member, using the remove button in row dropdown. A member has to be searched before removing.
|
|
4949
|
-
*
|
|
4950
|
-
* @example
|
|
4951
|
-
*
|
|
4952
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
4953
|
-
* email: "sam@example.com",
|
|
4954
|
-
* });
|
|
4955
|
-
* await teamMembers.removeMemberViaUI();
|
|
4956
|
-
* @endexample
|
|
4957
|
-
*/
|
|
4958
|
-
removeMemberViaUI: (parentLocator?: Locator | Page) => Promise<void>;
|
|
4959
|
-
/**
|
|
4960
|
-
*
|
|
4961
|
-
* Opens the filter pane on page.
|
|
4962
|
-
*
|
|
4963
|
-
* page: An instance of the Playwright Page class representing the web page where the filter pane should be opened.
|
|
4964
|
-
*
|
|
4965
|
-
* @example
|
|
4966
|
-
*
|
|
4967
|
-
* import { Page } from "@playwright/test";
|
|
4968
|
-
* import { filterUtils } from "@neetoplaywright";
|
|
4969
|
-
*
|
|
4970
|
-
* await filterUtils.openFilterPane(page);
|
|
4971
|
-
* @endexample
|
|
4972
|
-
*/
|
|
4973
|
-
openFilterPane: () => Promise<void>;
|
|
4974
|
-
/**
|
|
4975
|
-
*
|
|
4976
|
-
* Used to filter members by multi select fields such as role, group, teams, etc. The filter pane should be opened and closed before and after filtering. It takes the following parameters:
|
|
4977
|
-
*
|
|
4978
|
-
* selectedOptions (required): The options to be selected in the multi select field.
|
|
4979
|
-
*
|
|
4980
|
-
* selectContainerLocator (optional): The locator of the container of the multi select field. Default is the container of the role field.
|
|
4981
|
-
*
|
|
4982
|
-
* @example
|
|
4983
|
-
*
|
|
4984
|
-
* await teamMembers.openFilterPane();
|
|
4985
|
-
* await teamMembers.filterMembersByMultiSelect({
|
|
4986
|
-
* selectedOptions: ["Admin", "Standard"],
|
|
4987
|
-
* selectContainerLocator: NEETO_FILTERS_SELECTORS.roleSelectContainer
|
|
4988
|
-
* });
|
|
4989
|
-
* @endexample
|
|
4990
|
-
*/
|
|
4991
|
-
filterMembersByMultiSelect: ({
|
|
4992
|
-
selectedOptions,
|
|
4993
|
-
selectContainerLocator
|
|
4994
|
-
}: {
|
|
4995
|
-
selectedOptions: string[];
|
|
4996
|
-
selectContainerLocator?: string;
|
|
4997
|
-
}) => Promise<void>;
|
|
4998
|
-
/**
|
|
4999
|
-
*
|
|
5000
|
-
* Used to filter members by at least one these field: email with conditions, role, or name. It takes the following parameters:
|
|
5001
|
-
*
|
|
5002
|
-
* email (optional): An object with the id and condition as keys to filter by email.
|
|
5003
|
-
*
|
|
5004
|
-
* roles (optional): The roles to filter by.
|
|
5005
|
-
*
|
|
5006
|
-
* name (optional): The name to filter by.
|
|
5007
|
-
*
|
|
5008
|
-
* @example
|
|
5009
|
-
*
|
|
5010
|
-
* await teamMembers.filterMembers({
|
|
5011
|
-
* email: { id: "sam", condition: "Contains" },
|
|
5012
|
-
* roles: ["Admin", "Standard"],
|
|
5013
|
-
* });
|
|
5014
|
-
* @endexample
|
|
5015
|
-
* @example
|
|
5016
|
-
*
|
|
5017
|
-
* await teamMembers.filterMembers({
|
|
5018
|
-
* name: "Sam",
|
|
5019
|
-
* roles: ["Admin"],
|
|
5020
|
-
* });
|
|
5021
|
-
* @endexample
|
|
5022
|
-
*/
|
|
5023
|
-
filterMembers: ({
|
|
5024
|
-
email,
|
|
5025
|
-
roles,
|
|
5026
|
-
name
|
|
5027
|
-
}: {
|
|
5028
|
-
email?: {
|
|
5029
|
-
id: string;
|
|
5030
|
-
condition: emailCondition;
|
|
5031
|
-
};
|
|
5032
|
-
roles?: string[];
|
|
5033
|
-
name?: string;
|
|
5034
|
-
}) => Promise<void>;
|
|
5035
|
-
/**
|
|
5036
|
-
*
|
|
5037
|
-
* Used to get the row of the team members table by providing the name of the member.
|
|
5038
|
-
*
|
|
5039
|
-
* @example
|
|
5040
|
-
*
|
|
5041
|
-
* await teamMembers.getMemberRowByName("Sam");
|
|
5042
|
-
* @endexample
|
|
5043
|
-
*/
|
|
5044
|
-
getMemberRowByName: (name: string) => Locator;
|
|
5045
|
-
/**
|
|
5046
|
-
*
|
|
5047
|
-
* Used to take action on members by selecting the members and clicking on the take action button in the subheader. It takes the following parameters:
|
|
5048
|
-
*
|
|
5049
|
-
* names (optional): The names of the members to take action on. If not provided, all members will be selected.
|
|
5050
|
-
*
|
|
5051
|
-
* state (optional): The state to change the members to.
|
|
5052
|
-
*
|
|
5053
|
-
* action (optional): An object with actionButtonText and valueButtonText as keys to take action on the members. actionButtonText and valueButtonText are the text of the action button to be clicked and the value of the action to be changed to, respectively.
|
|
5054
|
-
*
|
|
5055
|
-
* @example
|
|
5056
|
-
*
|
|
5057
|
-
* await teamMembers.takeActionOnMembers({
|
|
5058
|
-
* names: ["Sam", "Tom"],
|
|
5059
|
-
* state: "Deactivate",
|
|
5060
|
-
* });
|
|
5061
|
-
* @endexample
|
|
5062
|
-
* @example
|
|
5063
|
-
*
|
|
5064
|
-
* await teamMembers.takeActionOnMembers({
|
|
5065
|
-
* action: { actionButtonText: "Change role", valueButtonText: "Admin" },
|
|
5066
|
-
* });
|
|
5067
|
-
* @endexample
|
|
5068
|
-
*/
|
|
5069
|
-
takeActionOnMembers: ({
|
|
5070
|
-
names,
|
|
5071
|
-
state,
|
|
5072
|
-
action
|
|
5073
|
-
}: {
|
|
5074
|
-
names?: string[];
|
|
5075
|
-
state?: "activate" | "deactivate" | undefined;
|
|
5076
|
-
action?: {
|
|
5077
|
-
actionButtonText: string;
|
|
5078
|
-
valueButtonText: string;
|
|
5079
|
-
} | undefined;
|
|
5080
|
-
}) => Promise<void>;
|
|
5081
|
-
/**
|
|
5082
|
-
*
|
|
5083
|
-
* Used to perform an action on a column header in the team members table. It takes the following parameters:
|
|
5084
|
-
*
|
|
5085
|
-
* columnName (optional): The name of the column to perform the action on. Default is Name.
|
|
5086
|
-
*
|
|
5087
|
-
* actionButtonText (optional): The text of the action button to be clicked. Default is Ascending.
|
|
5088
|
-
*
|
|
5089
|
-
* @example
|
|
5090
|
-
*
|
|
5091
|
-
* await teamMembers.performColumnAction({
|
|
5092
|
-
* columnName: "Role",
|
|
5093
|
-
* actionButtonText: "Hide column",
|
|
5094
|
-
* });
|
|
5095
|
-
* @endexample
|
|
5096
|
-
* @example
|
|
5097
|
-
*
|
|
5098
|
-
* await teamMembers.performColumnAction();
|
|
5099
|
-
*
|
|
5100
|
-
* // This will sort the `name` column in ascending order.
|
|
5101
|
-
* @endexample
|
|
5102
|
-
*/
|
|
5103
|
-
performColumnAction: ({
|
|
5104
|
-
columnName,
|
|
5105
|
-
actionButtonText
|
|
5106
|
-
}?: {
|
|
5107
|
-
columnName?: string;
|
|
5108
|
-
actionButtonText?: "Ascending" | "Descending" | "Hide column";
|
|
5109
|
-
}) => Promise<void>;
|
|
5110
|
-
/**
|
|
5111
|
-
*
|
|
5112
|
-
* Used to toggle the visibility of columns in the team members table. It takes the following parameters:
|
|
5113
|
-
*
|
|
5114
|
-
* columns (optional): The columns whose visibility is to be toggled.
|
|
5115
|
-
*
|
|
5116
|
-
* bulkAction (optional): The option to show or hide all columns. If not provided, the columns will be toggled individually based on the columns parameter.
|
|
5117
|
-
*
|
|
5118
|
-
* @example
|
|
5119
|
-
*
|
|
5120
|
-
* await teamMembers.toggleMemberColumns({
|
|
5121
|
-
* bulkAction: "show",
|
|
5122
|
-
* });
|
|
5123
|
-
* @endexample
|
|
5124
|
-
* @example
|
|
5125
|
-
*
|
|
5126
|
-
* await teamMembers.toggleMemberColumns({
|
|
5127
|
-
* columns: ["role", "email"],
|
|
5128
|
-
* });
|
|
5129
|
-
* @endexample
|
|
5130
|
-
*/
|
|
5131
|
-
toggleMemberColumns: ({
|
|
5132
|
-
columns,
|
|
5133
|
-
bulkAction
|
|
5134
|
-
}: {
|
|
5135
|
-
columns?: string[];
|
|
5136
|
-
bulkAction?: "hide" | "show";
|
|
5137
|
-
}) => Promise<void>;
|
|
5138
|
-
/**
|
|
5139
|
-
*
|
|
5140
|
-
* Used to verify the presence of a member in the team members table. It takes the following parameters:
|
|
5141
|
-
*
|
|
5142
|
-
* email (required): The email of the member to be verified.
|
|
5143
|
-
*
|
|
5144
|
-
* name (optional): The name of the member to be verified.
|
|
5145
|
-
*
|
|
5146
|
-
* @example
|
|
5147
|
-
*
|
|
5148
|
-
* await teamMembers.verifyMemberInTable({
|
|
5149
|
-
* email: "sam@example.com",
|
|
5150
|
-
* name: "Sam",
|
|
5151
|
-
* });
|
|
5152
|
-
* @endexample
|
|
5153
|
-
*/
|
|
5154
|
-
verifyMemberInTable: ({
|
|
5155
|
-
name,
|
|
5156
|
-
email
|
|
5157
|
-
}: {
|
|
5158
|
-
name: string;
|
|
5159
|
-
email: string;
|
|
5160
|
-
}) => Promise<void>;
|
|
5161
|
-
protected applyFilter: () => Promise<void>;
|
|
5162
|
-
/**
|
|
5163
|
-
*
|
|
5164
|
-
* Used to export member details in a specified file format.
|
|
5165
|
-
*
|
|
5166
|
-
* fileType (required): The file format for export. Can be one of: "pdf", "excel", or "csv".
|
|
5167
|
-
*
|
|
5168
|
-
* adminEmail (required): The email address of the admin user who will receive the export notification.
|
|
5169
|
-
*
|
|
5170
|
-
* Returns the export start time as a Date object.
|
|
5171
|
-
*
|
|
5172
|
-
* @example
|
|
5173
|
-
*
|
|
5174
|
-
* const exportStartTime = await teamMembers.exportDetails(
|
|
5175
|
-
* EXPORT_FILE_TYPES.pdf,
|
|
5176
|
-
* "admin@example.com"
|
|
5177
|
-
* );
|
|
5178
|
-
* @endexample
|
|
5179
|
-
*/
|
|
5180
|
-
exportDetails: (fileType: ValueOf<typeof EXPORT_FILE_TYPES>, adminEmail: string) => Promise<Date>;
|
|
5181
|
-
/**
|
|
5182
|
-
*
|
|
5183
|
-
* Used to verify that no data is displayed when searching for a specific email.
|
|
5184
|
-
*
|
|
5185
|
-
* email (required): The email address to search for.
|
|
5186
|
-
*
|
|
5187
|
-
* @example
|
|
5188
|
-
*
|
|
5189
|
-
* await teamMembers.verifyNoDataTitle("nonexistent@example.com");
|
|
5190
|
-
* @endexample
|
|
5191
|
-
*/
|
|
5192
|
-
verifyNoDataTitle: (email: string) => Promise<void>;
|
|
5193
|
-
}
|
|
5194
|
-
declare class TeamMembersV2 extends TeamMembers {
|
|
5195
|
-
fillMemberForm: (emails: string[], role?: string) => Promise<void>;
|
|
5196
|
-
openMemberPane: () => Promise<void>;
|
|
5197
|
-
/**
|
|
5198
|
-
*
|
|
5199
|
-
* Used to add a member using the add button in the header. It takes the following parameters:
|
|
5200
|
-
*
|
|
5201
|
-
* emails (optional): The emails of the members to be added. Default is an example email.
|
|
5202
|
-
*
|
|
5203
|
-
* role (optional): The role of the new members. Default is standard.
|
|
5204
|
-
*
|
|
5205
|
-
* @example
|
|
5206
|
-
*
|
|
5207
|
-
* await teamMembers.addMemberViaUI({
|
|
5208
|
-
* emails: ["sam@example.com", "tom@example.com"],
|
|
5209
|
-
* role: "admin",
|
|
5210
|
-
* });
|
|
5211
|
-
* @endexample
|
|
5212
|
-
*/
|
|
5213
|
-
addMemberViaUI: ({
|
|
5214
|
-
emails,
|
|
5215
|
-
role
|
|
5216
|
-
}?: {
|
|
5217
|
-
emails?: string[];
|
|
5218
|
-
role?: string;
|
|
5219
|
-
}) => Promise<void>;
|
|
5220
|
-
submit: () => Promise<void>;
|
|
5221
|
-
/**
|
|
5222
|
-
*
|
|
5223
|
-
* Used to edit a member using the edit button in row dropdown. A member has to be searched before editing. It takes the following parameters:
|
|
5224
|
-
*
|
|
5225
|
-
* email (optional): The new email of the member.
|
|
5226
|
-
*
|
|
5227
|
-
* role (optional): The new role of the member. Default is standard.
|
|
5228
|
-
*
|
|
5229
|
-
* firstName (optional): The new first name of the member.
|
|
5230
|
-
*
|
|
5231
|
-
* lastName (optional): The new last name of the member.
|
|
5232
|
-
*
|
|
5233
|
-
* @example
|
|
5234
|
-
*
|
|
5235
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
5236
|
-
* email: "sam@example.com",
|
|
5237
|
-
* });
|
|
5238
|
-
* await teamMembers.editMemberViaUI({
|
|
5239
|
-
* email: "tom@example.com",
|
|
5240
|
-
* role: "admin",
|
|
5241
|
-
* firstName: "Tom",
|
|
5242
|
-
* lastName: "Hanks",
|
|
5243
|
-
* });
|
|
5244
|
-
* @endexample
|
|
5245
|
-
* @example
|
|
5246
|
-
*
|
|
5247
|
-
* await teamMembers.searchAndVerifyMemberByEmail({
|
|
5248
|
-
* email: "sam@example.com",
|
|
5249
|
-
* });
|
|
5250
|
-
* await teamMembers.editMemberViaUI();
|
|
5251
|
-
*
|
|
5252
|
-
* // This will change the role of the member with email "sam@example.com" to the `standard` role.
|
|
5253
|
-
* @endexample
|
|
5254
|
-
*/
|
|
5255
|
-
editMemberViaUI: ({
|
|
5256
|
-
email,
|
|
5257
|
-
firstName,
|
|
5258
|
-
lastName,
|
|
5259
|
-
role
|
|
5260
|
-
}?: Partial<EditMemberProps>) => Promise<void>;
|
|
5261
|
-
/**
|
|
5262
|
-
*
|
|
5263
|
-
* Opens the filter pane on page.
|
|
5264
|
-
*
|
|
5265
|
-
* page: An instance of the Playwright Page class representing the web page where the filter pane should be opened.
|
|
5266
|
-
*
|
|
5267
|
-
* @example
|
|
5268
|
-
*
|
|
5269
|
-
* import { Page } from "@playwright/test";
|
|
5270
|
-
* import { filterUtils } from "@neetoplaywright";
|
|
5271
|
-
*
|
|
5272
|
-
* await filterUtils.openFilterPane(page);
|
|
5273
|
-
* @endexample
|
|
5274
|
-
*/
|
|
5275
|
-
openFilterPane: () => Promise<void>;
|
|
5276
|
-
/**
|
|
5277
|
-
*
|
|
5278
|
-
* Used to filter members by multi select fields such as role, group, teams, etc. The filter pane should be opened and closed before and after filtering. It takes the following parameters:
|
|
5279
|
-
*
|
|
5280
|
-
* selectedOptions (required): The options to be selected in the multi select field.
|
|
5281
|
-
*
|
|
5282
|
-
* selectContainerLocator (optional): The locator of the container of the multi select field. Default is the container of the role field.
|
|
5283
|
-
*
|
|
5284
|
-
* @example
|
|
5285
|
-
*
|
|
5286
|
-
* await teamMembers.openFilterPane();
|
|
5287
|
-
* await teamMembers.filterMembersByMultiSelect({
|
|
5288
|
-
* selectedOptions: ["Admin", "Standard"],
|
|
5289
|
-
* selectContainerLocator: NEETO_FILTERS_SELECTORS.roleSelectContainer
|
|
5290
|
-
* });
|
|
5291
|
-
* @endexample
|
|
5292
|
-
*/
|
|
5293
|
-
filterMembersByMultiSelect: ({
|
|
5294
|
-
selectedOptions,
|
|
5295
|
-
selectContainerLocator
|
|
5296
|
-
}: {
|
|
5297
|
-
selectedOptions: string[];
|
|
5298
|
-
selectContainerLocator?: string;
|
|
5299
|
-
}) => Promise<void>;
|
|
5300
|
-
/**
|
|
5301
|
-
*
|
|
5302
|
-
* Used to filter members by at least one these field: email with conditions, role, or name. It takes the following parameters:
|
|
5303
|
-
*
|
|
5304
|
-
* email (optional): An object with the id and condition as keys to filter by email.
|
|
5305
|
-
*
|
|
5306
|
-
* roles (optional): The roles to filter by.
|
|
5307
|
-
*
|
|
5308
|
-
* name (optional): The name to filter by.
|
|
5309
|
-
*
|
|
5310
|
-
* @example
|
|
5311
|
-
*
|
|
5312
|
-
* await teamMembers.filterMembers({
|
|
5313
|
-
* email: { id: "sam", condition: "Contains" },
|
|
5314
|
-
* roles: ["Admin", "Standard"],
|
|
5315
|
-
* });
|
|
5316
|
-
* @endexample
|
|
5317
|
-
* @example
|
|
5318
|
-
*
|
|
5319
|
-
* await teamMembers.filterMembers({
|
|
5320
|
-
* name: "Sam",
|
|
5321
|
-
* roles: ["Admin"],
|
|
5322
|
-
* });
|
|
5323
|
-
* @endexample
|
|
5324
|
-
*/
|
|
5325
|
-
filterMembers: ({
|
|
5326
|
-
email,
|
|
5327
|
-
roles,
|
|
5328
|
-
name
|
|
5329
|
-
}: {
|
|
5330
|
-
email?: {
|
|
5331
|
-
id: string;
|
|
5332
|
-
condition: emailCondition;
|
|
5333
|
-
};
|
|
5334
|
-
roles?: string[];
|
|
5335
|
-
name?: string;
|
|
5336
|
-
}) => Promise<void>;
|
|
5337
|
-
/**
|
|
5338
|
-
*
|
|
5339
|
-
* Used to verify that no data is displayed when searching for a specific email.
|
|
5340
|
-
*
|
|
5341
|
-
* email (required): The email address to search for.
|
|
5342
|
-
*
|
|
5343
|
-
* @example
|
|
5344
|
-
*
|
|
5345
|
-
* await teamMembers.verifyNoDataTitle("nonexistent@example.com");
|
|
5346
|
-
* @endexample
|
|
5347
|
-
*/
|
|
5348
|
-
verifyNoDataTitle: (email: string) => Promise<void>;
|
|
5349
|
-
protected applyFilter: () => Promise<void>;
|
|
5350
|
-
/**
|
|
5351
|
-
*
|
|
5352
|
-
* Used to perform an action on a column header in the team members table. It takes the following parameters:
|
|
5353
|
-
*
|
|
5354
|
-
* columnName (optional): The name of the column to perform the action on. Default is Name.
|
|
5355
|
-
*
|
|
5356
|
-
* actionButtonText (optional): The text of the action button to be clicked. Default is Ascending.
|
|
5357
|
-
*
|
|
5358
|
-
* @example
|
|
5359
|
-
*
|
|
5360
|
-
* await teamMembers.performColumnAction({
|
|
5361
|
-
* columnName: "Role",
|
|
5362
|
-
* actionButtonText: "Hide column",
|
|
5363
|
-
* });
|
|
5364
|
-
* @endexample
|
|
5365
|
-
* @example
|
|
5366
|
-
*
|
|
5367
|
-
* await teamMembers.performColumnAction();
|
|
5368
|
-
*
|
|
5369
|
-
* // This will sort the `name` column in ascending order.
|
|
5370
|
-
* @endexample
|
|
5371
|
-
*/
|
|
5372
|
-
performColumnAction: ({
|
|
5373
|
-
columnName,
|
|
5374
|
-
actionButtonText
|
|
5375
|
-
}?: {
|
|
5376
|
-
columnName?: string;
|
|
5377
|
-
actionButtonText?: "Ascending" | "Descending" | "Hide column";
|
|
5378
|
-
}) => Promise<void>;
|
|
5379
|
-
/**
|
|
5380
|
-
*
|
|
5381
|
-
* Used to take action on members by selecting the members and clicking on the take action button in the subheader. It takes the following parameters:
|
|
5382
|
-
*
|
|
5383
|
-
* names (optional): The names of the members to take action on. If not provided, all members will be selected.
|
|
5384
|
-
*
|
|
5385
|
-
* state (optional): The state to change the members to.
|
|
5386
|
-
*
|
|
5387
|
-
* action (optional): An object with actionButtonText and valueButtonText as keys to take action on the members. actionButtonText and valueButtonText are the text of the action button to be clicked and the value of the action to be changed to, respectively.
|
|
5388
|
-
*
|
|
5389
|
-
* @example
|
|
5390
|
-
*
|
|
5391
|
-
* await teamMembers.takeActionOnMembers({
|
|
5392
|
-
* names: ["Sam", "Tom"],
|
|
5393
|
-
* state: "Deactivate",
|
|
5394
|
-
* });
|
|
5395
|
-
* @endexample
|
|
5396
|
-
* @example
|
|
5397
|
-
*
|
|
5398
|
-
* await teamMembers.takeActionOnMembers({
|
|
5399
|
-
* action: { actionButtonText: "Change role", valueButtonText: "Admin" },
|
|
5400
|
-
* });
|
|
5401
|
-
* @endexample
|
|
5402
|
-
*/
|
|
5403
|
-
takeActionOnMembers: ({
|
|
5404
|
-
names,
|
|
5405
|
-
state,
|
|
5406
|
-
action
|
|
5407
|
-
}: {
|
|
5408
|
-
names?: string[];
|
|
5409
|
-
state?: "activate" | "deactivate" | undefined;
|
|
5410
|
-
action?: {
|
|
5411
|
-
actionButtonText: string;
|
|
5412
|
-
valueButtonText: string;
|
|
5413
|
-
} | undefined;
|
|
5414
|
-
}) => Promise<void>;
|
|
5415
|
-
}
|
|
3901
|
+
* type: MIME type.
|
|
3902
|
+
*
|
|
3903
|
+
* lastModified: Last modified timestamp.
|
|
3904
|
+
*
|
|
3905
|
+
* buffer: Byte array representing file contents (as a regular array).
|
|
3906
|
+
*
|
|
3907
|
+
* @example
|
|
3908
|
+
*
|
|
3909
|
+
* import { serializeFileForBrowser } from "@utils/fileUtils";
|
|
3910
|
+
*
|
|
3911
|
+
* const serializedFile = await serializeFileForBrowser(file);
|
|
3912
|
+
* @endexample
|
|
3913
|
+
*/
|
|
3914
|
+
declare const serializeFileForBrowser: (file: File) => Promise<{
|
|
3915
|
+
name: string;
|
|
3916
|
+
type: string;
|
|
3917
|
+
lastModified: number;
|
|
3918
|
+
buffer: number[];
|
|
3919
|
+
}>;
|
|
3920
|
+
/**
|
|
3921
|
+
*
|
|
3922
|
+
* Used to generate a random File object of a specific size and type.
|
|
3923
|
+
*
|
|
3924
|
+
* sizeInKB: Size of the file in KB.
|
|
3925
|
+
*
|
|
3926
|
+
* fileType: Type/extension of the file (e.g., 'png', 'pdf', 'jpg').
|
|
3927
|
+
*
|
|
3928
|
+
* fileName (optional): Custom name for the generated file. Defaults to sample.{fileType}.
|
|
3929
|
+
*
|
|
3930
|
+
* Returns an object containing:
|
|
3931
|
+
*
|
|
3932
|
+
* file: The generated File object.
|
|
3933
|
+
*
|
|
3934
|
+
* fileName: The file name as a string.
|
|
3935
|
+
*
|
|
3936
|
+
* @example
|
|
3937
|
+
*
|
|
3938
|
+
* import { generateRandomFile } from "@utils/fileUtils";
|
|
3939
|
+
*
|
|
3940
|
+
* const { file, fileName } = generateRandomFile({
|
|
3941
|
+
* sizeInKB: 1024,
|
|
3942
|
+
* fileType: "png",
|
|
3943
|
+
* });
|
|
3944
|
+
* @endexample
|
|
3945
|
+
*/
|
|
3946
|
+
declare const generateRandomFile: ({
|
|
3947
|
+
sizeInKB,
|
|
3948
|
+
fileType,
|
|
3949
|
+
fileName
|
|
3950
|
+
}: GenerateRandomFileProps) => {
|
|
3951
|
+
file: File;
|
|
3952
|
+
fileName: string;
|
|
3953
|
+
};
|
|
3954
|
+
/**
|
|
3955
|
+
*
|
|
3956
|
+
* Used to read a file from disk and build a MIME-correct File object suitable for uploadFileViaDispatchV2, unlike generateRandomFile which fills the file with random bytes.
|
|
3957
|
+
*
|
|
3958
|
+
* filePath: Absolute (or already-resolved) path of the file to read.
|
|
3959
|
+
*
|
|
3960
|
+
* mimeType: MIME type to set on the resulting File object.
|
|
3961
|
+
*
|
|
3962
|
+
* Returns a File object named after filePath's basename.
|
|
3963
|
+
*
|
|
3964
|
+
* @example
|
|
3965
|
+
*
|
|
3966
|
+
* import path from "path";
|
|
3967
|
+
*
|
|
3968
|
+
* import { readFileAsBrowserFile } from "@utils/fileUtils";
|
|
3969
|
+
*
|
|
3970
|
+
* const file = readFileAsBrowserFile({
|
|
3971
|
+
* filePath: path.join(__dirname, "../assets/files/sample.docx"),
|
|
3972
|
+
* mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
3973
|
+
* });
|
|
3974
|
+
* @endexample
|
|
3975
|
+
*/
|
|
3976
|
+
declare const readFileAsBrowserFile: ({
|
|
3977
|
+
filePath,
|
|
3978
|
+
mimeType
|
|
3979
|
+
}: ReadFileAsBrowserFileProps) => File;
|
|
5416
3980
|
/**
|
|
5417
3981
|
*
|
|
5418
3982
|
* Function to generate a random email to bypass OTP verification and log into
|
|
@@ -5464,11 +4028,6 @@ type FetchOtpFromEmail = (params: {
|
|
|
5464
4028
|
email: string;
|
|
5465
4029
|
timeout: number;
|
|
5466
4030
|
}) => Promise<string>;
|
|
5467
|
-
interface LoginWithFastmailEmail {
|
|
5468
|
-
email: string;
|
|
5469
|
-
loginTimeout?: number;
|
|
5470
|
-
fetchOtpFromEmail: FetchOtpFromEmail;
|
|
5471
|
-
}
|
|
5472
4031
|
interface ProfileDetails {
|
|
5473
4032
|
firstName?: string;
|
|
5474
4033
|
lastName?: string;
|
|
@@ -5659,65 +4218,6 @@ declare class OrganizationPage {
|
|
|
5659
4218
|
* @endexample
|
|
5660
4219
|
*/
|
|
5661
4220
|
login: (params?: LoginParams) => Promise<void>;
|
|
5662
|
-
/** @deprecated Use `login({ email, via: "authenticatorApp" })`. */
|
|
5663
|
-
/**
|
|
5664
|
-
*
|
|
5665
|
-
* Deprecated. Use login({ email, via: "authenticatorApp" }) instead. The loginTimeout argument is ignored.
|
|
5666
|
-
*
|
|
5667
|
-
* Logs in by generating a TOTP token from PLAYWRIGHT_PRODUCTION_2FA_SECRET_KEY.
|
|
5668
|
-
*
|
|
5669
|
-
* Used by the production health checks.
|
|
5670
|
-
*
|
|
5671
|
-
* @example
|
|
5672
|
-
*
|
|
5673
|
-
* await organizationPage.loginViaAuthenticatorApp(email)
|
|
5674
|
-
* @endexample
|
|
5675
|
-
*/
|
|
5676
|
-
loginViaAuthenticatorApp: (email?: string, loginTimeout?: number) => Promise<void>;
|
|
5677
|
-
/** @deprecated Use `login({ email })`. */
|
|
5678
|
-
/**
|
|
5679
|
-
*
|
|
5680
|
-
* Deprecated. Use login({ email }) instead. The loginTimeout argument is ignored; email submission retries use the shared LOGIN_TIMEOUT.
|
|
5681
|
-
*
|
|
5682
|
-
* email (optional): A bypass email. If not provided, a random bypass email will be generated.
|
|
5683
|
-
*
|
|
5684
|
-
* loginTimeout (optional): Ignored; email submission retries use the shared LOGIN_TIMEOUT.
|
|
5685
|
-
*
|
|
5686
|
-
* @example
|
|
5687
|
-
*
|
|
5688
|
-
* await organizationPage.loginViaSSO()
|
|
5689
|
-
* @endexample
|
|
5690
|
-
*/
|
|
5691
|
-
loginViaSSO: (email?: string, loginTimeout?: number) => Promise<void>;
|
|
5692
|
-
/** @deprecated Use `login({ email, via: "emailOtp", fetchOtpFromEmail })`. */
|
|
5693
|
-
/**
|
|
5694
|
-
*
|
|
5695
|
-
* Deprecated. Use login({ email, via: "emailOtp", fetchOtpFromEmail }) instead.
|
|
5696
|
-
*
|
|
5697
|
-
* This method is used to login NeetoAuth using Fastmail email id. It takes the following parameters:
|
|
5698
|
-
*
|
|
5699
|
-
* email: A Fastmail email id. You can generate a Fastmail email id using the method generateRandomEmail in MailerUtils.
|
|
5700
|
-
*
|
|
5701
|
-
* loginTimeout (optional): Ignored; email submission retries use the shared LOGIN_TIMEOUT.
|
|
5702
|
-
*
|
|
5703
|
-
* fetchOtpFromEmail: Method to fetch OTP from Fastmail email.
|
|
5704
|
-
*
|
|
5705
|
-
* @example
|
|
5706
|
-
*
|
|
5707
|
-
* await organizationPage.loginWithFastmailEmail({
|
|
5708
|
-
* email,
|
|
5709
|
-
* fetchOtpFromEmail: () =>
|
|
5710
|
-
* mailerUtils.findOtpFromEmail({
|
|
5711
|
-
* ...newHost,
|
|
5712
|
-
* timeout: 5 * 60 * 1000,
|
|
5713
|
-
* }),
|
|
5714
|
-
* })
|
|
5715
|
-
* @endexample
|
|
5716
|
-
*/
|
|
5717
|
-
loginWithFastmailEmail: ({
|
|
5718
|
-
email,
|
|
5719
|
-
fetchOtpFromEmail
|
|
5720
|
-
}: LoginWithFastmailEmail) => Promise<void>;
|
|
5721
4221
|
/**
|
|
5722
4222
|
*
|
|
5723
4223
|
* Used to fill and submit all the profile info. It takes the following parameters:
|
|
@@ -5844,206 +4344,22 @@ declare class OrganizationPage {
|
|
|
5844
4344
|
* businessName:"bigbinary",
|
|
5845
4345
|
* subdomainName: "bigbinary"
|
|
5846
4346
|
* }
|
|
5847
|
-
*
|
|
5848
|
-
* await organizationPage.fillOrganizationDetails({
|
|
5849
|
-
* credentials,
|
|
5850
|
-
* appName:"neetoChat"
|
|
5851
|
-
* })
|
|
5852
|
-
* @endexample
|
|
5853
|
-
*/
|
|
5854
|
-
fillOrganizationDetails: ({
|
|
5855
|
-
credentials,
|
|
5856
|
-
appName
|
|
5857
|
-
}: {
|
|
5858
|
-
credentials: Credentials;
|
|
5859
|
-
appName: string;
|
|
5860
|
-
}) => Promise<void>;
|
|
5861
|
-
changeCountry: (country: string) => Promise<void>;
|
|
5862
|
-
/** @deprecated Use `login({ via: "google" })`. */
|
|
5863
|
-
/**
|
|
5864
|
-
*
|
|
5865
|
-
* Deprecated. Use login({ via: "google" }) instead.
|
|
5866
|
-
*
|
|
5867
|
-
* Used to login via Google authentication. This method clicks the Google authentication button, selects the "neetoAutomation" account, and handles TOTP verification if required. It takes no parameters.
|
|
5868
|
-
*
|
|
5869
|
-
* @example
|
|
5870
|
-
*
|
|
5871
|
-
* await organizationPage.loginViaGoogleAuth()
|
|
5872
|
-
* @endexample
|
|
5873
|
-
*/
|
|
5874
|
-
loginViaGoogleAuth: () => Promise<void>;
|
|
5875
|
-
completeGoogleAuth: () => Promise<void>;
|
|
5876
|
-
}
|
|
5877
|
-
interface ApiKeyDetails {
|
|
5878
|
-
label: string;
|
|
5879
|
-
expiryDate?: string;
|
|
5880
|
-
}
|
|
5881
|
-
interface VerifyApiKeyProps {
|
|
5882
|
-
targetRow: Locator;
|
|
5883
|
-
label: string;
|
|
5884
|
-
date: string;
|
|
5885
|
-
}
|
|
5886
|
-
declare class ApiKeysPage {
|
|
5887
|
-
page: Page;
|
|
5888
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
5889
|
-
t: TFunction;
|
|
5890
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
5891
|
-
protected enableExpiryDate: (expiryDate: string) => Promise<void>;
|
|
5892
|
-
/**
|
|
5893
|
-
*
|
|
5894
|
-
* Used to fill in the details for creating or editing an API key.
|
|
5895
|
-
*
|
|
5896
|
-
* label (required): The name for the API key.
|
|
5897
|
-
*
|
|
5898
|
-
* expiryDate (optional): The expiry date for the API key, formatted as "DD/MM/YYYY".
|
|
5899
|
-
*
|
|
5900
|
-
* @example
|
|
5901
|
-
*
|
|
5902
|
-
* await apiKeysPage.fillApiKeyDetails({
|
|
5903
|
-
* label: "API Key",
|
|
5904
|
-
* expiryDate: "08/11/2025"
|
|
5905
|
-
* });
|
|
5906
|
-
* @endexample
|
|
5907
|
-
*/
|
|
5908
|
-
fillApiKeyDetails: ({
|
|
5909
|
-
label,
|
|
5910
|
-
expiryDate
|
|
5911
|
-
}: ApiKeyDetails) => Promise<void>;
|
|
5912
|
-
/**
|
|
5913
|
-
*
|
|
5914
|
-
* Used to verify the values in the API keys table.
|
|
5915
|
-
*
|
|
5916
|
-
* targetRow (required): The locator of the row where the API key should be verified.
|
|
5917
|
-
*
|
|
5918
|
-
* label (required): The name of the API key.
|
|
5919
|
-
*
|
|
5920
|
-
* date (required): The creation date of the API key, formatted as "MMM dd, yyyy".
|
|
5921
|
-
*
|
|
5922
|
-
* @example
|
|
5923
|
-
*
|
|
5924
|
-
* await apiKeysPage.verifyApiKey({
|
|
5925
|
-
* targetRow: page.getByRole("row"),
|
|
5926
|
-
* label: "API Key",
|
|
5927
|
-
* date: "Mar 11, 2025"
|
|
5928
|
-
* });
|
|
5929
|
-
* @endexample
|
|
5930
|
-
*/
|
|
5931
|
-
verifyApiKey: ({
|
|
5932
|
-
targetRow,
|
|
5933
|
-
label,
|
|
5934
|
-
date
|
|
5935
|
-
}: VerifyApiKeyProps) => Promise<[void, void, void, void]>;
|
|
5936
|
-
/**
|
|
5937
|
-
*
|
|
5938
|
-
* Used to edit an existing API key.
|
|
5939
|
-
*
|
|
5940
|
-
* label (required): The new name for the API key.
|
|
5941
|
-
*
|
|
5942
|
-
* expiryDate (optional): The day of the month for the expiry date, formatted as "dd".
|
|
5943
|
-
*
|
|
5944
|
-
* @example
|
|
5945
|
-
*
|
|
5946
|
-
* await apiKeysPage.editApiKey({
|
|
5947
|
-
* label: "new API Key",
|
|
5948
|
-
* expiryDate: "20"
|
|
5949
|
-
* });
|
|
5950
|
-
* @endexample
|
|
5951
|
-
*/
|
|
5952
|
-
editApiKey: ({
|
|
5953
|
-
label,
|
|
5954
|
-
expiryDate
|
|
5955
|
-
}: ApiKeyDetails) => Promise<void>;
|
|
5956
|
-
/**
|
|
5957
|
-
*
|
|
5958
|
-
* Used to delete an existing API key.
|
|
5959
|
-
*
|
|
5960
|
-
* targetRow (required): The locator of the row containing the API key to delete.
|
|
5961
|
-
*
|
|
5962
|
-
* @example
|
|
5963
|
-
*
|
|
5964
|
-
* await apiKeysPage.deleteApiKey(targetRow);
|
|
5965
|
-
* @endexample
|
|
5966
|
-
*/
|
|
5967
|
-
deleteApiKey: (targetRow: Locator) => Promise<void>;
|
|
5968
|
-
}
|
|
5969
|
-
declare class ApiKeysPageV2 extends ApiKeysPage {
|
|
5970
|
-
protected enableExpiryDate: (expiryDate: string) => Promise<void>;
|
|
5971
|
-
/**
|
|
5972
|
-
*
|
|
5973
|
-
* Used to fill in the details for creating or editing an API key.
|
|
5974
|
-
*
|
|
5975
|
-
* label (required): The name for the API key.
|
|
5976
|
-
*
|
|
5977
|
-
* expiryDate (optional): The expiry date for the API key, formatted as "DD/MM/YYYY".
|
|
5978
|
-
*
|
|
5979
|
-
* @example
|
|
5980
|
-
*
|
|
5981
|
-
* await apiKeysPage.fillApiKeyDetails({
|
|
5982
|
-
* label: "API Key",
|
|
5983
|
-
* expiryDate: "08/11/2025"
|
|
5984
|
-
* });
|
|
5985
|
-
* @endexample
|
|
5986
|
-
*/
|
|
5987
|
-
fillApiKeyDetails: ({
|
|
5988
|
-
label,
|
|
5989
|
-
expiryDate
|
|
5990
|
-
}: ApiKeyDetails) => Promise<void>;
|
|
5991
|
-
/**
|
|
5992
|
-
*
|
|
5993
|
-
* Used to verify the values in the API keys table.
|
|
5994
|
-
*
|
|
5995
|
-
* targetRow (required): The locator of the row where the API key should be verified.
|
|
5996
|
-
*
|
|
5997
|
-
* label (required): The name of the API key.
|
|
5998
|
-
*
|
|
5999
|
-
* date (required): The creation date of the API key, formatted as "MMM dd, yyyy".
|
|
6000
|
-
*
|
|
6001
|
-
* @example
|
|
6002
|
-
*
|
|
6003
|
-
* await apiKeysPage.verifyApiKey({
|
|
6004
|
-
* targetRow: page.getByRole("row"),
|
|
6005
|
-
* label: "API Key",
|
|
6006
|
-
* date: "Mar 11, 2025"
|
|
6007
|
-
* });
|
|
6008
|
-
* @endexample
|
|
6009
|
-
*/
|
|
6010
|
-
verifyApiKey: ({
|
|
6011
|
-
targetRow,
|
|
6012
|
-
label,
|
|
6013
|
-
date
|
|
6014
|
-
}: VerifyApiKeyProps) => Promise<[void, void, void, void]>;
|
|
6015
|
-
/**
|
|
6016
|
-
*
|
|
6017
|
-
* Used to edit an existing API key.
|
|
6018
|
-
*
|
|
6019
|
-
* label (required): The new name for the API key.
|
|
6020
|
-
*
|
|
6021
|
-
* expiryDate (optional): The day of the month for the expiry date, formatted as "dd".
|
|
6022
|
-
*
|
|
6023
|
-
* @example
|
|
6024
|
-
*
|
|
6025
|
-
* await apiKeysPage.editApiKey({
|
|
6026
|
-
* label: "new API Key",
|
|
6027
|
-
* expiryDate: "20"
|
|
6028
|
-
* });
|
|
6029
|
-
* @endexample
|
|
6030
|
-
*/
|
|
6031
|
-
editApiKey: ({
|
|
6032
|
-
label,
|
|
6033
|
-
expiryDate
|
|
6034
|
-
}: ApiKeyDetails) => Promise<void>;
|
|
6035
|
-
/**
|
|
6036
|
-
*
|
|
6037
|
-
* Used to delete an existing API key.
|
|
6038
|
-
*
|
|
6039
|
-
* targetRow (required): The locator of the row containing the API key to delete.
|
|
6040
|
-
*
|
|
6041
|
-
* @example
|
|
6042
|
-
*
|
|
6043
|
-
* await apiKeysPage.deleteApiKey(targetRow);
|
|
4347
|
+
*
|
|
4348
|
+
* await organizationPage.fillOrganizationDetails({
|
|
4349
|
+
* credentials,
|
|
4350
|
+
* appName:"neetoChat"
|
|
4351
|
+
* })
|
|
6044
4352
|
* @endexample
|
|
6045
4353
|
*/
|
|
6046
|
-
|
|
4354
|
+
fillOrganizationDetails: ({
|
|
4355
|
+
credentials,
|
|
4356
|
+
appName
|
|
4357
|
+
}: {
|
|
4358
|
+
credentials: Credentials;
|
|
4359
|
+
appName: string;
|
|
4360
|
+
}) => Promise<void>;
|
|
4361
|
+
changeCountry: (country: string) => Promise<void>;
|
|
4362
|
+
completeGoogleAuth: () => Promise<void>;
|
|
6047
4363
|
}
|
|
6048
4364
|
declare const ACTIONS: {
|
|
6049
4365
|
readonly inviteUsers: "invitedUsers";
|
|
@@ -6114,11 +4430,9 @@ interface VerifyAuditLogProps<T extends ActionDataKey> {
|
|
|
6114
4430
|
declare class AuditLogsPage {
|
|
6115
4431
|
private page;
|
|
6116
4432
|
private neetoPlaywrightUtilities;
|
|
6117
|
-
protected currentDate: string;
|
|
6118
4433
|
messageBuilders: MessageBuilders;
|
|
6119
4434
|
private admin;
|
|
6120
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands
|
|
6121
|
-
_product?: NeetoProducts, timeZone?: string);
|
|
4435
|
+
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6122
4436
|
/**
|
|
6123
4437
|
*
|
|
6124
4438
|
* Verifies an audit log entry by building the expected message based on the action type and data, then checking that the audit log content matches the expected message and current date.
|
|
@@ -6235,7 +4549,7 @@ declare class CustomDomainPage {
|
|
|
6235
4549
|
*
|
|
6236
4550
|
* that toast is only emitted on a synchronous 200. After the domain is
|
|
6237
4551
|
*
|
|
6238
|
-
* active, closes the validation
|
|
4552
|
+
* active, closes the validation sheet if it is still open so later UI steps can
|
|
6239
4553
|
*
|
|
6240
4554
|
* reach the domain list.
|
|
6241
4555
|
*
|
|
@@ -6340,487 +4654,325 @@ declare class CustomDomainPage {
|
|
|
6340
4654
|
shouldUpdateBaseURL?: boolean | undefined;
|
|
6341
4655
|
shouldUseEdgeCertificate?: boolean | undefined;
|
|
6342
4656
|
}) => Promise<void>;
|
|
6343
|
-
private validateDomain;
|
|
6344
|
-
private awaitDomainValidation;
|
|
6345
|
-
private getCustomDomainFromAPI;
|
|
6346
|
-
/**
|
|
6347
|
-
*
|
|
6348
|
-
* Removes an existing custom domain configuration via the UI from the custom domain settings page. Validates that the domain has been successfully deleted. Skips execution if no custom domain is connected.
|
|
6349
|
-
*
|
|
6350
|
-
* @example
|
|
6351
|
-
*
|
|
6352
|
-
* await customDomainPage.disconnectCustomDomain();
|
|
6353
|
-
* @endexample
|
|
6354
|
-
*/
|
|
6355
|
-
disconnectCustomDomain: () => Promise<void>;
|
|
6356
|
-
/**
|
|
6357
|
-
*
|
|
6358
|
-
* Removes an existing custom domain configuration via API request for the given product. Skips execution if custom domain setup is disabled.
|
|
6359
|
-
*
|
|
6360
|
-
* shouldOpenDefaultDomain (optional): Defaults to false. Pass true to open the global organization's default domain afterwards, since the deleted custom domain no longer resolves to the organization (e.g. before logout in teardown).
|
|
6361
|
-
*
|
|
6362
|
-
* @example
|
|
6363
|
-
*
|
|
6364
|
-
* await customDomainPage.disconnectViaRequest({ shouldOpenDefaultDomain: true });
|
|
6365
|
-
* @endexample
|
|
6366
|
-
*/
|
|
6367
|
-
disconnectViaRequest: ({
|
|
6368
|
-
shouldOpenDefaultDomain
|
|
6369
|
-
}?: {
|
|
6370
|
-
shouldOpenDefaultDomain?: boolean | undefined;
|
|
6371
|
-
}) => Promise<void>;
|
|
6372
|
-
private getValidationPaneBody;
|
|
6373
|
-
private getValidationPane;
|
|
6374
|
-
private getCertificateInfrastructureSkipReason;
|
|
6375
|
-
private closeValidationPane;
|
|
6376
|
-
}
|
|
6377
|
-
declare class IPRestrictionsPage {
|
|
6378
|
-
page: Page;
|
|
6379
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
6380
|
-
t: TFunction;
|
|
6381
|
-
saveButton: Locator;
|
|
6382
|
-
ipRestrictionsApi: IpRestrictionsApi;
|
|
6383
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6384
|
-
setIPRange: (ipRange: string[], type?: "IPv4" | "IPv6", index?: number) => Promise<void>;
|
|
6385
|
-
/**
|
|
6386
|
-
*
|
|
6387
|
-
* Used to save the changes made on the thank you page.
|
|
6388
|
-
*
|
|
6389
|
-
* @example
|
|
6390
|
-
*
|
|
6391
|
-
* await thankYouPage.saveChanges();
|
|
6392
|
-
* @endexample
|
|
6393
|
-
*/
|
|
6394
|
-
saveChanges: () => Promise<void>;
|
|
6395
|
-
disableIPRestriction: () => Promise<void>;
|
|
6396
|
-
}
|
|
6397
|
-
interface RoleDetails {
|
|
6398
|
-
roleName: string;
|
|
6399
|
-
permissions: string[];
|
|
6400
|
-
parentPermission?: string;
|
|
6401
|
-
hierarchyLevelOfPermissions?: number;
|
|
6402
|
-
}
|
|
6403
|
-
declare class RolesPage {
|
|
6404
|
-
page: Page;
|
|
6405
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
6406
|
-
roleApis: RoleApis;
|
|
6407
|
-
t: TFunction;
|
|
6408
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6409
|
-
getPermissionIds: (targetPermissions: string[], isGranularPermission?: boolean) => Promise<any[]>;
|
|
6410
|
-
getRoleIdAndOrganizationId: (roleName: string) => Promise<{
|
|
6411
|
-
roleId: string;
|
|
6412
|
-
organizationId: string;
|
|
6413
|
-
}>;
|
|
6414
|
-
/**
|
|
6415
|
-
*
|
|
6416
|
-
* Used to add a custom role via API request.
|
|
6417
|
-
*
|
|
6418
|
-
* roleName (required): The name of the role to add.
|
|
6419
|
-
*
|
|
6420
|
-
* targetPermissions (required): Array of permission names to assign.
|
|
6421
|
-
*
|
|
6422
|
-
* @example
|
|
6423
|
-
*
|
|
6424
|
-
* await rolesPage.addCustomRoleViaRequest("Custom Role", ["Manage themes", "View roles"]);
|
|
6425
|
-
* @endexample
|
|
6426
|
-
*/
|
|
6427
|
-
addCustomRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse<any> | undefined>;
|
|
6428
|
-
/**
|
|
6429
|
-
*
|
|
6430
|
-
* Used to edit an existing role via API request.
|
|
6431
|
-
*
|
|
6432
|
-
* roleName (required): The name of the role to edit.
|
|
6433
|
-
*
|
|
6434
|
-
* targetPermissions (required): Array of permission names to update.
|
|
6435
|
-
*
|
|
6436
|
-
* @example
|
|
6437
|
-
*
|
|
6438
|
-
* await rolesPage.editRoleViaRequest("Custom Role", ["Manage roles"]);
|
|
6439
|
-
* @endexample
|
|
6440
|
-
*/
|
|
6441
|
-
editRoleViaRequest: (roleName: string, targetPermissions: string[], isGranularPermission?: boolean) => Promise<_playwright_test.APIResponse<any> | undefined>;
|
|
6442
|
-
/**
|
|
6443
|
-
*
|
|
6444
|
-
* Used to delete a role via API request.
|
|
6445
|
-
*
|
|
6446
|
-
* roleName (required): The name of the role to delete.
|
|
6447
|
-
*
|
|
6448
|
-
* @example
|
|
6449
|
-
*
|
|
6450
|
-
* await rolesPage.deleteRoleViaRequest("Custom Role");
|
|
6451
|
-
* @endexample
|
|
6452
|
-
*/
|
|
6453
|
-
deleteRoleViaRequest: (roleName: string, secondaryRoleName?: string) => Promise<_playwright_test.APIResponse<any> | undefined>;
|
|
6454
|
-
/**
|
|
6455
|
-
*
|
|
6456
|
-
* Used to add a role through the UI.
|
|
6457
|
-
*
|
|
6458
|
-
* roleName (required): The name of the role to add.
|
|
6459
|
-
*
|
|
6460
|
-
* permissions (required): Array of permission names to assign.
|
|
6461
|
-
*
|
|
6462
|
-
* parentPermission (optional): The parent permission name. Required when selecting nested permissions. Default is an empty string.
|
|
6463
|
-
*
|
|
6464
|
-
* hierarchyLevelOfPermissions (optional): Hierarchy level of the permissions passed in the array. Calculate the hierarchy level from permission name as 0, then category as 1 and subcategory as 2 and so on. Default is 2.
|
|
6465
|
-
*
|
|
6466
|
-
* @example
|
|
6467
|
-
*
|
|
6468
|
-
* await rolesPage.addRoleViaUI({
|
|
6469
|
-
* roleName: "Custom Role",
|
|
6470
|
-
* permissions: [ "Reminder of host", "Stripe standard integration", "iCloud calendar" ],
|
|
6471
|
-
* parentPermission: "Manage all hosts settings",
|
|
6472
|
-
* hierarchyLevelOfPermissions: 2,
|
|
6473
|
-
* });
|
|
6474
|
-
* @endexample
|
|
6475
|
-
*/
|
|
6476
|
-
addRoleViaUI: ({
|
|
6477
|
-
roleName,
|
|
6478
|
-
permissions,
|
|
6479
|
-
parentPermission,
|
|
6480
|
-
hierarchyLevelOfPermissions
|
|
6481
|
-
}: RoleDetails) => Promise<void>;
|
|
6482
|
-
/**
|
|
6483
|
-
*
|
|
6484
|
-
* Used to edit an existing role through the UI.
|
|
6485
|
-
*
|
|
6486
|
-
* roleName (required): The name of the role to edit.
|
|
6487
|
-
*
|
|
6488
|
-
* permissions (required): Array of permission names to update.
|
|
6489
|
-
*
|
|
6490
|
-
* parentPermission (optional): The parent permission name. Required when selecting nested permissions. Default is an empty string.
|
|
6491
|
-
*
|
|
6492
|
-
* hierarchyLevelOfPermissions (optional): Hierarchy level of the permissions passed in the array. Calculate the hierarchy level from permission name as 0, then category as 1 and subcategory as 2 and so on. Default is 2.
|
|
6493
|
-
*
|
|
6494
|
-
* @example
|
|
6495
|
-
*
|
|
6496
|
-
* await rolesPage.editRoleViaUI({
|
|
6497
|
-
* roleName: "Custom Role",
|
|
6498
|
-
* permissions: [ "Reminder of host", "Stripe standard integration", "iCloud calendar" ],
|
|
6499
|
-
* parentPermission: "Manage all hosts settings",
|
|
6500
|
-
* hierarchyLevelOfPermissions: 2,
|
|
6501
|
-
* });
|
|
6502
|
-
* @endexample
|
|
6503
|
-
*/
|
|
6504
|
-
editRoleViaUI: ({
|
|
6505
|
-
roleName,
|
|
6506
|
-
permissions,
|
|
6507
|
-
parentPermission,
|
|
6508
|
-
hierarchyLevelOfPermissions
|
|
6509
|
-
}: RoleDetails) => Promise<void>;
|
|
6510
|
-
/**
|
|
6511
|
-
*
|
|
6512
|
-
* Used to select permissions.
|
|
6513
|
-
*
|
|
6514
|
-
* permissions (required): Array of permission names to select.
|
|
6515
|
-
*
|
|
6516
|
-
* parentPermission (optional): The parent permission name. Required when selecting nested permissions. Default is an empty string.
|
|
6517
|
-
*
|
|
6518
|
-
* hierarchyLevelOfPermissions (optional): Hierarchy level of the permissions passed in the array. Calculate the hierarchy level from permission name as 0, then category as 1 and subcategory as 2 and so on. Default is 2.
|
|
6519
|
-
*
|
|
6520
|
-
* @example
|
|
6521
|
-
*
|
|
6522
|
-
* await rolesPage.selectAndSubmitPermissions([ "Reminder of host", "Stripe standard integration", "iCloud calendar" ], "Manage all hosts settings", 2 );
|
|
6523
|
-
* @endexample
|
|
6524
|
-
*/
|
|
6525
|
-
selectAndSubmitPermissions: (permissions: string[], parentPermission?: string, hierarchyLevelOfPermissions?: number) => Promise<void>;
|
|
6526
|
-
/**
|
|
6527
|
-
*
|
|
6528
|
-
* Used to delete a role through the UI.
|
|
6529
|
-
*
|
|
6530
|
-
* roleName (required): The name of the role to delete.
|
|
6531
|
-
*
|
|
6532
|
-
* @example
|
|
6533
|
-
*
|
|
6534
|
-
* await rolesPage.deleteRoleViaUI("Custom Role");
|
|
6535
|
-
* @endexample
|
|
6536
|
-
*/
|
|
6537
|
-
deleteRoleViaUI: (roleName: string) => Promise<void>;
|
|
6538
|
-
/**
|
|
6539
|
-
*
|
|
6540
|
-
* Used to verify role permissions visibility.
|
|
6541
|
-
*
|
|
6542
|
-
* allPermissions (required): Object containing all possible permissions.
|
|
6543
|
-
*
|
|
6544
|
-
* rolePermissions (required): Array of permissions assigned to the role.
|
|
6545
|
-
*
|
|
6546
|
-
* @example
|
|
6547
|
-
*
|
|
6548
|
-
* await rolesPage.verifyPermissions({
|
|
6549
|
-
* allPermissions: { adminPanel: "settings-nav-tab", members: "members-nav-tab" },
|
|
6550
|
-
* rolePermissions: ["members-nav-tab"]
|
|
6551
|
-
* });
|
|
6552
|
-
* @endexample
|
|
6553
|
-
*/
|
|
6554
|
-
verifyPermissions: ({
|
|
6555
|
-
allPermissions,
|
|
6556
|
-
rolePermissions
|
|
6557
|
-
}: {
|
|
6558
|
-
allPermissions: object;
|
|
6559
|
-
rolePermissions: string[];
|
|
6560
|
-
}) => Promise<void[]>;
|
|
6561
|
-
/**
|
|
6562
|
-
*
|
|
6563
|
-
* Used to verify role-specific link access.
|
|
6564
|
-
*
|
|
6565
|
-
* roleAccessableLinks (optional): Array of links the role can access.
|
|
6566
|
-
*
|
|
6567
|
-
* adminAccessableLinks (required): Array of links an admin can access.
|
|
6568
|
-
*
|
|
6569
|
-
* @example
|
|
6570
|
-
*
|
|
6571
|
-
* await rolesPage.verifyRoleSpecificLinkAccess({
|
|
6572
|
-
* roleAccessableLinks: ["/themes","/seo","roles"],
|
|
6573
|
-
* adminAccessableLinks: ["/themes"]
|
|
6574
|
-
* });
|
|
6575
|
-
* @endexample
|
|
6576
|
-
*/
|
|
6577
|
-
verifyRoleSpecificLinkAccess: ({
|
|
6578
|
-
roleAccessableLinks,
|
|
6579
|
-
adminAccessableLinks
|
|
6580
|
-
}: {
|
|
6581
|
-
roleAccessableLinks?: string[];
|
|
6582
|
-
adminAccessableLinks: string[];
|
|
6583
|
-
}) => Promise<void>;
|
|
6584
|
-
}
|
|
6585
|
-
declare class RolesPageV2 extends RolesPage {
|
|
6586
|
-
/**
|
|
6587
|
-
*
|
|
6588
|
-
* Used to select permissions.
|
|
6589
|
-
*
|
|
6590
|
-
* permissions (required): Array of permission names to select.
|
|
6591
|
-
*
|
|
6592
|
-
* parentPermission (optional): The parent permission name. Required when selecting nested permissions. Default is an empty string.
|
|
6593
|
-
*
|
|
6594
|
-
* hierarchyLevelOfPermissions (optional): Hierarchy level of the permissions passed in the array. Calculate the hierarchy level from permission name as 0, then category as 1 and subcategory as 2 and so on. Default is 2.
|
|
6595
|
-
*
|
|
6596
|
-
* @example
|
|
6597
|
-
*
|
|
6598
|
-
* await rolesPage.selectAndSubmitPermissions([ "Reminder of host", "Stripe standard integration", "iCloud calendar" ], "Manage all hosts settings", 2 );
|
|
6599
|
-
* @endexample
|
|
6600
|
-
*/
|
|
6601
|
-
selectAndSubmitPermissions: (permissions: string[], parentPermission?: string, hierarchyLevelOfPermissions?: number) => Promise<void>;
|
|
6602
|
-
}
|
|
6603
|
-
declare class SidebarSection {
|
|
6604
|
-
page: Page;
|
|
6605
|
-
neetoPlaywrightUtilities: CustomCommands;
|
|
6606
|
-
t: TFunction;
|
|
6607
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6608
|
-
/**
|
|
6609
|
-
*
|
|
6610
|
-
* Used to click on the sub link in the sidebar. It takes the following parameters:
|
|
6611
|
-
*
|
|
6612
|
-
* label (required): The label of the sub link.
|
|
6613
|
-
*
|
|
6614
|
-
* @example
|
|
6615
|
-
*
|
|
6616
|
-
* await sideBarPage.clickOnSubLink("open menu item")
|
|
6617
|
-
* @endexample
|
|
6618
|
-
*/
|
|
6619
|
-
clickOnSubLink: (label: string) => Promise<void>;
|
|
6620
|
-
/**
|
|
6621
|
-
*
|
|
6622
|
-
* Used to go back to the previous page. It takes the following parameters:
|
|
6623
|
-
*
|
|
6624
|
-
* label (required): The label of the go back button.
|
|
6625
|
-
*
|
|
6626
|
-
* @example
|
|
6627
|
-
*
|
|
6628
|
-
* await sideBarPage.sidebarGoBackButton("settings")
|
|
6629
|
-
* @endexample
|
|
6630
|
-
*/
|
|
6631
|
-
clickOnGoBackButton: (label: string) => Promise<void>;
|
|
6632
|
-
}
|
|
6633
|
-
interface SearchAndSelectProps {
|
|
6634
|
-
selector: string;
|
|
6635
|
-
tagName: string;
|
|
6636
|
-
rowSelector: string;
|
|
6637
|
-
}
|
|
6638
|
-
interface MergeTagsViaUIProps {
|
|
6639
|
-
sourceTagName: string;
|
|
6640
|
-
destinationTagName: string;
|
|
6641
|
-
tagsBreadcrumbSelector: string;
|
|
6642
|
-
}
|
|
6643
|
-
declare class TagsPage {
|
|
6644
|
-
private page;
|
|
6645
|
-
private neetoPlaywrightUtilities;
|
|
6646
|
-
t: TFunction;
|
|
6647
|
-
tagsApi: TagsApi;
|
|
6648
|
-
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6649
|
-
/**
|
|
6650
|
-
*
|
|
6651
|
-
* Used to search and verify the tags by providing tag name as the search term. It takes the following parameters:
|
|
6652
|
-
*
|
|
6653
|
-
* tagName (required): The name of the tag to be searched.
|
|
6654
|
-
*
|
|
6655
|
-
* @example
|
|
6656
|
-
*
|
|
6657
|
-
* await tagsPage.searchAndVerifyTags("tagName");
|
|
6658
|
-
* @endexample
|
|
6659
|
-
*/
|
|
6660
|
-
searchAndVerifyTags: (tagName: string) => Promise<void>;
|
|
6661
|
-
/**
|
|
6662
|
-
*
|
|
6663
|
-
* Used to add a tag using the add button in the header. It takes the following parameters:
|
|
6664
|
-
*
|
|
6665
|
-
* tagName (required): The name of the tag to be added.
|
|
6666
|
-
*
|
|
6667
|
-
* addTagsLabel (required): The label of the add new tags pane header.
|
|
6668
|
-
*
|
|
6669
|
-
* tagsResponseUrl (required): the response URL of tags when the save button is clicked while adding new tags.
|
|
6670
|
-
*
|
|
6671
|
-
* @example
|
|
6672
|
-
*
|
|
6673
|
-
* await tagsPage.addTagViaUI({
|
|
6674
|
-
* tagName: "tagName",
|
|
6675
|
-
* addTagsLabel: "Add new tag",
|
|
6676
|
-
* });
|
|
6677
|
-
* @endexample
|
|
6678
|
-
*/
|
|
6679
|
-
addTagViaUI: ({
|
|
6680
|
-
tagName,
|
|
6681
|
-
addTagsLabel
|
|
6682
|
-
}: {
|
|
6683
|
-
tagName: string;
|
|
6684
|
-
addTagsLabel: string;
|
|
6685
|
-
}) => Promise<void>;
|
|
6686
|
-
/**
|
|
6687
|
-
*
|
|
6688
|
-
* Used to filter tags using the filter button in the header. It takes the following parameters:
|
|
6689
|
-
*
|
|
6690
|
-
* tagName (required): The name of the tag to be filtered.
|
|
6691
|
-
*
|
|
6692
|
-
* @example
|
|
6693
|
-
*
|
|
6694
|
-
* await tagsPage.filterTagsViaUI({
|
|
6695
|
-
* tagName: "tagName",
|
|
6696
|
-
* });
|
|
6697
|
-
* @endexample
|
|
6698
|
-
*/
|
|
6699
|
-
filterTagsViaUI: (tagName: string) => Promise<void>;
|
|
6700
|
-
/**
|
|
6701
|
-
*
|
|
6702
|
-
* Used to edit a tag using the edit button in row dropdown. It takes the following parameters:
|
|
6703
|
-
*
|
|
6704
|
-
* tagName (required): The name of the tag to be edited.
|
|
6705
|
-
*
|
|
6706
|
-
* newTagName (required): The new name of the tag.
|
|
6707
|
-
*
|
|
6708
|
-
* @example
|
|
6709
|
-
*
|
|
6710
|
-
* await tagsPage.editTagViaUI({
|
|
6711
|
-
* tagName: "tagName",
|
|
6712
|
-
* newTagName: "newTagName",
|
|
6713
|
-
* });
|
|
6714
|
-
* @endexample
|
|
6715
|
-
*/
|
|
6716
|
-
editTagViaUI: ({
|
|
6717
|
-
tagName,
|
|
6718
|
-
newTagName
|
|
6719
|
-
}: {
|
|
6720
|
-
tagName: string;
|
|
6721
|
-
newTagName: string;
|
|
6722
|
-
}) => Promise<void>;
|
|
4657
|
+
private validateDomain;
|
|
4658
|
+
private awaitDomainValidation;
|
|
4659
|
+
private getCustomDomainFromAPI;
|
|
6723
4660
|
/**
|
|
6724
4661
|
*
|
|
6725
|
-
*
|
|
6726
|
-
*
|
|
6727
|
-
* tagName (required): The name of the tag to be deleted.
|
|
4662
|
+
* Removes an existing custom domain configuration via the UI from the custom domain settings page. Validates that the domain has been successfully deleted. Skips execution if no custom domain is connected.
|
|
6728
4663
|
*
|
|
6729
4664
|
* @example
|
|
6730
4665
|
*
|
|
6731
|
-
* await
|
|
6732
|
-
* tagName: "tagName",
|
|
6733
|
-
* });
|
|
4666
|
+
* await customDomainPage.disconnectCustomDomain();
|
|
6734
4667
|
* @endexample
|
|
6735
4668
|
*/
|
|
6736
|
-
|
|
4669
|
+
disconnectCustomDomain: () => Promise<void>;
|
|
6737
4670
|
/**
|
|
6738
4671
|
*
|
|
6739
|
-
*
|
|
6740
|
-
*
|
|
6741
|
-
* name (required): The name of the tag to be added.
|
|
6742
|
-
*
|
|
6743
|
-
* description (optional): The description of the tag to be added. Default is "".
|
|
4672
|
+
* Removes an existing custom domain configuration via API request for the given product. Skips execution if custom domain setup is disabled.
|
|
6744
4673
|
*
|
|
6745
|
-
*
|
|
4674
|
+
* shouldOpenDefaultDomain (optional): Defaults to false. Pass true to open the global organization's default domain afterwards, since the deleted custom domain no longer resolves to the organization (e.g. before logout in teardown).
|
|
6746
4675
|
*
|
|
6747
4676
|
* @example
|
|
6748
4677
|
*
|
|
6749
|
-
* await
|
|
6750
|
-
* name: "tagName",
|
|
6751
|
-
* description: "tagDescription",
|
|
6752
|
-
* tagsRequestUrl: ROUTES.tags.index,
|
|
6753
|
-
* });
|
|
4678
|
+
* await customDomainPage.disconnectViaRequest({ shouldOpenDefaultDomain: true });
|
|
6754
4679
|
* @endexample
|
|
6755
4680
|
*/
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
}
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
4681
|
+
disconnectViaRequest: ({
|
|
4682
|
+
shouldOpenDefaultDomain
|
|
4683
|
+
}?: {
|
|
4684
|
+
shouldOpenDefaultDomain?: boolean | undefined;
|
|
4685
|
+
}) => Promise<void>;
|
|
4686
|
+
private get validationSheet();
|
|
4687
|
+
private getCertificateInfrastructureSkipReason;
|
|
4688
|
+
private closeValidationPane;
|
|
4689
|
+
}
|
|
4690
|
+
declare class IPRestrictionsPage {
|
|
4691
|
+
page: Page;
|
|
4692
|
+
neetoPlaywrightUtilities: CustomCommands;
|
|
4693
|
+
t: TFunction;
|
|
4694
|
+
saveButton: Locator;
|
|
4695
|
+
ipRestrictionsApi: IpRestrictionsApi;
|
|
4696
|
+
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
4697
|
+
setIPRange: (ipRange: string[], type?: "IPv4" | "IPv6", index?: number) => Promise<void>;
|
|
6765
4698
|
/**
|
|
6766
4699
|
*
|
|
6767
|
-
* Used to
|
|
4700
|
+
* Used to save the changes made on the thank you page.
|
|
6768
4701
|
*
|
|
6769
4702
|
* @example
|
|
6770
4703
|
*
|
|
6771
|
-
* await
|
|
4704
|
+
* await thankYouPage.saveChanges();
|
|
6772
4705
|
* @endexample
|
|
6773
4706
|
*/
|
|
6774
|
-
|
|
4707
|
+
saveChanges: () => Promise<void>;
|
|
4708
|
+
disableIPRestriction: () => Promise<void>;
|
|
4709
|
+
}
|
|
4710
|
+
declare class SidebarSection {
|
|
4711
|
+
page: Page;
|
|
4712
|
+
neetoPlaywrightUtilities: CustomCommands;
|
|
4713
|
+
t: TFunction;
|
|
4714
|
+
constructor(page: Page, neetoPlaywrightUtilities: CustomCommands);
|
|
6775
4715
|
/**
|
|
6776
4716
|
*
|
|
6777
|
-
* Used to
|
|
6778
|
-
*
|
|
6779
|
-
* selector (required): The selector used to search a tag.
|
|
6780
|
-
*
|
|
6781
|
-
* tagName (required): The name of the tag to be searched and selected.
|
|
4717
|
+
* Used to click on the sub link in the sidebar. It takes the following parameters:
|
|
6782
4718
|
*
|
|
6783
|
-
*
|
|
4719
|
+
* label (required): The label of the sub link.
|
|
6784
4720
|
*
|
|
6785
4721
|
* @example
|
|
6786
4722
|
*
|
|
6787
|
-
*
|
|
6788
|
-
* selector: MERGE_TAGS_SELECTORS.sourceSearchTextField,
|
|
6789
|
-
* tagName: "tagName",
|
|
6790
|
-
* rowSelector: MERGE_TAGS_SELECTORS.sourceTagRow,
|
|
6791
|
-
* });
|
|
4723
|
+
* await sideBarPage.clickOnSubLink("open menu item")
|
|
6792
4724
|
* @endexample
|
|
6793
4725
|
*/
|
|
6794
|
-
|
|
6795
|
-
selector,
|
|
6796
|
-
tagName,
|
|
6797
|
-
rowSelector
|
|
6798
|
-
}: SearchAndSelectProps) => Promise<void>;
|
|
4726
|
+
clickOnSubLink: (label: string) => Promise<void>;
|
|
6799
4727
|
/**
|
|
6800
4728
|
*
|
|
6801
|
-
* Used to
|
|
6802
|
-
*
|
|
6803
|
-
* sourceTagName (required): The name of the source tag to be merged.
|
|
6804
|
-
*
|
|
6805
|
-
* destinationTagName (required): The name of the destination tag to be merged.
|
|
4729
|
+
* Used to go back to the previous page. It takes the following parameters:
|
|
6806
4730
|
*
|
|
6807
|
-
*
|
|
4731
|
+
* label (required): The label of the go back button.
|
|
6808
4732
|
*
|
|
6809
4733
|
* @example
|
|
6810
4734
|
*
|
|
6811
|
-
*
|
|
6812
|
-
* sourceTagName: "sourceTagName",
|
|
6813
|
-
* destinationTagName: "destinationTagName",
|
|
6814
|
-
* tagsBreadcrumbSelector: SETTINGS_SELECTORS.ticketTagsBreadcrumb,
|
|
6815
|
-
* })
|
|
4735
|
+
* await sideBarPage.sidebarGoBackButton("settings")
|
|
6816
4736
|
* @endexample
|
|
6817
4737
|
*/
|
|
6818
|
-
|
|
6819
|
-
sourceTagName,
|
|
6820
|
-
destinationTagName,
|
|
6821
|
-
tagsBreadcrumbSelector
|
|
6822
|
-
}: MergeTagsViaUIProps) => Promise<void>;
|
|
4738
|
+
clickOnGoBackButton: (label: string) => Promise<void>;
|
|
6823
4739
|
}
|
|
4740
|
+
/**
|
|
4741
|
+
*
|
|
4742
|
+
* Constants related to different environments.
|
|
4743
|
+
*
|
|
4744
|
+
* development: Represents the development environment.
|
|
4745
|
+
*
|
|
4746
|
+
* staging: Represents the staging environment.
|
|
4747
|
+
*
|
|
4748
|
+
* review: Represents the review environment.
|
|
4749
|
+
*
|
|
4750
|
+
* @example
|
|
4751
|
+
*
|
|
4752
|
+
* if (process.env.NODE_ENV === ENVIRONMENT.development) {
|
|
4753
|
+
* // Perform actions specific to the development environment
|
|
4754
|
+
* }
|
|
4755
|
+
*
|
|
4756
|
+
* // OR
|
|
4757
|
+
*
|
|
4758
|
+
* if (process.env.NODE_ENV === ENVIRONMENT.staging) {
|
|
4759
|
+
* // Perform actions specific to the staging environment
|
|
4760
|
+
* }
|
|
4761
|
+
*
|
|
4762
|
+
* // OR
|
|
4763
|
+
*
|
|
4764
|
+
* if (process.env.NODE_ENV === ENVIRONMENT.review) {
|
|
4765
|
+
* // Perform actions specific to the review environment
|
|
4766
|
+
* }
|
|
4767
|
+
* @endexample
|
|
4768
|
+
*/
|
|
4769
|
+
declare const ENVIRONMENT: {
|
|
4770
|
+
development: string;
|
|
4771
|
+
staging: string;
|
|
4772
|
+
review: string;
|
|
4773
|
+
};
|
|
4774
|
+
declare const EXAMPLE_URL = "https://example.com";
|
|
4775
|
+
/**
|
|
4776
|
+
*
|
|
4777
|
+
* Boolean value indicating whether the current environment is staging.
|
|
4778
|
+
*
|
|
4779
|
+
* @example
|
|
4780
|
+
*
|
|
4781
|
+
* if(IS_STAGING_ENV){
|
|
4782
|
+
* // Perform actions specific to the staging environment
|
|
4783
|
+
* }
|
|
4784
|
+
* @endexample
|
|
4785
|
+
*/
|
|
4786
|
+
declare const IS_STAGING_ENV: boolean;
|
|
4787
|
+
/**
|
|
4788
|
+
*
|
|
4789
|
+
* Boolean value indicating whether the current environment is development.
|
|
4790
|
+
*
|
|
4791
|
+
* @example
|
|
4792
|
+
*
|
|
4793
|
+
* if(IS_DEV_ENV){
|
|
4794
|
+
* // Perform actions specific to the development environment
|
|
4795
|
+
* }
|
|
4796
|
+
* @endexample
|
|
4797
|
+
*/
|
|
4798
|
+
declare const IS_DEV_ENV: boolean;
|
|
4799
|
+
/**
|
|
4800
|
+
*
|
|
4801
|
+
* Boolean value indicating whether the current environment is a NeetoDeploy review app.
|
|
4802
|
+
*
|
|
4803
|
+
* @example
|
|
4804
|
+
*
|
|
4805
|
+
* if(IS_REVIEW_ENV){
|
|
4806
|
+
* // Perform actions specific to the review app environment
|
|
4807
|
+
* }
|
|
4808
|
+
* @endexample
|
|
4809
|
+
*/
|
|
4810
|
+
declare const IS_REVIEW_ENV: boolean;
|
|
4811
|
+
declare const IS_CI: boolean;
|
|
4812
|
+
declare const IS_DEV_CI: boolean;
|
|
4813
|
+
declare const IS_WEBKIT: boolean;
|
|
4814
|
+
declare const IS_PLAYWRIGHT_RUN: boolean;
|
|
4815
|
+
declare const DEFAULT_WEBHOOKS_RESPONSE_TEXT: string;
|
|
4816
|
+
/**
|
|
4817
|
+
*
|
|
4818
|
+
* Path to the JSON file for storing authentication data.
|
|
4819
|
+
*
|
|
4820
|
+
*/
|
|
4821
|
+
declare const STORAGE_STATE = "./e2e/auth/user.json";
|
|
4822
|
+
declare const DEFAULT_TIMEZONE_ID = "Asia/Calcutta";
|
|
4823
|
+
/**
|
|
4824
|
+
*
|
|
4825
|
+
* Pattern for global translations file path.
|
|
4826
|
+
*
|
|
4827
|
+
*/
|
|
4828
|
+
declare const GLOBAL_TRANSLATIONS_PATTERN = "../node_modules/@bigbinary/**/translations/en.json";
|
|
4829
|
+
/**
|
|
4830
|
+
*
|
|
4831
|
+
* Path to project-specific translations file.
|
|
4832
|
+
*
|
|
4833
|
+
*/
|
|
4834
|
+
declare const PROJECT_TRANSLATIONS_PATH = "../app/javascript/src/translations/en.json";
|
|
4835
|
+
/**
|
|
4836
|
+
*
|
|
4837
|
+
* Default credentials for testing purposes for development env.
|
|
4838
|
+
*
|
|
4839
|
+
*/
|
|
4840
|
+
declare const CREDENTIALS: {
|
|
4841
|
+
firstName: string;
|
|
4842
|
+
lastName: string;
|
|
4843
|
+
name: string;
|
|
4844
|
+
email: string;
|
|
4845
|
+
password: string;
|
|
4846
|
+
subdomainName: string;
|
|
4847
|
+
};
|
|
4848
|
+
/**
|
|
4849
|
+
*
|
|
4850
|
+
* Subdomain of the Acme organization that review apps seed in every product.
|
|
4851
|
+
*
|
|
4852
|
+
*/
|
|
4853
|
+
declare const ACME_SUBDOMAIN = "acme";
|
|
4854
|
+
/**
|
|
4855
|
+
*
|
|
4856
|
+
* Pattern for the subject of OTP emails.
|
|
4857
|
+
*
|
|
4858
|
+
*/
|
|
4859
|
+
declare const OTP_EMAIL_PATTERN = "Your login code is";
|
|
4860
|
+
/**
|
|
4861
|
+
*
|
|
4862
|
+
* Default Slack channel.
|
|
4863
|
+
*
|
|
4864
|
+
*/
|
|
4865
|
+
declare const SLACK_DEFAULT_CHANNEL = "general";
|
|
4866
|
+
declare const CUSTOM_DOMAIN_SUFFIX = "neetoautomation.com";
|
|
4867
|
+
declare const REVIEW_APP_CUSTOM_DOMAIN_SUFFIX = "review.neetoautomation.com";
|
|
4868
|
+
declare const CUSTOM_DOMAIN_EDGE_CERTIFICATE_SUFFIX: string | undefined;
|
|
4869
|
+
declare const MAILPIT_BASE_URL = "https://mailpit.neetodeployapp.com";
|
|
4870
|
+
declare const MAILPIT_DOMAIN_NAME = "mail.neetoautomation.com";
|
|
4871
|
+
declare const mailpitDomainName: () => string;
|
|
4872
|
+
/**
|
|
4873
|
+
*
|
|
4874
|
+
* Function to generate Zapier test email address based on the product. It takes the following parameters:
|
|
4875
|
+
*
|
|
4876
|
+
* product: Product name.
|
|
4877
|
+
*
|
|
4878
|
+
* @example
|
|
4879
|
+
*
|
|
4880
|
+
* const testEmail = ZAPIER_TEST_EMAIL("neetoChat");
|
|
4881
|
+
*
|
|
4882
|
+
* console.log(testEmail) // `neeto-neetoChat-zapier-test@mail.neetoautomation.com`
|
|
4883
|
+
* @endexample
|
|
4884
|
+
*/
|
|
4885
|
+
declare const ZAPIER_TEST_EMAIL: (product: string) => string;
|
|
4886
|
+
declare const SINGULAR: {
|
|
4887
|
+
count: number;
|
|
4888
|
+
};
|
|
4889
|
+
declare const PLURAL: {
|
|
4890
|
+
count: number;
|
|
4891
|
+
};
|
|
4892
|
+
declare const COLOR: {
|
|
4893
|
+
transparent: string;
|
|
4894
|
+
softBlue: string;
|
|
4895
|
+
};
|
|
4896
|
+
declare const DATE_TEXTS: {
|
|
4897
|
+
now: string;
|
|
4898
|
+
nextYear: string;
|
|
4899
|
+
};
|
|
4900
|
+
/**
|
|
4901
|
+
*
|
|
4902
|
+
* The initial, empty state of browser storage, including empty cookies and origins.
|
|
4903
|
+
*
|
|
4904
|
+
*/
|
|
4905
|
+
declare const EMPTY_STORAGE_STATE: {
|
|
4906
|
+
storageState: {
|
|
4907
|
+
cookies: never[];
|
|
4908
|
+
origins: never[];
|
|
4909
|
+
};
|
|
4910
|
+
};
|
|
4911
|
+
declare const CURRENT_TIME_RANGES: {
|
|
4912
|
+
readonly last24Hours: "Last 24 hours";
|
|
4913
|
+
readonly thisWeek: "This week";
|
|
4914
|
+
readonly thisMonth: "This month";
|
|
4915
|
+
readonly thisYear: "This year";
|
|
4916
|
+
readonly thisQuarter: "This quarter";
|
|
4917
|
+
readonly last30Days: "Last 30 days";
|
|
4918
|
+
readonly last7Days: "Last 7 days";
|
|
4919
|
+
};
|
|
4920
|
+
declare const PAST_TIME_RANGES: {
|
|
4921
|
+
readonly lastWeek: "Last week";
|
|
4922
|
+
readonly lastMonth: "Last month";
|
|
4923
|
+
readonly lastYear: "Last year";
|
|
4924
|
+
readonly lastQuarter: "Last quarter";
|
|
4925
|
+
};
|
|
4926
|
+
declare const TIME_RANGES: {
|
|
4927
|
+
readonly customDuration: "Custom duration";
|
|
4928
|
+
readonly last24Hours: "Last 24 hours";
|
|
4929
|
+
readonly thisWeek: "This week";
|
|
4930
|
+
readonly thisMonth: "This month";
|
|
4931
|
+
readonly thisYear: "This year";
|
|
4932
|
+
readonly thisQuarter: "This quarter";
|
|
4933
|
+
readonly last30Days: "Last 30 days";
|
|
4934
|
+
readonly last7Days: "Last 7 days";
|
|
4935
|
+
readonly lastWeek: "Last week";
|
|
4936
|
+
readonly lastMonth: "Last month";
|
|
4937
|
+
readonly lastYear: "Last year";
|
|
4938
|
+
readonly lastQuarter: "Last quarter";
|
|
4939
|
+
};
|
|
4940
|
+
declare const DATE_RANGES: {
|
|
4941
|
+
readonly after: "After";
|
|
4942
|
+
readonly before: "Before";
|
|
4943
|
+
readonly customDateRange: "Custom date range";
|
|
4944
|
+
readonly last24Hours: "Last 24 hours";
|
|
4945
|
+
readonly thisWeek: "This week";
|
|
4946
|
+
readonly thisMonth: "This month";
|
|
4947
|
+
readonly thisYear: "This year";
|
|
4948
|
+
readonly thisQuarter: "This quarter";
|
|
4949
|
+
readonly last30Days: "Last 30 days";
|
|
4950
|
+
readonly last7Days: "Last 7 days";
|
|
4951
|
+
readonly lastWeek: "Last week";
|
|
4952
|
+
readonly lastMonth: "Last month";
|
|
4953
|
+
readonly lastYear: "Last year";
|
|
4954
|
+
readonly lastQuarter: "Last quarter";
|
|
4955
|
+
};
|
|
4956
|
+
declare const CERTIFICATE_LIMIT_EXCEEDED_REGEXP = "too many certificates \\(\\d+\\) already issued for \"neetoautomation.com\"";
|
|
4957
|
+
declare const CERTIFICATE_LIMIT_EXCEEDED_MESSAGE = "Certificate limit exceeded for custom domain";
|
|
4958
|
+
declare const CERTIFICATE_PROVISION_FAILED_MESSAGE = "Certificate provisioning failed for custom domain";
|
|
4959
|
+
declare const CERTIFICATE_PROVISION_FAILED_REGEXP = "provisioning certificate for your domain";
|
|
4960
|
+
declare const TRAEFIK_NOT_FOUND_TEXT = "404 page not found";
|
|
4961
|
+
declare const EXPORT_FILE_TYPES: {
|
|
4962
|
+
readonly pdf: "pdf";
|
|
4963
|
+
readonly excel: "excel";
|
|
4964
|
+
readonly csv: "csv";
|
|
4965
|
+
};
|
|
4966
|
+
declare const CALENDAR_LABELS: {
|
|
4967
|
+
readonly month: "month panel";
|
|
4968
|
+
readonly year: "year panel";
|
|
4969
|
+
};
|
|
4970
|
+
declare const DATE_FORMATS: {
|
|
4971
|
+
readonly month: "MMM";
|
|
4972
|
+
readonly year: "YYYY";
|
|
4973
|
+
readonly date: "DD/MM/YYYY";
|
|
4974
|
+
readonly calendarDate: "YYYY-MM-DD";
|
|
4975
|
+
};
|
|
6824
4976
|
declare const USER_AGENTS: {
|
|
6825
4977
|
windows: string;
|
|
6826
4978
|
mac: string;
|
|
@@ -7043,7 +5195,6 @@ declare const FONTS_RESOURCES: readonly ["**/fonts.googleapis.com/**", "**/fonts
|
|
|
7043
5195
|
declare const THIRD_PARTY_RESOURCES: readonly ["**/analytics/**", "**/mixpanel/**", "**/static.cloudflareinsights.com/**", "**amazon-adsystem.com/**", "**paa-reporting-advertising.amazon/**", "**adsrvr.org/**", "**adnxs.com/**", "**doubleclick.net/**", "**googlesyndication.com/**", "**googletagmanager.com/**", "**bat.bing.com/**", "**connect.facebook.net/**", "**facebook.com/**", "**ads.linkedin.com/**", "**snap.licdn.com/**", "**linkedin.com/**", "**analytics.tiktok.com/**", "**tiktokw.us/**", "**alb.reddit.com/**", "**redditstatic.com/**", "**pixel-config.reddit.com/**", "**bidswitch.net/**", "**casalemedia.com/**", "**pubmatic.com/**", "**rubiconproject.com/**", "**podscribe.com/**", "**trkn.us/**", "**usbrowserspeed.com/**", "**amplitude.com/**", "**segment.com/**", "**clearbitjs.com/**", "**clearbitscripts.com/**", "**clearbit.com/**", "**builder.io/**", "**influ2.com/**", "**axiom-vitals.com/**", "**qualtrics.com/**", "**hubspot.com/**", "**hs-scripts.com/**", "**hs-analytics.net/**", "**hsadspixel.net/**", "**hs-banner.com/**", "**hsforms.com/**", "**hubapi.com/**", "**sentry.io/**", "**bugsnag.com/**", "**datadoghq.com/**", "**datadoghq-browser-agent.com/**", "**fullstory.com/**", "**intercom.io/**", "**intercomcdn.com/**", "**ada.support/**", "**sprig.com/**", "**split.io/**", "**cookielaw.org/**", "**onetrust.com/**", "**cdn.zapier.com/**", "**design-system-bff.zapier.com/**", "**ably.net/**", "**browser.events.data.microsoft.com/**"];
|
|
7044
5196
|
declare const APP_RESOURCES: readonly ["**/analytics/**", "**/mixpanel/**", "**/static.cloudflareinsights.com/**", "**/fonts.googleapis.com/**", "**/fonts.gstatic.com/**", "**/api.fontshare.com/**", "**/neeto-widget**", "**/neeto-engage-widget**", "**.neetoreplay.net", "**neeto-replay**.amazonaws.com/**", "**/cdn-cgi/rum?", "**.neetochat.net/**", "**.neetoengage.net/**", "**/sticky_ribbons", "**/neeto_widget_tokens"];
|
|
7045
5197
|
declare const ALL_RESOURCES: ("**/analytics/**" | "**/mixpanel/**" | "**/static.cloudflareinsights.com/**" | "**amazon-adsystem.com/**" | "**paa-reporting-advertising.amazon/**" | "**adsrvr.org/**" | "**adnxs.com/**" | "**doubleclick.net/**" | "**googlesyndication.com/**" | "**googletagmanager.com/**" | "**bat.bing.com/**" | "**connect.facebook.net/**" | "**facebook.com/**" | "**ads.linkedin.com/**" | "**snap.licdn.com/**" | "**linkedin.com/**" | "**analytics.tiktok.com/**" | "**tiktokw.us/**" | "**alb.reddit.com/**" | "**redditstatic.com/**" | "**pixel-config.reddit.com/**" | "**bidswitch.net/**" | "**casalemedia.com/**" | "**pubmatic.com/**" | "**rubiconproject.com/**" | "**podscribe.com/**" | "**trkn.us/**" | "**usbrowserspeed.com/**" | "**amplitude.com/**" | "**segment.com/**" | "**clearbitjs.com/**" | "**clearbitscripts.com/**" | "**clearbit.com/**" | "**builder.io/**" | "**influ2.com/**" | "**axiom-vitals.com/**" | "**qualtrics.com/**" | "**hubspot.com/**" | "**hs-scripts.com/**" | "**hs-analytics.net/**" | "**hsadspixel.net/**" | "**hs-banner.com/**" | "**hsforms.com/**" | "**hubapi.com/**" | "**sentry.io/**" | "**bugsnag.com/**" | "**datadoghq.com/**" | "**datadoghq-browser-agent.com/**" | "**fullstory.com/**" | "**intercom.io/**" | "**intercomcdn.com/**" | "**ada.support/**" | "**sprig.com/**" | "**split.io/**" | "**cookielaw.org/**" | "**onetrust.com/**" | "**cdn.zapier.com/**" | "**design-system-bff.zapier.com/**" | "**ably.net/**" | "**browser.events.data.microsoft.com/**" | "**/fonts.googleapis.com/**" | "**/fonts.gstatic.com/**" | "**/api.fontshare.com/**" | "**/neeto-widget**" | "**/neeto-engage-widget**" | "**.neetoreplay.net" | "**neeto-replay**.amazonaws.com/**" | "**/cdn-cgi/rum?" | "**.neetochat.net/**" | "**.neetoengage.net/**" | "**/sticky_ribbons" | "**/neeto_widget_tokens")[];
|
|
7046
|
-
declare const PRODUCT_ROLES_ROUTE_MAP: Record<string, string>;
|
|
7047
5198
|
interface NetworkConditionsParams {
|
|
7048
5199
|
offline: boolean;
|
|
7049
5200
|
downloadThroughput: number;
|
|
@@ -7051,9 +5202,6 @@ interface NetworkConditionsParams {
|
|
|
7051
5202
|
latency: number;
|
|
7052
5203
|
}
|
|
7053
5204
|
declare const networkConditions: Record<"Slow 3G" | "Fast 3G" | "No Throttling", NetworkConditionsParams>;
|
|
7054
|
-
declare const TEAM_MEMBER_TEXTS: {
|
|
7055
|
-
emailSubject: string;
|
|
7056
|
-
};
|
|
7057
5205
|
declare const KEYBOARD_SHORTCUT_TEST_CASES: readonly [{
|
|
7058
5206
|
readonly os: "windows";
|
|
7059
5207
|
readonly agent: string;
|
|
@@ -7073,18 +5221,6 @@ declare const CHAT_WIDGET_TEXTS: {
|
|
|
7073
5221
|
welcomeChatBubble: string;
|
|
7074
5222
|
preChatQuestions: string;
|
|
7075
5223
|
};
|
|
7076
|
-
/**
|
|
7077
|
-
*
|
|
7078
|
-
* agent: Text representing an agent.
|
|
7079
|
-
*
|
|
7080
|
-
*/
|
|
7081
|
-
declare const MEMBER_TEXTS: {
|
|
7082
|
-
agent: string;
|
|
7083
|
-
admin: string;
|
|
7084
|
-
selectAll: string;
|
|
7085
|
-
hide: string;
|
|
7086
|
-
show: string;
|
|
7087
|
-
};
|
|
7088
5224
|
/**
|
|
7089
5225
|
*
|
|
7090
5226
|
* connectHeader(integration): Method to generate text for connecting an integration account.
|
|
@@ -7486,45 +5622,6 @@ declare const CUSTOM_DOMAIN_SELECTORS: {
|
|
|
7486
5622
|
strategyContinueButton: string;
|
|
7487
5623
|
onlyAddRootRadio: string;
|
|
7488
5624
|
};
|
|
7489
|
-
/**
|
|
7490
|
-
*
|
|
7491
|
-
* Selectors for API keys page components.
|
|
7492
|
-
*
|
|
7493
|
-
* editApiKeyButton: Selector for the edit API key button.
|
|
7494
|
-
*
|
|
7495
|
-
* deleteApiKeyButton: Selector for the delete API key button.
|
|
7496
|
-
*
|
|
7497
|
-
* addApiKeyButton: Selector for the add API key button.
|
|
7498
|
-
*
|
|
7499
|
-
* apiKeysLabelField: Selector for the API key label input field.
|
|
7500
|
-
*
|
|
7501
|
-
* apiKeysExpiresAtField: Selector for the API key expiry input field.
|
|
7502
|
-
*
|
|
7503
|
-
* expiryDateInputError: Selector for the expiry date input error message.
|
|
7504
|
-
*
|
|
7505
|
-
* expiryDateInput: Selector for the expiry date input field.
|
|
7506
|
-
*
|
|
7507
|
-
* tokenField: Selector for the token input or display field.
|
|
7508
|
-
*
|
|
7509
|
-
* expiresAtField: Selector for the expiry date field.
|
|
7510
|
-
*
|
|
7511
|
-
* createdAtField: Selector for the API key creation date field.
|
|
7512
|
-
*
|
|
7513
|
-
*/
|
|
7514
|
-
declare const API_KEYS_SELECTORS: {
|
|
7515
|
-
countLabel: string;
|
|
7516
|
-
editApiKeyButton: string;
|
|
7517
|
-
deleteApiKeyButton: string;
|
|
7518
|
-
addApiKeyButton: string;
|
|
7519
|
-
apiKeysLabelField: string;
|
|
7520
|
-
apiKeysExpiresAtField: string;
|
|
7521
|
-
expiryDateInputError: string;
|
|
7522
|
-
expiryDateInput: string;
|
|
7523
|
-
apiKeysField: string;
|
|
7524
|
-
tokenField: string;
|
|
7525
|
-
expiresAtField: string;
|
|
7526
|
-
createdAtField: string;
|
|
7527
|
-
};
|
|
7528
5625
|
declare const IP_RESTRICTIONS_SELECTORS: {
|
|
7529
5626
|
enableIPRestrictionChk: string;
|
|
7530
5627
|
saveChanges: string;
|
|
@@ -7985,7 +6082,7 @@ declare const COMMON_SELECTORS: {
|
|
|
7985
6082
|
emailInputWrapper: string;
|
|
7986
6083
|
switchWrapper: string;
|
|
7987
6084
|
switchLabel: string;
|
|
7988
|
-
|
|
6085
|
+
slider: string;
|
|
7989
6086
|
card: string;
|
|
7990
6087
|
hotkeyDescription: string;
|
|
7991
6088
|
columnVisibilityBtn: (action: "hide-all" | "reset") => string;
|
|
@@ -8680,56 +6777,6 @@ declare const TWILIO_SELECTORS: {
|
|
|
8680
6777
|
sidField: string;
|
|
8681
6778
|
authTokenField: string;
|
|
8682
6779
|
};
|
|
8683
|
-
/**
|
|
8684
|
-
*
|
|
8685
|
-
* Selectors for webhook components.
|
|
8686
|
-
*
|
|
8687
|
-
* @example
|
|
8688
|
-
*
|
|
8689
|
-
* import { WEBHOOK_SELECTORS } from "@neetoplaywright";
|
|
8690
|
-
* @endexample
|
|
8691
|
-
* addNewWebhook: Selector for the "Add New Webhook" button.
|
|
8692
|
-
*
|
|
8693
|
-
* endpointInputField: Selector for the endpoint input field.
|
|
8694
|
-
*
|
|
8695
|
-
* deliveryResponseCode: Selector for the delivery response code.
|
|
8696
|
-
*
|
|
8697
|
-
* deliveryRequestPayload: Selector for the delivery request payload.
|
|
8698
|
-
*
|
|
8699
|
-
* addSecretKey: Selector for add secret key button.
|
|
8700
|
-
*
|
|
8701
|
-
* newWebhookHeader: Selector for new webhook pane header.
|
|
8702
|
-
*
|
|
8703
|
-
* endpointInputError: Selector for endpoint input error.
|
|
8704
|
-
*
|
|
8705
|
-
* eventsSelectError: Selector for event select error.
|
|
8706
|
-
*
|
|
8707
|
-
* regenerateSecret: Selector for regenerate secret key button.
|
|
8708
|
-
*
|
|
8709
|
-
* deleteSecret: Selector for delete secret key button.
|
|
8710
|
-
*
|
|
8711
|
-
* editWebhookButton: Selector for edit API key button.
|
|
8712
|
-
*
|
|
8713
|
-
* deleteWebhookButton: Selector for delete API key button.
|
|
8714
|
-
*
|
|
8715
|
-
*/
|
|
8716
|
-
declare const WEBHOOK_SELECTORS: {
|
|
8717
|
-
addNewWebhook: string;
|
|
8718
|
-
endpointInputField: string;
|
|
8719
|
-
deliveryResponseCode: string;
|
|
8720
|
-
deliveryRequestPayload: string;
|
|
8721
|
-
addSecretKey: string;
|
|
8722
|
-
newWebhookHeader: string;
|
|
8723
|
-
endpointInputError: string;
|
|
8724
|
-
eventsSelectError: string;
|
|
8725
|
-
regenerateSecret: string;
|
|
8726
|
-
deleteSecret: string;
|
|
8727
|
-
deliveryRequestHeader: string;
|
|
8728
|
-
deliveryResponseBody: string;
|
|
8729
|
-
eventErrorText: string;
|
|
8730
|
-
editWebhookButton: string;
|
|
8731
|
-
deleteWebhookButton: string;
|
|
8732
|
-
};
|
|
8733
6780
|
/**
|
|
8734
6781
|
*
|
|
8735
6782
|
* Selectors for Zapier components.
|
|
@@ -8846,132 +6893,6 @@ declare const LOGIN_SELECTORS: {
|
|
|
8846
6893
|
enterOtpInputError: string;
|
|
8847
6894
|
authenticatorAppLaterButton: string;
|
|
8848
6895
|
};
|
|
8849
|
-
/**
|
|
8850
|
-
*
|
|
8851
|
-
* Selectors for member components.
|
|
8852
|
-
*
|
|
8853
|
-
* @example
|
|
8854
|
-
*
|
|
8855
|
-
* import { MEMBER_SELECTORS } from "@neetoplaywright";
|
|
8856
|
-
* @endexample
|
|
8857
|
-
* membersTab: Selector for the members tab.
|
|
8858
|
-
*
|
|
8859
|
-
* newButton: Selector for the "New" button to add a new member.
|
|
8860
|
-
*
|
|
8861
|
-
* continueButton: Selector for the "Continue" button.
|
|
8862
|
-
*
|
|
8863
|
-
* submitButton: Selector for the "Submit" button.
|
|
8864
|
-
*
|
|
8865
|
-
* searchTextField: Selector for the search text field.
|
|
8866
|
-
*
|
|
8867
|
-
* deactivatedAgentsButton: Selector for the deactivated agents button.
|
|
8868
|
-
*
|
|
8869
|
-
* activatedMembersButton: Selector for the activated members button.
|
|
8870
|
-
*
|
|
8871
|
-
* columnCheckBox: Selector to get the NeetoUI checkbox.
|
|
8872
|
-
*
|
|
8873
|
-
* roleLabel(role: string): Method that generates a selector for role labels based on the role.
|
|
8874
|
-
*
|
|
8875
|
-
* dropDownIcon: Selector to get the NeetoUI Dropdown icon button.
|
|
8876
|
-
*
|
|
8877
|
-
* editButton: Selector for the edit button.
|
|
8878
|
-
*
|
|
8879
|
-
* menuBarHeading: Selector for the menu bar heading.
|
|
8880
|
-
*
|
|
8881
|
-
* removeMember: Selector for the remove member button.
|
|
8882
|
-
*
|
|
8883
|
-
* columnsButton: Selector for the columns button.
|
|
8884
|
-
*
|
|
8885
|
-
* columnsDropdownContainer: Selector for the columns dropdown container.
|
|
8886
|
-
*
|
|
8887
|
-
* emailDropdownItemLabel: Selector for the email dropdown item label.
|
|
8888
|
-
*
|
|
8889
|
-
* roleDropdownItemLabel: Selector for the role dropdown item label.
|
|
8890
|
-
*
|
|
8891
|
-
* inviteStatusDropdownItemLabel: Selector for the invite status dropdown item label.
|
|
8892
|
-
*
|
|
8893
|
-
* heading: Selector for the manage members pane header.
|
|
8894
|
-
*
|
|
8895
|
-
* activateButton: Selector for the activate members button.
|
|
8896
|
-
*
|
|
8897
|
-
* deactivateButton: Selector for the deactivate members button.
|
|
8898
|
-
*
|
|
8899
|
-
* rolesButton: Selector for the manage member roles button.
|
|
8900
|
-
*
|
|
8901
|
-
* statusTag: Selector for the member status tag.
|
|
8902
|
-
*
|
|
8903
|
-
* subscriptionPlanTag: Selector for subscription plan tag.
|
|
8904
|
-
*
|
|
8905
|
-
* memberNameCell: Selector for member name or email cell in members table.
|
|
8906
|
-
*
|
|
8907
|
-
*/
|
|
8908
|
-
declare const MEMBER_SELECTORS: {
|
|
8909
|
-
membersTab: string;
|
|
8910
|
-
newButton: string;
|
|
8911
|
-
continueButton: string;
|
|
8912
|
-
submitButton: string;
|
|
8913
|
-
searchTextField: string;
|
|
8914
|
-
deactivatedAgentsButton: string;
|
|
8915
|
-
activatedMembersButton: string;
|
|
8916
|
-
columnCheckBox: string;
|
|
8917
|
-
roleLabel: (role: string) => string;
|
|
8918
|
-
teamMembersTable: string;
|
|
8919
|
-
dropDownIcon: string;
|
|
8920
|
-
editButton: string;
|
|
8921
|
-
menuBarHeading: string;
|
|
8922
|
-
removeMember: string;
|
|
8923
|
-
columnsButton: string;
|
|
8924
|
-
columnsDropdownContainer: string;
|
|
8925
|
-
emailDropdownItemLabel: string;
|
|
8926
|
-
roleDropdownItemLabel: string;
|
|
8927
|
-
inviteStatusDropdownItemLabel: string;
|
|
8928
|
-
heading: string;
|
|
8929
|
-
activateButton: string;
|
|
8930
|
-
deactivateButton: string;
|
|
8931
|
-
rolesButton: string;
|
|
8932
|
-
statusTag: string;
|
|
8933
|
-
exportMemberHeading: string;
|
|
8934
|
-
downloadAsRadioItem: (fileType: "pdf" | "excel" | "csv") => string;
|
|
8935
|
-
exportSubmitBtn: string;
|
|
8936
|
-
exportCancelBtn: string;
|
|
8937
|
-
downloadButton: string;
|
|
8938
|
-
manageAppListChk: string;
|
|
8939
|
-
takeActionDropdown: string;
|
|
8940
|
-
menubarSubLink: (sublink: string) => string;
|
|
8941
|
-
takeActionStateOption: (option?: string) => string;
|
|
8942
|
-
checkboxLabel: (label: string) => string;
|
|
8943
|
-
subscriptionPlanTag: string;
|
|
8944
|
-
memberNameCell: (nameOrEmail: string) => string;
|
|
8945
|
-
};
|
|
8946
|
-
/**
|
|
8947
|
-
*
|
|
8948
|
-
* Selectors for member form components.
|
|
8949
|
-
*
|
|
8950
|
-
* @example
|
|
8951
|
-
*
|
|
8952
|
-
* import { MEMBER_FORM_SELECTORS } from "@neetoplaywright";
|
|
8953
|
-
* @endexample
|
|
8954
|
-
* emailTextField: Selector for the email text field in the member form.
|
|
8955
|
-
*
|
|
8956
|
-
* firstNameTextField: Selector for the first name text field in the member form.
|
|
8957
|
-
*
|
|
8958
|
-
* lastNameTextField: Selector for the last name text field in the member form.
|
|
8959
|
-
*
|
|
8960
|
-
* emailInput: Selector for the email input in the member form.
|
|
8961
|
-
*
|
|
8962
|
-
* emailErrorField: Selector for the email error field in the member form.
|
|
8963
|
-
*
|
|
8964
|
-
* cancelButton: Selector for the cancel button in the member form.
|
|
8965
|
-
*
|
|
8966
|
-
*/
|
|
8967
|
-
declare const MEMBER_FORM_SELECTORS: {
|
|
8968
|
-
emailTextField: string;
|
|
8969
|
-
firstNameTextField: string;
|
|
8970
|
-
lastNameTextField: string;
|
|
8971
|
-
emailInput: string;
|
|
8972
|
-
emailErrorField: string;
|
|
8973
|
-
cancelButton: string;
|
|
8974
|
-
};
|
|
8975
6896
|
declare const ONBOARDING_SELECTORS: {
|
|
8976
6897
|
welcomeTitle: string;
|
|
8977
6898
|
welcomeDescription: string;
|
|
@@ -9058,86 +6979,6 @@ declare const PROFILE_SECTION_SELECTORS: {
|
|
|
9058
6979
|
profileImageDropdownButton: string;
|
|
9059
6980
|
imageRemoveBtn: string;
|
|
9060
6981
|
};
|
|
9061
|
-
/**
|
|
9062
|
-
*
|
|
9063
|
-
* Selectors for roles components.
|
|
9064
|
-
*
|
|
9065
|
-
* @example
|
|
9066
|
-
*
|
|
9067
|
-
* import {
|
|
9068
|
-
* ROLES_SELECTORS
|
|
9069
|
-
* } from "@neetoplaywright";
|
|
9070
|
-
*
|
|
9071
|
-
* @endexample
|
|
9072
|
-
* newButton: Selector for the "New" button to add a new role.
|
|
9073
|
-
*
|
|
9074
|
-
* proceedButton: Selector for the "Proceed" button.
|
|
9075
|
-
*
|
|
9076
|
-
* cancelButton: Selector for the "Cancel" button.
|
|
9077
|
-
*
|
|
9078
|
-
* tableHeaderRoleName: Selector for the table header role name.
|
|
9079
|
-
*
|
|
9080
|
-
* nameTextField: Selector for the name text field when adding or updating a role.
|
|
9081
|
-
*
|
|
9082
|
-
* searchTextField: Selector for the search text field for roles.
|
|
9083
|
-
*
|
|
9084
|
-
* updateRolePaneHeading: Selector for the heading when updating a role.
|
|
9085
|
-
*
|
|
9086
|
-
* updateRoleCancelButton: Selector for the cancel button when updating a role.
|
|
9087
|
-
*
|
|
9088
|
-
* descriptionTextField: Selector for the description text field when adding or updating a role.
|
|
9089
|
-
*
|
|
9090
|
-
* permissionCategoryTitle: Selector for the title of the permission category.
|
|
9091
|
-
*
|
|
9092
|
-
* headerColumn: Selector for the header column of the roles table.
|
|
9093
|
-
*
|
|
9094
|
-
* dropDownIcon: Selector for the dropdown icon in the roles table header.
|
|
9095
|
-
*
|
|
9096
|
-
* tableHeaderRoleTitle: Selector for the title in the roles table header.
|
|
9097
|
-
*
|
|
9098
|
-
* permissionCheckbox(name): Builder for the add/edit-role pane permission checkbox, keyed on the permission name (e.g. meetings.create_meeting).
|
|
9099
|
-
*
|
|
9100
|
-
* editRoleButton: Selector for the edit role button in the roles table.
|
|
9101
|
-
*
|
|
9102
|
-
* deleteRoleButton: Selector for the delete role button in the roles table.
|
|
9103
|
-
*
|
|
9104
|
-
* permissionCard: Selector for the permission card.
|
|
9105
|
-
*
|
|
9106
|
-
* searchPermissionsInput: Selector for the search input.
|
|
9107
|
-
*
|
|
9108
|
-
* permissionDescription: Selector for the permission description.
|
|
9109
|
-
*
|
|
9110
|
-
* rolesEditButton: Selector for the edit button.
|
|
9111
|
-
*
|
|
9112
|
-
* permissionSubCategoryCard: Selector for permission sub-category card.
|
|
9113
|
-
*
|
|
9114
|
-
*/
|
|
9115
|
-
declare const ROLES_SELECTORS: {
|
|
9116
|
-
newButton: string;
|
|
9117
|
-
proceedButton: string;
|
|
9118
|
-
cancelButton: string;
|
|
9119
|
-
tableHeaderRoleName: string;
|
|
9120
|
-
nameTextField: string;
|
|
9121
|
-
searchTextField: string;
|
|
9122
|
-
updateRolePaneHeading: string;
|
|
9123
|
-
updateRoleCancelButton: string;
|
|
9124
|
-
descriptionTextField: string;
|
|
9125
|
-
permissionCategoryTitle: string;
|
|
9126
|
-
headerColumn: string;
|
|
9127
|
-
dropDownIcon: string;
|
|
9128
|
-
tableHeaderRoleTitle: string;
|
|
9129
|
-
permissionCheckbox: (name: string) => string;
|
|
9130
|
-
editRoleButton: string;
|
|
9131
|
-
deleteRoleButton: string;
|
|
9132
|
-
permissionCard: string;
|
|
9133
|
-
searchPermissionsInput: string;
|
|
9134
|
-
permissionDescription: string;
|
|
9135
|
-
rolesEditButton: string;
|
|
9136
|
-
roleCell: (roleName: string) => string;
|
|
9137
|
-
tablePermissionCheckbox: string;
|
|
9138
|
-
descriptionInputError: string;
|
|
9139
|
-
permissionSubCategoryCard: (index: number) => string;
|
|
9140
|
-
};
|
|
9141
6982
|
/**
|
|
9142
6983
|
*
|
|
9143
6984
|
* Selectors for SEO-related components.
|
|
@@ -9270,102 +7111,6 @@ declare const TABLE_SELECTORS: {
|
|
|
9270
7111
|
columnMenuBtn: (action: ColumnMenuAction) => string;
|
|
9271
7112
|
moveColumnBtn: (position: "left" | "right") => string;
|
|
9272
7113
|
};
|
|
9273
|
-
/**
|
|
9274
|
-
*
|
|
9275
|
-
* Selectors for tags components.
|
|
9276
|
-
*
|
|
9277
|
-
* @example
|
|
9278
|
-
*
|
|
9279
|
-
* import { TAGS_SELECTORS } from "@neetoplaywright";
|
|
9280
|
-
* @endexample
|
|
9281
|
-
* newTagButton: Selector for the "New Tag" button.
|
|
9282
|
-
*
|
|
9283
|
-
* tagNameTextField: Selector for the tag name text field.
|
|
9284
|
-
*
|
|
9285
|
-
* editButton: Selector for the edit button for tags.
|
|
9286
|
-
*
|
|
9287
|
-
* deleteButton: Selector for the delete button for tags.
|
|
9288
|
-
*
|
|
9289
|
-
* cancelButton: Selector for the cancel button when managing tags.
|
|
9290
|
-
*
|
|
9291
|
-
* submitButton: Selector for the submit button when managing tags.
|
|
9292
|
-
*
|
|
9293
|
-
* searchTextField: Selector for the search text field for tags.
|
|
9294
|
-
*
|
|
9295
|
-
* descriptionTextArea: Selector for the description text area for tags.
|
|
9296
|
-
*
|
|
9297
|
-
* addTagButton: Selector for the button to add a new tag.
|
|
9298
|
-
*
|
|
9299
|
-
* tagSearchField: Selector for the tag search input field.
|
|
9300
|
-
*
|
|
9301
|
-
* deleteTagButton: Selector for the button to delete a tag.
|
|
9302
|
-
*
|
|
9303
|
-
* metaDataCard: Selector for the metadata card container.
|
|
9304
|
-
*
|
|
9305
|
-
* metaDataBlock: Selector for individual metadata blocks inside the card.
|
|
9306
|
-
*
|
|
9307
|
-
* tagContainer: Selector for the tag container.
|
|
9308
|
-
*
|
|
9309
|
-
* tagsCount: Selector for tags count text.
|
|
9310
|
-
*
|
|
9311
|
-
*/
|
|
9312
|
-
declare const TAGS_SELECTORS: {
|
|
9313
|
-
newTagButton: string;
|
|
9314
|
-
tagNameTextField: string;
|
|
9315
|
-
editButton: string;
|
|
9316
|
-
deleteButton: string;
|
|
9317
|
-
cancelButton: string;
|
|
9318
|
-
submitButton: string;
|
|
9319
|
-
searchTextField: string;
|
|
9320
|
-
descriptionTextArea: string;
|
|
9321
|
-
addTagButton: string;
|
|
9322
|
-
tagSearchField: string;
|
|
9323
|
-
deleteTagButton: string;
|
|
9324
|
-
metaDataCard: string;
|
|
9325
|
-
metaDataBlock: string;
|
|
9326
|
-
tagContainer: string;
|
|
9327
|
-
tagsCount: string;
|
|
9328
|
-
};
|
|
9329
|
-
/**
|
|
9330
|
-
*
|
|
9331
|
-
* Selectors for merging tags components.
|
|
9332
|
-
*
|
|
9333
|
-
* @example
|
|
9334
|
-
*
|
|
9335
|
-
* import { MERGE_TAGS_SELECTORS } from "@neetoplaywright";
|
|
9336
|
-
* @endexample
|
|
9337
|
-
* mergeTagsButton: Selector for the "Merge Tags" button.
|
|
9338
|
-
*
|
|
9339
|
-
* mergeButton: Selector for the merge button.
|
|
9340
|
-
*
|
|
9341
|
-
* sourceSearchTextField: Selector for the search text field in the source tags section.
|
|
9342
|
-
*
|
|
9343
|
-
* sourceTagsList: Selector for the list of source tags.
|
|
9344
|
-
*
|
|
9345
|
-
* destinationTagsList: Selector for the list of destination tags.
|
|
9346
|
-
*
|
|
9347
|
-
* destinationSearchTextField: Selector for the search text field in the destination tags section.
|
|
9348
|
-
*
|
|
9349
|
-
* cancelButton: Selector for the cancel button when merging tags.
|
|
9350
|
-
*
|
|
9351
|
-
* proceedButton: Selector for the proceed button when merging tags.
|
|
9352
|
-
*
|
|
9353
|
-
* disabledTag: Selector for disabled tags.
|
|
9354
|
-
*
|
|
9355
|
-
*/
|
|
9356
|
-
declare const MERGE_TAGS_SELECTORS: {
|
|
9357
|
-
mergeTagsButton: string;
|
|
9358
|
-
mergeButton: string;
|
|
9359
|
-
sourceSearchTextField: string;
|
|
9360
|
-
sourceTagsList: string;
|
|
9361
|
-
destinationTagsList: string;
|
|
9362
|
-
destinationSearchTextField: string;
|
|
9363
|
-
cancelButton: string;
|
|
9364
|
-
proceedButton: string;
|
|
9365
|
-
disabledTag: string;
|
|
9366
|
-
sourceTagRow: string;
|
|
9367
|
-
destinationTagRow: string;
|
|
9368
|
-
};
|
|
9369
7114
|
/**
|
|
9370
7115
|
*
|
|
9371
7116
|
* Selectors for theme components.
|
|
@@ -10156,6 +7901,30 @@ declare const loginToReviewApp: ({
|
|
|
10156
7901
|
page: Page;
|
|
10157
7902
|
loginPath?: string;
|
|
10158
7903
|
}) => Promise<void>;
|
|
7904
|
+
/**
|
|
7905
|
+
*
|
|
7906
|
+
* Returns test.use options that run a describe block in an organization on the review app. Each test logs in as Oliver on that organization, and the page, request and API helpers all use its URL and session. Outside the review environment it returns {}. It takes the following parameters:
|
|
7907
|
+
*
|
|
7908
|
+
* subdomain (optional): The organization's subdomain. Default is the seeded spinkart
|
|
7909
|
+
*
|
|
7910
|
+
* loginPath (optional): The path to open for login. Default is /login
|
|
7911
|
+
*
|
|
7912
|
+
* @example
|
|
7913
|
+
*
|
|
7914
|
+
* import { ACME_SUBDOMAIN, reviewAppOrganizationOptions } from "@neetoplaywright"
|
|
7915
|
+
*
|
|
7916
|
+
* test.use(
|
|
7917
|
+
* reviewAppOrganizationOptions({ subdomain: ACME_SUBDOMAIN, loginPath: ROUTES.login })
|
|
7918
|
+
* )
|
|
7919
|
+
* @endexample
|
|
7920
|
+
*/
|
|
7921
|
+
declare const reviewAppOrganizationOptions: ({
|
|
7922
|
+
subdomain,
|
|
7923
|
+
loginPath
|
|
7924
|
+
}?: {
|
|
7925
|
+
subdomain?: string;
|
|
7926
|
+
loginPath?: string;
|
|
7927
|
+
}) => Fixtures<Pick<PlaywrightTestOptions, "baseURL" | "storageState">, PlaywrightWorkerOptions, PlaywrightTestArgs & PlaywrightTestOptions, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
|
|
10159
7928
|
interface AssertColumnHeaderVisibilityProps {
|
|
10160
7929
|
page: Page;
|
|
10161
7930
|
columnName: string;
|
|
@@ -10247,7 +8016,7 @@ declare const tableUtils: {
|
|
|
10247
8016
|
}: ToggleColumnCheckboxAndVerifyVisibilityProps) => Promise<void>;
|
|
10248
8017
|
/**
|
|
10249
8018
|
*
|
|
10250
|
-
* Used to verify the
|
|
8019
|
+
* Used to verify the freeze-column action on a shadcn table. The frozen column is then verified in the table. It takes the following parameters:
|
|
10251
8020
|
*
|
|
10252
8021
|
* page: A page object.
|
|
10253
8022
|
*
|
|
@@ -10264,23 +8033,6 @@ declare const tableUtils: {
|
|
|
10264
8033
|
* @endexample
|
|
10265
8034
|
*/
|
|
10266
8035
|
verifyFreezeColumnAction: (page: Page, _t: TFunction) => Promise<void>;
|
|
10267
|
-
/**
|
|
10268
|
-
*
|
|
10269
|
-
* Same as verifyFreezeColumnAction, but for products migrated to the shadcn DOM — works with role-based column menus.
|
|
10270
|
-
*
|
|
10271
|
-
* Menu labels are hardcoded to match @bigbinary/neeto-atoms until neeto-atoms#423 restores translations. Callers can keep passing t; it is unused.
|
|
10272
|
-
*
|
|
10273
|
-
* @example
|
|
10274
|
-
*
|
|
10275
|
-
* import { tableUtils } from "@neetoplaywright"
|
|
10276
|
-
*
|
|
10277
|
-
* await tableUtils.verifyFreezeColumnActionV2(
|
|
10278
|
-
* page,
|
|
10279
|
-
* t
|
|
10280
|
-
* );
|
|
10281
|
-
* @endexample
|
|
10282
|
-
*/
|
|
10283
|
-
verifyFreezeColumnActionV2: (page: Page, _t: TFunction) => Promise<void>;
|
|
10284
8036
|
verifyReorderColumns: (page: Page) => Promise<void>;
|
|
10285
8037
|
};
|
|
10286
8038
|
interface EmulateNetworkConditionsParameters {
|
|
@@ -10407,6 +8159,14 @@ declare const basicHTMLContent: (content: string) => string;
|
|
|
10407
8159
|
* @endexample
|
|
10408
8160
|
*/
|
|
10409
8161
|
declare const hexToRGB: (hex: string) => string;
|
|
8162
|
+
type EnvNames = readonly [string, ...string[]];
|
|
8163
|
+
type RequiredEnv<T extends EnvNames> = T["length"] extends 1 ? string : { [K in T[number]]: string };
|
|
8164
|
+
/**
|
|
8165
|
+
* Reads the named environment variables. Throws when any value is missing or
|
|
8166
|
+
* blank, listing only the names that failed. One name returns the string;
|
|
8167
|
+
* several names return an object keyed by those names.
|
|
8168
|
+
*/
|
|
8169
|
+
declare const requireEnv: <const T extends EnvNames>(...names: T) => RequiredEnv<T>;
|
|
10410
8170
|
declare const filterUtils: {
|
|
10411
8171
|
/**
|
|
10412
8172
|
*
|
|
@@ -10423,19 +8183,6 @@ declare const filterUtils: {
|
|
|
10423
8183
|
* @endexample
|
|
10424
8184
|
*/
|
|
10425
8185
|
openFilterPane: (page: Page) => Promise<void>;
|
|
10426
|
-
/**
|
|
10427
|
-
*
|
|
10428
|
-
* Same as openFilterPane, but for products migrated to the shadcn DOM — asserts the neeto-filters pane heading instead of the NeetoUI pane header.
|
|
10429
|
-
*
|
|
10430
|
-
* @example
|
|
10431
|
-
*
|
|
10432
|
-
* import { Page } from "@playwright/test";
|
|
10433
|
-
* import { filterUtils } from "@neetoplaywright";
|
|
10434
|
-
*
|
|
10435
|
-
* await filterUtils.openFilterPaneV2(page);
|
|
10436
|
-
* @endexample
|
|
10437
|
-
*/
|
|
10438
|
-
openFilterPaneV2: (page: Page) => Promise<void>;
|
|
10439
8186
|
/**
|
|
10440
8187
|
*
|
|
10441
8188
|
* Clear the filters applied on a page using the clear button
|
|
@@ -10896,5 +8643,5 @@ declare class InboundEmailApis {
|
|
|
10896
8643
|
private deliverSource;
|
|
10897
8644
|
private deliverViaMailgunIngress;
|
|
10898
8645
|
}
|
|
10899
|
-
export { ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES,
|
|
8646
|
+
export { ACME_SUBDOMAIN, ACTIONS, ADMIN_PANEL_SELECTORS, ALL_RESOURCES, ANALYTICS_RESOURCES, API_ROUTES, APP_RESOURCES, AUDIT_LOGS_SELECTORS, 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, 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, INTEGRATIONS_TEXTS, INTEGRATION_SELECTORS, IPRestrictionsPage, IP_RESTRICTIONS_SELECTORS, IS_CI, IS_DEV_CI, IS_DEV_ENV, IS_PLAYWRIGHT_RUN, IS_REVIEW_ENV, 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, MICROSOFT_LOGIN_SELECTORS, MICROSOFT_LOGIN_TEXTS, MailerUtils, MailpitApi, 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, PROFILE_LINKS, PROFILE_SECTION_SELECTORS, PROJECT_NAMES, PROJECT_TRANSLATIONS_PATH, REVIEW_APP_CUSTOM_DOMAIN_SUFFIX, ROUTES, RailsEmailApiClient, RailsEmailUtils, 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, 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, ThankYouApi, ThankYouPage, TwilioApi, USER_AGENTS, WebhookSiteApi, ZAPIER_LIMIT_EXHAUSTED_MESSAGE, ZAPIER_SELECTORS, ZAPIER_TEST_EMAIL, 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, requireEnv, reviewAppBaseURL, reviewAppOrganizationOptions, serializeFileForBrowser, shouldSkipCustomDomainSetup, shouldSkipSetupAndTeardown, simulateClickWithDelay, simulateTypingWithDelay, skipTest, squish, _default as stealthTest, tableUtils, toCamelCase, updateCredentials, waitForReviewApp, warmup, withCookieCache, writeDataToFile };
|
|
10900
8647
|
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 };
|