itemengine-cypress-automation 1.0.576-IEI-7071-main-98ffd41.0 → 1.0.576-IEI-7079-0591b8d.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 +24 -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 +25 -15
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -10
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +24 -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
|
const css = Cypress.env('css');
|
|
4
4
|
|
|
5
|
+
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
6
|
+
|
|
5
7
|
describe('Create item page - Charts - Dot plot: Partial different with alternative answers', () => {
|
|
6
8
|
before(() => {
|
|
7
9
|
cy.loginAs('admin');
|
|
@@ -22,14 +24,14 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
22
24
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
23
25
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
|
24
26
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 4, 2: 5, 3: 2, 4: 3, 5: 3 });
|
|
25
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
26
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
27
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
28
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
27
29
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
28
30
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
29
31
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
30
32
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 3, 2: 3, 3: 1, 4: 2, 5: 2 });
|
|
31
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
32
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
33
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
34
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
33
35
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
34
36
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
35
37
|
//chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
|
@@ -70,6 +72,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
70
72
|
|
|
71
73
|
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 in dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
|
|
72
74
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
75
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
76
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
73
77
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
74
78
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
75
79
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
|
|
@@ -82,6 +86,9 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
82
86
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
83
87
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
84
88
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
89
|
+
if (alternativeAnswerCheck === 'true') {
|
|
90
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
91
|
+
}
|
|
85
92
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
86
93
|
/*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 in dot column attempted correctly, a status message and correct answer section should not be displayed')
|
|
87
94
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -97,7 +104,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
97
104
|
|
|
98
105
|
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 icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed', () => {
|
|
99
106
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
100
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
107
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
108
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
101
109
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
102
110
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
103
111
|
chartsDotPlotPage.steps.verifyPreviewScore(13, 20);
|
|
@@ -110,6 +118,9 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
110
118
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
111
119
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
112
120
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
121
|
+
if (alternativeAnswerCheck === 'true') {
|
|
122
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
123
|
+
}
|
|
113
124
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
114
125
|
/*(cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in dot column attempted correctly, a status message and correct answer section should not be displayed')
|
|
115
126
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -125,7 +136,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
125
136
|
|
|
126
137
|
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
127
138
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
128
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
139
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
140
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
129
141
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
130
142
|
chartsDotPlotPage.steps.verifyPreviewScore(15, 20);
|
|
131
143
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -144,6 +156,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
144
156
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
145
157
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
146
158
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
159
|
+
//alternative answer
|
|
160
|
+
if (alternativeAnswerCheck === 'true') {
|
|
161
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
162
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
163
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
164
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
165
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
166
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
167
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
168
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
169
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
170
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
171
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
172
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
173
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
174
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
175
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
176
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
177
|
+
}
|
|
147
178
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
148
179
|
/*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 in dot column responses from correct accordion and incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
|
|
149
180
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -159,7 +190,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
159
190
|
|
|
160
191
|
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
161
192
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
162
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
193
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
194
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
163
195
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
164
196
|
chartsDotPlotPage.steps.verifyPreviewScore(10, 20);
|
|
165
197
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -178,6 +210,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
178
210
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
179
211
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
180
212
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
213
|
+
//alternative answer
|
|
214
|
+
if (alternativeAnswerCheck === 'true') {
|
|
215
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
216
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
217
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
218
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
219
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
220
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
221
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
222
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
223
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
224
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
225
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
226
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
227
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
228
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
229
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
230
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
231
|
+
}
|
|
181
232
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
182
233
|
/*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 correct icon should be displayed in dot column attempted correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
|
|
183
234
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -193,7 +244,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
193
244
|
|
|
194
245
|
it('When the user attempts the question partially correct with all the responses correct as per the alternate accordion but one response incomplete, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column attempted from alternate accordion and a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
195
246
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
196
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
247
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
248
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
197
249
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
198
250
|
chartsDotPlotPage.steps.verifyPreviewScore(14, 20);
|
|
199
251
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -212,6 +264,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
212
264
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
213
265
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
214
266
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
267
|
+
//alternative answer
|
|
268
|
+
if (alternativeAnswerCheck === 'true') {
|
|
269
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
270
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
271
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
272
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
273
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
274
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
275
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
276
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
277
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
278
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
279
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
280
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
281
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
282
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
283
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
284
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
285
|
+
}
|
|
215
286
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
216
287
|
/*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 incomplete and clicks on \'Check answer\' button, then correct icon should be displayed in the dot column from the correct accordion, incorrect icon should be displayed in the dot column from the alternative accordion and, a status message should not be displayed and correct answer section should not be displayed')
|
|
217
288
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -227,7 +298,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
227
298
|
|
|
228
299
|
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 of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column attempted from the alternative accordion as score achieved from the correct responses is more than alternate responses, a status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
229
300
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
230
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
301
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
302
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
231
303
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
232
304
|
chartsDotPlotPage.steps.verifyPreviewScore(10, 20);
|
|
233
305
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -246,6 +318,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
246
318
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
247
319
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
248
320
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
321
|
+
//alternative answer
|
|
322
|
+
if (alternativeAnswerCheck === 'true') {
|
|
323
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
324
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
325
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
326
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
327
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
328
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
329
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
330
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
331
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
332
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
333
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
334
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
335
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
336
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
337
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
338
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
339
|
+
}
|
|
249
340
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
250
341
|
/*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 correct icon should be displayed in dot column attempted correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly from the alternative accordion, a status message should not be displayed and correct answer section should not be displayed')
|
|
251
342
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -261,8 +352,9 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
261
352
|
|
|
262
353
|
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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
263
354
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
355
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
264
356
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
265
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
357
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
266
358
|
chartsDotPlotPage.steps.verifyPreviewScore(14, 20);
|
|
267
359
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
268
360
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -279,6 +371,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
279
371
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
280
372
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
281
373
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
374
|
+
//alternative answer
|
|
375
|
+
if (alternativeAnswerCheck === 'true') {
|
|
376
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
377
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
378
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
379
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
380
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
381
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
382
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
383
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
384
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
385
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
386
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
387
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
388
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
389
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
390
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
391
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
392
|
+
}
|
|
282
393
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
283
394
|
/*cy.log('When the user has attempted the question with common response of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column set incorrectly, a status message should not be displayed and correct answer section should not be displayed')
|
|
284
395
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -294,7 +405,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
294
405
|
|
|
295
406
|
it('When the user attempts the question incorrectly, then the user should be awarded points for correct dot column and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted incorrectly, a status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
|
296
407
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
297
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
408
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
409
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
298
410
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
299
411
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
300
412
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -314,6 +426,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
314
426
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
315
427
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1});
|
|
316
428
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
429
|
+
//alternative answer
|
|
430
|
+
if (alternativeAnswerCheck === 'true') {
|
|
431
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
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, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pts, 2 pts, 2 pts)');
|
|
439
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ 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.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
443
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ 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
|
+
}
|
|
317
448
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
318
449
|
/*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, a status message should not be displayed and correct answer section should not be displayed')
|
|
319
450
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -333,22 +464,23 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
333
464
|
chartsDotPlotPage.steps.deleteAlternativeAnswerAccordion(0);
|
|
334
465
|
chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
|
|
335
466
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.5, 1: 2, 2: 3, 3: 3, 4: 3.5, 5: 18 });
|
|
336
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
337
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
467
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
468
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
338
469
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
339
470
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
340
471
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
341
472
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
342
473
|
chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
|
|
343
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
344
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
474
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
475
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
345
476
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 3, min: 1, interval: 1 });
|
|
346
477
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 4, min: 1, interval: 1 });
|
|
347
478
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
348
479
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
349
480
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 0.5, 1: 1, 2: 3, 3: 2, 4: 2.5, 5: 16 });
|
|
350
481
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
|
351
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
482
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
483
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
352
484
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
353
485
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
354
486
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -369,6 +501,25 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
369
501
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
370
502
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
371
503
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
504
|
+
//alternative answer
|
|
505
|
+
if (alternativeAnswerCheck === 'true') {
|
|
506
|
+
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.5 pts, 2 pts, 3 pts, 3 pts, 3.5 pts, 18 pts)');
|
|
507
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
508
|
+
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
509
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
510
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
511
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
512
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
513
|
+
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 0.5 pts, 1 pts, 3 pts, 2 pts, 2.5 pts, 16 pts)');
|
|
514
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
515
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
516
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
517
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
518
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
519
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
520
|
+
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
521
|
+
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
522
|
+
}
|
|
372
523
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
373
524
|
/*cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, correct icons icons should be displayed beside the correct responses from the correct accordion, incorrect icons icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label should not be displayed, correct answer section should not be displayed')
|
|
374
525
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -23,14 +23,14 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
23
23
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
24
24
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
25
25
|
chartsDotPlotPage.steps.allotPoints(23);
|
|
26
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
27
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
26
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
27
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
28
28
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
29
29
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
30
30
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
31
31
|
chartsDotPlotPage.steps.allotPoints(30);
|
|
32
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
33
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
32
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
33
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
34
34
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
35
35
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
36
36
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
|
@@ -72,6 +72,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
72
72
|
|
|
73
73
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct accordion (less than full points) and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, status message and correct answer section should not be displayed', () => {
|
|
74
74
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
75
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
76
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
75
77
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
76
78
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
77
79
|
chartsDotPlotPage.steps.verifyPreviewScore(23, 30);
|
|
@@ -99,7 +101,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
99
101
|
|
|
100
102
|
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, status message and correct answer section should not be displayed', () => {
|
|
101
103
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
102
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
104
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
105
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
103
106
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
104
107
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
105
108
|
chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
|
|
@@ -127,7 +130,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
127
130
|
|
|
128
131
|
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded with points of the correctly attempted responses according to the correct accordion and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message should not be displayed and correct answer section with all correct answers from the alternate accordion should be displayed', () => {
|
|
129
132
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
130
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
133
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
134
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
131
135
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
132
136
|
chartsDotPlotPage.steps.verifyPreviewScore(19.1667, 30);
|
|
133
137
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -161,7 +165,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
161
165
|
|
|
162
166
|
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded with points of the correctly attempted responses from the alternative accordion and on switching to \'Grading\' view, correct icons should be displayed in the correctly attempted dot column, incorrect icons should be displayed in the unattempted dot column, status message should not be displayed and correct answer section with all correct answers from the alternate accordion should be displayed', () => {
|
|
163
167
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
164
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
168
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
169
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
165
170
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
166
171
|
chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
|
|
167
172
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -195,6 +200,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
195
200
|
|
|
196
201
|
it('When the user attempts the question partially correct with all the responses correct as per the correct accordion but one response incomplete, then the user should be awarded with points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed in dot column attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message should not be displayed and correct answer section with all correct answers from the alternate accordion should be displayed', () => {
|
|
197
202
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
203
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
198
204
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
199
205
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
|
|
200
206
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -227,7 +233,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
227
233
|
|
|
228
234
|
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 with points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly from the correct accordion responses as score achieved from the alternative responses is more than correct responses, status message should not be displayed and correct answer section with all correct answers from the alternate accordion along with dropzone numeration should be displayed', () => {
|
|
229
235
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
230
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
236
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
237
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
231
238
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
232
239
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
|
|
233
240
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -260,8 +267,9 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
260
267
|
|
|
261
268
|
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 with points of the correctly attempted responses from the tab that has more points alloted for the response and on switching to \'Grading\' view, correct icon should be displayed in common dot column attempted correctly, incorrect icon should be displayed in dot column attempted incorrectly, status message should not be displayed and correct answer section with all correct answers from the alternate accordion along with dropzone numeration should be displayed', () => {
|
|
262
269
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
270
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
263
271
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
264
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
272
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
265
273
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
|
|
266
274
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
267
275
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -293,7 +301,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
293
301
|
|
|
294
302
|
it('When the user attempts the question incorrectly, then the user should be awarded with 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in dot column attempted incorrectly, status message should not be displayed and correct answer section with all alternative answers along with dropzone numeration should be displayed', () => {
|
|
295
303
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
296
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
304
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
305
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
297
306
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
298
307
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
299
308
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -332,14 +341,14 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
332
341
|
chartsDotPlotPage.steps.deleteAlternativeAnswerAccordion(0);
|
|
333
342
|
chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
|
|
334
343
|
chartsDotPlotPage.steps.allotPoints(42);
|
|
335
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
344
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
336
345
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
337
346
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
338
347
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
339
348
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
340
349
|
chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
|
|
341
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
342
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
350
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
351
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
343
352
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 3, min: 1, interval: 1 });
|
|
344
353
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 4, min: 1, interval: 1 });
|
|
345
354
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -347,12 +356,13 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
347
356
|
chartsDotPlotPage.steps.allotPoints(6);
|
|
348
357
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
|
349
358
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
|
350
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point:
|
|
359
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
360
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
351
361
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
352
362
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
353
363
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
354
364
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
355
|
-
chartsDotPlotPage.steps.verifyPreviewScore(
|
|
365
|
+
chartsDotPlotPage.steps.verifyPreviewScore(14, 42);
|
|
356
366
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
357
367
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
358
368
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
|
@@ -21,14 +21,14 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
21
21
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
22
22
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
23
23
|
chartsDotPlotPage.steps.allotPoints(30);
|
|
24
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
25
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
24
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
25
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
26
26
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
27
27
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
28
28
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
29
29
|
chartsDotPlotPage.steps.allotPoints(30);
|
|
30
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
31
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
30
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
31
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
32
32
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
33
33
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
34
34
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
|
@@ -69,6 +69,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
69
69
|
|
|
70
70
|
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 in dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed', () => {
|
|
71
71
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
72
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
73
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
72
74
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
73
75
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
74
76
|
chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
|
|
@@ -96,7 +98,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
96
98
|
|
|
97
99
|
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view,correct icon should be displayed in dot column attempted correctly, correct/incorrect status message and correct answer section should not be displayed', () => {
|
|
98
100
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
99
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
101
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
102
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
100
103
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
101
104
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
102
105
|
chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
|
|
@@ -124,7 +127,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
124
127
|
|
|
125
128
|
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correct accordion and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
126
129
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
127
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
130
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
131
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
128
132
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
129
133
|
chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
|
|
130
134
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -158,7 +162,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
158
162
|
|
|
159
163
|
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
160
164
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
161
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
165
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
166
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
162
167
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
163
168
|
chartsDotPlotPage.steps.verifyPreviewScore(25, 30);
|
|
164
169
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -192,7 +197,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
192
197
|
|
|
193
198
|
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 of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
194
199
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
195
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
200
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
201
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
196
202
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
197
203
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
|
|
198
204
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -227,7 +233,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
227
233
|
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 points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in common dot column set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
228
234
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
229
235
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
230
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
236
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
237
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
231
238
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 30);
|
|
232
239
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
233
240
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -259,7 +266,8 @@ describe('Create item page - Charts - Dot plot: Partial equal with alternative a
|
|
|
259
266
|
|
|
260
267
|
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 set incorrectly, correct/incorrect status message should not be displayed and correct answer section with all correct answers ', () => {
|
|
261
268
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
262
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
269
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
270
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
263
271
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
264
272
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
265
273
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|