@bigbinary/neeto-commons-frontend 2.1.37 → 2.1.38
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/cypress-utils.cjs.js +85 -27
- package/cypress-utils.cjs.js.map +1 -1
- package/cypress-utils.d.ts +146 -5
- package/cypress-utils.js +85 -28
- 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
|
@@ -183,31 +183,43 @@ Object.defineProperty(requestApis, "allPath", {
|
|
|
183
183
|
get: allPath
|
|
184
184
|
});
|
|
185
185
|
|
|
186
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
187
|
+
if (!raw) {
|
|
188
|
+
raw = strings.slice(0);
|
|
189
|
+
}
|
|
190
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
191
|
+
raw: {
|
|
192
|
+
value: Object.freeze(raw)
|
|
193
|
+
}
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
var _templateObject;
|
|
186
198
|
var commonSelectors = {
|
|
187
199
|
alertTitle: dataCy("alert-title"),
|
|
188
200
|
alertModalMessage: dataCy("alert-message"),
|
|
189
201
|
alertModalSubmitButton: dataCy("alert-submit-button"),
|
|
190
|
-
checkbox: "
|
|
202
|
+
checkbox: dataCy("nui-checkbox-input"),
|
|
191
203
|
checkboxLabel: dataCy("nui-checkbox-label"),
|
|
192
204
|
dropdownContainer: dataCy("nui-dropdown-container"),
|
|
193
205
|
dropdownIcon: dataCy("nui-dropdown-icon"),
|
|
194
206
|
heading: dataCy("main-header"),
|
|
195
|
-
paneBody: "
|
|
196
|
-
paneHeader: "
|
|
197
|
-
profileSidebar: "
|
|
207
|
+
paneBody: dataCy("pane-body"),
|
|
208
|
+
paneHeader: dataCy("pane-header"),
|
|
209
|
+
profileSidebar: dataCy("profile-section"),
|
|
198
210
|
selectOption: function selectOption(label) {
|
|
199
211
|
return dataCy("".concat(hyphenize(label), "-select-option"));
|
|
200
212
|
},
|
|
201
213
|
toastMessage: dataCy("toastr-message-container"),
|
|
202
|
-
toastCloseButton: "
|
|
214
|
+
toastCloseButton: dataCy("toastr-close-button"),
|
|
203
215
|
windowAlert: "#alert-box",
|
|
204
216
|
body: "body",
|
|
205
217
|
toastIcon: ".Toastify__toast-icon",
|
|
206
|
-
paneModalCrossIcon: "
|
|
218
|
+
paneModalCrossIcon: dataCy("pane-close-button"),
|
|
207
219
|
inputField: dataCy("nui-input-field"),
|
|
208
220
|
alertConfirmationText: dataCy("alert-confirmation-text"),
|
|
209
221
|
alertCancelButton: dataCy("alert-cancel-button"),
|
|
210
|
-
alertModalCrossIcon: "
|
|
222
|
+
alertModalCrossIcon: dataCy("modal-close-button"),
|
|
211
223
|
saveChangesButton: dataCy("save-changes-button"),
|
|
212
224
|
cancelButton: dataCy("cancel-button"),
|
|
213
225
|
inputFieldError: dataCy("nui-input-error"),
|
|
@@ -217,17 +229,41 @@ var commonSelectors = {
|
|
|
217
229
|
},
|
|
218
230
|
noDataTitle: dataCy("no-data-title"),
|
|
219
231
|
noDataDescription: dataCy("no-data-description"),
|
|
220
|
-
|
|
232
|
+
backdrop: dataCy("neeto-backdrop"),
|
|
221
233
|
menuBarHeading: dataCy("menubar-heading"),
|
|
222
|
-
|
|
234
|
+
nthTabItem: function nthTabItem(index) {
|
|
223
235
|
return dataCy("tab-item", ":eq(".concat(index, ")"));
|
|
224
236
|
},
|
|
225
237
|
dropdownWrapper: function dropdownWrapper(index) {
|
|
226
238
|
return dataCy("nui-select-container-wrapper", ":eq(".concat(index, ")"));
|
|
227
239
|
},
|
|
228
240
|
toggleButton: dataCy("menubar-toggle-button"),
|
|
229
|
-
tooltip: "
|
|
230
|
-
articlePageTitle: ".serene-article__title"
|
|
241
|
+
tooltip: dataCy("tooltip-box"),
|
|
242
|
+
articlePageTitle: ".serene-article__title",
|
|
243
|
+
tabItem: dataCy("tab-item"),
|
|
244
|
+
labelInputError: dataCy("label-input-error"),
|
|
245
|
+
urlInputError: dataCy("url-input-error"),
|
|
246
|
+
noDataPrimaryButton: dataCy("no-data-primary-button"),
|
|
247
|
+
modalHeader: dataCy("modal-header"),
|
|
248
|
+
nameInputError: dataCy("name-input-error"),
|
|
249
|
+
selectContainer: dataCy("nui-select-container"),
|
|
250
|
+
dropdownMenu: dataCy("nui-select-menu"),
|
|
251
|
+
nthDropdownIcon: function nthDropdownIcon(index) {
|
|
252
|
+
return dataCy("nui-dropdown-icon", ":eq(".concat(index, ")"));
|
|
253
|
+
},
|
|
254
|
+
sidebarToggle: dataCy("neeto-molecules-sidebar-toggler"),
|
|
255
|
+
customDataCy: function customDataCy(name) {
|
|
256
|
+
return dataCy(name);
|
|
257
|
+
},
|
|
258
|
+
leftSubHeader: dataCy("subheader-left"),
|
|
259
|
+
subheader: dataCy("subheader"),
|
|
260
|
+
settingsLink: dataCy("Settings"),
|
|
261
|
+
nthInputField: function nthInputField(index) {
|
|
262
|
+
return dataCy("nui-input-field"(_templateObject || (_templateObject = _taggedTemplateLiteral([":eq(", ")"])), index));
|
|
263
|
+
},
|
|
264
|
+
ticketFieldTextInput: function ticketFieldTextInput(label) {
|
|
265
|
+
return dataCy("".concat(hyphenize(label), "-text-input"));
|
|
266
|
+
}
|
|
231
267
|
};
|
|
232
268
|
var tableSelectors = {
|
|
233
269
|
nthColumn: function nthColumn(n) {
|
|
@@ -244,10 +280,12 @@ var tableSelectors = {
|
|
|
244
280
|
var profileSelectors = {
|
|
245
281
|
tab: dataCy("profile-section"),
|
|
246
282
|
logoutLink: dataCy("profile-logout-button"),
|
|
247
|
-
profileOptionsContainer: '[class="tippy-box sidebar-featured-tooltip__content"]',
|
|
248
283
|
myProfileButton: dataCy("my-profile-button"),
|
|
249
284
|
organizationSettingsButton: dataCy("profile-organization-settings-button"),
|
|
250
|
-
loader: dataTestId("spinner")
|
|
285
|
+
loader: dataTestId("spinner"),
|
|
286
|
+
appSwitcherBody: dataCy("app-switcher-body-wrapper"),
|
|
287
|
+
sidebarInfo: dataCy("sidebar-info"),
|
|
288
|
+
appSwitcherBackButton: dataCy("app-switcher-back-button")
|
|
251
289
|
};
|
|
252
290
|
|
|
253
291
|
var commonTexts = {
|
|
@@ -274,7 +312,13 @@ var commonTexts = {
|
|
|
274
312
|
unsavedChangesAlertTitle: "You have unsaved changes!",
|
|
275
313
|
unsavedChangesAlertMessage: "Are you sure you want to continue? All of your unsaved changes will be lost.",
|
|
276
314
|
clearFilters: "Clear filters",
|
|
277
|
-
filters: "Filters"
|
|
315
|
+
filters: "Filters",
|
|
316
|
+
descriptionRequiredMessage: "Description is required.",
|
|
317
|
+
active: "active",
|
|
318
|
+
deactivated: "deactivated",
|
|
319
|
+
nameExistsMsg: "Name already exists",
|
|
320
|
+
cancel: "Cancel",
|
|
321
|
+
"continue": "Continue"
|
|
278
322
|
};
|
|
279
323
|
|
|
280
324
|
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 +602,6 @@ var memberSelectors = {
|
|
|
558
602
|
continueButton: dataCy("ntm-manage-member-continue-button"),
|
|
559
603
|
submitButton: dataCy("ntm-manage-member-submit-button"),
|
|
560
604
|
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
605
|
deactivatedAgentsButton: dataCy("ntm-members-menubar-deactivated-block"),
|
|
565
606
|
activatedMembersButton: dataCy("ntm-members-menubar-active-block"),
|
|
566
607
|
columnCheckBox: dataCy("neeto-ui-columns-checkbox"),
|
|
@@ -571,7 +612,6 @@ var memberSelectors = {
|
|
|
571
612
|
editButton: dataCy("ntm-edit-member-button"),
|
|
572
613
|
menuBarHeading: dataCy("ntm-members-menubar-heading"),
|
|
573
614
|
activateOrDeactivateMember: dataCy("ntm-deactivate-member-button"),
|
|
574
|
-
subHeader: "[data-testid='subheader']",
|
|
575
615
|
columnsButton: dataCy("columns-dropdown-button"),
|
|
576
616
|
columnsDropdownContainer: dataCy("columns-dropdown-container"),
|
|
577
617
|
emailDropdownItemLabel: dataCy("email-checkbox-label"),
|
|
@@ -586,13 +626,30 @@ var memberSelectors = {
|
|
|
586
626
|
statusTag: dataCy("ntm-member-status-tag")
|
|
587
627
|
};
|
|
588
628
|
var memberFormSelectors = {
|
|
589
|
-
emailTextField: "
|
|
629
|
+
emailTextField: dataCy("email-select-input-field"),
|
|
590
630
|
firstNameTextField: dataCy("ntm-edit-member-first-name-text-field"),
|
|
591
631
|
lastNameTextField: dataCy("ntm-edit-member-last-name-text-field"),
|
|
592
632
|
emailInput: dataCy("ntm-manage-member-email-input"),
|
|
593
633
|
emailErrorField: dataCy("emails-input-error"),
|
|
594
634
|
cancelButton: dataCy("ntm-manage-member-cancel-button")
|
|
595
635
|
};
|
|
636
|
+
var neetoFiltersSelectors = {
|
|
637
|
+
emailSelectContainer: dataCy("email-select-container-wrapper"),
|
|
638
|
+
filterPaneHeading: dataCy("neeto-filters-pane-header"),
|
|
639
|
+
neetoFiltersEmailBlock: dataCy("neeto-filters-email-block"),
|
|
640
|
+
neetoFiltersRoleBlock: dataCy("neeto-filters-role-block"),
|
|
641
|
+
neetoFiltersBarClearButton: dataCy("neeto-filters-bar-clear-btn"),
|
|
642
|
+
neetoFiltersNameFilterField: dataCy("neeto-filters-name-filter"),
|
|
643
|
+
neetoFilterNameBlock: dataCy("neeto-filters-name-block"),
|
|
644
|
+
roleSelectContainer: dataCy("role-select-container-wrapper"),
|
|
645
|
+
filterButton: dataCy("neeto-filters-toggle-btn"),
|
|
646
|
+
filtersClearButton: dataCy("neeto-filters-clear-btn"),
|
|
647
|
+
filterDoneButton: dataCy("neeto-filters-done-btn"),
|
|
648
|
+
filteredMembersCount: dataCy("ntm-filtered-members-count"),
|
|
649
|
+
allMenubarBlock: dataCy("ntm-members-menubar-all-block"),
|
|
650
|
+
filtersEmailFilter: dataCy("neeto-filters-email-filter"),
|
|
651
|
+
paneModalCrossIcon: dataCy("neeto-filters-close-button")
|
|
652
|
+
};
|
|
596
653
|
|
|
597
654
|
var signUpSelectors = {
|
|
598
655
|
emailTextField: dataCy("signup-email-text-field"),
|
|
@@ -617,13 +674,13 @@ var helpIconSelectors = {
|
|
|
617
674
|
whatsNewButton: dataCy("help-link-changelog-button"),
|
|
618
675
|
whatsNewWidgetInfo: "h1",
|
|
619
676
|
whatsNewWidgetCloseButton: ".nc-widget-header__btn",
|
|
620
|
-
keyboardShortcutPaneHeading: "
|
|
621
|
-
keyboardShortcutPaneCrossIcon: "
|
|
677
|
+
keyboardShortcutPaneHeading: dataCy("keyboard-shortcuts-pane-title"),
|
|
678
|
+
keyboardShortcutPaneCrossIcon: dataCy("keyboard-shortcuts-pane-close-button")
|
|
622
679
|
};
|
|
623
680
|
var chatWidgetSelectors = {
|
|
624
681
|
chatWidgetHomeCard: ".neeto-chat-widget-home__card-content",
|
|
625
|
-
widgetSubmitButton: "
|
|
626
|
-
chatBubbleMessage: "
|
|
682
|
+
widgetSubmitButton: dataCy("neeto-chat-widget-pre-chat-submit-btn"),
|
|
683
|
+
chatBubbleMessage: dataCy("neeto-chat-widget-chat-message-bubble"),
|
|
627
684
|
chatCloseButton: ".neeto-chat-widget-icon--close",
|
|
628
685
|
widgetIframe: "#neetochat-iframe"
|
|
629
686
|
};
|
|
@@ -1243,11 +1300,11 @@ var verifyMemberDetails = function verifyMemberDetails(_ref3) {
|
|
|
1243
1300
|
});
|
|
1244
1301
|
!skipSearchRequest && cy.wait("@searchMember");
|
|
1245
1302
|
return cy.contains(tableSelectors.tableRow, email).within(function () {
|
|
1246
|
-
cy.get(
|
|
1247
|
-
cy.get(
|
|
1303
|
+
cy.get(tableSelectors.nthColumn(3)).should("have.text", email);
|
|
1304
|
+
cy.get(tableSelectors.nthColumn(2)).within(function () {
|
|
1248
1305
|
name && cy.get("p").should("have.text", name);
|
|
1249
1306
|
});
|
|
1250
|
-
role && cy.get(
|
|
1307
|
+
role && cy.get(tableSelectors.nthColumn(4)).should("have.text", role);
|
|
1251
1308
|
statusTag && cy.get(memberSelectors.statusTag).should("have.text", statusTag);
|
|
1252
1309
|
});
|
|
1253
1310
|
};
|
|
@@ -1442,7 +1499,7 @@ var deactivateMemberViaRequest = function deactivateMemberViaRequest(email) {
|
|
|
1442
1499
|
cy.reloadAndWait(requestCount);
|
|
1443
1500
|
};
|
|
1444
1501
|
var clickOnColumnIcon = function clickOnColumnIcon() {
|
|
1445
|
-
cy.get(
|
|
1502
|
+
cy.get(commonSelectors.subheader).should("exist").within(function () {
|
|
1446
1503
|
cy.get(memberSelectors.columnsButton).click();
|
|
1447
1504
|
});
|
|
1448
1505
|
};
|
|
@@ -1723,5 +1780,5 @@ var emailUtils = {
|
|
|
1723
1780
|
sendEmail: sendEmail
|
|
1724
1781
|
};
|
|
1725
1782
|
|
|
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 };
|
|
1783
|
+
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
1784
|
//# sourceMappingURL=cypress-utils.js.map
|