itemengine-cypress-automation 1.0.576-IEI-7079-92d877f.0 → 1.0.576
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 +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -248
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -247
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -175
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -223
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -191
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +24 -184
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -177
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -205
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -228
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -229
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -183
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -206
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +0 -184
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +8 -2
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +13 -0
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +155 -5
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +117 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +101 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +114 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +12 -2
- package/cypress/e2e/ILC/EssayResponse/previewAddTable.js +38 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +41 -23
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +78 -3
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +15 -0
- package/cypress/e2e/ILC/EssayResponse/studentViewSettings.js +71 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +10 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +11 -165
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -164
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -167
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +15 -178
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +10 -121
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +13 -165
- package/cypress/pages/chartsBarPage.js +1 -44
- package/cypress/pages/chartsDotPlotPage.js +1 -99
- package/cypress/pages/chartsLinePage.js +1 -48
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +20 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +29 -1
- package/cypress/pages/essayResponsePage.js +3 -1
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { chartsBarPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
4
3
|
|
|
5
4
|
describe('Create item page - Charts - Bar: Partial equal weights scoring with alternative answer - When Correct answer points are more than alternative Answer points with locked bars', () => {
|
|
6
5
|
before(() => {
|
|
@@ -48,29 +47,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
48
47
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
49
48
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
50
49
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
51
|
-
if (alternativeAnswerCheck === 'true') {
|
|
52
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
53
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
54
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
55
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
56
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
57
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
58
|
-
], 1);
|
|
59
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
60
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
61
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
62
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
63
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
64
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
65
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
66
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
67
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
68
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
69
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
70
|
-
], 2);
|
|
71
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
72
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
73
|
-
}
|
|
74
50
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
75
51
|
});
|
|
76
52
|
|
|
@@ -93,29 +69,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
93
69
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
94
70
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
95
71
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
96
|
-
if (alternativeAnswerCheck === 'true') {
|
|
97
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
98
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
99
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
100
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
101
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
102
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
103
|
-
], 1);
|
|
104
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
105
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
106
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
107
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
108
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
109
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
110
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
111
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
112
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
113
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
114
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
115
|
-
], 2);
|
|
116
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
117
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
118
|
-
}
|
|
119
72
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
120
73
|
});
|
|
121
74
|
|
|
@@ -134,9 +87,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
134
87
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
135
88
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
136
89
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
137
|
-
if (alternativeAnswerCheck === 'true') {
|
|
138
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
139
|
-
}
|
|
140
90
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
141
91
|
});
|
|
142
92
|
|
|
@@ -155,9 +105,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
155
105
|
chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
|
|
156
106
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
157
107
|
chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
158
|
-
if (alternativeAnswerCheck === 'true') {
|
|
159
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
160
|
-
}
|
|
161
108
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
162
109
|
});
|
|
163
110
|
|
|
@@ -180,29 +127,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
180
127
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
181
128
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
182
129
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
183
|
-
if (alternativeAnswerCheck === 'true') {
|
|
184
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
185
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
186
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
187
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
188
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
189
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
190
|
-
], 1);
|
|
191
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
192
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
193
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
194
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
195
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
196
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
197
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
198
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
199
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
200
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
201
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
202
|
-
], 2);
|
|
203
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
204
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
205
|
-
}
|
|
206
130
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
207
131
|
});
|
|
208
132
|
|
|
@@ -225,29 +149,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
225
149
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
226
150
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
227
151
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
228
|
-
if (alternativeAnswerCheck === 'true') {
|
|
229
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
230
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
231
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
232
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
233
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
234
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
235
|
-
], 1);
|
|
236
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
237
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
238
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
239
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
240
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
241
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
242
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
243
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
244
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
245
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
246
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
247
|
-
], 2);
|
|
248
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
249
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
250
|
-
}
|
|
251
152
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
252
153
|
});
|
|
253
154
|
|
|
@@ -270,29 +171,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
270
171
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
271
172
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
272
173
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
273
|
-
if (alternativeAnswerCheck === 'true') {
|
|
274
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
275
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
276
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
277
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
278
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
279
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
280
|
-
], 1);
|
|
281
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
282
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
283
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
284
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
285
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
286
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
287
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
288
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
289
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
290
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
291
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
292
|
-
], 2);
|
|
293
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
294
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
295
|
-
}
|
|
296
174
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
297
175
|
});
|
|
298
176
|
|
|
@@ -315,29 +193,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
315
193
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
316
194
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
317
195
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
318
|
-
if (alternativeAnswerCheck === 'true') {
|
|
319
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
320
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
321
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
322
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
323
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
324
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
325
|
-
], 1);
|
|
326
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
327
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
328
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
329
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
330
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
331
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
332
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
333
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
334
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
335
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
336
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
337
|
-
], 2);
|
|
338
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
339
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
340
|
-
}
|
|
341
196
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
342
197
|
});
|
|
343
198
|
|
|
@@ -360,29 +215,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
360
215
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 10 });
|
|
361
216
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
362
217
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
363
|
-
if (alternativeAnswerCheck === 'true') {
|
|
364
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 5 pts, 5 pts, 5 pts, 5 pts)');
|
|
365
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
366
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
367
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
368
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
369
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
370
|
-
], 1);
|
|
371
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
372
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
373
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
374
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
375
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
376
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
377
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
378
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
379
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
380
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
381
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
382
|
-
], 2);
|
|
383
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
384
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
385
|
-
}
|
|
386
218
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
387
219
|
});
|
|
388
220
|
|
|
@@ -409,29 +241,6 @@ describe('Create item page - Charts - Bar: Partial equal weights scoring with al
|
|
|
409
241
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 6, range: 10 });
|
|
410
242
|
chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 1, range: 10 });
|
|
411
243
|
chartsBarPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
412
|
-
if (alternativeAnswerCheck === 'true') {
|
|
413
|
-
chartsBarPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 10 pts, 10 pts, 10 pts, 10 pts)');
|
|
414
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
415
|
-
{ barIndex: 1, barValue: 4, range: 10 },
|
|
416
|
-
{ barIndex: 2, barValue: 5, range: 10 },
|
|
417
|
-
{ barIndex: 3, barValue: 6, range: 10 },
|
|
418
|
-
{ barIndex: 4, barValue: 1, range: 10 }
|
|
419
|
-
], 1);
|
|
420
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
421
|
-
chartsBarPage.steps.disableShowAlternativeAnswersToggle();
|
|
422
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
423
|
-
chartsBarPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
424
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
425
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
426
|
-
chartsBarPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 3 pts, 3 pts, 3 pts, 3 pts)');
|
|
427
|
-
chartsBarPage.steps.verifyAllBarsValueAndTickIconInSpecificSection([
|
|
428
|
-
{ barIndex: 1, barValue: 2, range: 10 },
|
|
429
|
-
{ barIndex: 2, barValue: 3, range: 10 },
|
|
430
|
-
{ barIndex: 3, barValue: 1, range: 10 }
|
|
431
|
-
], 2);
|
|
432
|
-
chartsBarPage.steps.clickShowAlternativeAnswersToggle();
|
|
433
|
-
chartsBarPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
434
|
-
}
|
|
435
244
|
chartsBarPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
436
245
|
});
|
|
437
246
|
});
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { chartsDotPlotPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
|
-
|
|
6
4
|
describe('Create item page - Charts - Dot plot: Partial equal with alternative answers', () => {
|
|
7
5
|
before(() => {
|
|
8
6
|
cy.loginAs('admin');
|
|
@@ -26,15 +24,15 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
26
24
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
27
25
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
28
26
|
chartsDotPlotPage.steps.allotPoints(20);
|
|
29
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
30
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
27
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
28
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
31
29
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
32
30
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
33
31
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
34
32
|
chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
|
|
35
33
|
chartsDotPlotPage.steps.allotPoints(12);
|
|
36
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
37
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
34
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
35
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
38
36
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
39
37
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
40
38
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
|
@@ -45,8 +43,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
45
43
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
46
44
|
chartsDotPlotPage.steps.verifyPreviewScore(0, 20);
|
|
47
45
|
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
48
|
-
chartsDotPlotPage.steps.
|
|
49
|
-
chartsDotPlotPage.steps.
|
|
46
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
|
47
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
50
48
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
51
49
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
|
52
50
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -56,32 +54,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
56
54
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
57
55
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
58
56
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
59
|
-
//alternative answer
|
|
60
|
-
if (alternativeAnswerCheck === 'true') {
|
|
61
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
62
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
63
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
64
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
65
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
66
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
67
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
68
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
69
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
70
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
71
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
72
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
73
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
74
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
75
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
76
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
77
|
-
}
|
|
78
57
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
79
58
|
});
|
|
80
59
|
|
|
81
60
|
it('When the user incorrectly attempts the answer, then the user should be awarded with points for the correctly set bars and on switching to grading view, correct/incorrect status message should not be displayed, incorrect icons should be displayed on the incorrect bars and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
82
61
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
83
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
84
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
62
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
63
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1 });
|
|
85
64
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
86
65
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
87
66
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -93,32 +72,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
93
72
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
94
73
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
|
95
74
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
96
|
-
//alternative answer
|
|
97
|
-
if (alternativeAnswerCheck === 'true') {
|
|
98
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
99
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
100
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
101
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
102
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
103
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
104
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
105
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
106
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
107
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
108
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
109
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
110
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
111
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
112
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
113
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
114
|
-
}
|
|
115
75
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
116
76
|
});
|
|
117
77
|
|
|
118
78
|
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 icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
|
|
119
79
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
120
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
121
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
80
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
81
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
|
|
122
82
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
123
83
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
124
84
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -132,16 +92,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
132
92
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
133
93
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
134
94
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
135
|
-
if (alternativeAnswerCheck === 'true') {
|
|
136
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
137
|
-
}
|
|
138
95
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
139
96
|
});
|
|
140
97
|
|
|
141
98
|
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message should not be displayed and correct answer section should not be displayed', () => {
|
|
142
99
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
143
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
144
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
100
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
101
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
|
145
102
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
146
103
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
147
104
|
chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
|
|
@@ -153,16 +110,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
153
110
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
154
111
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
155
112
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
156
|
-
if (alternativeAnswerCheck === 'true') {
|
|
157
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
158
|
-
}
|
|
159
113
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
160
114
|
});
|
|
161
115
|
|
|
162
116
|
it('When the user attempts the question with partially correct exclusively from the correct accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
163
117
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
164
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
165
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
118
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
119
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
|
|
166
120
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
167
121
|
chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
|
|
168
122
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -173,32 +127,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
173
127
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
174
128
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
175
129
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
176
|
-
//alternative answer
|
|
177
|
-
if (alternativeAnswerCheck === 'true') {
|
|
178
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
179
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
180
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
181
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
182
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
183
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
184
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
185
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
186
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
187
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
188
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
189
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
190
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
191
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
192
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
193
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
194
|
-
}
|
|
195
130
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
196
131
|
});
|
|
197
132
|
|
|
198
133
|
it('When the user attempts the question with partially correct exclusively from the alternative accordion, then the user should be awarded with points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed on the incorrect bars correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
199
134
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
200
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
201
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
135
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
136
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
|
202
137
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
203
138
|
chartsDotPlotPage.steps.verifyPreviewScore(9.6, 20);
|
|
204
139
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -208,32 +143,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
208
143
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
209
144
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
210
145
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
211
|
-
//alternative answer
|
|
212
|
-
if (alternativeAnswerCheck === 'true') {
|
|
213
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
214
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
215
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
216
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
217
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
218
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
219
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
220
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
221
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
222
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
223
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
224
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
225
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
226
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
227
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
228
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
229
|
-
}
|
|
230
146
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
231
147
|
});
|
|
232
148
|
|
|
233
149
|
it('When the user attempts the question with more answers from the correct accordion than the alternate accordion, then the user should be awarded with points for the correctly set bars from the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
234
150
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
235
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
236
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
151
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
152
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 3, min: 1, interval: 1 });
|
|
237
153
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
238
154
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
239
155
|
chartsDotPlotPage.steps.verifyPreviewScore(12, 20);
|
|
@@ -244,32 +160,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
244
160
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
245
161
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
246
162
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
247
|
-
//alternative answer
|
|
248
|
-
if (alternativeAnswerCheck === 'true') {
|
|
249
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
250
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
251
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
252
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
253
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
254
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
255
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
256
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
257
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
258
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
259
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
260
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
261
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
262
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
263
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
264
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
265
|
-
}
|
|
266
163
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
267
164
|
});
|
|
268
165
|
|
|
269
166
|
it('When the user attempts the question with more answers from the alternate accordion than the correct accordion, then the user should be awarded with points for the correctly set bars from the alternate accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct accordion responses, incorrect icons should be displayed on the alternate accordion responses, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
270
167
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
271
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
272
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
168
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
169
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
|
273
170
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
274
171
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
275
172
|
chartsDotPlotPage.steps.verifyPreviewScore(9.6, 20);
|
|
@@ -279,32 +176,13 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
279
176
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
280
177
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
281
178
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
282
|
-
//alternative answer
|
|
283
|
-
if (alternativeAnswerCheck === 'true') {
|
|
284
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
285
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
286
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
287
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
288
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
289
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
290
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
291
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
292
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
293
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
294
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
295
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
296
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
297
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
298
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
299
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
300
|
-
}
|
|
301
179
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
302
180
|
});
|
|
303
181
|
|
|
304
182
|
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 points for the correctly set bars and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative tab, correct/incorrect status message should not be displayed and correct answer section should be displayed with the correct answers from the correct accordion', () => {
|
|
305
183
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
306
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
307
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
184
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
185
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
|
308
186
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(6, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
309
187
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
310
188
|
chartsDotPlotPage.steps.verifyPreviewScore(8, 20);
|
|
@@ -315,25 +193,6 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
315
193
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
316
194
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
317
195
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
318
|
-
//alternative answer
|
|
319
|
-
if (alternativeAnswerCheck === 'true') {
|
|
320
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 4 pts, 4 pts, 4 pts, 4 pts, 4 pts)');
|
|
321
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
322
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
323
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
324
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
325
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
326
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
327
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
328
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
329
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
330
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
331
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
332
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
333
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
334
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
335
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
336
|
-
}
|
|
337
196
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
338
197
|
});
|
|
339
198
|
|
|
@@ -343,8 +202,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
343
202
|
chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
|
|
344
203
|
chartsDotPlotPage.steps.allotPoints(40);
|
|
345
204
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
|
346
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
347
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
205
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1 });
|
|
206
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
|
348
207
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
349
208
|
chartsDotPlotPage.steps.verifyPreviewScore(8, 40);
|
|
350
209
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -354,25 +213,6 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
354
213
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
355
214
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
356
215
|
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
357
|
-
//alternative answer
|
|
358
|
-
if (alternativeAnswerCheck === 'true') {
|
|
359
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 0 pts, 8 pts, 8 pts, 8 pts, 8 pts, 8 pts)');
|
|
360
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
361
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
362
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
363
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
364
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
365
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
366
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts, 2.4 pts)');
|
|
367
|
-
chartsDotPlotPage.steps.verifyLockedDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
368
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
369
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
370
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
371
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
372
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
373
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
374
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
375
|
-
}
|
|
376
216
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
377
217
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
378
218
|
});
|