itemengine-cypress-automation 1.0.253-TEMSmokeTestUpdates-82559a5.0 → 1.0.253
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +231 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +213 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +148 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +249 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +164 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +444 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +102 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +134 -0
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +46 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +98 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +147 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableHeaders.js +127 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableRowAndColumn.js +71 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +154 -0
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -17
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +24 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +47 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -16
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +52 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +23 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +55 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +53 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +48 -19
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +23 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +47 -17
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +50 -19
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -3
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -1
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +4 -4
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +261 -0
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
- package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +3 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +15 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +10 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -2
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +56 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +16 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -5
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +8 -22
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +19 -19
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -4
- package/cypress/e2e/ILC/ToolAudioPlayerNew/studentViewSettings.js +8 -2
- package/cypress/fixtures/theme/ilc.json +9 -5
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +615 -0
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +41 -0
- package/cypress/pages/components/ckEditorInsertTableComponent.js +741 -0
- package/cypress/pages/components/essayResponseCommonComponents.js +145 -7
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/layoutSectionComponent.js +25 -4
- package/cypress/pages/components/numberLineCommonComponent.js +39 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +28 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/graphingPage.js +8 -8
- package/cypress/pages/gridFillPage.js +11 -11
- package/cypress/pages/multipleSelectionPage.js +12 -0
- package/cypress/pages/singleSelectionPage.js +1 -1
- package/cypress/pages/textEntryMathPage.js +18 -0
- package/cypress/pages/textEntryMathWithImagePage.js +15 -2
- package/cypress/pages/textSelectionPage.js +7 -1
- package/package.json +1 -1
@@ -31,10 +31,10 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
31
31
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
32
32
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
33
33
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
34
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
34
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
35
35
|
});
|
36
36
|
|
37
|
-
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 beside all the correct responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
37
|
+
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 beside all the correct responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
38
38
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
39
39
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
40
40
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -45,6 +45,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
45
45
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
46
46
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
48
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
48
49
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
49
50
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
50
51
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -60,13 +61,14 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
60
61
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
61
62
|
});
|
62
63
|
|
63
|
-
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 beside all the correct responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
64
|
+
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 beside all the correct responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
64
65
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
65
66
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
66
67
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
67
68
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
68
69
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
69
70
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
71
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
70
72
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
71
73
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
72
74
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
@@ -86,14 +88,18 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
86
88
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
87
89
|
});
|
88
90
|
|
89
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points as per the total of correct options and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
91
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points as per the total of correct options and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
90
92
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
91
93
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Parrot': 1 });
|
92
94
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
93
95
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
94
96
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
95
97
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
96
|
-
dragAndDropIntoCategoriesPage.steps.
|
98
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
99
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
100
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
101
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
102
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'] , []], ['1', '2', '3', '4', '5', '6']);
|
97
103
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
98
104
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
105
|
/*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 besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
@@ -104,14 +110,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
104
110
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
105
111
|
});
|
106
112
|
|
107
|
-
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
113
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
108
114
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
109
115
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
|
110
116
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
111
117
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
112
118
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
119
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
120
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
121
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
122
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
123
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
113
124
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
114
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
125
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
115
126
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
127
|
/*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 besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
117
128
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -120,7 +131,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
120
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
121
132
|
});
|
122
133
|
|
123
|
-
it('When the user attempts the question partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
134
|
+
it('When the user attempts the question partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
124
135
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
125
136
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Octopus': 5 });
|
126
137
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(25, 30);
|
@@ -128,10 +139,12 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
128
139
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
129
140
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
130
141
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
142
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
131
143
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
132
144
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
145
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
133
146
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
134
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
147
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
135
148
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
136
149
|
/*cy.log('When the user has attempted the question with partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and and correct answer section should not be displayed')
|
137
150
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -144,16 +157,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
144
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
145
158
|
});
|
146
159
|
|
147
|
-
it('When the user attempts the question partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
160
|
+
it('When the user attempts the question partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
148
161
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
149
162
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Ostrich': 3, 'Platypus': 4 });
|
150
163
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
151
164
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
152
165
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
153
166
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
167
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
168
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
154
169
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
170
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
155
171
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
172
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
157
173
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
158
174
|
/*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
159
175
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -164,19 +180,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
164
180
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
165
181
|
});
|
166
182
|
|
167
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed', () => {
|
183
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed', () => {
|
168
184
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
169
185
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5, 'Whale': 5 });
|
170
186
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
171
187
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
172
188
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
173
189
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
190
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
174
191
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
175
192
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
176
193
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
177
194
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
178
195
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
179
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
196
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
180
197
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
198
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
182
199
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -190,17 +207,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
190
207
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
191
208
|
});
|
192
209
|
|
193
|
-
it('When the user attempts the question partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
210
|
+
it('When the user attempts the question partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
194
211
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
195
212
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Peacock': 1, 'Platypus': 4 });
|
196
213
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
197
214
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
198
215
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
199
216
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
217
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
200
218
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
219
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
201
220
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
221
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
202
222
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
203
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
223
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
204
224
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
225
|
/*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell and clicks on \'Check answer\' button, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message and correct answer section should not be displayed')
|
206
226
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -212,14 +232,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
212
232
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
213
233
|
});
|
214
234
|
|
215
|
-
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 responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
235
|
+
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 responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
216
236
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
217
237
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 0 });
|
218
238
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
219
239
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
220
240
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
241
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
242
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
243
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
244
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
245
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
221
246
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
222
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
247
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
223
248
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
224
249
|
/*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, correct/incorrect answer status message and correct answer section should not be displayed')
|
225
250
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -228,15 +253,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
228
253
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
229
254
|
});
|
230
255
|
|
231
|
-
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the different cell and on switching to \'Grading\' view, then correct icon should be displayed besides the correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message should not be displayed and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
256
|
+
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the different cell and on switching to \'Grading\' view, then correct icon should be displayed besides the correct accordion responses, incorrect icon should be displayed besides alternative accordion responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
232
257
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
233
258
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Octopus': 5 });
|
234
259
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
235
260
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
236
261
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
237
262
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
263
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
264
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
265
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
266
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
238
267
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
239
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
268
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
240
269
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
241
270
|
/*cy.log('When the user has attempted the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the different cell and clicks on \'Check answer\' button, then the correct icon should be displayed besides the correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
242
271
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -246,15 +275,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
246
275
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
247
276
|
});
|
248
277
|
|
249
|
-
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the same cell, then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
278
|
+
it('When the user attempts the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the same cell, then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses and proper icon should display beside empty container, incorrect icon should be displayed besides alternative accordion responses and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
250
279
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
251
280
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0});
|
252
281
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
253
282
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
254
283
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
255
284
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
285
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
286
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
287
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
288
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
289
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
256
290
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
257
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
291
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
258
292
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
259
293
|
/*cy.log('When the user has attempted the question partially correct with equal number of correct options exclusively from the alternative accordion and correct accordion in the same cell and clicks on \'Check answer\' button, then correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
260
294
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -31,10 +31,10 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
31
31
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
32
32
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
33
33
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
34
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
34
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
35
35
|
});
|
36
36
|
|
37
|
-
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 beside all the correct responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
37
|
+
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 beside all the correct responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
38
38
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
39
39
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
40
40
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -45,6 +45,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
45
45
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
46
46
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
48
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
48
49
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
49
50
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
50
51
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -60,13 +61,14 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
60
61
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
61
62
|
});
|
62
63
|
|
63
|
-
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 beside all the correct responses, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
64
|
+
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 beside all the correct responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
64
65
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
65
66
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
66
67
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 30);
|
67
68
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
68
69
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
69
70
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
71
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
70
72
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
71
73
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
72
74
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
@@ -86,14 +88,18 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
86
88
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
87
89
|
});
|
88
90
|
|
89
|
-
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points as per the total of correct options and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
91
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points as per the total of correct options and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
90
92
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
91
93
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Parrot': 1 });
|
92
94
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
93
95
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
94
96
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
95
97
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
96
|
-
dragAndDropIntoCategoriesPage.steps.
|
98
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
99
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
100
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
101
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
102
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
97
103
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
98
104
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
105
|
/*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 besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
@@ -104,14 +110,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
104
110
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
105
111
|
});
|
106
112
|
|
107
|
-
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
113
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
108
114
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
109
115
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
|
110
116
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(3, 30);
|
111
117
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
112
118
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
119
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
120
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
121
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
122
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
123
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
113
124
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
114
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
125
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
115
126
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
127
|
/*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 besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
117
128
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -120,18 +131,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
120
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
121
132
|
});
|
122
133
|
|
123
|
-
it('When the user attempts the question partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
134
|
+
it('When the user attempts the question partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
124
135
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
125
136
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Octopus': 5 });
|
126
137
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
127
138
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
128
139
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
129
140
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
141
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
130
142
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
131
143
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
132
144
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
145
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
133
146
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
134
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
147
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
135
148
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
136
149
|
/*cy.log('When the user has attempted the question with partially correct with all the dropzones correct as per the alternative accordion but one dropzone incomplete and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and and correct answer section should not be displayed')
|
137
150
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -144,16 +157,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
144
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
145
158
|
});
|
146
159
|
|
147
|
-
it('When the user attempts the question partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
160
|
+
it('When the user attempts the question partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
148
161
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
149
162
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Ostrich': 3, 'Platypus': 4 });
|
150
163
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(9, 30);
|
151
164
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
152
165
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
153
166
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
167
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
154
168
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
169
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
170
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
155
171
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
172
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
157
173
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
158
174
|
/*cy.log('When the user has attempted the question with partially correct with more number of options exclusively from the alternative accordion but with one option common across both accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
159
175
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -164,7 +180,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
164
180
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
165
181
|
});
|
166
182
|
|
167
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message should not be displayed and correct answer section should be displayed', () => {
|
183
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty container, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message should not be displayed and correct answer section should be displayed', () => {
|
168
184
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
169
185
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5, 'Whale': 5 });
|
170
186
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 30);
|
@@ -172,12 +188,13 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
172
188
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
173
189
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
174
190
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
191
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
175
192
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
176
193
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
177
194
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
178
195
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
179
196
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
180
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
197
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
181
198
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
182
199
|
/*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
183
200
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -192,17 +209,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
192
209
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
193
210
|
});
|
194
211
|
|
195
|
-
it('When the user attempts the question partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
212
|
+
it('When the user attempts the question partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the alternative accordion response and proper icon should display beside empty container, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
196
213
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
197
214
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Peacock': 1, 'Platypus': 4 });
|
198
215
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(9, 30);
|
199
216
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
200
217
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
201
218
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
219
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
202
220
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
221
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
203
222
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
223
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
204
224
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
205
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
225
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
206
226
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
207
227
|
/*cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and clicks on \'Check answer\' button, correct icon should be displayed besides the alternative accordion response, incorrect icon should be displayed besides the correct accordion response, correct/incorrect answer status message and correct answer section should not be displayed')
|
208
228
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -214,14 +234,19 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
214
234
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
215
235
|
});
|
216
236
|
|
217
|
-
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 responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
237
|
+
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 responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
218
238
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
219
239
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 0 });
|
220
240
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
221
241
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
222
242
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
243
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
244
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
245
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
246
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
247
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
223
248
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
224
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
249
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
225
250
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
226
251
|
/*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, correct/incorrect answer status message and correct answer section should not be displayed')
|
227
252
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -230,7 +255,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
230
255
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
231
256
|
});
|
232
257
|
|
233
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternative accordion but with one option common across both the accordions and points achieved from the alternative accordion mapping is equal to the points achieved from correct accordion mapping then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, then correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message should not be displayed and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
258
|
+
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternative accordion but with one option common across both the accordions and points achieved from the alternative accordion mapping is equal to the points achieved from correct accordion mapping then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, then correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides alternative accordion responses and proper icon should display beside empty container, correct/incorrect answer status message should not be displayed and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
234
259
|
cy.log('Pre-step: Switching to Edit tab and allotting points to correct and alternative accordion such on attempting the question partially correct, points achieved from the alternative accordion mapping is equal to the correct accordion mapping')
|
235
260
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
236
261
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
@@ -243,9 +268,12 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
243
268
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
244
269
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
245
270
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
271
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
246
272
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
273
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
274
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
247
275
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
248
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
276
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
249
277
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
250
278
|
/*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the alternative accordion but with one option common across both the accordions and clicks on \'Check answer\' button, then the correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
251
279
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -256,16 +284,20 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
256
284
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
257
285
|
});
|
258
286
|
|
259
|
-
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and points achieved from the alternative accordion mapping is equal to the points achieved from correct accordion mapping then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
287
|
+
it('When the user attempts the question partially correct such that more number of options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and points achieved from the alternative accordion mapping is equal to the points achieved from correct accordion mapping then the points awarded should be according to the correct accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses and proper icon should display beside empty container, incorrect icon should be displayed besides alternative accordion responses and the correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
260
288
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
261
289
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Platypus': 4 });
|
262
290
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 108);
|
263
291
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
264
292
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
265
293
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
294
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
266
295
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
296
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
297
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
298
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
267
299
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
268
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
300
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
269
301
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
270
302
|
/*cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same dropzone and clicks on \'Check answer\' button, then correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
271
303
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|