itemengine-cypress-automation 1.0.280-applitools-0af112e.0 → 1.0.283-updatedPackageFile-3c0db7c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -40
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -9
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -15
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -2
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -54
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -21
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -20
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -19
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -22
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +7 -17
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -27
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +9 -21
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -26
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -16
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -19
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -14
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -13
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -19
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -14
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -25
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/package.json +1 -1
@@ -13,14 +13,6 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -67,9 +59,8 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
67
59
|
utilities.verifyElementVisibilityState(videoResponsePage.startRecordingText(), 'visible');
|
68
60
|
});
|
69
61
|
|
70
|
-
it(
|
62
|
+
it('When the user has not started recording, a status message: \'Allow camera and microphone access.\' along with a microphone icon should be displayed on the recording interface', () => {
|
71
63
|
videoResponsePage.steps.verifyRecordingStatus('Allow camera and microphone access.');
|
72
|
-
cy.eyesCheckWindow(`${view} view - Video response: Status message: Allow camera and microphone access. and microphone icon should be displayed`);
|
73
64
|
});
|
74
65
|
|
75
66
|
//Note: Add "Blur background" and "Mirror video" assertions when made available
|
@@ -155,14 +146,13 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
155
146
|
utilities.verifyElementVisibilityState(videoResponsePage.stopButton(), 'visible');
|
156
147
|
});
|
157
148
|
|
158
|
-
it(
|
149
|
+
it('When a recording is in progress and the user first pauses the recording and then stops recording, then the recording should stop, recorded video response should be saved. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs)\'.', () => {
|
159
150
|
videoResponsePage.steps.resetQuestionPreview();
|
160
151
|
videoResponsePage.steps.startRecording();
|
161
152
|
videoResponsePage.steps.waitForRecordingToStart();
|
162
153
|
videoResponsePage.steps.addWaitToRecord(9000);
|
163
154
|
videoResponsePage.steps.pauseRecording();
|
164
155
|
videoResponsePage.steps.stopAndVerifySavingAndRecordingLength();
|
165
|
-
cy.eyesCheckWindow(`${view} view - Video response: Duration of their recorded video in minutes`);
|
166
156
|
});
|
167
157
|
} else {
|
168
158
|
it('When a recording is in progress and the user clicks on the \'Pause recording\' button, recording should pause and the status message should update to \'Recording paused\'. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs/min:sec)\'. \'Pause recording\' button should get replaced with \'Resume recording\' button. \'Stop recording\' button should be displayed beside resume recording button', () => {
|
@@ -192,11 +182,10 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
192
182
|
utilities.verifyInnerText(videoResponsePage.savedResponseText(), 'Your response has been recorded.');
|
193
183
|
});
|
194
184
|
|
195
|
-
it(
|
185
|
+
it('When the video player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
|
196
186
|
videoResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
|
197
187
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPlayButton(), 'visible');
|
198
188
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
|
199
|
-
cy.eyesCheckWindow(`${view} view - Video response: Playback state`);
|
200
189
|
});
|
201
190
|
|
202
191
|
it('When the user seeks the progress bar slider while the video is playing, then the video should continue to play from the position where the slider is seeked', () => {
|
@@ -12,14 +12,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -52,7 +44,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
52
44
|
};
|
53
45
|
|
54
46
|
views.forEach((view) => {
|
55
|
-
describe(`Charts - Dot: All or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
|
47
|
+
describe(` Charts - Dot: All or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
|
56
48
|
abortEarlySetup();
|
57
49
|
before(() => {
|
58
50
|
switch (view) {
|
@@ -124,7 +116,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
124
116
|
};
|
125
117
|
|
126
118
|
//Note: Remove comment after https://redmine.zeuslearning.com/issues/570904 is resolved
|
127
|
-
it.skip(
|
119
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, then by default correct dot column should have correct icons, incorrect dot column should have incorrect icons, the correct answer should be displayed in the correct answer section number line axis and correct/incorrect status message should not be displayed', () => {
|
128
120
|
if (view === 'Grading view') {
|
129
121
|
studentViewPage.steps.submitResponse();
|
130
122
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -147,10 +139,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
147
139
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
148
140
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
149
141
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Without attempting the question`);
|
151
142
|
});
|
152
143
|
|
153
|
-
it(
|
144
|
+
it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
154
145
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1 });
|
155
146
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
156
147
|
if (view === 'Grading view') {
|
@@ -177,10 +168,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
177
168
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
178
169
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
179
170
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
180
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question incorrectly`);
|
181
171
|
});
|
182
172
|
|
183
|
-
it(
|
173
|
+
it('When the user attempts the question by adding more dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
184
174
|
if (view === 'Grading view') {
|
185
175
|
studentViewPage.steps.clearResponses();
|
186
176
|
};
|
@@ -209,10 +199,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
209
199
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
210
200
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
211
201
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding more dots than required in the dot columns having dots by default`);
|
213
202
|
});
|
214
203
|
|
215
|
-
it(
|
204
|
+
it('When the user attempts the question by setting fewer dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
216
205
|
if (view === 'Grading view') {
|
217
206
|
studentViewPage.steps.clearResponses();
|
218
207
|
};
|
@@ -242,10 +231,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
242
231
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
243
232
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
244
233
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
245
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by setting fewer dots than required in the dot columns having dots by default`);
|
246
234
|
});
|
247
235
|
|
248
|
-
it(
|
236
|
+
it('When the user attempts the question by removing all the dots to dot column that is not supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
249
237
|
if (view === 'Grading view') {
|
250
238
|
studentViewPage.steps.clearResponses();
|
251
239
|
};
|
@@ -275,10 +263,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
275
263
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
276
264
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
277
265
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
278
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by removing all the dots to dot column that is not supposed to be empty`);
|
279
266
|
});
|
280
267
|
|
281
|
-
it(
|
268
|
+
it('When the user attempts the question by adding dots to the dot columns that is supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
|
282
269
|
if (view === 'Grading view') {
|
283
270
|
studentViewPage.steps.clearResponses();
|
284
271
|
};
|
@@ -308,10 +295,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
308
295
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
309
296
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
310
297
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
311
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding dots to the dot columns that is supposed to be empty`);
|
312
298
|
});
|
313
299
|
|
314
|
-
it(
|
300
|
+
it('When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the incorrectly attempted dot column should be displayed incorrect, correctly attempted dot column should be displayed correct, and the correct answer should be displayed in the correct answer section number line axis', () => {
|
315
301
|
if (view === 'Grading view') {
|
316
302
|
studentViewPage.steps.clearResponses();
|
317
303
|
};
|
@@ -342,10 +328,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
342
328
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
343
329
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
344
330
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
345
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly`);
|
346
331
|
});
|
347
332
|
|
348
|
-
it(
|
333
|
+
it('When the user attempts the question correctly, the user should be awarded with full points and on switching to grading view, \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
349
334
|
if (view === 'Grading view') {
|
350
335
|
studentViewPage.steps.clearResponses();
|
351
336
|
};
|
@@ -368,7 +353,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
368
353
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
369
354
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
370
355
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
371
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question correctly`);
|
372
356
|
});
|
373
357
|
|
374
358
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (views.includes('Grading view')) {
|
23
15
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -96,14 +88,13 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
|
|
96
88
|
chartsDotPlotPage.steps.verifyDotCountCorrectAnswerSection(2, { point: 1, min: 1, interval: 0.25 });
|
97
89
|
});
|
98
90
|
|
99
|
-
it('
|
91
|
+
it('Correct answer section along with dot plot attempted by the user should be displayed', () => {
|
100
92
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 0.25 });
|
101
93
|
chartsDotPlotPage.steps.verifyCorrectDotPreviewTab({ point: 3, min: 1, interval: 0.25 });
|
102
94
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 0.25 });
|
103
95
|
chartsDotPlotPage.steps.verifyIncorrectDotPreviewTab({ point: 2, min: 1, interval: 0.25 });
|
104
96
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 0.25 });
|
105
97
|
chartsDotPlotPage.steps.verifyCorrectDotCorrectAnswerSection({ point: 3, min: 1, interval: 0.25 });
|
106
|
-
cy.eyesCheckWindow('Charts Dot - Grading view contents');
|
107
98
|
});
|
108
99
|
|
109
100
|
it('Points and the total score should be displayed', () => {
|
@@ -190,9 +181,8 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
|
|
190
181
|
chartsDotPlotPage.steps.verifyCorrectDotPreviewTab({ point: 3, min: 1, interval: 0.25 });
|
191
182
|
});
|
192
183
|
|
193
|
-
it('
|
184
|
+
it('The points alloted to the question should be displayed', () => {
|
194
185
|
correctAnswerViewPage.steps.verifyAvailablePoints(10);
|
195
|
-
cy.eyesCheckWindow('Charts Dot- Correct answer view contents');
|
196
186
|
});
|
197
187
|
|
198
188
|
it('CSS of correct answer section', { tags: 'css' }, () => {
|
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -79,17 +71,15 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
79
71
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.previewTabXAxisLabelButton(), 'visible');
|
80
72
|
});
|
81
73
|
|
82
|
-
it(
|
74
|
+
it('The number line axis should be displayed with labels from 1 to 6 with 20 divisions', () => {
|
83
75
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
|
84
76
|
chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisPreviewTab({ min: 1, max: 6, interval: 0.25 });
|
85
77
|
chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 4);
|
86
|
-
cy.eyesCheckWindow(`${view}- Charts Dot - Charts Dot: Question instructions, Graph title, X axis label and line divisions`);
|
87
78
|
});
|
88
79
|
|
89
|
-
it(
|
80
|
+
it('User should be able to edit the X axis labels in preview tab', () => {
|
90
81
|
chartsDotPlotPage.steps.editXAxisLabelInPreviewTab('Numbers of days');
|
91
82
|
utilities.verifyInnerText(chartsDotPlotPage.previewTabXAxisLabelButton(), 'Numbers of days');
|
92
|
-
cy.eyesCheckWindow(`${view} - Charts Dot: After Editing X axis label`);
|
93
83
|
});
|
94
84
|
|
95
85
|
it('When user hovers over dot column then it should be displayed in interactive state and tooltip with add and minus button should be displayed', () => {
|
@@ -174,7 +164,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
174
164
|
chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
175
165
|
});
|
176
166
|
|
177
|
-
it(
|
167
|
+
it('When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state', () => {
|
178
168
|
//using minus button
|
179
169
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(9, { point: 5, min: 1, interval: 0.25 });
|
180
170
|
chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
|
@@ -184,7 +174,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
184
174
|
chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
|
185
175
|
utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
|
186
176
|
chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
|
187
|
-
cy.eyesCheckWindow(`${view} - Charts Dot - Charts Dot: After Adding/Removing dots`);
|
188
177
|
});
|
189
178
|
|
190
179
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -381,7 +370,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
381
370
|
utilities.verifyElementNotDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
|
382
371
|
});
|
383
372
|
|
384
|
-
it(
|
373
|
+
it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state and control options should be in disabled state', () => {
|
385
374
|
chartsDotPlotPage.steps.selectControlOptionPreviewTab(controlOptions[2]);
|
386
375
|
chartsDotPlotPage.steps.confirmReset();
|
387
376
|
chartsDotPlotPage.steps.verifyDotColumnIsLockedInPreviewTab({ point: 1, min: 1, interval: 0.25 });
|
@@ -390,7 +379,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
390
379
|
utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
|
391
380
|
utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[1]));
|
392
381
|
utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[2]));
|
393
|
-
cy.eyesCheckWindow(`${view} - Charts Dot: Chart reset to default state`);
|
394
382
|
});
|
395
383
|
|
396
384
|
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
@@ -363,7 +363,6 @@ const tests = {
|
|
363
363
|
equationEditorSectionCommonComponent.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
364
364
|
}
|
365
365
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'visible');
|
366
|
-
cy.eyesCheckWindow('Equation Editor flyout in preview tab');
|
367
366
|
});
|
368
367
|
|
369
368
|
it('\'Done\'button should be displayed at the bottom of the flyout', () => {
|
@@ -431,12 +430,11 @@ const tests = {
|
|
431
430
|
cy.checkAccessibility(equationEditorFlyout.dialogBox());
|
432
431
|
});
|
433
432
|
|
434
|
-
it(
|
433
|
+
it('Cancel button should be displayed in the flyout and when user clicks the \'Cancel\' button then the flyout should close', () => {
|
435
434
|
utilities.verifyElementVisibilityState(equationEditorFlyout.buttonCancel(), 'visible');
|
436
435
|
utilities.verifyInnerText(equationEditorFlyout.buttonCancel(), 'Cancel');
|
437
436
|
equationEditorFlyout.steps.clickOnEquationEditorCancelButton();
|
438
437
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
|
439
|
-
cy.eyesCheckWindow(`${questionType} Equation Editor flyout should not be displayed`);
|
440
438
|
});
|
441
439
|
},
|
442
440
|
|