itemengine-cypress-automation 1.0.169-uploadResponseMigration-83ab996.0 → 1.0.169
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 +1 -38
- package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +0 -1
- package/cypress/support/migrationHelpers/migrationScript.js +0 -4
- package/cypress/support/migrationHelpers/verifyIeQuestionData.js +2 -34
- package/package.json +2 -2
package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
CHANGED
@@ -24,213 +24,169 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
|
|
24
24
|
gridFillPage.steps.switchToPreviewTab();
|
25
25
|
});
|
26
26
|
|
27
|
-
it('When the user selects \'Grading\' view without attempting the question, correct
|
27
|
+
it('When the user selects \'Grading\' view without attempting the question, correct icons in responses from correct accordion should be displayed in the correct answers section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
28
28
|
gridFillPage.steps.switchToGradingView();
|
29
|
-
gridFillPage.steps.
|
30
|
-
gridFillPage.steps.
|
31
|
-
gridFillPage.steps.
|
32
|
-
gridFillPage.steps.
|
33
|
-
gridFillPage.steps.
|
34
|
-
gridFillPage.steps.
|
35
|
-
gridFillPage.steps.
|
36
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
37
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
29
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
|
30
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
|
31
|
+
gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
|
32
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
33
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
34
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
35
|
+
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
38
36
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
39
37
|
});
|
40
38
|
|
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 icon
|
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 icon should be displayed in all the responses from correct accordion in response grid, correct answer section and a status message with text \'Your answer is correct\' should be displayed', () => {
|
42
40
|
gridFillPage.steps.resetQuestionPreview();
|
43
41
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
44
42
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
45
43
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
46
44
|
gridFillPage.steps.verifyPreviewScore(20, 20);
|
47
45
|
gridFillPage.steps.switchToGradingView();
|
48
|
-
gridFillPage.steps.
|
49
|
-
gridFillPage.steps.
|
50
|
-
gridFillPage.steps.
|
51
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
52
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
53
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
46
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
47
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
48
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
54
49
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
50
|
+
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
51
|
+
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
55
52
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
56
53
|
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 the responses from correct accordion and a status message with text \'Your answer is correct\' should be displayed')
|
57
54
|
gridFillPage.steps.checkAnswer();
|
58
|
-
gridFillPage.steps.
|
59
|
-
gridFillPage.steps.
|
60
|
-
gridFillPage.steps.
|
61
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
62
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
63
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
55
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
56
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
57
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
64
58
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
65
59
|
});
|
66
60
|
|
67
|
-
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 and on switching to \'Grading\' view, correct icon
|
61
|
+
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 and on switching to \'Grading\' view, correct icon should be displayed in all the responses from alternative accordion in response grid, correct answer section and a status message with text \'Your answer is correct\' should be displayed', () => {
|
68
62
|
gridFillPage.steps.resetQuestionPreview();
|
69
63
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
70
64
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
71
65
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
72
66
|
gridFillPage.steps.verifyPreviewScore(20, 20);
|
73
67
|
gridFillPage.steps.switchToGradingView();
|
74
|
-
gridFillPage.steps.
|
75
|
-
gridFillPage.steps.
|
76
|
-
gridFillPage.steps.
|
77
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
78
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
79
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
68
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
69
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
70
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
80
71
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
72
|
+
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
81
73
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
74
|
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 the responses from alternative accordion and a status message with text \'Your answer is correct\' should be displayed')
|
83
75
|
gridFillPage.steps.checkAnswer();
|
84
|
-
gridFillPage.steps.
|
85
|
-
gridFillPage.steps.
|
86
|
-
gridFillPage.steps.
|
87
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
88
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
89
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
76
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
77
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
78
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
90
79
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
91
80
|
});
|
92
81
|
|
93
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon
|
82
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the responses from correct accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
94
83
|
gridFillPage.steps.resetQuestionPreview();
|
95
84
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
96
85
|
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
97
86
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
98
87
|
gridFillPage.steps.switchToGradingView();
|
99
|
-
gridFillPage.steps.
|
100
|
-
gridFillPage.steps.
|
101
|
-
gridFillPage.steps.
|
102
|
-
gridFillPage.steps.
|
103
|
-
gridFillPage.steps.
|
104
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
105
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
88
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
89
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
90
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
91
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
92
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
106
93
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
107
94
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
95
|
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 the response from correct accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
109
96
|
gridFillPage.steps.checkAnswer();
|
110
|
-
gridFillPage.steps.
|
111
|
-
gridFillPage.steps.
|
112
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
|
113
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
|
97
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
98
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
114
99
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
115
100
|
});
|
116
101
|
|
117
|
-
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon
|
102
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the response from alternative accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
118
103
|
gridFillPage.steps.resetQuestionPreview();
|
119
104
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
120
105
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
121
106
|
gridFillPage.steps.switchToGradingView();
|
122
|
-
gridFillPage.steps.
|
123
|
-
gridFillPage.steps.
|
124
|
-
gridFillPage.steps.
|
125
|
-
gridFillPage.steps.
|
126
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
127
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
|
128
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
129
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
|
107
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
108
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
109
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
110
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
130
111
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
131
112
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
113
|
cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then incorrect icon should be displayed in the partially selected response from alternative accordion, a status message with text \'Your answer is incorrect\' should be displayed')
|
133
114
|
gridFillPage.steps.checkAnswer();
|
134
|
-
gridFillPage.steps.
|
135
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
115
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
136
116
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
137
117
|
});
|
138
118
|
|
139
|
-
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon
|
119
|
+
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the response from alternative accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
140
120
|
gridFillPage.steps.resetQuestionPreview();
|
141
121
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
142
122
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
143
123
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
144
124
|
gridFillPage.steps.switchToGradingView();
|
145
|
-
gridFillPage.steps.
|
146
|
-
gridFillPage.steps.
|
147
|
-
gridFillPage.steps.
|
148
|
-
gridFillPage.steps.
|
149
|
-
gridFillPage.steps.
|
150
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
|
151
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
125
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
126
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
127
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
128
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
129
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
152
130
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
153
131
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
154
132
|
cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed in the response from the alternative accordion, incorrect icon should be displayed in the empty response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
155
133
|
gridFillPage.steps.checkAnswer();
|
156
|
-
gridFillPage.steps.
|
157
|
-
gridFillPage.steps.
|
158
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
|
159
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
|
134
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
|
135
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
|
160
136
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
161
137
|
});
|
162
138
|
|
163
|
-
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon
|
139
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be displayed in correct accordion responses, incorrect icon should be displayed in alternative accordion response in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
164
140
|
gridFillPage.steps.resetQuestionPreview();
|
165
141
|
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
166
142
|
gridFillPage.steps.selectCellPreviewTab(0, 4);
|
167
143
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
168
144
|
gridFillPage.steps.switchToGradingView();
|
169
|
-
gridFillPage.steps.
|
170
|
-
gridFillPage.steps.
|
171
|
-
gridFillPage.steps.
|
172
|
-
gridFillPage.steps.
|
173
|
-
gridFillPage.steps.
|
174
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
175
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
176
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
177
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
178
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
145
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
146
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
147
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
148
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
149
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
179
150
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
180
151
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
152
|
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 response from correct accordion, incorrect icon should be displayed in response from alternative accordion and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
182
153
|
gridFillPage.steps.checkAnswer();
|
183
|
-
gridFillPage.steps.
|
184
|
-
gridFillPage.steps.
|
185
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
|
186
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
|
154
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
155
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
|
187
156
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
188
157
|
});
|
189
158
|
|
190
|
-
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon
|
159
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, correct icon should be in the common response in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
191
160
|
gridFillPage.steps.resetQuestionPreview();
|
192
161
|
gridFillPage.steps.selectCellPreviewTab(0, 2);
|
193
162
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
194
163
|
gridFillPage.steps.switchToGradingView();
|
195
|
-
gridFillPage.steps.
|
196
|
-
gridFillPage.steps.
|
197
|
-
gridFillPage.steps.
|
198
|
-
gridFillPage.steps.
|
199
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
200
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
201
|
-
gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
|
202
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
164
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
165
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
166
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
167
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
203
168
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
204
169
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
170
|
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, no icon should be displayed in unselected response area, a status message with text \'Your answer is incorrect\' should be displayed')
|
206
171
|
gridFillPage.steps.checkAnswer();
|
207
|
-
gridFillPage.steps.
|
208
|
-
gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
|
172
|
+
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
|
209
173
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
210
174
|
});
|
211
175
|
|
212
|
-
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 all incorrect responses, correct icon
|
176
|
+
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 all incorrect responses in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
213
177
|
gridFillPage.steps.resetQuestionPreview();
|
214
178
|
gridFillPage.steps.selectCellPreviewTab(1, 2);
|
215
179
|
gridFillPage.steps.verifyPreviewScore(0, 20);
|
216
180
|
gridFillPage.steps.switchToGradingView();
|
217
|
-
gridFillPage.steps.
|
218
|
-
gridFillPage.steps.
|
219
|
-
gridFillPage.steps.
|
220
|
-
gridFillPage.steps.
|
221
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
|
222
|
-
gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
|
223
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
|
224
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
|
225
|
-
gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
|
226
|
-
gridFillPage.steps.verifyIncorrectResponseIcon(1, 2);
|
227
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
|
181
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
|
182
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
|
183
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
|
184
|
+
gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
|
228
185
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
229
186
|
gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
230
187
|
cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in all incorrect responses and status message with text \'Your answer is incorrect\' should be displayed')
|
231
188
|
gridFillPage.steps.checkAnswer();
|
232
|
-
gridFillPage.steps.
|
233
|
-
gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
|
189
|
+
gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
|
234
190
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
235
191
|
});
|
236
192
|
});
|