itemengine-cypress-automation 1.0.166-migrationScripts-b8c79a0.0 → 1.0.167-repoUpdate10April-1465c8c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +83 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +200 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +56 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +95 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +71 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +72 -0
- package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +71 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +22 -11
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +161 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +308 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +336 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +570 -0
- package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +214 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +356 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +18 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +11 -6
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +355 -0
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +2 -36
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +22 -34
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +5 -25
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +68 -114
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +67 -111
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +71 -123
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +41 -63
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +21 -25
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +50 -85
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +68 -115
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +54 -98
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +72 -120
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +309 -0
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/Matching/toolSettings.js +72 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +1033 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +28 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +236 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +239 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +278 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +178 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +407 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +273 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +278 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +228 -0
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +120 -0
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +659 -0
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +149 -0
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +151 -0
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +171 -0
- package/cypress/e2e/ILC/NumberLine/headerSection.js +76 -0
- package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +54 -0
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +200 -0
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +67 -0
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +135 -0
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +73 -0
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +372 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1014 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +235 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +235 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +235 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +457 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +342 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +342 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +342 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +155 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +314 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +275 -0
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +314 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +290 -0
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +142 -0
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +137 -0
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
- package/cypress/fixtures/theme/ilc.json +14 -26
- package/cypress/pages/brainingCampManipulativePage.js +122 -0
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/colorPopupComponent.js +2 -2
- package/cypress/pages/components/defaultToolDropdown.js +77 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +629 -2
- package/cypress/pages/components/index.js +3 -0
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -2
- package/cypress/pages/components/resetPopupComponent.js +74 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/components/setPointsPopupBase.js +6 -4
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +60 -3
- package/cypress/pages/components/toolSettingsComponent.js +80 -12
- package/cypress/pages/components/toolsAndControlsComponent.js +69 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -8
- package/cypress/pages/feedbackScalePage copy.js +716 -0
- package/cypress/pages/feedbackScalePage.js +591 -449
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
- package/cypress/pages/graphingPage.js +9 -145
- package/cypress/pages/gridFillPage.js +135 -120
- package/cypress/pages/highlightPage.js +0 -394
- package/cypress/pages/index.js +5 -2
- package/cypress/pages/matchingPage.js +78 -20
- package/cypress/pages/multipleSelectionGridPage.js +88 -1
- package/cypress/pages/numberLinePage.js +723 -0
- package/cypress/pages/singleSelectionGridPage.js +86 -0
- package/cypress/pages/textSelectionPage.js +582 -0
- package/cypress/support/migrationHelpers/extractLrnQuestionData.js +3 -12
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +0 -1
- package/cypress/support/migrationHelpers/migrationScript.js +0 -10
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +0 -8
- package/package.json +1 -1
@@ -27,186 +27,142 @@ describe('Create item page - Grid fill : Partial equal with alternative answers'
|
|
27
27
|
|
28
28
|
it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion', () => {
|
29
29
|
gridFillPage.steps.switchToGradingView();
|
30
|
-
gridFillPage.steps.
|
31
|
-
gridFillPage.steps.
|
32
|
-
gridFillPage.steps.
|
33
|
-
gridFillPage.steps.
|
34
|
-
gridFillPage.steps.
|
35
|
-
gridFillPage.steps.
|
36
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
37
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
38
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
30
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
|
31
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
|
32
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
|
33
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
34
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
35
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
39
36
|
});
|
40
37
|
|
41
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct/incorrect status message should not be displayed', () => {
|
38
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct answer section and correct/incorrect status message should not be displayed', () => {
|
42
39
|
gridFillPage.steps.resetQuestionPreview();
|
43
40
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
44
41
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
45
42
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
46
43
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
47
44
|
gridFillPage.steps.switchToGradingView();
|
48
|
-
gridFillPage.steps.
|
49
|
-
gridFillPage.steps.
|
50
|
-
gridFillPage.steps.
|
51
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
52
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
53
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
45
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
46
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
47
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
54
48
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
55
49
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
56
50
|
cy.log('When the user has selected the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from correct accordion and correct/incorrect status message should not be displayed')
|
57
51
|
gridFillPage.steps.checkAnswer();
|
58
|
-
gridFillPage.steps.
|
59
|
-
gridFillPage.steps.
|
60
|
-
gridFillPage.steps.
|
61
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
62
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
63
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
52
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
53
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
54
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
64
55
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
65
56
|
});
|
66
57
|
|
67
|
-
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 icons should be displayed in responses from alternative accordion, correct/incorrect status message should not be displayed', () => {
|
58
|
+
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 icons should be displayed in responses from alternative accordion, correct answer section and correct/incorrect status message should not be displayed', () => {
|
68
59
|
gridFillPage.steps.resetQuestionPreview();
|
69
60
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
70
61
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
71
62
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
72
63
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
73
64
|
gridFillPage.steps.switchToGradingView();
|
74
|
-
gridFillPage.steps.
|
75
|
-
gridFillPage.steps.
|
76
|
-
gridFillPage.steps.
|
77
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
78
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
79
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
65
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
66
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
67
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
80
68
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
81
69
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
70
|
cy.log('When the user has selected the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from alternative accordion, correct/incorrect status message and correct answer section should not be displayed')
|
83
71
|
gridFillPage.steps.checkAnswer();
|
84
|
-
gridFillPage.steps.
|
85
|
-
gridFillPage.steps.
|
86
|
-
gridFillPage.steps.
|
87
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
88
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
89
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
72
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
73
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
74
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
90
75
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
91
76
|
});
|
92
77
|
|
93
|
-
it('When the user attempts the question with partially correct answer cell exclusively from the correct accordion, then the user should be awarded points of the correct accordion and on switching to \'Grading\' view, correct icon
|
78
|
+
it('When the user attempts the question with partially correct answer cell 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 the responses from correct accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
94
79
|
gridFillPage.steps.resetQuestionPreview();
|
95
80
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
96
81
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
97
82
|
gridFillPage.steps.verifyPreviewScore(10, 15);
|
98
83
|
gridFillPage.steps.switchToGradingView();
|
99
|
-
gridFillPage.steps.
|
100
|
-
gridFillPage.steps.
|
101
|
-
gridFillPage.steps.
|
102
|
-
gridFillPage.steps.
|
103
|
-
gridFillPage.steps.
|
104
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
105
|
-
gridFillPage.steps.verifyDefaultGridInSpecifyCorrectAnswerSection(0, 2);
|
84
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
85
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
86
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
87
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
88
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
106
89
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
107
90
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
91
|
cy.log('When the user has selected the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in selected responses from correct accordion , correct/incorrect status message should not be displayed')
|
109
92
|
gridFillPage.steps.checkAnswer();
|
110
|
-
gridFillPage.steps.
|
111
|
-
gridFillPage.steps.
|
112
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
113
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
93
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
94
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
114
95
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
115
96
|
});
|
116
97
|
|
117
|
-
it('When the user attempts the question with partially correct answer cells exclusively from the alternative accordion, then the user should be awarded points of the correctly selected response and on switching to \'Grading\' view, correct icon
|
98
|
+
it('When the user attempts the question with partially correct answer cells exclusively from the alternative accordion, then the user should be awarded points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in the responses from alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
118
99
|
gridFillPage.steps.resetQuestionPreview();
|
119
100
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
120
101
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
121
102
|
gridFillPage.steps.switchToGradingView();
|
122
|
-
gridFillPage.steps.
|
123
|
-
gridFillPage.steps.
|
124
|
-
gridFillPage.steps.
|
125
|
-
gridFillPage.steps.
|
126
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
|
127
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
|
128
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
129
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
103
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
104
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
105
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
106
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
130
107
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
131
108
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
109
|
cy.log('When the user has selected the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in selected responses from alternative accordion, correct/incorrect status message should not be displayed')
|
133
110
|
gridFillPage.steps.checkAnswer();
|
134
|
-
gridFillPage.steps.
|
135
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
111
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
136
112
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
137
113
|
});
|
138
114
|
|
139
|
-
it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion and correct/incorrect status message should not be displayed', () => {
|
115
|
+
it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
140
116
|
gridFillPage.steps.resetQuestionPreview();
|
141
117
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
142
118
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
143
119
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
144
120
|
gridFillPage.steps.switchToGradingView();
|
145
|
-
gridFillPage.steps.
|
146
|
-
gridFillPage.steps.
|
147
|
-
gridFillPage.steps.
|
148
|
-
gridFillPage.steps.
|
149
|
-
gridFillPage.steps.
|
150
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
151
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
152
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
153
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
154
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
121
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
122
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
123
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
124
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
125
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
155
126
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
127
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
157
128
|
cy.log('When the user has selected the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the response from correct accordion, incorrect icon should be displayed in response from alternative accordion, correct/incorrect status message should not be displayed')
|
158
129
|
gridFillPage.steps.checkAnswer();
|
159
|
-
gridFillPage.steps.
|
160
|
-
gridFillPage.steps.
|
161
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
162
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
130
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
131
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
163
132
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
164
133
|
});
|
165
134
|
|
166
|
-
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 selected response and on switching to \'Grading\' view, correct icon
|
135
|
+
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 selected response and on switching to \'Grading\' view, correct icon should be in the common response, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
167
136
|
gridFillPage.steps.resetQuestionPreview();
|
168
137
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
169
138
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
170
139
|
gridFillPage.steps.switchToGradingView();
|
171
|
-
gridFillPage.steps.
|
172
|
-
gridFillPage.steps.
|
173
|
-
gridFillPage.steps.
|
174
|
-
gridFillPage.steps.
|
175
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
176
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
177
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
178
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
140
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
141
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
142
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
143
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
179
144
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
180
145
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
146
|
cy.log('When the user has selected the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer responses and correct/incorrect status message should not be displayed')
|
182
147
|
gridFillPage.steps.checkAnswer();
|
183
|
-
gridFillPage.steps.
|
184
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
148
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
185
149
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
186
150
|
});
|
187
151
|
|
188
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed
|
152
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
189
153
|
gridFillPage.steps.resetQuestionPreview();
|
190
154
|
gridFillPage.steps.selectCellPreviewTab(1, 1);
|
191
155
|
gridFillPage.steps.verifyPreviewScore(0, 15);
|
192
156
|
gridFillPage.steps.switchToGradingView();
|
193
|
-
gridFillPage.steps.
|
194
|
-
gridFillPage.steps.
|
195
|
-
gridFillPage.steps.
|
196
|
-
gridFillPage.steps.
|
197
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
198
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
199
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
200
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
201
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
202
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
|
203
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
157
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
|
158
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
159
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
160
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
204
161
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
205
162
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
206
163
|
cy.log('When the user has selected the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in incorrect responses, no icon should be displayed beside unselected response, correct/incorrect status message should not be displayed')
|
207
164
|
gridFillPage.steps.checkAnswer();
|
208
|
-
gridFillPage.steps.
|
209
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
165
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
|
210
166
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
211
167
|
});
|
212
168
|
});
|
@@ -25,195 +25,156 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
|
|
25
25
|
gridFillPage.steps.switchToPreviewTab();
|
26
26
|
});
|
27
27
|
|
28
|
-
it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion', () => {
|
28
|
+
it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion in correct answer section', () => {
|
29
29
|
gridFillPage.steps.switchToGradingView();
|
30
|
-
gridFillPage.steps.
|
31
|
-
gridFillPage.steps.
|
32
|
-
gridFillPage.steps.
|
33
|
-
gridFillPage.steps.
|
34
|
-
gridFillPage.steps.
|
35
|
-
gridFillPage.steps.
|
36
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
37
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
38
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
30
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
|
31
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
|
32
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
|
33
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
34
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
35
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
39
36
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
40
37
|
});
|
41
38
|
|
42
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion and correct/incorrect
|
39
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct answer section and correct/incorrect answer status message should not be displayed', () => {
|
43
40
|
gridFillPage.steps.resetQuestionPreview();
|
44
41
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
45
42
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
46
43
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
47
44
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
48
45
|
gridFillPage.steps.switchToGradingView();
|
49
|
-
gridFillPage.steps.
|
50
|
-
gridFillPage.steps.
|
51
|
-
gridFillPage.steps.
|
52
|
-
gridFillPage.steps.
|
53
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
54
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
46
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
47
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
48
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
49
|
+
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
55
50
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
56
51
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
57
52
|
cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from correct accordion, correct/incorrect answer status message should not be displayed')
|
58
53
|
gridFillPage.steps.checkAnswer();
|
59
|
-
gridFillPage.steps.
|
60
|
-
gridFillPage.steps.
|
61
|
-
gridFillPage.steps.
|
62
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
63
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
64
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
54
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
55
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
56
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
65
57
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
66
58
|
});
|
67
59
|
|
68
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in responses from alternative accordion, correct/incorrect status message should not be displayed', () => {
|
60
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in responses from alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
69
61
|
gridFillPage.steps.resetQuestionPreview();
|
70
62
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
71
63
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
72
64
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
73
65
|
gridFillPage.steps.verifyPreviewScore(9, 15);
|
74
66
|
gridFillPage.steps.switchToGradingView();
|
75
|
-
gridFillPage.steps.
|
76
|
-
gridFillPage.steps.
|
77
|
-
gridFillPage.steps.
|
78
|
-
gridFillPage.steps.
|
79
|
-
gridFillPage.steps.
|
80
|
-
gridFillPage.steps.
|
67
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
68
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
69
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
70
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
71
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
72
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
81
73
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
82
74
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
83
75
|
cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from alternative accordion and correct/incorrect status message should not be displayed')
|
84
76
|
gridFillPage.steps.checkAnswer();
|
85
|
-
gridFillPage.steps.
|
86
|
-
gridFillPage.steps.
|
87
|
-
gridFillPage.steps.
|
88
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
89
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
90
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
77
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
78
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
79
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
91
80
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
92
81
|
});
|
93
82
|
|
94
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in the
|
83
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in the responses from correct accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
95
84
|
gridFillPage.steps.resetQuestionPreview();
|
96
85
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
97
86
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
98
87
|
gridFillPage.steps.verifyPreviewScore(10, 15);
|
99
88
|
gridFillPage.steps.switchToGradingView();
|
100
|
-
gridFillPage.steps.
|
101
|
-
gridFillPage.steps.
|
102
|
-
gridFillPage.steps.
|
103
|
-
gridFillPage.steps.
|
104
|
-
gridFillPage.steps.
|
105
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
106
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
89
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
90
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
91
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
92
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
93
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
107
94
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
108
95
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
109
96
|
cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from correct accordion, correct/incorrect status message should not be displayed')
|
110
97
|
gridFillPage.steps.checkAnswer();
|
111
|
-
gridFillPage.steps.
|
112
|
-
gridFillPage.steps.
|
113
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
114
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
98
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
99
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
115
100
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
116
101
|
});
|
117
102
|
|
118
|
-
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 the
|
103
|
+
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 the responses from alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
119
104
|
gridFillPage.steps.resetQuestionPreview();
|
120
105
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
121
106
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
122
107
|
gridFillPage.steps.verifyPreviewScore(6, 15);
|
123
108
|
gridFillPage.steps.switchToGradingView();
|
124
|
-
gridFillPage.steps.
|
125
|
-
gridFillPage.steps.
|
126
|
-
gridFillPage.steps.
|
127
|
-
gridFillPage.steps.
|
128
|
-
gridFillPage.steps.
|
129
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
130
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
109
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
110
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
111
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
112
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
113
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
131
114
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
132
115
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
133
116
|
cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the selected responses from alternative accordion and correct/incorrect status message should not be displayed');
|
134
117
|
gridFillPage.steps.checkAnswer();
|
135
|
-
gridFillPage.steps.
|
136
|
-
gridFillPage.steps.
|
137
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
138
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
118
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
119
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
139
120
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
140
121
|
});
|
141
122
|
|
142
|
-
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 response from the correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct/incorrect status message should not be displayed', () => {
|
123
|
+
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 response from the correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
143
124
|
gridFillPage.steps.resetQuestionPreview();
|
144
125
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
145
126
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
146
127
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
147
128
|
gridFillPage.steps.switchToGradingView();
|
148
|
-
gridFillPage.steps.
|
149
|
-
gridFillPage.steps.
|
150
|
-
gridFillPage.steps.
|
151
|
-
gridFillPage.steps.
|
152
|
-
gridFillPage.steps.
|
153
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
154
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
155
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
156
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
157
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
129
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
130
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
131
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
132
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
133
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
158
134
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
159
135
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
160
136
|
cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in unselected cells and correct/incorrect status message should not be displayed');
|
161
137
|
gridFillPage.steps.checkAnswer();
|
162
|
-
gridFillPage.steps.
|
163
|
-
gridFillPage.steps.
|
164
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
165
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
138
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
139
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
166
140
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
167
141
|
});
|
168
142
|
|
169
|
-
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 in the common response, correct icons should be displayed in responses from correct accordion should be displayed in
|
143
|
+
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 in the common response, correct icons should be displayed in responses from correct accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
170
144
|
gridFillPage.steps.resetQuestionPreview();
|
171
145
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
172
146
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
173
147
|
gridFillPage.steps.switchToGradingView();
|
174
|
-
gridFillPage.steps.
|
175
|
-
gridFillPage.steps.
|
176
|
-
gridFillPage.steps.
|
177
|
-
gridFillPage.steps.
|
178
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
179
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
180
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
181
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
148
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
149
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
150
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
151
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
182
152
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
183
153
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
184
|
-
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 the correct answer response, no icon should be displayed
|
154
|
+
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 the correct answer response, no icon should be displayed and correct/incorrect status message should not be displayed')
|
185
155
|
gridFillPage.steps.checkAnswer();
|
186
|
-
gridFillPage.steps.
|
187
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
156
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
188
157
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
189
158
|
});
|
190
159
|
|
191
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response, correct
|
160
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response in response grid, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
|
192
161
|
gridFillPage.steps.resetQuestionPreview();
|
193
162
|
gridFillPage.steps.selectCellPreviewTab(1, 1);
|
194
163
|
gridFillPage.steps.verifyPreviewScore(0, 15);
|
195
164
|
gridFillPage.steps.switchToGradingView();
|
196
|
-
gridFillPage.steps.
|
197
|
-
gridFillPage.steps.
|
198
|
-
gridFillPage.steps.
|
199
|
-
gridFillPage.steps.
|
200
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
201
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
202
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
203
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
204
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
205
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
|
206
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
165
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
|
166
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
167
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
168
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
207
169
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
208
170
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
209
171
|
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses and correct/incorrect status message should not be displayed')
|
210
172
|
gridFillPage.steps.checkAnswer();
|
211
|
-
gridFillPage.steps.
|
212
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
173
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
|
213
174
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
214
175
|
});
|
215
176
|
|
216
|
-
it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternate tab answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, green check-mark icons should be displayed for the correct accordion response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border should not be displayed and correct answer
|
177
|
+
it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternate tab answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, green check-mark icons should be displayed for the correct accordion response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border should not be displayed and correct answer section should be displayed with correct accordion answers for the responses marked incorrect', () => {
|
217
178
|
cy.log('Pre-step: Switching to Edit tab and allotting points to alternate tab such that the difference between the points is substantial and the points per response are in decimal')
|
218
179
|
gridFillPage.steps.switchToEditTab();
|
219
180
|
gridFillPage.steps.deleteAlternativeAnswerAccordion(0);
|
@@ -230,28 +191,19 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
|
|
230
191
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
231
192
|
gridFillPage.steps.verifyPreviewScore(7.67, 23);
|
232
193
|
gridFillPage.steps.switchToGradingView();
|
233
|
-
gridFillPage.steps.
|
234
|
-
gridFillPage.steps.
|
235
|
-
gridFillPage.steps.
|
236
|
-
gridFillPage.steps.
|
237
|
-
gridFillPage.steps.
|
238
|
-
gridFillPage.steps.
|
239
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
240
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
241
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
|
242
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 3);
|
243
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
244
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
194
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
195
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
|
196
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
197
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
198
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
199
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
245
200
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
246
201
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
247
202
|
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct accordion, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
248
203
|
gridFillPage.steps.checkAnswer();
|
249
|
-
gridFillPage.steps.
|
250
|
-
gridFillPage.steps.
|
251
|
-
gridFillPage.steps.
|
252
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 3);
|
253
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
254
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
204
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
205
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
|
206
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
255
207
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
256
208
|
});
|
257
209
|
});
|
@@ -113,7 +113,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
|
|
113
113
|
});
|
114
114
|
|
115
115
|
it('CSS of warning message', { tags: 'css' }, () => {
|
116
|
-
utilities.verifyCSS(gridFillPage.
|
116
|
+
utilities.verifyCSS(gridFillPage.warningMessage().find('.min-max-answer-error-text'), {
|
117
117
|
'color': css.color.warningText,
|
118
118
|
'font-size': css.fontSize.normal,
|
119
119
|
'font-weight': css.fontWeight.bold
|
@@ -121,7 +121,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
|
|
121
121
|
});
|
122
122
|
|
123
123
|
it('Accessibility of warning message in Edit tab', { tags: 'a11y' }, () => {
|
124
|
-
cy.checkAccessibility(gridFillPage.
|
124
|
+
cy.checkAccessibility(gridFillPage.warningMessage());
|
125
125
|
});
|
126
126
|
|
127
127
|
gridFillPage.tests.verifyWarningMessageDisappear();
|
@@ -148,7 +148,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
|
|
148
148
|
gridFillPage.steps.switchToPreviewTab();
|
149
149
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
150
150
|
gridFillPage.steps.checkAnswer();
|
151
|
-
gridFillPage.steps.
|
151
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
152
152
|
gridFillPage.steps.verifyCheckAnswerButtonEnabled();
|
153
153
|
});
|
154
154
|
|