@bigbinary/neeto-commons-frontend 2.0.31 → 2.0.32
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-commands.d.ts +1 -0
- package/cypress-utils.cjs.js +1035 -52
- package/cypress-utils.d.ts +27 -42
- package/cypress-utils.js +1035 -52
- package/initializers.cjs.js +39 -5
- package/initializers.js +40 -6
- package/package.json +1 -1
package/cypress-utils.d.ts
CHANGED
|
@@ -17,22 +17,19 @@ type CommonSelectors = {
|
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
type MemberSelectors = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
members: string;
|
|
34
|
-
newHeading: string;
|
|
35
|
-
updatedMemberRole: string;
|
|
20
|
+
activatedMembersButton: string;
|
|
21
|
+
columnCheckBox: string;
|
|
22
|
+
continueButton: string;
|
|
23
|
+
deactivatedAgentsButton: string;
|
|
24
|
+
dropDownIcon: string;
|
|
25
|
+
email: string;
|
|
26
|
+
menuBarHeading: string;
|
|
27
|
+
membersTab: string;
|
|
28
|
+
newButton: string;
|
|
29
|
+
role: string;
|
|
30
|
+
roleLabel: (role: string) => string;
|
|
31
|
+
searchTextField: string;
|
|
32
|
+
submitButton: string;
|
|
36
33
|
};
|
|
37
34
|
|
|
38
35
|
type LoginSelectors = {
|
|
@@ -105,6 +102,16 @@ type MemberText = {
|
|
|
105
102
|
updatedMemberRole: string;
|
|
106
103
|
};
|
|
107
104
|
|
|
105
|
+
type MemberTableTexts = {
|
|
106
|
+
assignedTickets: string;
|
|
107
|
+
availabilityForDesk: string;
|
|
108
|
+
created: string;
|
|
109
|
+
email: string;
|
|
110
|
+
name: string;
|
|
111
|
+
role: string;
|
|
112
|
+
teams: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
108
115
|
type SignUpTexts = {
|
|
109
116
|
email: string;
|
|
110
117
|
profile: string;
|
|
@@ -167,7 +174,7 @@ export function createOrganization(props: {
|
|
|
167
174
|
|
|
168
175
|
// Utils: validation
|
|
169
176
|
|
|
170
|
-
function verifyCrossSiteScript(
|
|
177
|
+
export function verifyCrossSiteScript(
|
|
171
178
|
inputSelector: string,
|
|
172
179
|
submitSelector: string
|
|
173
180
|
): Void;
|
|
@@ -199,7 +206,7 @@ function deactivateMember(props: {
|
|
|
199
206
|
|
|
200
207
|
function deactivateMemberViaRequest(email: string, requestCount: number): Void;
|
|
201
208
|
|
|
202
|
-
function
|
|
209
|
+
function updateMemberRole(props: {
|
|
203
210
|
email: string;
|
|
204
211
|
role: string;
|
|
205
212
|
skipSearchRequest: boolean;
|
|
@@ -209,27 +216,8 @@ function interceptMemberApi(alias: string, times: number = 1): Void;
|
|
|
209
216
|
|
|
210
217
|
function navigateToMembersPage(waitForRequest: boolean = true): Void;
|
|
211
218
|
|
|
212
|
-
function navigateToNewMemberPanel(waitForRequest: boolean = true): Void;
|
|
213
|
-
|
|
214
219
|
function unCheckColumnCheckBox(fieldSelector: string): Void;
|
|
215
220
|
|
|
216
|
-
function verifyActivatedMember(props: {
|
|
217
|
-
email: string;
|
|
218
|
-
skipFetchRequest: boolean;
|
|
219
|
-
skipSearchRequest: boolean;
|
|
220
|
-
}): Void;
|
|
221
|
-
|
|
222
|
-
function verifyActivateAlert(props: {
|
|
223
|
-
email: string;
|
|
224
|
-
skipSearchRequest: boolean;
|
|
225
|
-
}): Void;
|
|
226
|
-
|
|
227
|
-
function verifyDeactivatedMember(props: {
|
|
228
|
-
email: string;
|
|
229
|
-
skipFetchRequest: boolean;
|
|
230
|
-
skipSearchRequest: boolean;
|
|
231
|
-
}): Void;
|
|
232
|
-
|
|
233
221
|
function verifyMemberDetails(props: {
|
|
234
222
|
email: string;
|
|
235
223
|
role: string;
|
|
@@ -247,14 +235,10 @@ export const memberUtils = {
|
|
|
247
235
|
checkColumnCheckBox,
|
|
248
236
|
deactivateMember,
|
|
249
237
|
deactivateMemberViaRequest,
|
|
250
|
-
|
|
238
|
+
updateMemberRole,
|
|
251
239
|
interceptMemberApi,
|
|
252
240
|
navigateToMembersPage,
|
|
253
|
-
navigateToNewMemberPanel,
|
|
254
241
|
unCheckColumnCheckBox,
|
|
255
|
-
verifyActivatedMember,
|
|
256
|
-
verifyActivateAlert,
|
|
257
|
-
verifyDeactivatedMember,
|
|
258
242
|
verifyMemberDetails,
|
|
259
243
|
};
|
|
260
244
|
|
|
@@ -270,6 +254,7 @@ export declare const signUpSelectors: SignUpSelectors;
|
|
|
270
254
|
|
|
271
255
|
export declare const commonTexts: CommonTexts;
|
|
272
256
|
export declare const memberTexts: MemberText;
|
|
257
|
+
export declare const memberTableTexts: MemberTableTexts;
|
|
273
258
|
export declare const signUpTexts: SignUpTexts;
|
|
274
259
|
export declare const environment: Environment;
|
|
275
260
|
export declare const isStagingEnv: Boolean;
|