itemengine-cypress-automation 1.0.294-applitools-09785a6.0 → 1.0.295-applitools-78e9d04.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/AudioResponseNew/barRecorderStyle.smoke.js +7 -7
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +7 -7
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +7 -7
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +3 -3
- package/package.json +1 -1
@@ -19,7 +19,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
19
19
|
audioResponsePage.steps.switchToPreviewTab();
|
20
20
|
});
|
21
21
|
|
22
|
-
it(
|
22
|
+
it('By default: Mic icon, \'Allow microphone access\' help text should be displayed in \'bar audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.', () => {
|
23
23
|
utilities.verifyInnerText(audioResponsePage.barPreviewStartRecordingButton(), 'REC');
|
24
24
|
utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'visible');
|
25
25
|
utilities.verifyElementVisibilityState(audioResponsePage.microphoneIcon(), 'visible');
|
@@ -52,7 +52,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
52
52
|
});
|
53
53
|
});
|
54
54
|
|
55
|
-
it(
|
55
|
+
it('When the user clicks on the \'Start recording\' button, a countdown should begin and help text "Preparing to record" should be displayed. The recording should start after the countdown, a beep sound should play and the help text should change to "Recording...". User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and Stop recording buttons should be displayed in record player. Start recording button should not be displayed.', () => {
|
56
56
|
audioResponsePage.steps.startRecordingBarPreview();
|
57
57
|
utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Preparing to record 3');
|
58
58
|
utilities.verifyElementVisibilityState(audioResponsePage.recordingStatusIcon(), 'visible');
|
@@ -170,13 +170,13 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
170
170
|
cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
|
171
171
|
});
|
172
172
|
|
173
|
-
it(
|
173
|
+
it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button, recording should get resumed. The help text should update to "Recording...". Progress bar should display the elapsed time and the remaining time until recording is in progress. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and stop recording icon should be displayed. Start recording button should not be displayed', () => {
|
174
174
|
audioResponsePage.steps.resumeRecordingBarPreview();
|
175
175
|
utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'notExist');
|
176
176
|
utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Recording...');
|
177
177
|
utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPauseRecordingButton(), 'visible');
|
178
178
|
utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStopRecordingButton(), 'visible');
|
179
|
-
audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
|
179
|
+
audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
|
180
180
|
});
|
181
181
|
|
182
182
|
it('When the user hovers on \'Stop recording\' button, \'Stop recording\' text should be displayed in tooltip', () => {
|
@@ -213,7 +213,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
213
213
|
cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
|
214
214
|
});
|
215
215
|
|
216
|
-
it(
|
216
|
+
it('When the user stops paused recording, recording should stop, recorded audio response should be saved. Progress bar and start recording button should be displayed on bar player. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'. Play button should be displayed. Stop recording button should not be displayed', () => {
|
217
217
|
audioResponsePage.steps.resetQuestionPreview();
|
218
218
|
audioResponsePage.steps.startRecordingBarPreview();
|
219
219
|
audioResponsePage.steps.waitForRecordingToStartBarPreview();
|
@@ -226,7 +226,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
226
226
|
audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:00', '00:04');
|
227
227
|
});
|
228
228
|
|
229
|
-
it(
|
229
|
+
it('When recording is inprogress and user has reached maximum recorder length, Retake and Play icon should be displayed along with progress bar. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'.', () => {
|
230
230
|
audioResponsePage.steps.switchToEditTab();
|
231
231
|
audioResponsePage.steps.setMaximumRecorderLength(10);
|
232
232
|
audioResponsePage.steps.switchToPreviewTab();
|
@@ -252,7 +252,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
252
252
|
audioResponsePage.steps.recordAndSaveAudioBarPreview(5000);
|
253
253
|
});
|
254
254
|
|
255
|
-
it(
|
255
|
+
it('A playback player with audio wave form, Volume meter, Retake recording and Play buttons, Volume control and playback speed buttons, Progress bar and time in (mm:ss / mm:ss) format should be displayed', () => {
|
256
256
|
utilities.verifyElementVisibilityState(audioResponsePage.barPreviewRetakeButton(), 'visible');
|
257
257
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
258
258
|
utilities.verifyElementVisibilityState(audioResponsePage.volumeControlButton(), 'visible');
|
@@ -19,7 +19,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
19
19
|
audioResponsePage.steps.switchToPreviewTab();
|
20
20
|
});
|
21
21
|
|
22
|
-
it(
|
22
|
+
it('If user selects \'Compact\' option from \'Audio recorder style\' toggle buttons, then \'Record\' button and \'Click the button to start recording...\' help text should be displayed in the preview tab', () => {
|
23
23
|
utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewRecordButton(), 'visible');
|
24
24
|
utilities.verifyInnerText(audioResponsePage.compactPreviewRecordButton(), 'Record');
|
25
25
|
utilities.verifyInnerText(audioResponsePage.compactPreviewRecordingHelpText(), 'Click the button to start recording...');
|
@@ -140,7 +140,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
140
140
|
cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
|
141
141
|
});
|
142
142
|
|
143
|
-
it(
|
143
|
+
it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button the recording should get resumed from where it was paused. Resume recording button should update to Pause button and the help text should update to "Recording...". The volume meter should also detect the sound levels during recording. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.', () => {
|
144
144
|
audioResponsePage.steps.resumeRecordingCompactPreview();
|
145
145
|
utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewResumeRecordingButton(), 'notExist');
|
146
146
|
utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPauseRecordingButton(), 'visible');
|
@@ -185,7 +185,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
185
185
|
cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
|
186
186
|
});
|
187
187
|
|
188
|
-
it(
|
188
|
+
it('When recording is paused and the user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Stop button should get replaced with Playback button and Playback button should be enabled. Overlay should not be displayed in player', () => {
|
189
189
|
cy.log('Pre-step: Resetting question preview and start recording again')
|
190
190
|
audioResponsePage.steps.resetQuestionPreview();
|
191
191
|
audioResponsePage.steps.startRecordingCompactPreview();
|
@@ -215,7 +215,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
215
215
|
utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPlaybackPlayButton(), 'visible');
|
216
216
|
});
|
217
217
|
|
218
|
-
it(
|
218
|
+
it('When the user updates maximum recorder length the recording should stop at the updated recorder length', () => {
|
219
219
|
cy.log('Pre-step : Switching to edit tab, updating maximum recorder length and switching back to preview tab to reset the recording');
|
220
220
|
audioResponsePage.steps.switchToEditTab();
|
221
221
|
audioResponsePage.steps.setMaximumRecorderLength(5);
|
@@ -17,7 +17,7 @@ describe('Create item page - Audio response: Preview contents', () => {
|
|
17
17
|
|
18
18
|
afterEach(() => {
|
19
19
|
cy.eyesClose();
|
20
|
-
});
|
20
|
+
});
|
21
21
|
|
22
22
|
views.forEach((view) => {
|
23
23
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
@@ -57,7 +57,7 @@ describe('Create item page - Audio response: Preview contents', () => {
|
|
57
57
|
utilities.verifyElementVisibilityState(audioResponsePage.questionInstructionsText(), 'visible');
|
58
58
|
});
|
59
59
|
|
60
|
-
it(
|
60
|
+
it('When the user switches to preview tab, \'Click the button to start recording...\' help text message, rec button, mic icon, \'Allow microphone access\' help text should be displayed in \'Standard audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.', () => {
|
61
61
|
utilities.verifyInnerText(audioResponsePage.standardPreviewRecorderHelpText(), 'Click the button to start recording...');
|
62
62
|
utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewRecorderHelpText(), 'visible');
|
63
63
|
utilities.verifyInnerText(audioResponsePage.standardPreviewStartRecordingButton(), 'REC');
|
@@ -52,7 +52,7 @@ describe('Create item page - Brainingcamp manipulative: Preview contents', () =>
|
|
52
52
|
utilities.verifyElementVisibilityState(brainingCampManipulativePage.questionInstructionsText(), 'visible');
|
53
53
|
});
|
54
54
|
|
55
|
-
it(
|
55
|
+
it('The brainingcamp manipulative resource should be displayed', () => {
|
56
56
|
utilities.verifyElementVisibilityState(brainingCampManipulativePage.previewTabCanvas(), 'visible');
|
57
57
|
});
|
58
58
|
|
@@ -115,7 +115,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
115
115
|
};
|
116
116
|
|
117
117
|
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
|
118
|
-
it.skip(
|
118
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
119
119
|
if (view === 'Grading view') {
|
120
120
|
studentViewPage.steps.submitResponse();
|
121
121
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -138,7 +138,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
138
138
|
});
|
139
139
|
|
140
140
|
//Fully incorrect case
|
141
|
-
it(
|
141
|
+
it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
142
142
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 }, 'horizontal');
|
143
143
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 }, 'horizontal');
|
144
144
|
if (view === 'Grading view') {
|
@@ -164,7 +164,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
164
164
|
});
|
165
165
|
|
166
166
|
//Partially correct cases
|
167
|
-
it(
|
167
|
+
it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
168
168
|
if (view === 'Grading view') {
|
169
169
|
studentViewPage.steps.clearResponses();
|
170
170
|
}
|
@@ -191,7 +191,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
191
191
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
192
192
|
});
|
193
193
|
|
194
|
-
it(
|
194
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
195
195
|
if (view === 'Grading view') {
|
196
196
|
studentViewPage.steps.clearResponses();
|
197
197
|
}
|
@@ -218,7 +218,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
218
218
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
219
219
|
});
|
220
220
|
|
221
|
-
it(
|
221
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
222
222
|
if (view === 'Grading view') {
|
223
223
|
studentViewPage.steps.clearResponses();
|
224
224
|
}
|
@@ -245,7 +245,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
245
245
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
246
246
|
});
|
247
247
|
|
248
|
-
it(
|
248
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
249
249
|
if (view === 'Grading view') {
|
250
250
|
studentViewPage.steps.clearResponses();
|
251
251
|
}
|
@@ -272,7 +272,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
|
|
272
272
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
273
273
|
});
|
274
274
|
|
275
|
-
it(
|
275
|
+
it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
276
276
|
if (view === 'Grading view') {
|
277
277
|
studentViewPage.steps.clearResponses();
|
278
278
|
}
|
@@ -108,7 +108,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
|
|
108
108
|
utilities.verifyElementVisibilityState(chartsBarPage.correctAnswersLabel(), 'visible');
|
109
109
|
});
|
110
110
|
|
111
|
-
it('
|
111
|
+
it('Correct answer should be displayed in the correct answer section', () => {
|
112
112
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 0, barValue: 2, range: 20 });
|
113
113
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 20 });
|
114
114
|
chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 20 });
|
@@ -222,7 +222,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
|
|
222
222
|
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolBarWrapper(), 'notExist');
|
223
223
|
});
|
224
224
|
|
225
|
-
it('
|
225
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
226
226
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 2, range: 20 });
|
227
227
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
|
228
228
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 5, range: 20 });
|
package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js
CHANGED
@@ -89,7 +89,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
89
89
|
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
|
90
90
|
});
|
91
91
|
|
92
|
-
it(
|
92
|
+
it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
|
93
93
|
utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
|
94
94
|
utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
|
95
95
|
utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Profit');
|
@@ -319,7 +319,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
319
319
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
320
320
|
});
|
321
321
|
|
322
|
-
it(
|
322
|
+
it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
|
323
323
|
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
324
324
|
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
325
325
|
});
|
@@ -374,7 +374,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
374
374
|
});
|
375
375
|
|
376
376
|
//Bar labels
|
377
|
-
it(
|
377
|
+
it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
|
378
378
|
chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, 'Edited bar 1');
|
379
379
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
380
380
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
|
@@ -602,7 +602,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
|
|
602
602
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 6, range: 10 });
|
603
603
|
});
|
604
604
|
|
605
|
-
it(
|
605
|
+
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', () => {
|
606
606
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
607
607
|
chartsBarPage.steps.confirmReset();
|
608
608
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
@@ -113,7 +113,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
113
113
|
};
|
114
114
|
|
115
115
|
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
|
116
|
-
it.skip(
|
116
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
117
117
|
if (view === 'Grading view') {
|
118
118
|
studentViewPage.steps.submitResponse();
|
119
119
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -136,7 +136,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
136
136
|
});
|
137
137
|
|
138
138
|
//Fully incorrect case
|
139
|
-
it(
|
139
|
+
it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
140
140
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 });
|
141
141
|
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 });
|
142
142
|
if (view === 'Grading view') {
|
@@ -162,7 +162,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
162
162
|
});
|
163
163
|
|
164
164
|
//Partially correct cases
|
165
|
-
it(
|
165
|
+
it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
166
166
|
if (view === 'Grading view') {
|
167
167
|
studentViewPage.steps.clearResponses();
|
168
168
|
}
|
@@ -189,7 +189,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
189
189
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
190
190
|
});
|
191
191
|
|
192
|
-
it(
|
192
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
193
193
|
if (view === 'Grading view') {
|
194
194
|
studentViewPage.steps.clearResponses();
|
195
195
|
}
|
@@ -216,7 +216,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
216
216
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
217
217
|
});
|
218
218
|
|
219
|
-
it(
|
219
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
220
220
|
if (view === 'Grading view') {
|
221
221
|
studentViewPage.steps.clearResponses();
|
222
222
|
}
|
@@ -243,7 +243,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
243
243
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
244
244
|
});
|
245
245
|
|
246
|
-
it(
|
246
|
+
it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
247
247
|
if (view === 'Grading view') {
|
248
248
|
studentViewPage.steps.clearResponses();
|
249
249
|
}
|
@@ -270,7 +270,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
270
270
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
|
271
271
|
});
|
272
272
|
|
273
|
-
it(
|
273
|
+
it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
|
274
274
|
if (view === 'Grading view') {
|
275
275
|
studentViewPage.steps.clearResponses();
|
276
276
|
}
|
@@ -88,7 +88,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
88
88
|
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
|
89
89
|
});
|
90
90
|
|
91
|
-
it(
|
91
|
+
it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
|
92
92
|
utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
|
93
93
|
utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
|
94
94
|
utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
|
@@ -321,7 +321,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
321
321
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
322
322
|
});
|
323
323
|
|
324
|
-
it(
|
324
|
+
it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
|
325
325
|
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
326
326
|
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
327
327
|
});
|
@@ -375,13 +375,13 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
375
375
|
});
|
376
376
|
|
377
377
|
//Bar labels
|
378
|
-
it(
|
378
|
+
it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
|
379
379
|
chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
|
380
380
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
381
381
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
|
382
382
|
});
|
383
383
|
|
384
|
-
it(
|
384
|
+
it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
|
385
385
|
chartsBarPage.previewTabToolsUndoButton()
|
386
386
|
.verifyTooltip('Undo');
|
387
387
|
chartsBarPage.previewTabToolsResetButton()
|
@@ -603,7 +603,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
|
|
603
603
|
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 6, range: 10 });
|
604
604
|
});
|
605
605
|
|
606
|
-
it(
|
606
|
+
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', () => {
|
607
607
|
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
608
608
|
chartsBarPage.steps.confirmReset();
|
609
609
|
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
@@ -102,7 +102,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
102
102
|
});
|
103
103
|
};
|
104
104
|
//Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
|
105
|
-
it.skip(
|
105
|
+
it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
106
106
|
if (view === 'Grading view') {
|
107
107
|
studentViewPage.steps.submitResponse();
|
108
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -126,7 +126,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
126
126
|
});
|
127
127
|
|
128
128
|
//Fully incorrect case
|
129
|
-
it(
|
129
|
+
it('When the user incorrectly sets a point which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
130
130
|
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
|
131
131
|
chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
|
132
132
|
if (view === 'Grading view') {
|
@@ -152,7 +152,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
152
152
|
});
|
153
153
|
|
154
154
|
//Partially correct cases
|
155
|
-
it(
|
155
|
+
it('When the user incorrectly sets a point which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
156
156
|
if (view === 'Grading view') {
|
157
157
|
studentViewPage.steps.clearResponses();
|
158
158
|
}
|
@@ -179,7 +179,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
179
179
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
180
180
|
});
|
181
181
|
|
182
|
-
it(
|
182
|
+
it('When the user attempts the question partially correct by incorrectly setting a point which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
183
183
|
if (view === 'Grading view') {
|
184
184
|
studentViewPage.steps.clearResponses();
|
185
185
|
}
|
@@ -206,7 +206,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
206
206
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
207
207
|
});
|
208
208
|
|
209
|
-
it(
|
209
|
+
it('When the user attempts the question partially correct by incorrectly setting a point to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
210
210
|
if (view === 'Grading view') {
|
211
211
|
studentViewPage.steps.clearResponses();
|
212
212
|
}
|
@@ -233,7 +233,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
233
233
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
234
234
|
});
|
235
235
|
|
236
|
-
it(
|
236
|
+
it('When the user attempts the question partially correct by incorrectly setting a point which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
237
237
|
if (view === 'Grading view') {
|
238
238
|
studentViewPage.steps.clearResponses();
|
239
239
|
}
|
@@ -260,7 +260,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
260
260
|
chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
|
261
261
|
});
|
262
262
|
|
263
|
-
it(
|
263
|
+
it('When the user attempts the question partially correct by setting all points correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points and incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
|
264
264
|
if (view === 'Grading view') {
|
265
265
|
studentViewPage.steps.clearResponses();
|
266
266
|
}
|
@@ -288,7 +288,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
|
|
288
288
|
});
|
289
289
|
|
290
290
|
//Fully correct
|
291
|
-
it(
|
291
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted points and the correct answer section graph should not be displayed', () => {
|
292
292
|
if (view === 'Grading view') {
|
293
293
|
studentViewPage.steps.clearResponses();
|
294
294
|
}
|
@@ -101,12 +101,12 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
101
101
|
utilities.verifyInnerText(utilities.getNthElement(chartsLinePage.previewTabPointLabel(), 3), 'Point 4');
|
102
102
|
});
|
103
103
|
|
104
|
-
it(
|
104
|
+
it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
|
105
105
|
utilities.verifyTextContent(utilities.getNthElement(chartsLinePage.previewTabYAxisCoordinate(), 0), 20);
|
106
106
|
utilities.verifyElementCount(chartsLinePage.previewTabChartRowHeaderContainer(), 21);
|
107
107
|
});
|
108
108
|
|
109
|
-
it('User should be able to edit the
|
109
|
+
it('User should be able to edit the point label', () => {
|
110
110
|
chartsLinePage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
|
111
111
|
utilities.verifyInnerText(chartsLinePage.previewTabYAxisLabelButton(), 'Edited Y axis label');
|
112
112
|
chartsLinePage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
|
@@ -342,7 +342,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
342
342
|
});
|
343
343
|
|
344
344
|
//Point labels
|
345
|
-
it(
|
345
|
+
it('When user updates a point label, then the undo and reset button should be displayed in enabled state', () => {
|
346
346
|
chartsLinePage.steps.editPointLabelInPreviewTab(0, 'Edited point 1');
|
347
347
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsUndoButton());
|
348
348
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsResetButton());
|
@@ -570,7 +570,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
|
|
570
570
|
chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 3, value: 6, range: 10 });
|
571
571
|
});
|
572
572
|
|
573
|
-
it(
|
573
|
+
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', () => {
|
574
574
|
chartsLinePage.steps.clickOnResetButtonPreviewTab();
|
575
575
|
chartsLinePage.steps.confirmReset();
|
576
576
|
utilities.verifyElementNotDisabled(chartsLinePage.previewTabToolsAddBarOrPointButton());
|
@@ -61,7 +61,7 @@ describe('Preview tab contents for all views', () => {
|
|
61
61
|
compassPage.steps.verifyPreviewTabCompassVisibilityButtonLabel('Show');
|
62
62
|
});
|
63
63
|
|
64
|
-
it(
|
64
|
+
it('When user clicks on \'Show compass\' button then \'Compass\' should be displayed and \'Show compass\' button should change to \'Hide compass\'', () => {
|
65
65
|
compassPage.steps.clickOnCompassToolVisibilityButton();
|
66
66
|
compassPage.steps.verifyCompassToolIsVisible();
|
67
67
|
compassPage.steps.verifyPreviewTabCompassVisibilityButtonLabel('Hide');
|
@@ -68,7 +68,7 @@ describe('Preview tab contents for all views', () => {
|
|
68
68
|
utilities.verifyElementVisibilityState(contentBlocksPage.subTitleLabelPreviewTab(), 'visible');
|
69
69
|
});
|
70
70
|
|
71
|
-
it(
|
71
|
+
it('Text block, solid group divider and subtitle text should be displayed', () => {
|
72
72
|
utilities.verifyInnerText(contentBlocksPage.textBlockPreviewTab(), 'This is text block text');
|
73
73
|
utilities.verifyElementVisibilityState(contentBlocksPage.textBlockPreviewTab(), 'visible');
|
74
74
|
utilities.verifyElementVisibilityState(contentBlocksPage.groupDividerPreviewTab(), 'visible');
|
@@ -103,7 +103,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
103
103
|
});
|
104
104
|
};
|
105
105
|
|
106
|
-
it(
|
106
|
+
it('When the user selects \'Grading\' view without attempting the question, cell numeration should be displayed, correct answers section should be displayed with correct answers, correct/incorrect status message should not be displayed and respective cell numeration', () => {
|
107
107
|
if (view === 'Grading view') {
|
108
108
|
studentViewPage.steps.submitResponse();
|
109
109
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,7 +122,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
122
122
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
123
123
|
});
|
124
124
|
|
125
|
-
it(
|
125
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
126
126
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 0 });
|
127
127
|
if (view === 'Grading view') {
|
128
128
|
studentViewPage.steps.submitResponse();
|
@@ -139,7 +139,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
139
139
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
140
140
|
});
|
141
141
|
|
142
|
-
it(
|
142
|
+
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
143
143
|
if (view === 'Grading view') {
|
144
144
|
studentViewPage.steps.clearResponses();
|
145
145
|
};
|
@@ -162,7 +162,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
162
162
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
163
163
|
});
|
164
164
|
|
165
|
-
it(
|
165
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
166
166
|
if (view === 'Grading view') {
|
167
167
|
studentViewPage.steps.clearResponses();
|
168
168
|
};
|
@@ -186,7 +186,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
186
186
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
187
187
|
});
|
188
188
|
|
189
|
-
it(
|
189
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
190
190
|
if (view === 'Grading view') {
|
191
191
|
studentViewPage.steps.clearResponses();
|
192
192
|
};
|
@@ -91,7 +91,7 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
91
91
|
cy.eyesCheckWindow(`DND into categories: ${view} Default question state`);
|
92
92
|
});
|
93
93
|
|
94
|
-
it(`
|
94
|
+
it(`The category table as set by the user should be displayed in the ${view}`, () => {
|
95
95
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'None');
|
96
96
|
utilities.verifyInnerText(utilities.getNthElement(dragAndDropIntoCategoriesPage.cellContainerPreviewTab(), 0), '');
|
97
97
|
dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(1, 'Heading');
|
@@ -116,7 +116,7 @@ describe('Create item page - Drag and drop into categories: Preview contents', (
|
|
116
116
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionPreviewTab(5, 'Eagle');
|
117
117
|
});
|
118
118
|
|
119
|
-
it(`
|
119
|
+
it(`User should able to drag and drop options in the ${view}`, () => {
|
120
120
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Eagle': 1, 'Bat': 0 });
|
121
121
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
|
122
122
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Eagle']);
|
@@ -102,7 +102,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
102
102
|
});
|
103
103
|
};
|
104
104
|
|
105
|
-
it(
|
105
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed and respective option numeration', () => {
|
106
106
|
if (view === 'Grading view') {
|
107
107
|
studentViewPage.steps.submitResponse();
|
108
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
121
121
|
});
|
122
122
|
|
123
|
-
it(
|
123
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
124
124
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
125
125
|
if (view === 'Grading view') {
|
126
126
|
studentViewPage.steps.submitResponse();
|
@@ -139,7 +139,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
139
139
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
140
140
|
});
|
141
141
|
|
142
|
-
it(
|
142
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
143
143
|
if (view === 'Grading view') {
|
144
144
|
studentViewPage.steps.clearResponses();
|
145
145
|
};
|
@@ -161,7 +161,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
162
162
|
});
|
163
163
|
|
164
|
-
it(
|
164
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
165
165
|
if (view === 'Grading view') {
|
166
166
|
studentViewPage.steps.clearResponses();
|
167
167
|
};
|
@@ -183,7 +183,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
183
183
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
184
184
|
});
|
185
185
|
|
186
|
-
it(
|
186
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed along with numeration', () => {
|
187
187
|
if (view === 'Grading view') {
|
188
188
|
studentViewPage.steps.clearResponses();
|
189
189
|
};
|
@@ -99,7 +99,7 @@ describe('Preview tab contents for all views', () => {
|
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
100
100
|
});
|
101
101
|
|
102
|
-
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container`, () => {
|
102
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
105
105
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -134,7 +134,7 @@ describe('Preview tab contents for all views', () => {
|
|
134
134
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneIsNotEditableInGradingView();
|
135
135
|
});
|
136
136
|
} else {
|
137
|
-
it(
|
137
|
+
it('The dropzone should be displayed filled with answers', () => {
|
138
138
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
139
139
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
140
140
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
@@ -102,7 +102,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
102
102
|
});
|
103
103
|
};
|
104
104
|
|
105
|
-
it(
|
105
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
106
106
|
if (view === 'Grading view') {
|
107
107
|
studentViewPage.steps.submitResponse();
|
108
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
120
120
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
121
121
|
});
|
122
122
|
|
123
|
-
it(
|
123
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
124
124
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
125
125
|
if (view === 'Grading view') {
|
126
126
|
studentViewPage.steps.submitResponse();
|
@@ -138,7 +138,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
138
138
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
139
139
|
});
|
140
140
|
|
141
|
-
it(
|
141
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
142
142
|
if (view === 'Grading view') {
|
143
143
|
studentViewPage.steps.clearResponses();
|
144
144
|
};
|
@@ -79,7 +79,7 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
79
79
|
});
|
80
80
|
|
81
81
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
82
|
-
it(
|
82
|
+
it('The sample \'Lorem Ipsum\' text along with two response dropdowns should be displayed', () => {
|
83
83
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
84
84
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionContainerPreviewTab(), 'Lorem ipsum dolor sit amet, \n\n\n onsectetur adipiscing elit. Ut pellentesque tinciduntornare. Integer porttitor est quis urna porttitor, eget tempus tellus dapibus \n\n');
|
85
85
|
});
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
98
98
|
fillInTheGapsDropdownPage.steps.verifyDropdownIsDisabled(1);
|
99
99
|
});
|
100
100
|
} else {
|
101
|
-
it(
|
101
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
102
102
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
103
103
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
104
104
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
@@ -110,7 +110,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
110
110
|
});
|
111
111
|
};
|
112
112
|
|
113
|
-
it(
|
113
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
114
114
|
if (view === 'Grading view') {
|
115
115
|
studentViewPage.steps.submitResponse();
|
116
116
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
128
128
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
129
129
|
});
|
130
130
|
|
131
|
-
it(
|
131
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
132
132
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
133
133
|
if (view === 'Grading view') {
|
134
134
|
studentViewPage.steps.submitResponse();
|
@@ -147,7 +147,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
147
147
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
148
148
|
});
|
149
149
|
|
150
|
-
it(
|
150
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
151
151
|
if (view === 'Grading view') {
|
152
152
|
studentViewPage.steps.clearResponses();
|
153
153
|
};
|
@@ -169,7 +169,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
169
169
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
170
170
|
});
|
171
171
|
|
172
|
-
it(
|
172
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
173
173
|
if (view === 'Grading view') {
|
174
174
|
studentViewPage.steps.clearResponses();
|
175
175
|
};
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -107,7 +107,7 @@ describe('Preview tab contents for all views', () => {
|
|
107
107
|
});
|
108
108
|
|
109
109
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
110
|
-
it(`
|
110
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
111
111
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
112
112
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
113
113
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -126,7 +126,7 @@ describe('Preview tab contents for all views', () => {
|
|
126
126
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
127
127
|
});
|
128
128
|
} else if (view === 'Grading view') {
|
129
|
-
it(
|
129
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
130
130
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
131
131
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
132
132
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
@@ -144,7 +144,7 @@ describe('Preview tab contents for all views', () => {
|
|
144
144
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewDropzoneOptionDisabled(2);
|
145
145
|
});
|
146
146
|
} else {
|
147
|
-
it(
|
147
|
+
it('The dropzone should be displayed filled with answers', () => {
|
148
148
|
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab(), 3);
|
149
149
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
150
150
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
@@ -111,7 +111,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
111
111
|
});
|
112
112
|
};
|
113
113
|
|
114
|
-
it(
|
114
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
115
115
|
if (view === 'Grading view') {
|
116
116
|
studentViewPage.steps.submitResponse();
|
117
117
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -129,7 +129,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
129
129
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
130
130
|
});
|
131
131
|
|
132
|
-
it(
|
132
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
133
133
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
134
134
|
if (view === 'Grading view') {
|
135
135
|
studentViewPage.steps.submitResponse();
|
@@ -147,7 +147,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
147
147
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
148
148
|
});
|
149
149
|
|
150
|
-
it(
|
150
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
151
151
|
if (view === 'Grading view') {
|
152
152
|
studentViewPage.steps.clearResponses();
|
153
153
|
};
|