itemengine-cypress-automation 1.0.167-repoUpdate10April-1465c8c.0 → 1.0.169-uploadResponseMigration-83ab996.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +11 -22
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +7 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +6 -11
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +36 -2
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +34 -22
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +24 -8
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +25 -5
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +114 -68
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +111 -67
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +123 -71
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +63 -41
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +25 -21
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +85 -50
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -68
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +98 -54
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +120 -72
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
- package/cypress/fixtures/theme/ilc.json +26 -14
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +0 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/colorPopupComponent.js +2 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -629
- package/cypress/pages/components/index.js +0 -3
- package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
- package/cypress/pages/components/measuringToolComponent.js +2 -2
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
- package/cypress/pages/components/setPointsPopupBase.js +4 -6
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +3 -60
- package/cypress/pages/components/toolSettingsComponent.js +12 -80
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +8 -0
- package/cypress/pages/feedbackScalePage.js +449 -591
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +1 -3
- package/cypress/pages/graphingPage.js +145 -9
- package/cypress/pages/gridFillPage.js +120 -135
- package/cypress/pages/highlightPage.js +394 -0
- package/cypress/pages/index.js +2 -5
- package/cypress/pages/matchingPage.js +20 -78
- package/cypress/pages/multipleSelectionGridPage.js +1 -88
- package/cypress/pages/singleSelectionGridPage.js +0 -86
- package/cypress/support/migrationHelpers/extractLrnQuestionData.js +38 -1
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +1 -0
- package/cypress/support/migrationHelpers/migrationScript.js +4 -0
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +34 -2
- package/package.json +1 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +0 -83
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +0 -200
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +0 -56
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -95
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +0 -71
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +0 -72
- package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +0 -71
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
- package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +0 -161
- package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +0 -308
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +0 -216
- package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +0 -336
- package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +0 -570
- package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +0 -214
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -356
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +0 -299
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -355
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +0 -309
- package/cypress/e2e/ILC/Matching/toolSettings.js +0 -72
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +0 -1033
- package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +0 -28
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -236
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -239
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -278
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +0 -178
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +0 -407
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +0 -273
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +0 -278
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +0 -228
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +0 -120
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -659
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +0 -149
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +0 -151
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -171
- package/cypress/e2e/ILC/NumberLine/headerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -54
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +0 -200
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +0 -67
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +0 -135
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +0 -73
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +0 -372
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +0 -1014
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -235
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +0 -457
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -342
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +0 -155
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -314
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -275
- package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -314
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -290
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +0 -142
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +0 -137
- package/cypress/pages/brainingCampManipulativePage.js +0 -122
- package/cypress/pages/components/defaultToolDropdown.js +0 -77
- package/cypress/pages/components/resetPopupComponent.js +0 -74
- package/cypress/pages/components/toolsAndControlsComponent.js +0 -69
- package/cypress/pages/feedbackScalePage copy.js +0 -716
- package/cypress/pages/numberLinePage.js +0 -723
- package/cypress/pages/textSelectionPage.js +0 -582
@@ -27,142 +27,186 @@ 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.
|
30
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
31
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
32
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
33
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
34
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
35
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
36
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
37
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
38
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
36
39
|
});
|
37
40
|
|
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
|
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', () => {
|
39
42
|
gridFillPage.steps.resetQuestionPreview();
|
40
43
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
41
44
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
42
45
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
43
46
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
44
47
|
gridFillPage.steps.switchToGradingView();
|
45
|
-
gridFillPage.steps.
|
46
|
-
gridFillPage.steps.
|
47
|
-
gridFillPage.steps.
|
48
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
49
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
50
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
51
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
52
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
53
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
48
54
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
49
55
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
50
56
|
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')
|
51
57
|
gridFillPage.steps.checkAnswer();
|
52
|
-
gridFillPage.steps.
|
53
|
-
gridFillPage.steps.
|
54
|
-
gridFillPage.steps.
|
58
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
59
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
60
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
61
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
62
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
63
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
55
64
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
56
65
|
});
|
57
66
|
|
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
|
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', () => {
|
59
68
|
gridFillPage.steps.resetQuestionPreview();
|
60
69
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
61
70
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
62
71
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
63
72
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
64
73
|
gridFillPage.steps.switchToGradingView();
|
65
|
-
gridFillPage.steps.
|
66
|
-
gridFillPage.steps.
|
67
|
-
gridFillPage.steps.
|
74
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
75
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
76
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
77
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
78
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
79
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
68
80
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
69
81
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
70
82
|
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')
|
71
83
|
gridFillPage.steps.checkAnswer();
|
72
|
-
gridFillPage.steps.
|
73
|
-
gridFillPage.steps.
|
74
|
-
gridFillPage.steps.
|
84
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
85
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
86
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
87
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
88
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
89
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
75
90
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
76
91
|
});
|
77
92
|
|
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
|
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, border and background color should be displayed in the selected responses, only correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
|
79
94
|
gridFillPage.steps.resetQuestionPreview();
|
80
95
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
81
96
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
82
97
|
gridFillPage.steps.verifyPreviewScore(10, 15);
|
83
98
|
gridFillPage.steps.switchToGradingView();
|
84
|
-
gridFillPage.steps.
|
85
|
-
gridFillPage.steps.
|
86
|
-
gridFillPage.steps.
|
87
|
-
gridFillPage.steps.
|
88
|
-
gridFillPage.steps.
|
99
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
100
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
101
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
102
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
103
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
104
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
105
|
+
gridFillPage.steps.verifyDefaultGridInSpecifyCorrectAnswerSection(0, 2);
|
89
106
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
90
107
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
91
108
|
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')
|
92
109
|
gridFillPage.steps.checkAnswer();
|
93
|
-
gridFillPage.steps.
|
94
|
-
gridFillPage.steps.
|
110
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
111
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
112
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
113
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
95
114
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
96
115
|
});
|
97
116
|
|
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
|
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, border and background color should be displayed in the selected responses, only correct icon should be displayed in unselected responses from alternative accordion and correct/incorrect status message should not be displayed', () => {
|
99
118
|
gridFillPage.steps.resetQuestionPreview();
|
100
119
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
101
120
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
102
121
|
gridFillPage.steps.switchToGradingView();
|
103
|
-
gridFillPage.steps.
|
104
|
-
gridFillPage.steps.
|
105
|
-
gridFillPage.steps.
|
106
|
-
gridFillPage.steps.
|
122
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
123
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
124
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
125
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
126
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
|
127
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
|
128
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
129
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
107
130
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
108
131
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
109
132
|
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')
|
110
133
|
gridFillPage.steps.checkAnswer();
|
111
|
-
gridFillPage.steps.
|
134
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
135
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
112
136
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
137
|
});
|
114
138
|
|
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
|
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', () => {
|
116
140
|
gridFillPage.steps.resetQuestionPreview();
|
117
141
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
118
142
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
119
143
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
120
144
|
gridFillPage.steps.switchToGradingView();
|
121
|
-
gridFillPage.steps.
|
122
|
-
gridFillPage.steps.
|
123
|
-
gridFillPage.steps.
|
124
|
-
gridFillPage.steps.
|
125
|
-
gridFillPage.steps.
|
145
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
146
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
147
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
148
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
149
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
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);
|
126
155
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
127
156
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
128
157
|
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')
|
129
158
|
gridFillPage.steps.checkAnswer();
|
130
|
-
gridFillPage.steps.
|
131
|
-
gridFillPage.steps.
|
159
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
160
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
161
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
162
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
132
163
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
133
164
|
});
|
134
165
|
|
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
|
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, border and background should be in the common response and only correct icon should be displayed in unselected response from correct accordion, and correct/incorrect status message should not be displayed', () => {
|
136
167
|
gridFillPage.steps.resetQuestionPreview();
|
137
168
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
138
169
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
139
170
|
gridFillPage.steps.switchToGradingView();
|
140
|
-
gridFillPage.steps.
|
141
|
-
gridFillPage.steps.
|
142
|
-
gridFillPage.steps.
|
143
|
-
gridFillPage.steps.
|
171
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
172
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
173
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
174
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
175
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
176
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
177
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
178
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
144
179
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
145
180
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
146
181
|
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')
|
147
182
|
gridFillPage.steps.checkAnswer();
|
148
|
-
gridFillPage.steps.
|
183
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
184
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
149
185
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
186
|
});
|
151
187
|
|
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
|
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 besides all incorrect response, correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
|
153
189
|
gridFillPage.steps.resetQuestionPreview();
|
154
190
|
gridFillPage.steps.selectCellPreviewTab(1, 1);
|
155
191
|
gridFillPage.steps.verifyPreviewScore(0, 15);
|
156
192
|
gridFillPage.steps.switchToGradingView();
|
157
|
-
gridFillPage.steps.
|
158
|
-
gridFillPage.steps.
|
159
|
-
gridFillPage.steps.
|
160
|
-
gridFillPage.steps.
|
193
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
194
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
195
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
196
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
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);
|
161
204
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
162
205
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
163
206
|
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')
|
164
207
|
gridFillPage.steps.checkAnswer();
|
165
|
-
gridFillPage.steps.
|
208
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
|
209
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
166
210
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
167
211
|
});
|
168
212
|
});
|
@@ -25,156 +25,195 @@ 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', () => {
|
29
29
|
gridFillPage.steps.switchToGradingView();
|
30
|
-
gridFillPage.steps.
|
31
|
-
gridFillPage.steps.
|
32
|
-
gridFillPage.steps.
|
33
|
-
gridFillPage.steps.
|
34
|
-
gridFillPage.steps.
|
35
|
-
gridFillPage.steps.
|
30
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
31
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
32
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
33
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
34
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
35
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
36
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
37
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
38
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
36
39
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
37
40
|
});
|
38
41
|
|
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
|
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 answer status message should not be displayed', () => {
|
40
43
|
gridFillPage.steps.resetQuestionPreview();
|
41
44
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
42
45
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
43
46
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
44
47
|
gridFillPage.steps.verifyPreviewScore(15, 15);
|
45
48
|
gridFillPage.steps.switchToGradingView();
|
46
|
-
gridFillPage.steps.
|
47
|
-
gridFillPage.steps.
|
48
|
-
gridFillPage.steps.
|
49
|
-
gridFillPage.steps.
|
49
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
50
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
51
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
52
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
53
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
54
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
50
55
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
51
56
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
52
57
|
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')
|
53
58
|
gridFillPage.steps.checkAnswer();
|
54
|
-
gridFillPage.steps.
|
55
|
-
gridFillPage.steps.
|
56
|
-
gridFillPage.steps.
|
59
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
60
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
61
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
62
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
63
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
64
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
57
65
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
58
66
|
});
|
59
67
|
|
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
|
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', () => {
|
61
69
|
gridFillPage.steps.resetQuestionPreview();
|
62
70
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
63
71
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
64
72
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
65
73
|
gridFillPage.steps.verifyPreviewScore(9, 15);
|
66
74
|
gridFillPage.steps.switchToGradingView();
|
67
|
-
gridFillPage.steps.
|
68
|
-
gridFillPage.steps.
|
69
|
-
gridFillPage.steps.
|
70
|
-
gridFillPage.steps.
|
71
|
-
gridFillPage.steps.
|
72
|
-
gridFillPage.steps.
|
75
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
76
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
77
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
78
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
79
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
80
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
73
81
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
74
82
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
75
83
|
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')
|
76
84
|
gridFillPage.steps.checkAnswer();
|
77
|
-
gridFillPage.steps.
|
78
|
-
gridFillPage.steps.
|
79
|
-
gridFillPage.steps.
|
85
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
86
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
87
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
88
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
89
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
90
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
80
91
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
81
92
|
});
|
82
93
|
|
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
|
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 selected responses and only correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
|
84
95
|
gridFillPage.steps.resetQuestionPreview();
|
85
96
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
86
97
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
87
98
|
gridFillPage.steps.verifyPreviewScore(10, 15);
|
88
99
|
gridFillPage.steps.switchToGradingView();
|
89
|
-
gridFillPage.steps.
|
90
|
-
gridFillPage.steps.
|
91
|
-
gridFillPage.steps.
|
92
|
-
gridFillPage.steps.
|
93
|
-
gridFillPage.steps.
|
100
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
101
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
102
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
103
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
104
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
105
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
106
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
94
107
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
95
108
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
96
109
|
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')
|
97
110
|
gridFillPage.steps.checkAnswer();
|
98
|
-
gridFillPage.steps.
|
99
|
-
gridFillPage.steps.
|
111
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
112
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
113
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
114
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
100
115
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
101
116
|
});
|
102
117
|
|
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
|
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 selected responses from alternative accordion and correct/incorrect status message should not be displayed', () => {
|
104
119
|
gridFillPage.steps.resetQuestionPreview();
|
105
120
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
106
121
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
107
122
|
gridFillPage.steps.verifyPreviewScore(6, 15);
|
108
123
|
gridFillPage.steps.switchToGradingView();
|
109
|
-
gridFillPage.steps.
|
110
|
-
gridFillPage.steps.
|
111
|
-
gridFillPage.steps.
|
112
|
-
gridFillPage.steps.
|
113
|
-
gridFillPage.steps.
|
124
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
125
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
126
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
127
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
128
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
129
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
130
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
114
131
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
115
132
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
133
|
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');
|
117
134
|
gridFillPage.steps.checkAnswer();
|
118
|
-
gridFillPage.steps.
|
119
|
-
gridFillPage.steps.
|
135
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
|
136
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
137
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
138
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
120
139
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
121
140
|
});
|
122
141
|
|
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
|
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', () => {
|
124
143
|
gridFillPage.steps.resetQuestionPreview();
|
125
144
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
126
145
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
127
146
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
128
147
|
gridFillPage.steps.switchToGradingView();
|
129
|
-
gridFillPage.steps.
|
130
|
-
gridFillPage.steps.
|
131
|
-
gridFillPage.steps.
|
132
|
-
gridFillPage.steps.
|
133
|
-
gridFillPage.steps.
|
148
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
149
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
150
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
151
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
152
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
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);
|
134
158
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
135
159
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
136
160
|
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');
|
137
161
|
gridFillPage.steps.checkAnswer();
|
138
|
-
gridFillPage.steps.
|
139
|
-
gridFillPage.steps.
|
162
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
163
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
164
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
165
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
140
166
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
141
167
|
});
|
142
168
|
|
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
|
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 unselected cells and correct/incorrect status message should not be displayed', () => {
|
144
170
|
gridFillPage.steps.resetQuestionPreview();
|
145
171
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
146
172
|
gridFillPage.steps.verifyPreviewScore(5, 15);
|
147
173
|
gridFillPage.steps.switchToGradingView();
|
148
|
-
gridFillPage.steps.
|
149
|
-
gridFillPage.steps.
|
150
|
-
gridFillPage.steps.
|
151
|
-
gridFillPage.steps.
|
174
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
175
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
176
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
177
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
178
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
179
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
180
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
181
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
152
182
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
153
183
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
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')
|
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 in unselected cells and correct/incorrect status message should not be displayed')
|
155
185
|
gridFillPage.steps.checkAnswer();
|
156
|
-
gridFillPage.steps.
|
186
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
187
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
157
188
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
158
189
|
});
|
159
190
|
|
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
|
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 icons should be displayed in responses from the correct accordion and correct/incorrect status message should not be displayed', () => {
|
161
192
|
gridFillPage.steps.resetQuestionPreview();
|
162
193
|
gridFillPage.steps.selectCellPreviewTab(1, 1);
|
163
194
|
gridFillPage.steps.verifyPreviewScore(0, 15);
|
164
195
|
gridFillPage.steps.switchToGradingView();
|
165
|
-
gridFillPage.steps.
|
166
|
-
gridFillPage.steps.
|
167
|
-
gridFillPage.steps.
|
168
|
-
gridFillPage.steps.
|
196
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
197
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
|
198
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
199
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
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);
|
169
207
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
170
208
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
171
209
|
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')
|
172
210
|
gridFillPage.steps.checkAnswer();
|
173
|
-
gridFillPage.steps.
|
211
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
|
212
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
|
174
213
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
175
214
|
});
|
176
215
|
|
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
|
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 container should be displayed with correct accordion answers for the responses marked incorrect', () => {
|
178
217
|
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')
|
179
218
|
gridFillPage.steps.switchToEditTab();
|
180
219
|
gridFillPage.steps.deleteAlternativeAnswerAccordion(0);
|
@@ -191,19 +230,28 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
|
|
191
230
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
192
231
|
gridFillPage.steps.verifyPreviewScore(7.67, 23);
|
193
232
|
gridFillPage.steps.switchToGradingView();
|
194
|
-
gridFillPage.steps.
|
195
|
-
gridFillPage.steps.
|
196
|
-
gridFillPage.steps.
|
197
|
-
gridFillPage.steps.
|
198
|
-
gridFillPage.steps.
|
199
|
-
gridFillPage.steps.
|
233
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
234
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
235
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
|
236
|
+
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
237
|
+
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
238
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
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);
|
200
245
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
201
246
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
202
247
|
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')
|
203
248
|
gridFillPage.steps.checkAnswer();
|
204
|
-
gridFillPage.steps.
|
205
|
-
gridFillPage.steps.
|
206
|
-
gridFillPage.steps.
|
249
|
+
gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
|
250
|
+
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
251
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
|
252
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 3);
|
253
|
+
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
254
|
+
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
207
255
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
208
256
|
});
|
209
257
|
});
|
@@ -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.verifyCorrectResponseIcon(0, 0);
|
152
152
|
gridFillPage.steps.verifyCheckAnswerButtonEnabled();
|
153
153
|
});
|
154
154
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { matchingPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
|
5
5
|
const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
|
6
6
|
const options = ['Petals', 'Leaves', 'Roots', 'Flowers'];
|
7
7
|
|