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,7 +1,6 @@
|
|
|
1
1
|
import { chartsDotPlotPage } from "../../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
3
3
|
const css = Cypress.env('css');
|
|
4
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
5
4
|
|
|
6
5
|
describe('Create item page - Charts - Dot plot: Partial different weights', () => {
|
|
7
6
|
before(() => {
|
|
@@ -25,14 +24,14 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
25
24
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
26
25
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
|
27
26
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 3, 2: 3, 3: 1, 4: 2, 5: 2 });
|
|
28
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
29
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
27
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
28
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
30
29
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
31
30
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
32
31
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
33
32
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 4, 2: 5, 3: 2, 4: 3, 5: 3 });
|
|
34
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
35
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
33
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
34
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
36
35
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
37
36
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
38
37
|
// chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
|
@@ -73,8 +72,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
73
72
|
|
|
74
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', () => {
|
|
75
74
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
76
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
77
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
78
75
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
79
76
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
80
77
|
chartsDotPlotPage.steps.verifyPreviewScore(13, 20);
|
|
@@ -87,9 +84,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
87
84
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
88
85
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
89
86
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
90
|
-
if (alternativeAnswerCheck === 'true') {
|
|
91
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
92
|
-
}
|
|
93
87
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
94
88
|
/* 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, status message and correct answer section should not be displayed')
|
|
95
89
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -105,8 +99,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
105
99
|
|
|
106
100
|
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', () => {
|
|
107
101
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
108
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
109
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
102
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
|
110
103
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
111
104
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
112
105
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
|
|
@@ -119,9 +112,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
119
112
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1});
|
|
120
113
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
121
114
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
122
|
-
if (alternativeAnswerCheck === 'true') {
|
|
123
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
124
|
-
}
|
|
125
115
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
116
|
/*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, status message and correct answer section should not be displayed')
|
|
127
117
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -137,8 +127,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
137
127
|
|
|
138
128
|
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', () => {
|
|
139
129
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
140
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
141
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
130
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
142
131
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
143
132
|
chartsDotPlotPage.steps.verifyPreviewScore(10, 20);
|
|
144
133
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -157,25 +146,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
157
146
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
158
147
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
159
148
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
160
|
-
//alternative answer
|
|
161
|
-
if (alternativeAnswerCheck === 'true') {
|
|
162
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
163
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
164
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
165
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
166
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
167
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
168
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
169
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
170
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
171
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
172
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
173
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
174
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
175
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
176
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
177
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
178
|
-
}
|
|
179
149
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
180
150
|
/*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 attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
|
|
181
151
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -191,8 +161,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
191
161
|
|
|
192
162
|
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', () => {
|
|
193
163
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
194
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
195
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
164
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
|
196
165
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
197
166
|
chartsDotPlotPage.steps.verifyPreviewScore(15, 20);
|
|
198
167
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -211,25 +180,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
211
180
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
212
181
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
213
182
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
214
|
-
//alternative answer
|
|
215
|
-
if (alternativeAnswerCheck === 'true') {
|
|
216
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
217
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
218
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
219
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
220
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
221
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
222
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
223
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
224
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
225
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
226
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
227
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
228
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
229
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
230
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
231
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
232
|
-
}
|
|
233
183
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
234
184
|
/* 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, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
|
|
235
185
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -245,7 +195,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
245
195
|
|
|
246
196
|
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', () => {
|
|
247
197
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
248
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
249
198
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
250
199
|
chartsDotPlotPage.steps.verifyPreviewScore(13, 20);
|
|
251
200
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -263,25 +212,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
263
212
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
264
213
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
265
214
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
266
|
-
//alternative answer
|
|
267
|
-
if (alternativeAnswerCheck === 'true') {
|
|
268
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
269
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
270
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
271
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
272
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
273
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
274
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
275
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
276
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
277
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
278
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
279
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
280
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
281
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
282
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
283
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
284
|
-
}
|
|
285
215
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
286
216
|
/*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 dot column attempted correctly, incorrect icon should be displayed in dot column set to incorrectly, status message and correct answer section should not be displayed')
|
|
287
217
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -297,8 +227,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
297
227
|
|
|
298
228
|
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', () => {
|
|
299
229
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
300
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
301
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
230
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
302
231
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
303
232
|
chartsDotPlotPage.steps.verifyPreviewScore(11, 20);
|
|
304
233
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -316,25 +245,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
316
245
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
317
246
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
318
247
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
319
|
-
//alternative answer
|
|
320
|
-
if (alternativeAnswerCheck === 'true') {
|
|
321
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
322
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
323
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
324
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
325
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
326
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
327
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
328
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
329
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
330
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
331
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
332
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
333
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
334
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
335
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
336
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
337
|
-
}
|
|
338
248
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
339
249
|
/*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 set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly from the correct accordion, a status message and correct answer section should not be displayed')
|
|
340
250
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -350,9 +260,8 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
350
260
|
|
|
351
261
|
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', () => {
|
|
352
262
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
353
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
354
263
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
355
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
264
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
|
356
265
|
chartsDotPlotPage.steps.verifyPreviewScore(13, 20);
|
|
357
266
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
358
267
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -369,25 +278,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
369
278
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
370
279
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
371
280
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
372
|
-
//alternative answer
|
|
373
|
-
if (alternativeAnswerCheck === 'true') {
|
|
374
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
375
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
376
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
377
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
378
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
379
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
380
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
381
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
382
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
383
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
384
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
385
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
386
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
387
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
388
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
389
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
390
|
-
}
|
|
391
281
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
392
282
|
/*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 attempted incorrectly status message and correct answer section should not be displayed')
|
|
393
283
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -403,8 +293,7 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
403
293
|
|
|
404
294
|
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', () => {
|
|
405
295
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
406
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
407
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
296
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
|
408
297
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
409
298
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
410
299
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -424,25 +313,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
424
313
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
425
314
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
426
315
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
427
|
-
//alternative answer
|
|
428
|
-
if (alternativeAnswerCheck === 'true') {
|
|
429
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 3 pts, 3 pts)');
|
|
430
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
431
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
432
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
433
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
434
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
435
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
436
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 3 pts, 3 pts, 1 pt, 2 pts, 2 pts)');
|
|
437
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
438
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
439
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
440
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
441
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
442
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
443
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
444
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
445
|
-
}
|
|
446
316
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
447
317
|
/*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 and correct answer section should not be displayed')
|
|
448
318
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -462,22 +332,21 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
462
332
|
chartsDotPlotPage.steps.deleteAlternativeAnswerAccordion(0);
|
|
463
333
|
chartsDotPlotPage.steps.addAlternativeAnswerAccordion(1);
|
|
464
334
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.5, 1: 1, 2: 2, 3: 2.5, 4: 2, 5: 16 });
|
|
465
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
466
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
335
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
336
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
467
337
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
468
338
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
469
339
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
470
340
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
471
341
|
chartsDotPlotPage.steps.expandCorrectAnswerAccordion();
|
|
472
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
342
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1 });
|
|
473
343
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 3, min: 1, interval: 1 });
|
|
474
344
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 4, min: 1, interval: 1 });
|
|
475
345
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
476
346
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
477
347
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 2, 1: 1.5, 2: 3, 3: 2.5, 4: 4, 5: 10 });
|
|
478
348
|
chartsDotPlotPage.steps.switchToPreviewTab();
|
|
479
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
480
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
349
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
481
350
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
482
351
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
483
352
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -498,25 +367,6 @@ describe('Create item page - Charts - Dot plot: Partial different weights', () =
|
|
|
498
367
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
499
368
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
500
369
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
501
|
-
//alternative answer
|
|
502
|
-
if (alternativeAnswerCheck === 'true') {
|
|
503
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 1.5 pts, 1 pt, 2 pts, 2.5 pts, 2 pts, 16 pts)');
|
|
504
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
505
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
506
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
507
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
508
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
509
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
510
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 2 pts, 1.5 pts, 3 pts, 2.5 pts, 4 pts, 10 pts)');
|
|
511
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
512
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
513
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
514
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
515
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
516
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
517
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
518
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
519
|
-
}
|
|
520
370
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
521
371
|
/*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 alternate accordion, incorrect icons icons should be displayed beside the incorrectly attempted responses, correct/incorrect answer label, correct answer section should not be displayed')
|
|
522
372
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -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 different with alternative answers', () => {
|
|
7
5
|
before(() => {
|
|
8
6
|
cy.loginAs('admin');
|
|
@@ -23,14 +21,14 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
23
21
|
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
24
22
|
chartsDotPlotPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
|
25
23
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 3, 1: 4, 2: 5, 3: 2, 4: 4, 5: 2 });
|
|
26
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
27
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
24
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
25
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
28
26
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
29
27
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
30
28
|
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
|
31
29
|
chartsDotPlotPage.steps.allotPartialDifferentWeightsPoints({ 0: 4, 1: 2, 2: 6, 3: 5, 4: 2, 5: 1 });
|
|
32
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
33
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(
|
|
30
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
|
31
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
|
34
32
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
35
33
|
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
36
34
|
//chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
|
@@ -71,8 +69,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
71
69
|
|
|
72
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', () => {
|
|
73
71
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
74
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
75
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
76
72
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
77
73
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
78
74
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
|
|
@@ -85,9 +81,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
85
81
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
86
82
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
87
83
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
88
|
-
if (alternativeAnswerCheck === 'true') {
|
|
89
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
90
|
-
}
|
|
91
84
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
92
85
|
/*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, correct/incorrect status message and correct answer section should not be displayed')
|
|
93
86
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -103,8 +96,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
103
96
|
|
|
104
97
|
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', () => {
|
|
105
98
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
106
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
107
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
99
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
|
108
100
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
109
101
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
110
102
|
chartsDotPlotPage.steps.verifyPreviewScore(20, 20);
|
|
@@ -117,9 +109,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
117
109
|
chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
|
118
110
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
119
111
|
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
|
120
|
-
if (alternativeAnswerCheck === 'true') {
|
|
121
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
122
|
-
}
|
|
123
112
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
124
113
|
/*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, correct/incorrect status message and correct answer section should not be displayed')
|
|
125
114
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -135,8 +124,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
135
124
|
|
|
136
125
|
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', () => {
|
|
137
126
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
138
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point:
|
|
139
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
127
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
|
140
128
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
141
129
|
chartsDotPlotPage.steps.verifyPreviewScore(15, 20);
|
|
142
130
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -155,25 +143,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
155
143
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
156
144
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
157
145
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
158
|
-
//alternative answer
|
|
159
|
-
if (alternativeAnswerCheck === 'true') {
|
|
160
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 4 pts, 2 pts)');
|
|
161
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
162
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
163
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
164
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
165
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
166
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
167
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4 pts, 2 pts, 6 pts, 5 pts, 2 pts, 1 pt)');
|
|
168
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
169
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
170
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
171
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
172
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
173
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
174
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
175
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
176
|
-
}
|
|
177
146
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
178
147
|
/*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 set correctly from correct accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
|
|
179
148
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -189,8 +158,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
189
158
|
|
|
190
159
|
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', () => {
|
|
191
160
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
192
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
193
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
161
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
|
194
162
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
195
163
|
chartsDotPlotPage.steps.verifyPreviewScore(14, 20);
|
|
196
164
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -209,25 +177,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
209
177
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
210
178
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
211
179
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
212
|
-
//alternative answer
|
|
213
|
-
if (alternativeAnswerCheck === 'true') {
|
|
214
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 4 pts, 2 pts)');
|
|
215
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
216
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
217
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
218
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
219
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
220
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
221
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4 pts, 2 pts, 6 pts, 5 pts, 2 pts, 1 pt)');
|
|
222
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
223
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
224
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
225
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
226
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
227
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
228
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
229
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
230
|
-
}
|
|
231
180
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
232
181
|
/*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 set correctly from alternate accordion, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
|
|
233
182
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -243,8 +192,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
243
192
|
|
|
244
193
|
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 from correct accordion, incorrect icon should be displayed in dot column set incorrectly from alternate accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
|
245
194
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
246
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
247
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
195
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
|
248
196
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
249
197
|
chartsDotPlotPage.steps.verifyPreviewScore(11, 20);
|
|
250
198
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
@@ -263,25 +211,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
263
211
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
264
212
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
265
213
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
266
|
-
//alternative answer
|
|
267
|
-
if (alternativeAnswerCheck === 'true') {
|
|
268
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 4 pts, 2 pts)');
|
|
269
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
270
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
271
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
272
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
273
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
274
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
275
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4 pts, 2 pts, 6 pts, 5 pts, 2 pts, 1 pt)');
|
|
276
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
277
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
278
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
279
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
280
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
281
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
282
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
283
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
284
|
-
}
|
|
285
214
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
286
215
|
/* 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 set correctly, incorrect icon should be displayed in dot column set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
|
|
287
216
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -297,9 +226,8 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
297
226
|
|
|
298
227
|
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', () => {
|
|
299
228
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
300
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 1, min: 1, interval: 1, defaultDots: 1 });
|
|
301
229
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
|
302
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
230
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
|
303
231
|
chartsDotPlotPage.steps.verifyPreviewScore(16, 20);
|
|
304
232
|
chartsDotPlotPage.steps.switchToGradingView();
|
|
305
233
|
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
|
@@ -316,25 +244,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
316
244
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
317
245
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
318
246
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
319
|
-
//alternative answer
|
|
320
|
-
if (alternativeAnswerCheck === 'true') {
|
|
321
|
-
chartsDotPlotPage.steps.verifyCorrectAnswersLabelAndPointVisible('(Points per response in order of appearance - 3 pts, 4 pts, 5 pts, 2 pts, 4 pts, 2 pts)');
|
|
322
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
323
|
-
chartsDotPlotPage.steps.disableShowAlternativeAnswersToggle();
|
|
324
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
325
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
326
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
327
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
328
|
-
chartsDotPlotPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(Points per response in order of appearance - 4 pts, 2 pts, 6 pts, 5 pts, 2 pts, 1 pt)');
|
|
329
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 1, min: 1, interval: 1 });
|
|
330
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 2, min: 1, interval: 1 });
|
|
331
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 3, min: 1, interval: 1 });
|
|
332
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
333
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
334
|
-
chartsDotPlotPage.steps.verifyEmptyDotColumnAlternateAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
335
|
-
chartsDotPlotPage.steps.clickShowAlternativeAnswersToggle();
|
|
336
|
-
chartsDotPlotPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
337
|
-
}
|
|
338
247
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
339
248
|
/* cy.log('When the user has attempted the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then 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 and correct answer section should not be displayed')
|
|
340
249
|
chartsDotPlotPage.steps.checkAnswer();
|
|
@@ -350,8 +259,7 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
350
259
|
|
|
351
260
|
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 ', () => {
|
|
352
261
|
chartsDotPlotPage.steps.resetQuestionPreview();
|
|
353
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(
|
|
354
|
-
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1, defaultDots: 2 });
|
|
262
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
|
355
263
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
|
356
264
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
|
357
265
|
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
|
@@ -371,25 +279,6 @@ describe('Create item page - Charts - Dot plot: Partial different with alternati
|
|
|
371
279
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
|
372
280
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
|
373
281
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
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, 4 pts, 2 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 - 4 pts, 2 pts, 6 pts, 5 pts, 2 pts, 1 pt)');
|
|
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.verifyEmptyDotColumnAlternateAnswerSection({ point: 4, min: 1, interval: 1 });
|
|
388
|
-
chartsDotPlotPage.steps.verifyCorrectDotColumnAlternateAnswerSection({ 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
|
-
}
|
|
393
282
|
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
394
283
|
/*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 set incorrectly, correct/incorrect status message and correct answer section should not be displayed')
|
|
395
284
|
chartsDotPlotPage.steps.checkAnswer();
|