itemengine-cypress-automation 1.0.577-IEI-7065-Improve-test-coverage-for-essay-response-1a0a73e.0 → 1.0.578-IEI-7079-de6e553.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/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +248 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +175 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +223 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +191 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +184 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +177 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +205 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +228 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +229 -1
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +206 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +184 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +164 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +165 -11
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +164 -14
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +167 -16
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +178 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +121 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +165 -13
- package/cypress/pages/chartsBarPage.js +44 -1
- package/cypress/pages/chartsDotPlotPage.js +99 -1
- package/cypress/pages/chartsLinePage.js +48 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { chartsDotPlotPage } from "../../../../pages";
|
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
|
|
5
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
|
+
|
|
5
7
|
const css = Cypress.env('css');
|
|
6
8
|
|
|
7
9
|
describe('Create item page - Charts - Dot plot : All or nothing with alternative answers', () => {
|
|
@@ -27,12 +29,12 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
27
29
|
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
|
28
30
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
29
31
|
chartsDotPlotPage.steps.allotPoints(30);
|
|
30
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
32
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
31
33
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
32
34
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
33
35
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
34
36
|
chartsDotPlotPage.steps.allotPoints(24);
|
|
35
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
37
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
36
38
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
37
39
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
38
40
|
//chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
|
@@ -71,6 +73,8 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
71
73
|
|
|
72
74
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed for dot column attempted correctly, correct answer section should not be displayed and a status message with text \'Your answer is correct\' should be displayed above the question preview', () => {
|
|
73
75
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
76
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
77
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
74
78
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
75
79
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
76
80
|
chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
|
|
@@ -83,6 +87,9 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
83
87
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
84
88
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
85
89
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
90
|
+
if (alternativeAnswerCheck === 'true') {
|
|
91
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
92
|
+
}
|
|
86
93
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
87
94
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed for dot column attempted correctly, a status message with text \'Your answer is correct\' should be displayed above the question preview')
|
|
88
95
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -120,7 +127,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
120
127
|
|
|
121
128
|
it('When the user attempts the question with alternative accordion response, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icon should be displayed for dot column attempted correctly, correct answer section should not be displayed and a status message with text \'Your answer is correct\' should be displayed', () => {
|
|
122
129
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
123
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
130
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
124
131
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
125
132
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
126
133
|
chartsDotPlotPage.steps.verifyPreviewScore(24, 30);
|
|
@@ -133,6 +140,9 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
133
140
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
134
141
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
135
142
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
143
|
+
if (alternativeAnswerCheck === 'true') {
|
|
144
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
145
|
+
}
|
|
136
146
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
137
147
|
/*cy.log('When the user has attempted the question with alternative accordion response and clicks on \'Check answer\' button, then correct icon should be displayed for dot column attempted correctly, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
138
148
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -148,7 +158,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
148
158
|
|
|
149
159
|
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed for dot column attempted correctly from correct accordion and incorrect icon should be displayed for dot column set incorrectly, correct answer section should be displayed with response from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
|
150
160
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
151
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
161
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
152
162
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
153
163
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
154
164
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -165,6 +175,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
165
175
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
166
176
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
167
177
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
178
|
+
if (alternativeAnswerCheck === 'true') {
|
|
179
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
180
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
181
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
182
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
183
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
184
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
185
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
186
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
187
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
188
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
189
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
190
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
191
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
192
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
193
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
194
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
195
|
+
}
|
|
168
196
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
169
197
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed for dot column attempted correctly from correct accordion and incorrect icon should be displayed for dot column set incorrectly and a status message with text \'Your answer is incorrect\' should be displayed')
|
|
170
198
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -181,7 +209,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
181
209
|
//Remove the skip after https://redmine.zeuslearning.com/issues/577731 is resolved.
|
|
182
210
|
it.skip('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed for dot column attempted incorrectly from alternate accordion, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
|
183
211
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
184
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
212
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
185
213
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
186
214
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
187
215
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -198,6 +226,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
198
226
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
199
227
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
200
228
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
229
|
+
if (alternativeAnswerCheck === 'true') {
|
|
230
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
231
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
232
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
233
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
234
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
235
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
236
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
237
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
238
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
239
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
240
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
241
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
242
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
243
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
244
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
245
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
246
|
+
}
|
|
201
247
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
202
248
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then incorrect icon should be displayed for dot column attempted incorrectly from alternate accordion, a status message with text \'Your answer is incorrect\' should be displayed');
|
|
203
249
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -213,7 +259,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
213
259
|
|
|
214
260
|
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the dot column response from the correct accordion, incorrect icon should be displayed in the dot column response from the alternative accordion, correct answer section with all correct answers from the correct accordion and a status message with text \'Your answer is incorrect\'', () => {
|
|
215
261
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
216
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
262
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
217
263
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
218
264
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
219
265
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -230,6 +276,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
230
276
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
231
277
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
232
278
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
279
|
+
if (alternativeAnswerCheck === 'true') {
|
|
280
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
281
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
282
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
283
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
284
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
285
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
286
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
287
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
288
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
289
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
290
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
291
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
292
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
293
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
294
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
295
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
296
|
+
}
|
|
233
297
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
234
298
|
/*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response unselected and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column response from the correct accordion, incorrect icon should be displayed in the dot column response from the alternative accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed');
|
|
235
299
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -250,7 +314,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
250
314
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
251
315
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
252
316
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
253
|
-
chartsDotPlotPage.steps.
|
|
317
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
|
254
318
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
255
319
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
|
256
320
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
|
@@ -262,6 +326,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
262
326
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
263
327
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
264
328
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
329
|
+
if (alternativeAnswerCheck === 'true') {
|
|
330
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
331
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
332
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
333
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
334
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
335
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
336
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
337
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
338
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
339
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
340
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
341
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
342
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
343
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
344
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
345
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
346
|
+
}
|
|
265
347
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
266
348
|
/*cy.log('When the user attempts the question with more answers from the correct accordion than the alternate accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
267
349
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -277,7 +359,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
277
359
|
|
|
278
360
|
it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
279
361
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
280
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
362
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
281
363
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
282
364
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
283
365
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
@@ -295,6 +377,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
295
377
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
296
378
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
297
379
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
380
|
+
if (alternativeAnswerCheck === 'true') {
|
|
381
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
382
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
383
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
384
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
385
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
386
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
387
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
388
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
389
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
390
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
391
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
392
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
393
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
394
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
395
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
396
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
397
|
+
}
|
|
298
398
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
299
399
|
/*cy.log('When the user attempts the question with more answers from the alternate accordion than the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
300
400
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -310,7 +410,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
310
410
|
|
|
311
411
|
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in response from correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
|
312
412
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
313
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
413
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
314
414
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
315
415
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
316
416
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -327,6 +427,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
327
427
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
328
428
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
329
429
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
430
|
+
if (alternativeAnswerCheck === 'true') {
|
|
431
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
432
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
433
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
434
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
435
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
436
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
437
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
438
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
439
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
440
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
441
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
442
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
443
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
444
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
445
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
446
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
447
|
+
}
|
|
330
448
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
331
449
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in response from correct accordion, incorrect icon should be displayed in response from the alternative accordion, and a status message with text \'Your answer is incorrect\' should be displayed')
|
|
332
450
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -343,7 +461,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
343
461
|
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in common dot column attempted correctly and incorrect icon should be displayed in dot column set incorrectly, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
|
344
462
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
345
463
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
346
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
464
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
347
465
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
348
466
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
349
467
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -359,6 +477,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
359
477
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
360
478
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
361
479
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
480
|
+
if (alternativeAnswerCheck === 'true') {
|
|
481
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
482
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
483
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
484
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
485
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
486
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
487
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
488
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
489
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
490
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
491
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
492
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
493
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
494
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
495
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
496
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
497
|
+
}
|
|
362
498
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
363
499
|
/*cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column attempted correctly and incorrect icon should be displayed in dot column set incorrectly and a status message with text \'Your answer is incorrect\' should be displayed')
|
|
364
500
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -375,7 +511,7 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
375
511
|
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted incorrectly, correct answer section should be displayed with responses from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
|
376
512
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
377
513
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
378
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
514
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
379
515
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
380
516
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
|
381
517
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -392,6 +528,24 @@ describe('Create item page - Charts - Dot plot : All or nothing with alternative
|
|
|
392
528
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
393
529
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
394
530
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
|
531
|
+
if (alternativeAnswerCheck === 'true') {
|
|
532
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(30 points)');
|
|
533
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
534
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
535
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
536
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
537
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
538
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
539
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(24 points)');
|
|
540
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
541
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
542
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
543
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
544
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
545
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
546
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
547
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
548
|
+
}
|
|
395
549
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
396
550
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon should be displayed in dot column attempted incorrectly and status message with text \'Your answer is incorrect\' should be displayed')
|
|
397
551
|
chartsDotPlotPage.steps.checkAnswer();
|