itemengine-cypress-automation 1.0.199-20thMayRepoUpdate-6af11c9.0 → 1.0.199
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +348 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +346 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +401 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingPenaltyScoring.js +53 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +251 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +251 -0
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +367 -0
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +3 -3
- package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +134 -0
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +88 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +4 -2
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +3 -3
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +4 -4
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -16
- package/cypress/e2e/ILC/chartsDotsPlot/checkAnswerFunctionalityForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +223 -0
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +110 -0
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +199 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +375 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +382 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +422 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +159 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +233 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +380 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +293 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +382 -0
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +184 -0
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +76 -0
- package/cypress/pages/chartsBarPage.js +23 -15
- package/cypress/pages/chartsDotPlotPage.js +130 -7
- package/cypress/pages/chartsLinePage.js +11 -11
- package/cypress/pages/compassPage.js +57 -0
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
- package/cypress/pages/components/barAndLineChartComponent.js +7 -7
- package/cypress/pages/components/chartsCommonComponent.js +55 -7
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +2 -2
- package/cypress/pages/feedbackScalePage.js +3 -1
- package/cypress/pages/graphingPage.js +1 -1
- package/cypress/pages/imageHighlightPage.js +4 -434
- package/cypress/pages/index.js +2 -1
- package/cypress/pages/listOrderingPage.js +9 -9
- package/cypress/pages/textEntryMathPage.js +16 -16
- package/package.json +2 -2
@@ -0,0 +1,422 @@
|
|
1
|
+
import { chartsDotPlotPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
describe('Create item page - Charts - Dot plot : All or nothing with alternative answers', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
18
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
19
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
20
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
21
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
22
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
23
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
24
|
+
chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(1);
|
25
|
+
//locked column
|
26
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
27
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
28
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
29
|
+
chartsDotPlotPage.steps.allotPoints(30);
|
30
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
31
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
32
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
33
|
+
chartsDotPlotPage.steps.clickOnAddAlternativeAnswerButton(1);
|
34
|
+
chartsDotPlotPage.steps.allotPoints(12);
|
35
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
36
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
37
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
38
|
+
chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
39
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
40
|
+
});
|
41
|
+
|
42
|
+
it('When the user selects \'Grading\' view without attempting the question, locked dot column should not have correct/incorrect icon, correct icon should be displayed for dot column set correctly by default and incorrect icon should be displayed for dot column set incorrectly by default, correct answer section should have correct accordion responses and correct/incorrect status message should not be displayed', () => {
|
43
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
44
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
45
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
46
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
47
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
48
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
49
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
50
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
51
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
52
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
53
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
54
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
55
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
56
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
57
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
58
|
+
cy.log('When the user selects check answer without attempting the question, then correct icon should be displayed for dot column set correctly by default and incorrect icon should be displayed for dot column set incorrectly by default and correct/incorrect status message should not be displayed');
|
59
|
+
chartsDotPlotPage.steps.checkAnswer();
|
60
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
61
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
62
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
63
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
64
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
65
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
66
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
67
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
|
68
|
+
});
|
69
|
+
|
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 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', () => {
|
71
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
72
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
73
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
74
|
+
chartsDotPlotPage.steps.verifyPreviewScore(30, 30);
|
75
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
76
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
77
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
78
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
79
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
80
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
81
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
82
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
83
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
84
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
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 for dot column attempted correctly, a status message with text \'Your answer is correct\' should be displayed above the question preview')
|
86
|
+
chartsDotPlotPage.steps.checkAnswer();
|
87
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
88
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
89
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
90
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
91
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
92
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
93
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct'); chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
94
|
+
});
|
95
|
+
|
96
|
+
it('CSS of Correct answer state', { tags: 'css' }, () => {
|
97
|
+
utilities.verifyCSS(chartsDotPlotPage.previewScoreText(), {
|
98
|
+
'color': css.color.whiteText,
|
99
|
+
'background-color': css.color.correctAnswer
|
100
|
+
});
|
101
|
+
chartsDotPlotPage.correctIcon()
|
102
|
+
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
103
|
+
utilities.verifyCSS(chartsDotPlotPage.correctIncorrectAnswerBlock(), {
|
104
|
+
'background-color': css.color.correctAnswerLabelBg,
|
105
|
+
'border': `1px solid ${css.color.correctAnswer}`
|
106
|
+
});
|
107
|
+
utilities.verifyCSS(chartsDotPlotPage.correctIncorrectStatusMessageText(), {
|
108
|
+
'color': css.color.text,
|
109
|
+
'font-size': css.fontSize.default,
|
110
|
+
'font-weight': css.fontWeight.regular
|
111
|
+
});
|
112
|
+
});
|
113
|
+
|
114
|
+
it('Accessibility of correct answer state', { tags: 'a11y' }, () => {
|
115
|
+
cy.checkAccessibility(chartsDotPlotPage.previewTabQuestionWrapper());
|
116
|
+
});
|
117
|
+
|
118
|
+
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', () => {
|
119
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
120
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
121
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
122
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
123
|
+
chartsDotPlotPage.steps.verifyPreviewScore(12, 30);
|
124
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
125
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
126
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
127
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
128
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
129
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
130
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
131
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
132
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
133
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
134
|
+
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')
|
135
|
+
chartsDotPlotPage.steps.checkAnswer();
|
136
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
137
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
138
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
139
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
140
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
141
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
142
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
143
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
144
|
+
});
|
145
|
+
|
146
|
+
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', () => {
|
147
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
148
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
149
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
150
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
151
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
152
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
153
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
154
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
155
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
156
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
157
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
158
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
159
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
160
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
161
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
162
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
163
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
164
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
165
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
166
|
+
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')
|
167
|
+
chartsDotPlotPage.steps.checkAnswer();
|
168
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
169
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
170
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
171
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
172
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
173
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
174
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
175
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
176
|
+
});
|
177
|
+
|
178
|
+
it('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', () => {
|
179
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
180
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
181
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
182
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
183
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
184
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
185
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
186
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
187
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
188
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
189
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
190
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
191
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
192
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
193
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
194
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots:0 });
|
195
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
196
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
197
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
198
|
+
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');
|
199
|
+
chartsDotPlotPage.steps.checkAnswer();
|
200
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
201
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
202
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
203
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
204
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
205
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
206
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
207
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
208
|
+
});
|
209
|
+
|
210
|
+
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\'', () => {
|
211
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
212
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
213
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
214
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
215
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
216
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
217
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
218
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
219
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
220
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
221
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
222
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
223
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
224
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
225
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
226
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
227
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
228
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
229
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
230
|
+
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');
|
231
|
+
chartsDotPlotPage.steps.checkAnswer();
|
232
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
233
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
234
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
235
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
236
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
237
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
238
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
239
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();;
|
240
|
+
});
|
241
|
+
|
242
|
+
it('When the user attempts the question with more answers from the correct accordion than the alternate 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', () => {
|
243
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
244
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
245
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
246
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
247
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
248
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
249
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
250
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
251
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
252
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
253
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
254
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
255
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
256
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
257
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
258
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
259
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
260
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
261
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
262
|
+
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')
|
263
|
+
chartsDotPlotPage.steps.checkAnswer();
|
264
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
265
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
266
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
267
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
268
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
269
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
270
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
271
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
|
272
|
+
});
|
273
|
+
|
274
|
+
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', () => {
|
275
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
276
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
277
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
278
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
279
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
280
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
281
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
282
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
283
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
284
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
285
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
286
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
287
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
288
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
289
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
290
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
291
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
292
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
293
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
294
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
295
|
+
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')
|
296
|
+
chartsDotPlotPage.steps.checkAnswer();
|
297
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
298
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
299
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
300
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
301
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
|
302
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
303
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
304
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExist();
|
305
|
+
});
|
306
|
+
|
307
|
+
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', () => {
|
308
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
309
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 2, min: 1, interval: 1 });
|
310
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
311
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
312
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
313
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
314
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
315
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
316
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
317
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
318
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
319
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
320
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
321
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
322
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
323
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
324
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
325
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
326
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
327
|
+
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')
|
328
|
+
chartsDotPlotPage.steps.checkAnswer();
|
329
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
330
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
331
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
332
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
333
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
334
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
335
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
336
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();;
|
337
|
+
});
|
338
|
+
|
339
|
+
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', () => {
|
340
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
341
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
342
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
343
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
344
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
345
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
346
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
347
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
348
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
349
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
350
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
351
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
352
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
353
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
354
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
355
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
356
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
357
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
358
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
359
|
+
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')
|
360
|
+
chartsDotPlotPage.steps.checkAnswer();
|
361
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
362
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
363
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
364
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
365
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 })
|
366
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
367
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
368
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();;
|
369
|
+
});
|
370
|
+
|
371
|
+
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', () => {
|
372
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
373
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
374
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(0, { point: 2, min: 1, interval: 1 });
|
375
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
376
|
+
chartsDotPlotPage.steps.verifyPreviewScore(0, 30);
|
377
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
378
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
379
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
380
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
381
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
382
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
383
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
384
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
385
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
386
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
387
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
388
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
389
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1, defaultDots: 0 });
|
390
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
391
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
392
|
+
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')
|
393
|
+
chartsDotPlotPage.steps.checkAnswer();
|
394
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
395
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
396
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
397
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
398
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 })
|
399
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
|
400
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
401
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();;
|
402
|
+
});
|
403
|
+
|
404
|
+
it('CSS of incorrect answer state', { tags: 'css' }, () => {
|
405
|
+
chartsDotPlotPage.incorrectIcon()
|
406
|
+
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
407
|
+
utilities.verifyCSS(chartsDotPlotPage.correctIncorrectAnswerBlock(), {
|
408
|
+
'background-color': css.color.incorrectAnswerLabelBg,
|
409
|
+
'border': `1px solid ${css.color.incorrectAnswer}`
|
410
|
+
});
|
411
|
+
utilities.verifyCSS(chartsDotPlotPage.correctIncorrectStatusMessageText(), {
|
412
|
+
'color': css.color.text,
|
413
|
+
'font-size': css.fontSize.default,
|
414
|
+
'font-weight': css.fontWeight.regular
|
415
|
+
});
|
416
|
+
});
|
417
|
+
|
418
|
+
it('Accessibility of incorrect answer state', { tags: 'a11y' }, () => {
|
419
|
+
cy.checkAccessibility(chartsDotPlotPage.previewTabQuestionWrapper());
|
420
|
+
});
|
421
|
+
});
|
422
|
+
});
|
@@ -0,0 +1,159 @@
|
|
1
|
+
import { chartsDotPlotPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
describe('Create Item page - Charts - Dot plot: Manually and non scored', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question Preview: Manually Scored', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
16
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
17
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
18
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(4);
|
19
|
+
chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(1);
|
20
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
21
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
22
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
23
|
+
//locked column
|
24
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
25
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
26
|
+
//adding more dots
|
27
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
28
|
+
chartsDotPlotPage.steps.allotPoints(20);
|
29
|
+
//adding more dots
|
30
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
31
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
32
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
33
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
34
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
35
|
+
});
|
36
|
+
|
37
|
+
it('In Preview tab, question instructions, dot plot chart, locked dot column and prefilled dot column should be displayed in the preview tab', () => {
|
38
|
+
chartsDotPlotPage.steps.verifyQuestionInstructionsTextPreviewTab('Dot plot');
|
39
|
+
utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
|
40
|
+
chartsDotPlotPage.steps.verifyDotColumnIsLockedInPreviewTab({ point: 1, min: 1, interval: 1 });
|
41
|
+
chartsDotPlotPage.steps.verifyDotCountPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
42
|
+
});
|
43
|
+
|
44
|
+
chartsDotPlotPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
|
45
|
+
});
|
46
|
+
|
47
|
+
describe('Question Preview: Non Scored', () => {
|
48
|
+
abortEarlySetup();
|
49
|
+
before(() => {
|
50
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
51
|
+
cy.barsPreLoaderWait();
|
52
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
53
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
54
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
55
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(4);
|
56
|
+
chartsDotPlotPage.steps.enterTextInAnnotateEveryInputField(1);
|
57
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
58
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
59
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
60
|
+
//locked column
|
61
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
62
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
63
|
+
//adding more dots
|
64
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
65
|
+
chartsDotPlotPage.steps.allotPoints(20);
|
66
|
+
//adding more dots
|
67
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
68
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
69
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
70
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
71
|
+
chartsDotPlotPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
72
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
73
|
+
});
|
74
|
+
|
75
|
+
chartsDotPlotPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
|
76
|
+
|
77
|
+
it('When the user selects \'Grading\' view without attempting the question, locked dot column should not have any icon, correct dot column should have correct icon, incorrect dot column should have incorrect icon and the correct answer section should be displayed with correct answers', () => {
|
78
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
79
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
80
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
81
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
82
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
83
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
84
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
85
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
86
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
87
|
+
chartsDotPlotPage.steps.switchToStudentView();
|
88
|
+
});
|
89
|
+
|
90
|
+
it('When the user attempts the question incorrectly and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
91
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 2, min: 1, interval: 1 });
|
92
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
93
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
94
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
95
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
96
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
97
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
98
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
99
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
100
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
101
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
102
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
103
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
104
|
+
cy.log('When user clicks on Check answer button after he attempts the question incorrectly incorrect icons should be displayed besides all incorrect responses, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
105
|
+
chartsDotPlotPage.steps.checkAnswer();
|
106
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
107
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
108
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
109
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
110
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
111
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
112
|
+
});
|
113
|
+
|
114
|
+
it('When the user attempts the question partially correct, then on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
115
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
116
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(1, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
117
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
118
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
119
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1, defaultDots: 0 });
|
120
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
121
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
122
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
123
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
124
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
125
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
126
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
127
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
128
|
+
cy.log('When user clicks on Check answer button after he attempts the question partially correct, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
129
|
+
chartsDotPlotPage.steps.checkAnswer();
|
130
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
131
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
132
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1, defaultDots: 0 });
|
133
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1 });
|
134
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
135
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
136
|
+
});
|
137
|
+
|
138
|
+
it('When user attempts the question correctly, on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
139
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
140
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
141
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
142
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
143
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
144
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
145
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
146
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
147
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
148
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
149
|
+
cy.log('When user clicks on Check answer button after he attempts the question correctly, then correct icon should be displayed besides the correct answer responses, status message \'Your answer is correct\' should be displayed and correct answer section should not be displayed')
|
150
|
+
chartsDotPlotPage.steps.checkAnswer();
|
151
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnPreviewTab({ point: 1, min: 1, interval: 1 });
|
152
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
153
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
154
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 4, min: 1, interval: 1, defaultDots: 0 });
|
155
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
156
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
157
|
+
});
|
158
|
+
});
|
159
|
+
});
|