@bigbinary/neeto-commons-frontend 2.1.37 → 2.1.39
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 +1 -1
- package/cypress-utils.cjs.js +79 -32
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.d.ts +146 -5
- package/cypress-utils.js +79 -33
- package/cypress-utils.js.map +1 -1
- package/package.json +1 -1
package/cypress-utils.d.ts
CHANGED
|
@@ -24,16 +24,32 @@ type CommonSelectors = {
|
|
|
24
24
|
cancelButton: string;
|
|
25
25
|
inputFieldError: string;
|
|
26
26
|
selectDropDownError: string;
|
|
27
|
-
subTitleHeading: (index:
|
|
27
|
+
subTitleHeading: (index: number) => string;
|
|
28
28
|
noDataTitle: string;
|
|
29
29
|
noDataDescription: string;
|
|
30
|
-
|
|
30
|
+
backdrop: string;
|
|
31
31
|
menuBarHeading: string;
|
|
32
|
-
tabItem:
|
|
33
|
-
dropdownWrapper: (index:
|
|
32
|
+
tabItem: string;
|
|
33
|
+
dropdownWrapper: (index: number) => string;
|
|
34
34
|
toggleButton: string;
|
|
35
35
|
tooltip: string;
|
|
36
36
|
articlePageTitle: string;
|
|
37
|
+
labelInputError: string;
|
|
38
|
+
urlInputError: string;
|
|
39
|
+
noDataPrimaryButton: string;
|
|
40
|
+
modalHeader: string;
|
|
41
|
+
nameInputError: string;
|
|
42
|
+
selectContainer: string;
|
|
43
|
+
dropdownMenu: string;
|
|
44
|
+
nthDropdownIcon: (index: number) => string;
|
|
45
|
+
sidebarToggle: string;
|
|
46
|
+
customDataCy: (name: string) => string;
|
|
47
|
+
leftSubHeader: string;
|
|
48
|
+
subheader: string;
|
|
49
|
+
settingsLink: string;
|
|
50
|
+
nthInputField: (index: number) => string;
|
|
51
|
+
nthTabItem: (index: number) => string;
|
|
52
|
+
ticketFieldTextInput: (label: string) => string;
|
|
37
53
|
};
|
|
38
54
|
type MemberSelectors = {
|
|
39
55
|
activatedMembersButton: string;
|
|
@@ -52,7 +68,6 @@ type MemberSelectors = {
|
|
|
52
68
|
roleLabel: (role: string) => string;
|
|
53
69
|
searchTextField: string;
|
|
54
70
|
submitButton: string;
|
|
55
|
-
subHeader: string;
|
|
56
71
|
columnsButton: string;
|
|
57
72
|
columnsDropdownContainer: string;
|
|
58
73
|
emailDropdownItemLabel: string;
|
|
@@ -90,6 +105,9 @@ type ProfileSelectors = {
|
|
|
90
105
|
profileOptionsContainer: string;
|
|
91
106
|
myProfileButton: string;
|
|
92
107
|
organizationSettingsButton: string;
|
|
108
|
+
appSwitcherBody: string;
|
|
109
|
+
sidebarInfo: string;
|
|
110
|
+
appSwitcherBackButton: string;
|
|
93
111
|
};
|
|
94
112
|
interface TableSelectors {
|
|
95
113
|
nthColumn: (n: number) => string;
|
|
@@ -130,6 +148,85 @@ type ChatWidgetSelectors = {
|
|
|
130
148
|
chatCloseButton: string;
|
|
131
149
|
widgetIframe: string;
|
|
132
150
|
};
|
|
151
|
+
type NeetoEditorSelectors = {
|
|
152
|
+
boldOption: string;
|
|
153
|
+
italicOption: string;
|
|
154
|
+
underlineOption: string;
|
|
155
|
+
strikeOption: string;
|
|
156
|
+
codeBlockOption: string;
|
|
157
|
+
highlightOption: string;
|
|
158
|
+
linkInput: string;
|
|
159
|
+
linkSubmitButton: string;
|
|
160
|
+
commandList: (index: number) => string;
|
|
161
|
+
imageUploadUrlSubmitButton: string;
|
|
162
|
+
imageUploadUrlInputTextField: string;
|
|
163
|
+
uploadInput: string;
|
|
164
|
+
editorMenuBarWrapper: string;
|
|
165
|
+
undoOption: string;
|
|
166
|
+
redoOption: string;
|
|
167
|
+
imageWrapper: string;
|
|
168
|
+
};
|
|
169
|
+
type IpRestrictionSelectors = {
|
|
170
|
+
addButton: string;
|
|
171
|
+
ipStartTextField: (index: number) => string;
|
|
172
|
+
ipEndTextField: string;
|
|
173
|
+
cancelButton: string;
|
|
174
|
+
ipRangeRow: string;
|
|
175
|
+
enableIpRestrictionCheckbox: string;
|
|
176
|
+
};
|
|
177
|
+
type RolesSelectors = {
|
|
178
|
+
newButton: string;
|
|
179
|
+
proceedButton: string;
|
|
180
|
+
cancelButton: string;
|
|
181
|
+
tableHeaderRoleName: string;
|
|
182
|
+
nameTextField: string;
|
|
183
|
+
searchTextField: string;
|
|
184
|
+
updateRolePaneHeading: string;
|
|
185
|
+
updateRoleCancelButton: string;
|
|
186
|
+
descriptionTextField: string;
|
|
187
|
+
permissionCategoryTitle: string;
|
|
188
|
+
headerColumn: string;
|
|
189
|
+
dropDownIcon: string;
|
|
190
|
+
tableHeaderRoleTitle: string;
|
|
191
|
+
};
|
|
192
|
+
type TagsSelectors = {
|
|
193
|
+
newTagButton: string;
|
|
194
|
+
tagNameTextField: string;
|
|
195
|
+
editButton: string;
|
|
196
|
+
deleteButton: string;
|
|
197
|
+
cancelButton: string;
|
|
198
|
+
submitButton: string;
|
|
199
|
+
searchTextField: string;
|
|
200
|
+
descriptionTextArea: string;
|
|
201
|
+
};
|
|
202
|
+
type MergeTagsSelectors = {
|
|
203
|
+
mergeTagsButton: string;
|
|
204
|
+
mergeButton: string;
|
|
205
|
+
sourceSearchTextField: string;
|
|
206
|
+
sourceTagsList: string;
|
|
207
|
+
destinationTagsList: string;
|
|
208
|
+
destinationSearchTextField: string;
|
|
209
|
+
cancelButton: string;
|
|
210
|
+
proceedButton: string;
|
|
211
|
+
disabledTag: string;
|
|
212
|
+
};
|
|
213
|
+
type NeetoFiltersSelectors = {
|
|
214
|
+
emailSelectContainer: string;
|
|
215
|
+
filterPaneHeading: string;
|
|
216
|
+
neetoFiltersEmailBlock: string;
|
|
217
|
+
neetoFiltersRoleBlock: string;
|
|
218
|
+
neetoFiltersBarClearButton: string;
|
|
219
|
+
neetoFiltersNameFilterField: string;
|
|
220
|
+
neetoFilterNameBlock: string;
|
|
221
|
+
roleSelectContainer: string;
|
|
222
|
+
filterButton: string;
|
|
223
|
+
filtersClearButton: string;
|
|
224
|
+
filterDoneButton: string;
|
|
225
|
+
filteredMembersCount: string;
|
|
226
|
+
allMenubarBlock: string;
|
|
227
|
+
filtersEmailFilter: string;
|
|
228
|
+
paneModalCrossIcon: string;
|
|
229
|
+
};
|
|
133
230
|
|
|
134
231
|
// texts ------------------------------------------------
|
|
135
232
|
type CommonTexts = {
|
|
@@ -157,6 +254,11 @@ type CommonTexts = {
|
|
|
157
254
|
unsavedChangesAlertMessage: string;
|
|
158
255
|
clearFilters: string;
|
|
159
256
|
filters: string;
|
|
257
|
+
descriptionRequiredMessage: string;
|
|
258
|
+
deactivated: string;
|
|
259
|
+
nameExistsMsg: string;
|
|
260
|
+
cancel: string;
|
|
261
|
+
continue: string;
|
|
160
262
|
};
|
|
161
263
|
type MemberText = {
|
|
162
264
|
addMember: string;
|
|
@@ -223,6 +325,37 @@ type ProfileTexts = {
|
|
|
223
325
|
profileSettings: string;
|
|
224
326
|
myOrganization: string;
|
|
225
327
|
};
|
|
328
|
+
type RolesTexts = {
|
|
329
|
+
newRole: string;
|
|
330
|
+
editRole: string;
|
|
331
|
+
nameRequiredErrorMessage: string;
|
|
332
|
+
deleteRole: string;
|
|
333
|
+
alertMessage: (roleName: string) => string;
|
|
334
|
+
adminPermissionsNotBeChangeMessage: string;
|
|
335
|
+
manageRoles: string;
|
|
336
|
+
manageRolesAndPermissions: string;
|
|
337
|
+
roles: string;
|
|
338
|
+
noRolesText: string;
|
|
339
|
+
searchRoles: string;
|
|
340
|
+
namePlaceholder: string;
|
|
341
|
+
descriptionPlaceholder: string;
|
|
342
|
+
};
|
|
343
|
+
type TagsTexts = {
|
|
344
|
+
articleTags: string;
|
|
345
|
+
addNewTag: string;
|
|
346
|
+
createTag: string;
|
|
347
|
+
editTag: string;
|
|
348
|
+
alertMessage: (tagName: string) => string;
|
|
349
|
+
tagNameRequiredMessage: string;
|
|
350
|
+
alertTitle: string;
|
|
351
|
+
noTagsFoundText: string;
|
|
352
|
+
manageTags: string;
|
|
353
|
+
createAndManageTags: string;
|
|
354
|
+
searchPlaceHolder: string;
|
|
355
|
+
noTagsText: string;
|
|
356
|
+
mergeTags: string;
|
|
357
|
+
mergeTagsAlertMessage: (sourceTag: string, destinationTag: string) => string;
|
|
358
|
+
};
|
|
226
359
|
|
|
227
360
|
// fixtures ---------------------------------------------
|
|
228
361
|
|
|
@@ -477,6 +610,12 @@ export const signUpSelectors: SignUpSelectors;
|
|
|
477
610
|
export const memberFormSelectors: MemberFormSelectors;
|
|
478
611
|
export const helpIconSelectors: HelpIconSelectors;
|
|
479
612
|
export const chatWidgetSelectors: ChatWidgetSelectors;
|
|
613
|
+
export const mergeTagsSelectors: MergeTagsSelectors;
|
|
614
|
+
export const tagsSelectors: TagsSelectors;
|
|
615
|
+
export const rolesSelectors: RolesSelectors;
|
|
616
|
+
export const ipRestrictionSelectors: IpRestrictionSelectors;
|
|
617
|
+
export const neetoEditorSelectors: NeetoEditorSelectors;
|
|
618
|
+
export const neetoFiltersSelectors: NeetoFiltersSelectors;
|
|
480
619
|
|
|
481
620
|
// exporting all texts
|
|
482
621
|
|
|
@@ -489,6 +628,8 @@ export const environment: Environment;
|
|
|
489
628
|
export const isStagingEnv: boolean;
|
|
490
629
|
export const helpIconTexts: HelpIconTexts;
|
|
491
630
|
export const profileTexts: ProfileTexts;
|
|
631
|
+
export const rolesTexts: RolesTexts;
|
|
632
|
+
export const tagsTexts: TagsTexts;
|
|
492
633
|
export const env: Environments;
|
|
493
634
|
|
|
494
635
|
//exporting fixtures
|
package/cypress-utils.js
CHANGED
|
@@ -187,27 +187,27 @@ var commonSelectors = {
|
|
|
187
187
|
alertTitle: dataCy("alert-title"),
|
|
188
188
|
alertModalMessage: dataCy("alert-message"),
|
|
189
189
|
alertModalSubmitButton: dataCy("alert-submit-button"),
|
|
190
|
-
checkbox: "
|
|
190
|
+
checkbox: dataCy("nui-checkbox-input"),
|
|
191
191
|
checkboxLabel: dataCy("nui-checkbox-label"),
|
|
192
192
|
dropdownContainer: dataCy("nui-dropdown-container"),
|
|
193
193
|
dropdownIcon: dataCy("nui-dropdown-icon"),
|
|
194
194
|
heading: dataCy("main-header"),
|
|
195
|
-
paneBody: "
|
|
196
|
-
paneHeader: "
|
|
197
|
-
profileSidebar: "
|
|
195
|
+
paneBody: dataCy("pane-body"),
|
|
196
|
+
paneHeader: dataCy("pane-header"),
|
|
197
|
+
profileSidebar: dataCy("profile-section"),
|
|
198
198
|
selectOption: function selectOption(label) {
|
|
199
199
|
return dataCy("".concat(hyphenize(label), "-select-option"));
|
|
200
200
|
},
|
|
201
201
|
toastMessage: dataCy("toastr-message-container"),
|
|
202
|
-
toastCloseButton: "
|
|
202
|
+
toastCloseButton: dataCy("toastr-close-button"),
|
|
203
203
|
windowAlert: "#alert-box",
|
|
204
204
|
body: "body",
|
|
205
205
|
toastIcon: ".Toastify__toast-icon",
|
|
206
|
-
paneModalCrossIcon: "
|
|
206
|
+
paneModalCrossIcon: dataCy("pane-close-button"),
|
|
207
207
|
inputField: dataCy("nui-input-field"),
|
|
208
208
|
alertConfirmationText: dataCy("alert-confirmation-text"),
|
|
209
209
|
alertCancelButton: dataCy("alert-cancel-button"),
|
|
210
|
-
alertModalCrossIcon: "
|
|
210
|
+
alertModalCrossIcon: dataCy("modal-close-button"),
|
|
211
211
|
saveChangesButton: dataCy("save-changes-button"),
|
|
212
212
|
cancelButton: dataCy("cancel-button"),
|
|
213
213
|
inputFieldError: dataCy("nui-input-error"),
|
|
@@ -217,17 +217,41 @@ var commonSelectors = {
|
|
|
217
217
|
},
|
|
218
218
|
noDataTitle: dataCy("no-data-title"),
|
|
219
219
|
noDataDescription: dataCy("no-data-description"),
|
|
220
|
-
|
|
220
|
+
backdrop: dataCy("neeto-backdrop"),
|
|
221
221
|
menuBarHeading: dataCy("menubar-heading"),
|
|
222
|
-
|
|
222
|
+
nthTabItem: function nthTabItem(index) {
|
|
223
223
|
return dataCy("tab-item", ":eq(".concat(index, ")"));
|
|
224
224
|
},
|
|
225
225
|
dropdownWrapper: function dropdownWrapper(index) {
|
|
226
226
|
return dataCy("nui-select-container-wrapper", ":eq(".concat(index, ")"));
|
|
227
227
|
},
|
|
228
228
|
toggleButton: dataCy("menubar-toggle-button"),
|
|
229
|
-
tooltip: "
|
|
230
|
-
articlePageTitle: ".serene-article__title"
|
|
229
|
+
tooltip: dataCy("tooltip-box"),
|
|
230
|
+
articlePageTitle: ".serene-article__title",
|
|
231
|
+
tabItem: dataCy("tab-item"),
|
|
232
|
+
labelInputError: dataCy("label-input-error"),
|
|
233
|
+
urlInputError: dataCy("url-input-error"),
|
|
234
|
+
noDataPrimaryButton: dataCy("no-data-primary-button"),
|
|
235
|
+
modalHeader: dataCy("modal-header"),
|
|
236
|
+
nameInputError: dataCy("name-input-error"),
|
|
237
|
+
selectContainer: dataCy("nui-select-container"),
|
|
238
|
+
dropdownMenu: dataCy("nui-select-menu"),
|
|
239
|
+
nthDropdownIcon: function nthDropdownIcon(index) {
|
|
240
|
+
return dataCy("nui-dropdown-icon", ":eq(".concat(index, ")"));
|
|
241
|
+
},
|
|
242
|
+
sidebarToggle: dataCy("neeto-molecules-sidebar-toggler"),
|
|
243
|
+
customDataCy: function customDataCy(name) {
|
|
244
|
+
return dataCy(name);
|
|
245
|
+
},
|
|
246
|
+
leftSubHeader: dataCy("subheader-left"),
|
|
247
|
+
subheader: dataCy("subheader"),
|
|
248
|
+
settingsLink: dataCy("Settings"),
|
|
249
|
+
nthInputField: function nthInputField(index) {
|
|
250
|
+
return dataCy("nui-input-field", ":eq(".concat(index, ")"));
|
|
251
|
+
},
|
|
252
|
+
ticketFieldTextInput: function ticketFieldTextInput(label) {
|
|
253
|
+
return dataCy("".concat(hyphenize(label), "-text-input"));
|
|
254
|
+
}
|
|
231
255
|
};
|
|
232
256
|
var tableSelectors = {
|
|
233
257
|
nthColumn: function nthColumn(n) {
|
|
@@ -244,10 +268,12 @@ var tableSelectors = {
|
|
|
244
268
|
var profileSelectors = {
|
|
245
269
|
tab: dataCy("profile-section"),
|
|
246
270
|
logoutLink: dataCy("profile-logout-button"),
|
|
247
|
-
profileOptionsContainer: '[class="tippy-box sidebar-featured-tooltip__content"]',
|
|
248
271
|
myProfileButton: dataCy("my-profile-button"),
|
|
249
272
|
organizationSettingsButton: dataCy("profile-organization-settings-button"),
|
|
250
|
-
loader: dataTestId("spinner")
|
|
273
|
+
loader: dataTestId("spinner"),
|
|
274
|
+
appSwitcherBody: dataCy("app-switcher-body-wrapper"),
|
|
275
|
+
sidebarInfo: dataCy("sidebar-info"),
|
|
276
|
+
appSwitcherBackButton: dataCy("app-switcher-back-button")
|
|
251
277
|
};
|
|
252
278
|
|
|
253
279
|
var commonTexts = {
|
|
@@ -274,7 +300,13 @@ var commonTexts = {
|
|
|
274
300
|
unsavedChangesAlertTitle: "You have unsaved changes!",
|
|
275
301
|
unsavedChangesAlertMessage: "Are you sure you want to continue? All of your unsaved changes will be lost.",
|
|
276
302
|
clearFilters: "Clear filters",
|
|
277
|
-
filters: "Filters"
|
|
303
|
+
filters: "Filters",
|
|
304
|
+
descriptionRequiredMessage: "Description is required.",
|
|
305
|
+
active: "active",
|
|
306
|
+
deactivated: "deactivated",
|
|
307
|
+
nameExistsMsg: "Name already exists",
|
|
308
|
+
cancel: "Cancel",
|
|
309
|
+
"continue": "Continue"
|
|
278
310
|
};
|
|
279
311
|
|
|
280
312
|
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -558,9 +590,6 @@ var memberSelectors = {
|
|
|
558
590
|
continueButton: dataCy("ntm-manage-member-continue-button"),
|
|
559
591
|
submitButton: dataCy("ntm-manage-member-submit-button"),
|
|
560
592
|
searchTextField: dataCy("ntm-search-members-input"),
|
|
561
|
-
email: "td:nth-child(3)",
|
|
562
|
-
name: "td:nth-child(2)",
|
|
563
|
-
role: "td:nth-child(4)",
|
|
564
593
|
deactivatedAgentsButton: dataCy("ntm-members-menubar-deactivated-block"),
|
|
565
594
|
activatedMembersButton: dataCy("ntm-members-menubar-active-block"),
|
|
566
595
|
columnCheckBox: dataCy("neeto-ui-columns-checkbox"),
|
|
@@ -571,7 +600,6 @@ var memberSelectors = {
|
|
|
571
600
|
editButton: dataCy("ntm-edit-member-button"),
|
|
572
601
|
menuBarHeading: dataCy("ntm-members-menubar-heading"),
|
|
573
602
|
activateOrDeactivateMember: dataCy("ntm-deactivate-member-button"),
|
|
574
|
-
subHeader: "[data-testid='subheader']",
|
|
575
603
|
columnsButton: dataCy("columns-dropdown-button"),
|
|
576
604
|
columnsDropdownContainer: dataCy("columns-dropdown-container"),
|
|
577
605
|
emailDropdownItemLabel: dataCy("email-checkbox-label"),
|
|
@@ -586,13 +614,30 @@ var memberSelectors = {
|
|
|
586
614
|
statusTag: dataCy("ntm-member-status-tag")
|
|
587
615
|
};
|
|
588
616
|
var memberFormSelectors = {
|
|
589
|
-
emailTextField: "
|
|
617
|
+
emailTextField: dataCy("email-select-input-field"),
|
|
590
618
|
firstNameTextField: dataCy("ntm-edit-member-first-name-text-field"),
|
|
591
619
|
lastNameTextField: dataCy("ntm-edit-member-last-name-text-field"),
|
|
592
620
|
emailInput: dataCy("ntm-manage-member-email-input"),
|
|
593
621
|
emailErrorField: dataCy("emails-input-error"),
|
|
594
622
|
cancelButton: dataCy("ntm-manage-member-cancel-button")
|
|
595
623
|
};
|
|
624
|
+
var neetoFiltersSelectors = {
|
|
625
|
+
emailSelectContainer: dataCy("email-select-container-wrapper"),
|
|
626
|
+
filterPaneHeading: dataCy("neeto-filters-pane-header"),
|
|
627
|
+
neetoFiltersEmailBlock: dataCy("neeto-filters-email-block"),
|
|
628
|
+
neetoFiltersRoleBlock: dataCy("neeto-filters-role-block"),
|
|
629
|
+
neetoFiltersBarClearButton: dataCy("neeto-filters-bar-clear-btn"),
|
|
630
|
+
neetoFiltersNameFilterField: dataCy("neeto-filters-name-filter"),
|
|
631
|
+
neetoFilterNameBlock: dataCy("neeto-filters-name-block"),
|
|
632
|
+
roleSelectContainer: dataCy("role-select-container-wrapper"),
|
|
633
|
+
filterButton: dataCy("neeto-filters-toggle-btn"),
|
|
634
|
+
filtersClearButton: dataCy("neeto-filters-clear-btn"),
|
|
635
|
+
filterDoneButton: dataCy("neeto-filters-done-btn"),
|
|
636
|
+
filteredMembersCount: dataCy("ntm-filtered-members-count"),
|
|
637
|
+
allMenubarBlock: dataCy("ntm-members-menubar-all-block"),
|
|
638
|
+
filtersEmailFilter: dataCy("neeto-filters-email-filter"),
|
|
639
|
+
paneModalCrossIcon: dataCy("neeto-filters-close-button")
|
|
640
|
+
};
|
|
596
641
|
|
|
597
642
|
var signUpSelectors = {
|
|
598
643
|
emailTextField: dataCy("signup-email-text-field"),
|
|
@@ -617,13 +662,13 @@ var helpIconSelectors = {
|
|
|
617
662
|
whatsNewButton: dataCy("help-link-changelog-button"),
|
|
618
663
|
whatsNewWidgetInfo: "h1",
|
|
619
664
|
whatsNewWidgetCloseButton: ".nc-widget-header__btn",
|
|
620
|
-
keyboardShortcutPaneHeading: "
|
|
621
|
-
keyboardShortcutPaneCrossIcon: "
|
|
665
|
+
keyboardShortcutPaneHeading: dataCy("keyboard-shortcuts-pane-title"),
|
|
666
|
+
keyboardShortcutPaneCrossIcon: dataCy("keyboard-shortcuts-pane-close-button")
|
|
622
667
|
};
|
|
623
668
|
var chatWidgetSelectors = {
|
|
624
|
-
chatWidgetHomeCard: "
|
|
625
|
-
widgetSubmitButton: "
|
|
626
|
-
chatBubbleMessage: "
|
|
669
|
+
chatWidgetHomeCard: dataCy("neeto-chat-widget-cta-title"),
|
|
670
|
+
widgetSubmitButton: dataCy("neeto-chat-widget-pre-chat-submit-btn"),
|
|
671
|
+
chatBubbleMessage: dataCy("neeto-chat-widget-chat-message-bubble"),
|
|
627
672
|
chatCloseButton: ".neeto-chat-widget-icon--close",
|
|
628
673
|
widgetIframe: "#neetochat-iframe"
|
|
629
674
|
};
|
|
@@ -699,8 +744,6 @@ var helpIconTexts = {
|
|
|
699
744
|
welcome: "Welcome",
|
|
700
745
|
keyboardShortcuts: "Keyboard shortcuts",
|
|
701
746
|
liveChat: "Live chat",
|
|
702
|
-
newConversation: "New Conversation",
|
|
703
|
-
chatMessage: "Hello. Go ahead and ask us anything.",
|
|
704
747
|
whatsNew: "What's new"
|
|
705
748
|
};
|
|
706
749
|
var profileTexts = {
|
|
@@ -881,6 +924,7 @@ Object.defineProperty(fake, "streetAddress", {
|
|
|
881
924
|
});
|
|
882
925
|
fake.phoneNumber = phoneNumber;
|
|
883
926
|
|
|
927
|
+
/* eslint-disable xss/no-location-href-assign */
|
|
884
928
|
var verifyTabMenu = function verifyTabMenu(_ref) {
|
|
885
929
|
var tabSelector = _ref.tabSelector,
|
|
886
930
|
_ref$alias = _ref.alias,
|
|
@@ -972,7 +1016,9 @@ var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
|
|
|
972
1016
|
});
|
|
973
1017
|
cy.get(chatWidgetSelectors.chatWidgetHomeCard, {
|
|
974
1018
|
timeout: 10000
|
|
975
|
-
}).
|
|
1019
|
+
}).click({
|
|
1020
|
+
force: true
|
|
1021
|
+
});
|
|
976
1022
|
requestCount && cy.wait("@".concat(alias), requestCount);
|
|
977
1023
|
requestCount && cy.interceptNonVersionedApi({
|
|
978
1024
|
url: requestApis.allChatPath,
|
|
@@ -981,7 +1027,7 @@ var verifyChatWithUsTab = function verifyChatWithUsTab(_ref3) {
|
|
|
981
1027
|
});
|
|
982
1028
|
cy.get(chatWidgetSelectors.widgetSubmitButton).click();
|
|
983
1029
|
requestCount && cy.waitForMultipleRequest("@".concat(alias), requestCount);
|
|
984
|
-
cy.get(chatWidgetSelectors.chatBubbleMessage).should("
|
|
1030
|
+
cy.get(chatWidgetSelectors.chatBubbleMessage).should("be.visible");
|
|
985
1031
|
});
|
|
986
1032
|
cy.get(chatWidgetSelectors.chatCloseButton).click();
|
|
987
1033
|
cy.get(chatWidgetSelectors.widgetIframe).should("not.exist");
|
|
@@ -1243,11 +1289,11 @@ var verifyMemberDetails = function verifyMemberDetails(_ref3) {
|
|
|
1243
1289
|
});
|
|
1244
1290
|
!skipSearchRequest && cy.wait("@searchMember");
|
|
1245
1291
|
return cy.contains(tableSelectors.tableRow, email).within(function () {
|
|
1246
|
-
cy.get(
|
|
1247
|
-
cy.get(
|
|
1292
|
+
cy.get(tableSelectors.nthColumn(3)).should("have.text", email);
|
|
1293
|
+
cy.get(tableSelectors.nthColumn(2)).within(function () {
|
|
1248
1294
|
name && cy.get("p").should("have.text", name);
|
|
1249
1295
|
});
|
|
1250
|
-
role && cy.get(
|
|
1296
|
+
role && cy.get(tableSelectors.nthColumn(4)).should("have.text", role);
|
|
1251
1297
|
statusTag && cy.get(memberSelectors.statusTag).should("have.text", statusTag);
|
|
1252
1298
|
});
|
|
1253
1299
|
};
|
|
@@ -1442,7 +1488,7 @@ var deactivateMemberViaRequest = function deactivateMemberViaRequest(email) {
|
|
|
1442
1488
|
cy.reloadAndWait(requestCount);
|
|
1443
1489
|
};
|
|
1444
1490
|
var clickOnColumnIcon = function clickOnColumnIcon() {
|
|
1445
|
-
cy.get(
|
|
1491
|
+
cy.get(commonSelectors.subheader).should("exist").within(function () {
|
|
1446
1492
|
cy.get(memberSelectors.columnsButton).click();
|
|
1447
1493
|
});
|
|
1448
1494
|
};
|
|
@@ -1723,5 +1769,5 @@ var emailUtils = {
|
|
|
1723
1769
|
sendEmail: sendEmail
|
|
1724
1770
|
};
|
|
1725
1771
|
|
|
1726
|
-
export { authUtils, chatWidgetSelectors, commonSelectors, commonTexts, createOrganization, dataCy, dataTestId, dateUtils, emailUtils, env, environment, fake, getTestTitle, getUrl, helpIconSelectors, helpIconTexts, hyphenize, initCustomCommands, initializeCredentials, isStagingEnv, joinHyphenCase, loginSelectors, memberFormErrorTexts, memberFormSelectors, memberSelectors, memberTableTexts, memberTexts, memberUtils, navigationUtils, profileSelectors, profileTexts, sendEmail, setListCount, signUpSelectors, signUpTexts, tableSelectors, verifyCrossSiteScript, verifyListCount };
|
|
1772
|
+
export { authUtils, chatWidgetSelectors, commonSelectors, commonTexts, createOrganization, dataCy, dataTestId, dateUtils, emailUtils, env, environment, fake, getTestTitle, getUrl, helpIconSelectors, helpIconTexts, hyphenize, initCustomCommands, initializeCredentials, isStagingEnv, joinHyphenCase, loginSelectors, memberFormErrorTexts, memberFormSelectors, memberSelectors, memberTableTexts, memberTexts, memberUtils, navigationUtils, neetoFiltersSelectors, profileSelectors, profileTexts, sendEmail, setListCount, signUpSelectors, signUpTexts, tableSelectors, verifyCrossSiteScript, verifyListCount };
|
|
1727
1773
|
//# sourceMappingURL=cypress-utils.js.map
|