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