itemengine-cypress-automation 1.0.386-constructed-response-r2-2071bf2.0 → 1.0.387-constructed-response-r3-7d329e4.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/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -7
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +29 -46
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
- package/package.json +1 -1
@@ -284,7 +284,6 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
284
284
|
|
285
285
|
//upload the same file again
|
286
286
|
drawingResponsePage.steps.uploadFile('uploads/image.png');
|
287
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.fileUploadProgressBar(), 'visible');
|
288
287
|
utilities.verifyInnerText(drawingResponsePage.uploadedFileNameLabel(), 'image.png');
|
289
288
|
utilities.verifyElementVisibilityState(drawingResponsePage.uploadedFileNameLabel(), 'visible');
|
290
289
|
utilities.verifyElementVisibilityState(drawingResponsePage.fileUploadProgressBar(), 'notExist');
|
@@ -306,17 +305,13 @@ describe('Create item page - Drawing response: Background: Blank canvas, Image,
|
|
306
305
|
utilities.verifyElementVisibilityState(drawingResponsePage.uploadedFileNameLabel(), 'visible');
|
307
306
|
});
|
308
307
|
|
309
|
-
it('When the user uploads a file that is not supported, following error message should be displayed
|
308
|
+
it('When the user uploads a file that is not supported, following error message should not be displayed', () => {
|
310
309
|
drawingResponsePage.steps.uploadFile('uploads/sample.mp4')
|
311
|
-
utilities.
|
312
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.errorMessage(), 'visible');
|
310
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.errorMessage(), 'notExist');
|
313
311
|
});
|
314
312
|
|
315
|
-
drawingResponsePage.tests.verifyErrorMessageCSSAndA11y();
|
316
|
-
|
317
313
|
it('When the user uploads supported format of image file, error message should disappear', () => {
|
318
314
|
drawingResponsePage.steps.uploadFile('uploads/sample2.jpg');
|
319
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.errorMessage(), 'notExist');
|
320
315
|
});
|
321
316
|
|
322
317
|
//Failing due to https://redmine.zeuslearning.com/issues/555227
|
@@ -73,55 +73,45 @@ describe('Create question page - Essay Response: Question Instructions, Set limi
|
|
73
73
|
essayResponsePage.steps.setMaximumLimit(500);
|
74
74
|
});
|
75
75
|
|
76
|
-
it('When the user clears the minimum word limit input field and focuses out of it, then error message
|
76
|
+
it('When the user clears the minimum word limit input field and focuses out of it, then the error message should not be displayed', () => {
|
77
77
|
essayResponsePage.steps.clearAndFocusOutOfMinimumLimitInputField();
|
78
|
-
utilities.
|
79
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'visible');
|
78
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
80
79
|
});
|
81
80
|
|
82
|
-
|
83
|
-
|
84
|
-
it('When the user enters value in minimum word limit input field then the error message should disappear', () => {
|
81
|
+
it('When the user enters value 0 in the minimum word limit input field, it should be accepted', () => {
|
85
82
|
essayResponsePage.steps.setMinimumLimit(0);
|
86
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
87
83
|
});
|
88
84
|
|
89
|
-
it('When the user clears the maximum word limit input field and focuses out of it, then error message
|
85
|
+
it('When the user clears the maximum word limit input field and focuses out of it, then the error message should not be displayed', () => {
|
90
86
|
essayResponsePage.steps.clearAndFocusOutOfMaximumLimitInputField();
|
91
|
-
utilities.
|
92
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'visible');
|
87
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
93
88
|
});
|
94
89
|
|
95
|
-
it('When the user enters value in maximum word limit input field
|
90
|
+
it('When the user enters a value in the maximum word limit input field, it should be accepted', () => {
|
96
91
|
essayResponsePage.steps.setMaximumLimit(500);
|
97
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
98
92
|
});
|
99
93
|
|
100
|
-
it('When the user sets minimum limit input field value greater than maximum limit input field value then error
|
94
|
+
it('When the user sets the minimum limit input field value greater than the maximum limit input field value, then error messages should not be displayed below both input fields', () => {
|
101
95
|
essayResponsePage.steps.setMinimumLimit(700);
|
102
|
-
essayResponsePage.
|
103
|
-
essayResponsePage.steps.verifyMinimumLimitErrorMessage();
|
96
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
104
97
|
});
|
105
98
|
|
106
|
-
|
107
|
-
|
108
|
-
it('When the user sets minimum limit input field value less than or equal to maximum limit input field value then error message should disappear', () => {
|
99
|
+
it('When the user sets the minimum limit input field value less than or equal to the maximum limit input field value, then the error messages should disappear', () => {
|
109
100
|
essayResponsePage.steps.setMinimumLimit(500);
|
110
101
|
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
111
102
|
});
|
112
103
|
|
113
|
-
it('When the user sets maximum limit input field value less than minimum limit input field value then error
|
104
|
+
it('When the user sets the maximum limit input field value less than the minimum limit input field value, then error messages not be displayed below both input fields', () => {
|
114
105
|
essayResponsePage.steps.setMaximumLimit(400);
|
115
|
-
essayResponsePage.
|
116
|
-
essayResponsePage.steps.verifyMinimumLimitErrorMessage();
|
106
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
117
107
|
});
|
118
108
|
|
119
|
-
it('When the user sets maximum limit input field value greater than or equal to minimum limit input field value then error
|
109
|
+
it('When the user sets the maximum limit input field value greater than or equal to the minimum limit input field value, then the error messages should disappear', () => {
|
120
110
|
essayResponsePage.steps.setMaximumLimit(800);
|
121
111
|
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
122
112
|
});
|
123
113
|
|
124
|
-
it('\'Always show maximum limit\' and \'Always show minimum limit\' labels and
|
114
|
+
it('\'Always show maximum limit\' and \'Always show minimum limit\' labels and checkboxes should be displayed, and by default, \'Always show maximum limit\' should be checked', () => {
|
125
115
|
utilities.verifyInnerText(essayResponsePage.alwaysShowMaxLimitLabel(), 'Always show maximum limit');
|
126
116
|
utilities.verifyElementVisibilityState(essayResponsePage.alwaysShowMaxLimitLabel(), 'visible');
|
127
117
|
utilities.verifyInnerText(essayResponsePage.alwaysShowMinLimitLabel(), 'Always show minimum limit');
|
@@ -129,44 +119,40 @@ describe('Create question page - Essay Response: Question Instructions, Set limi
|
|
129
119
|
essayResponsePage.steps.verifyAlwaysShowMaximumLimitCheckboxIsChecked();
|
130
120
|
});
|
131
121
|
|
132
|
-
it('When the user selects \'Character\' radio button
|
122
|
+
it('When the user selects the \'Character\' radio button, the labels should change to \'Minimum character limit\' and \'Maximum character limit\'', () => {
|
133
123
|
essayResponsePage.steps.checkCharacterRadioButton();
|
134
124
|
utilities.verifyInnerText(essayResponsePage.minimumLimitLabel(), 'Minimum character limit');
|
135
125
|
utilities.verifyInnerText(essayResponsePage.maximumLimitLabel(), 'Maximum character limit');
|
136
126
|
});
|
137
127
|
|
138
128
|
it('\'Minimum character limit\' and \'Maximum character limit\' input fields should be updated to 0 and 20000 by default', () => {
|
139
|
-
essayResponsePage.steps.verifyMinimumLimitInputField(0)
|
140
|
-
essayResponsePage.steps.verifyMaximumLimitInputField(20000)
|
129
|
+
essayResponsePage.steps.verifyMinimumLimitInputField(0);
|
130
|
+
essayResponsePage.steps.verifyMaximumLimitInputField(20000);
|
141
131
|
});
|
142
132
|
|
143
|
-
it('User should be able to update values in both the input fields', () => {
|
133
|
+
it('User should be able to update values in both the input fields for character limits', () => {
|
144
134
|
essayResponsePage.steps.setMinimumLimit(750);
|
145
135
|
essayResponsePage.steps.setMaximumLimit(12000);
|
146
136
|
});
|
147
137
|
|
148
|
-
it('When the user clears the minimum character limit input field and focuses out of it, then error message
|
138
|
+
it('When the user clears the minimum character limit input field and focuses out of it, then the error message should not be displayed', () => {
|
149
139
|
essayResponsePage.steps.clearAndFocusOutOfMinimumLimitInputField();
|
150
|
-
utilities.
|
151
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'visible');
|
140
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
152
141
|
});
|
153
142
|
|
154
143
|
essayResponsePage.tests.verifyErrorMessageCSSAndA11y();
|
155
144
|
|
156
|
-
it('When the user enters value in minimum character limit input field
|
145
|
+
it('When the user enters a value in the minimum character limit input field, the error message should disappear', () => {
|
157
146
|
essayResponsePage.steps.setMinimumLimit(0);
|
158
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
159
147
|
});
|
160
148
|
|
161
|
-
it('When the user clears the maximum character limit input field and focuses out of it, then error message
|
149
|
+
it('When the user clears the maximum character limit input field and focuses out of it, then the error message should not be displayed', () => {
|
162
150
|
essayResponsePage.steps.clearAndFocusOutOfMaximumLimitInputField();
|
163
|
-
utilities.
|
164
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'visible');
|
151
|
+
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
165
152
|
});
|
166
153
|
|
167
|
-
it('When the user enters value in maximum character limit input field
|
154
|
+
it('When the user enters a value in the maximum character limit input field, the error message should disappear', () => {
|
168
155
|
essayResponsePage.steps.setMaximumLimit(500);
|
169
|
-
utilities.verifyElementVisibilityState(essayResponsePage.errorMessage(), 'notExist');
|
170
156
|
});
|
171
157
|
|
172
158
|
it('CSS of \'Set word limit\' sections', { tags: 'css' }, () => {
|
@@ -84,55 +84,46 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
84
84
|
shortTextResponsePage.steps.setMaximumLimit(500);
|
85
85
|
});
|
86
86
|
|
87
|
-
it('When the user clears the minimum character limit input field and focuses out of it, then error message
|
87
|
+
it('When the user clears the minimum character limit input field and focuses out of it, then error message should not be displayed', () => {
|
88
88
|
shortTextResponsePage.steps.clearAndFocusOutOfMinimumLimitInputField();
|
89
|
-
|
90
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.errorMessage(), 'visible');
|
89
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
91
90
|
});
|
92
91
|
|
93
|
-
|
94
|
-
|
95
|
-
it('When the user enters value in minimum character limit input field then the error message should disappear', () => {
|
92
|
+
it('When the user enters a value in the minimum character limit input field, it should be accepted', () => {
|
96
93
|
shortTextResponsePage.steps.setMinimumLimit(0);
|
97
|
-
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
98
94
|
});
|
99
95
|
|
100
|
-
it('When the user clears the maximum character limit input field and focuses out of it,
|
96
|
+
it('When the user clears the maximum character limit input field and focuses out of it, the error message should not be displayed', () => {
|
101
97
|
shortTextResponsePage.steps.clearAndFocusOutOfMaximumLimitInputField();
|
102
|
-
|
103
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.errorMessage(), 'visible');
|
98
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
104
99
|
});
|
105
100
|
|
106
|
-
it('When the user enters value in maximum character limit input field
|
101
|
+
it('When the user enters a value in the maximum character limit input field, it should be accepted', () => {
|
107
102
|
shortTextResponsePage.steps.setMaximumLimit(500);
|
108
103
|
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
109
104
|
});
|
110
105
|
|
111
|
-
it('When the user sets minimum limit input field value greater than maximum limit input field value
|
106
|
+
it('When the user sets the minimum limit input field value greater than the maximum limit input field value, error message should not be displayed', () => {
|
112
107
|
shortTextResponsePage.steps.setMinimumLimit(700);
|
113
|
-
shortTextResponsePage.steps.
|
114
|
-
shortTextResponsePage.steps.verifyMinimumLimitErrorMessage();
|
108
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
115
109
|
});
|
116
110
|
|
117
|
-
|
118
|
-
|
119
|
-
it('When the user sets minimum limit input field value less than or equal to maximum limit input field value then error message should disappear', () => {
|
111
|
+
it('When the user sets the minimum limit input field value less than or equal to the maximum limit input field value, the error message should disappear', () => {
|
120
112
|
shortTextResponsePage.steps.setMinimumLimit(500);
|
121
113
|
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
122
114
|
});
|
123
115
|
|
124
|
-
it('When the user sets maximum limit input field value less than minimum limit input field value
|
116
|
+
it('When the user sets the maximum limit input field value less than the minimum limit input field value, error messages should be displayed below the respective input fields', () => {
|
125
117
|
shortTextResponsePage.steps.setMaximumLimit(400);
|
126
|
-
shortTextResponsePage.steps.
|
127
|
-
shortTextResponsePage.steps.verifyMinimumLimitErrorMessage();
|
118
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
128
119
|
});
|
129
120
|
|
130
|
-
it('When the user sets maximum limit input field value greater than or equal to minimum limit input field value
|
121
|
+
it('When the user sets the maximum limit input field value greater than or equal to the minimum limit input field value, the error message should not be displayed', () => {
|
131
122
|
shortTextResponsePage.steps.setMaximumLimit(800);
|
132
123
|
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
133
124
|
});
|
134
125
|
|
135
|
-
it('\'Always show maximum limit\' and \'Always show minimum limit\' labels and
|
126
|
+
it('\'Always show maximum limit\' and \'Always show minimum limit\' labels and checkboxes should be displayed, and by default, \'Always show maximum limit\' should be checked', () => {
|
136
127
|
utilities.verifyInnerText(shortTextResponsePage.alwaysShowMaxLimitLabel(), 'Always show maximum limit');
|
137
128
|
utilities.verifyElementVisibilityState(shortTextResponsePage.alwaysShowMaxLimitLabel(), 'visible');
|
138
129
|
utilities.verifyInnerText(shortTextResponsePage.alwaysShowMinLimitLabel(), 'Always show minimum limit');
|
@@ -141,7 +132,7 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
141
132
|
// shortTextResponsePage.steps.verifyAlwaysShowMaximumLimitCheckboxIsChecked();
|
142
133
|
});
|
143
134
|
|
144
|
-
it('When the user selects \'Word\' radio button
|
135
|
+
it('When the user selects \'Word\' radio button, the labels should change to \'Minimum word limit\' and \'Maximum word limit\'', () => {
|
145
136
|
shortTextResponsePage.steps.selectWordRadioButton();
|
146
137
|
utilities.verifyInnerText(shortTextResponsePage.minimumLimitLabel(), 'Minimum word limit');
|
147
138
|
utilities.verifyInnerText(shortTextResponsePage.maximumLimitLabel(), 'Maximum word limit');
|
@@ -152,33 +143,27 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
152
143
|
shortTextResponsePage.steps.verifyMaximumLimitInputField(20);
|
153
144
|
});
|
154
145
|
|
155
|
-
it('
|
146
|
+
it('The user should be able to update values in both the input fields', () => {
|
156
147
|
shortTextResponsePage.steps.setMinimumLimit(75);
|
157
148
|
shortTextResponsePage.steps.setMaximumLimit(120);
|
158
149
|
});
|
159
150
|
|
160
|
-
it('When the user clears the minimum word limit input field and focuses out of it,
|
151
|
+
it('When the user clears the minimum word limit input field and focuses out of it, an error message should not be displayed', () => {
|
161
152
|
shortTextResponsePage.steps.clearAndFocusOutOfMinimumLimitInputField();
|
162
|
-
|
163
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.errorMessage(), 'visible');
|
153
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
164
154
|
});
|
165
155
|
|
166
|
-
|
167
|
-
|
168
|
-
it('When the user enters value in minimum word limit input field then the error message should disappear', () => {
|
156
|
+
it('When the user enters a value in the minimum word limit input field it should be accepted', () => {
|
169
157
|
shortTextResponsePage.steps.setMinimumLimit(0);
|
170
|
-
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
171
158
|
});
|
172
159
|
|
173
|
-
it('When the user clears the maximum word limit input field and focuses out of it,
|
160
|
+
it('When the user clears the maximum word limit input field and focuses out of it, an error message should not be displayed', () => {
|
174
161
|
shortTextResponsePage.steps.clearAndFocusOutOfMaximumLimitInputField();
|
175
|
-
|
176
|
-
utilities.verifyElementVisibilityState(shortTextResponsePage.errorMessage(), 'visible');
|
162
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
177
163
|
});
|
178
164
|
|
179
|
-
it('When the user enters value in maximum word limit input field
|
165
|
+
it('When the user enters a value in the maximum word limit input field it should be accepted', () => {
|
180
166
|
shortTextResponsePage.steps.setMaximumLimit(500);
|
181
|
-
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
182
167
|
});
|
183
168
|
|
184
169
|
it('CSS of \'Set limit\' sections', { tags: 'css' }, () => {
|
@@ -272,25 +257,23 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
272
257
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Lorem');
|
273
258
|
});
|
274
259
|
|
275
|
-
it('When the user reaches the character limit, then the warning message
|
260
|
+
it('When the user reaches the character limit, then the warning message should notv be displayed', () => {
|
276
261
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Correct');
|
277
262
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('Corre');
|
278
|
-
shortTextResponsePage.steps.
|
263
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
279
264
|
});
|
280
265
|
|
281
|
-
shortTextResponsePage.tests.verifyErrorMessageCSSAndA11y();
|
282
|
-
|
283
266
|
it('When the user removes/deletes some characters, the warning message should disappear', () => {
|
284
267
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('{backspace}');
|
285
268
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('');
|
286
269
|
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
287
270
|
});
|
288
271
|
|
289
|
-
it('When the user sets 3 as minimum character limit and enters the character less than the minimum character limit value set and focus out of response field, then the warning message
|
272
|
+
it('When the user sets 3 as minimum character limit and enters the character less than the minimum character limit value set and focus out of response field, then the warning message should not be displayed', () => {
|
290
273
|
shortTextResponsePage.steps.setMinimumLimit(3);
|
291
274
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Lo');
|
292
275
|
shortTextResponsePage.steps.focusOutOfSpecifyCorrectAnswerInputField();
|
293
|
-
shortTextResponsePage.steps.
|
276
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
294
277
|
});
|
295
278
|
|
296
279
|
it('When the user enters the character greater than the minimum character limit value set by the user, then the warning message should disappear', () => {
|
@@ -314,10 +297,10 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
314
297
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('The elephant played piano under the sunshine');
|
315
298
|
});
|
316
299
|
|
317
|
-
it('When the user reaches the word limit, then the warning message
|
300
|
+
it('When the user reaches the word limit, then the warning message should not be displayed', () => {
|
318
301
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('The elephant played piano under the sunshine while riding a bicycle');
|
319
302
|
shortTextResponsePage.steps.verifyTextInAnswerInputFieldSpecifyCorrectAnswerSection('The elephant played piano under the sunshinewhileridingabicycle');
|
320
|
-
shortTextResponsePage.steps.
|
303
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
321
304
|
});
|
322
305
|
|
323
306
|
it('When the user removes/deletes some words, the warning message should disappear', () => {
|
@@ -326,10 +309,10 @@ describe('Create question page - Short text response: Question Instructions, Set
|
|
326
309
|
shortTextResponsePage.steps.verifyWarningMessageNotExist();
|
327
310
|
});
|
328
311
|
|
329
|
-
it('When the user enters the word less than the minimum word limit value set by the user and focus out of response field, then the warning message
|
312
|
+
it('When the user enters the word less than the minimum word limit value set by the user and focus out of response field, then the warning message should not be displayed', () => {
|
330
313
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('abc abc');
|
331
314
|
shortTextResponsePage.steps.focusOutOfSpecifyCorrectAnswerInputField();
|
332
|
-
shortTextResponsePage.steps.
|
315
|
+
shortTextResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
333
316
|
});
|
334
317
|
|
335
318
|
it('When the user enters the word greater than the minimum word limit value set by the user, then the warning message should disappear', () => {
|
@@ -49,9 +49,9 @@ describe('Create item page - Short text response - text: Header section and savi
|
|
49
49
|
|
50
50
|
it('Validation error messages should be displayed below required input fields', () => {
|
51
51
|
shortTextResponsePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
52
|
-
utilities.
|
52
|
+
utilities.verifyElementVisibilityState(shortTextResponsePage.errorMessage(), 'notExist');
|
53
53
|
shortTextResponsePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
54
|
-
shortTextResponsePage.steps.
|
54
|
+
shortTextResponsePage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
55
55
|
});
|
56
56
|
|
57
57
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -252,50 +252,35 @@ const tests = {
|
|
252
252
|
equationEditorFlyout.steps.verifyCategoryIsDisplayedInEquationEditor(`${equationEditorCategoriesAndSymbols['greek'].displayName}`);
|
253
253
|
});
|
254
254
|
|
255
|
-
it('On deselecting all the categories an error message
|
256
|
-
cy.log('Pre step: Switching to Edit tab')
|
255
|
+
it('On deselecting all the categories, an error message "Error: Please select a category." should be displayed, and the preview tab Equation Editor flyout should be empty', () => {
|
256
|
+
cy.log('Pre step: Switching to Edit tab');
|
257
257
|
equationEditorSectionCommonComponent.steps.switchToEditTab();
|
258
258
|
if (questionType == 'essay response') {
|
259
|
-
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
259
|
+
// Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
260
260
|
equationEditorSectionCommonComponent.steps.expandCustomizeFormattingOptionsAccordion();
|
261
261
|
}
|
262
262
|
equationEditorSectionCommonComponent.steps.selectingCategories([`${equationEditorCategoriesAndSymbols['intermediate'].displayName}`, `${equationEditorCategoriesAndSymbols['primary'].displayName}`, `${equationEditorCategoriesAndSymbols['general'].displayName}`, `${equationEditorCategoriesAndSymbols['common'].displayName}`, `${equationEditorCategoriesAndSymbols['algebra'].displayName}`, `${equationEditorCategoriesAndSymbols['geo'].displayName}`, `${equationEditorCategoriesAndSymbols['compare'].displayName}`, `${equationEditorCategoriesAndSymbols['matrices'].displayName}`, `${equationEditorCategoriesAndSymbols['greek'].displayName}`, `${equationEditorCategoriesAndSymbols['keyPad'].displayName}`]);
|
263
|
-
utilities.
|
264
|
-
cy.log('Switching to Preview tab')
|
263
|
+
utilities.verifyElementVisibilityState(equationEditorSectionCommonComponent.selectACategoryErrorMessage(), 'notExist');
|
264
|
+
cy.log('Switching to Preview tab');
|
265
265
|
equationEditorSectionCommonComponent.steps.switchToPreviewTab();
|
266
266
|
if (questionType == 'essay response') {
|
267
267
|
equationEditorSectionCommonComponent.steps.selectPreviewTabToolbarOption('Equation Editor');
|
268
|
-
}
|
269
|
-
else {
|
268
|
+
} else {
|
270
269
|
equationEditorSectionCommonComponent.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
271
270
|
}
|
272
271
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'visible');
|
273
272
|
utilities.verifyElementVisibilityState(equationEditorFlyout.categoryTabTitle(), 'notExist');
|
274
273
|
utilities.verifyElementVisibilityState(equationEditorFlyout.categoryCharactersWrapper(), 'notExist');
|
275
|
-
cy.log('Post step: Switching to Edit tab')
|
274
|
+
cy.log('Post step: Switching to Edit tab');
|
276
275
|
equationEditorSectionCommonComponent.steps.switchToEditTab();
|
277
276
|
if (questionType == 'essay response') {
|
278
|
-
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
277
|
+
// Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
279
278
|
equationEditorSectionCommonComponent.steps.expandCustomizeFormattingOptionsAccordion();
|
280
|
-
}
|
281
|
-
});
|
282
|
-
|
283
|
-
//https://redmine.zeuslearning.com/issues/530205
|
284
|
-
it('CSS of error message', { tags: 'css' }, () => {
|
285
|
-
utilities.verifyCSS(equationEditorSectionCommonComponent.selectACategoryErrorMessage(), {
|
286
|
-
'color': css.color.errorText,
|
287
|
-
'font-size': css.fontSize.small,
|
288
|
-
'font-weight': css.fontWeight.regular
|
289
|
-
});
|
290
|
-
});
|
291
|
-
|
292
|
-
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
293
|
-
cy.checkAccessibility(equationEditorSectionCommonComponent.selectACategoryErrorMessage());
|
279
|
+
}
|
294
280
|
});
|
295
281
|
|
296
|
-
it('
|
282
|
+
it('User should be able to select any category', () => {
|
297
283
|
equationEditorSectionCommonComponent.steps.selectACategoryInEquationEditorSectionEditTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
298
|
-
utilities.verifyElementVisibilityState(equationEditorSectionCommonComponent.selectACategoryErrorMessage(), 'notExist');
|
299
284
|
});
|
300
285
|
},
|
301
286
|
|