itemengine-cypress-automation 1.0.253-TEMSmokeTestUpdates-82559a5.0 → 1.0.254-UpdatedRepo4thNov-c5b0050.0
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
@@ -33,10 +33,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
33
33
|
//Failing due to https://redmine.zeuslearning.com/issues/574339
|
34
34
|
// dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
35
35
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
36
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
36
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
37
37
|
});
|
38
38
|
|
39
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct icons should be displayed for all correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
39
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct 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 dropzones, correct icons should be displayed for all correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
40
40
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
41
41
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
42
42
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 30);
|
@@ -47,6 +47,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
49
49
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
50
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
50
51
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
51
52
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
52
53
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -64,13 +65,14 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
64
65
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
65
66
|
});
|
66
67
|
|
67
|
-
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct icons should be displayed for all correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
68
|
+
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 dropzones, correct icons should be displayed for all correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
68
69
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
69
70
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
70
71
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
71
72
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
72
73
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
73
74
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
75
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
74
76
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
75
77
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
76
78
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
@@ -92,15 +94,19 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
92
94
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
93
95
|
});
|
94
96
|
|
95
|
-
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 dropzones and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
97
|
+
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 dropzones and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty dropzones, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
96
98
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
97
99
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Parrot': 1 });
|
98
100
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(6, 30);
|
99
101
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
100
102
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
101
103
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
104
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
105
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
106
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
107
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
102
108
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
103
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
109
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
104
110
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
105
111
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
106
112
|
/*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 icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
|
@@ -112,15 +118,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
112
118
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
113
119
|
});
|
114
120
|
|
115
|
-
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 dropzones as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
121
|
+
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 dropzones 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 dropzones, correct icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
116
122
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
117
123
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
|
118
124
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
119
125
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
120
126
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
127
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
128
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
129
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
131
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
121
132
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
122
133
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
123
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
134
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
124
135
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
125
136
|
/*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 icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
|
126
137
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -130,16 +141,21 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
130
141
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
131
142
|
});
|
132
143
|
|
133
|
-
it('When the user attempts the question partially correct such that a dropzone is correctly attempted with both the correct and alternative answer options and points achieved from the alternative accordion is more than the points achieved from correct accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses, incorrect icon should be displayed for the dropzone containing options of alternative accordion and correct accordion in the same dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
144
|
+
it('When the user attempts the question partially correct such that a dropzone is correctly attempted with both the correct and alternative answer options and points achieved from the alternative accordion is more than the points achieved from correct accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses and proper icon should display beside empty dropzones, incorrect icon should be displayed besides the correct accordion responses, incorrect icon should be displayed for the dropzone containing options of alternative accordion and correct accordion in the same dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
134
145
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
135
146
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0 });
|
136
147
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
137
148
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
138
149
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
139
150
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
151
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
152
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
153
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
154
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
155
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
140
156
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
141
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
142
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
158
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
143
159
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
144
160
|
/*cy.log('When the user has attempted the question with partially correct such that a dropzone is correctly attempted with both the correct and alternative answer options and clicks on \'Check answer\' button, then correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses, incorrect icon should be displayed for the dropzone containing options of alternative accordion and correct accordion in the same dropzone, correct/incorrect answer status message and correct answer section should not be displayed')
|
145
161
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -150,16 +166,19 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
150
166
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
151
167
|
});
|
152
168
|
|
153
|
-
it('When the user attempts the question partially correct such that one dropzone is correctly attempted as per the correct accordion and another dropzone is correctly attempted as per the alternative accordion and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be according to the alternative accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
169
|
+
it('When the user attempts the question partially correct such that one dropzone is correctly attempted as per the correct accordion and another dropzone is correctly attempted as per the alternative accordion and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be according to the alternative accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses and proper icon should display beside empty dropzones, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
154
170
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
155
171
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 2, 'Octopus': 4 });
|
156
172
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(6, 30);
|
157
173
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
158
174
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
159
175
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
176
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
177
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
178
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
160
179
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
161
180
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
162
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
181
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
163
182
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
164
183
|
/*cy.log('When the user has attempted the question partially correct such that one dropzone is correctly attempted as per the correct accordion and another dropzone is correctly attempted as per the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone, correct/incorrect answer status message and correct answer section should not be displayed')
|
165
184
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -170,15 +189,19 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
170
189
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
171
190
|
});
|
172
191
|
|
173
|
-
it('When the user attempts the question partially correct with only common options across both accordions and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
192
|
+
it('When the user attempts the question partially correct with only common options across both accordions and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone 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 dropzones, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
174
193
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
175
194
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Ostrich': 3 });
|
176
195
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
177
196
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
178
197
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
198
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
199
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
200
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
201
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
179
202
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'correct': 3, 'incorrect': 4, 'incorrect': 5 });
|
180
203
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
181
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
204
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
182
205
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
183
206
|
/*cy.log('When the user has attempted the question partially correct with only common options across both accordions and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section should not be displayed')
|
184
207
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -188,7 +211,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
188
211
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
189
212
|
});
|
190
213
|
|
191
|
-
it('When the user attempts the question partially correct such that equal number of dropzones are correct according to correct accordion and alternative accordion mappings and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be according to the alternative accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
214
|
+
it('When the user attempts the question partially correct such that equal number of dropzones are correct according to correct accordion and alternative accordion mappings and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points awarded should be according to the alternative accordion mapping and on switching to \'Grading\' view, correct icon should be displayed besides alternative accordion responses and proper icon should display beside empty dropzones, incorrect icon should be displayed besides correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
192
215
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
193
216
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Ostrich': 3 });
|
194
217
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
@@ -197,9 +220,12 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
197
220
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
198
221
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
199
222
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
223
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
224
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
225
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
200
226
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'correct': 3, 'incorrect': 4, 'incorrect': 5 });
|
201
227
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
202
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
228
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
203
229
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
204
230
|
/*cy.log('When the user has attempted the question partially correct such that equal number of dropzones are correct according to correct accordion and alternative accordion mappings and clicks on \'Check answer\' button, then correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section should not be displayed')
|
205
231
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -212,7 +238,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
212
238
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
213
239
|
});
|
214
240
|
|
215
|
-
it('When the user attempts the question such that more number of dropzones are correct as per the correct accordion mapping than the alternative accordion mapping and points achieved from the correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points achieved should be according to the correct accordion mapping, correct icon should be displayed besides correct accordion responses and on switching to \'Grading\' view,, incorrect icon should be displayed besides the alternative accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
241
|
+
it('When the user attempts the question such that more number of dropzones are correct as per the correct accordion mapping than the alternative accordion mapping and points achieved from the correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points achieved should be according to the correct accordion mapping, correct icon should be displayed besides correct accordion responses and on switching to \'Grading\' view,, incorrect icon should be displayed besides the alternative accordion responses and proper icon should display beside empty dropzones, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
216
242
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
217
243
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Whale': 4, 'Octopus': 5 });
|
218
244
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(12, 30);
|
@@ -223,9 +249,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
223
249
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
224
250
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
225
251
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
|
252
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
226
253
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'incorrect': 3, 'correct': 4, 'incorrect': 5 });
|
227
254
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
228
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
255
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
229
256
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
230
257
|
/*cy.log('When the user has attempted the question such that more number of dropzones are correct as per the correct accordion mapping (3 dropzones- one exclusively correct as per the correct accordion, one correct for both the accordions and one containing correct options from both the accordions) than the alternative accordion mapping (2 dropzones- one correct for both the accordions and one containing correct options from both the accordions) and clicks on \'Check answer\' button, then correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides the alternative accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section should not be displayed')
|
231
258
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -239,7 +266,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
239
266
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
240
267
|
});
|
241
268
|
|
242
|
-
it('When the user attempts the question partially correct such that more number of dropzones are correct according to the correct accordion mapping and points achieved from the correct accordion mapping is equal to the points achieved from alternative accordion mapping, then the points awarded should be according to the alternative accordion mapping, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses and on switching to \'Grading\' view,, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
269
|
+
it('When the user attempts the question partially correct such that more number of dropzones are correct according to the correct accordion mapping and points achieved from the correct accordion mapping is equal to the points achieved from alternative accordion mapping, then the points awarded should be according to the alternative accordion mapping, correct icon should be displayed besides correct accordion responses and proper icon should display beside empty dropzones, incorrect icon should be displayed besides alternative accordion responses and on switching to \'Grading\' view,, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
243
270
|
cy.log('Pre-step: Switching to edit tab and allotting points to correct and alternative accordion such that on attempting the question partially correct, points achieved from the alternative accordion mapping is equal to the correct accordion mapping')
|
244
271
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
245
272
|
dragAndDropIntoCategoriesPage.steps.allotPoints(12);
|
@@ -254,9 +281,11 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
254
281
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
255
282
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
256
283
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(4);
|
284
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
285
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
257
286
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'correct': 3, 'incorrect': 4, 'incorrect': 5 });
|
258
287
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
259
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
288
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
260
289
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
261
290
|
/*cy.log('When the user has attempted the question such that more number of dropzones are correct according to the correct accordion mapping and points achieved from the correct accordion mapping is equal to the points achieved from alternative accordion mapping and clicks on \'Check answer\' button, then correct icon should be displayed besides alternative accordion responses, incorrect icon should be displayed besides the correct accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone. correct/incorrect answer status message and correct answer section should not be displayed')
|
262
291
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -29,18 +29,23 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
29
29
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
30
30
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
31
31
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
32
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
32
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
33
33
|
});
|
34
34
|
|
35
|
-
it('When the user attempts the question incorrectly, 0 points should be awarded and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
35
|
+
it('When the user attempts the question incorrectly, 0 points should be awarded and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones and proper icon should display beside empty dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
36
36
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
37
37
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 5 });
|
38
38
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
39
39
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
40
40
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
41
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(0);
|
42
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
43
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
44
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
45
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
41
46
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
42
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
43
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
48
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
44
49
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
45
50
|
/*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, incorrect icons should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
|
46
51
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -50,7 +55,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
50
55
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
51
56
|
});
|
52
57
|
|
53
|
-
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options and some cells empty, the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
58
|
+
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options and some cells empty, the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones and proper icon should display beside empty dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
54
59
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
55
60
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Flying squirrel': 1, 'Ostrich': 3 });
|
56
61
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
@@ -59,9 +64,12 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
59
64
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
60
65
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
61
66
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
67
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
68
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
69
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
62
70
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
63
71
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
64
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
72
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
65
73
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
66
74
|
/*cy.log('When the user has attempted the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options and some cells empty and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed')
|
67
75
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -74,7 +82,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
74
82
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
75
83
|
});
|
76
84
|
|
77
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
85
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones and proper icon should display beside empty dropzones, correct/incorrect answer status message should not be displayed and correct answer section should be displayed with correct answers and respective dropzone numeration', () => {
|
78
86
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
79
87
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
80
88
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(25, 30);
|
@@ -85,9 +93,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
85
93
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
86
94
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
87
95
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
96
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
88
97
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
89
98
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
90
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
99
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
91
100
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
92
101
|
/*cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but one cell incomplete and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed')
|
93
102
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -102,7 +111,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
102
111
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
103
112
|
});
|
104
113
|
|
105
|
-
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message and correct answer section should not be displayed', () => {
|
114
|
+
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, the points awarded should be of the total points obtained by each correct dropzone and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses and proper icon should display beside empty responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message and correct answer section should not be displayed', () => {
|
106
115
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
107
116
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4, 'Peacock': 4 });
|
108
117
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(25, 30);
|
@@ -115,9 +124,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
115
124
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
116
125
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
117
126
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(7);
|
127
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
118
128
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
119
129
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
120
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat', 'Flying squirrel'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
121
131
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
122
132
|
/*cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer and clicks on \'Check answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer responses, incorrect icons should be displayed for incorrect dropzones, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed')
|
123
133
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -134,7 +144,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
134
144
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
135
145
|
});
|
136
146
|
|
137
|
-
it('When the user attempts the question correctly in the order same as set in the specify correct answer section, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
147
|
+
it('When the user attempts the question correctly in the order same as set in the specify correct answer section, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty responses, correct icons should be displayed for correct dropzones, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
138
148
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
139
149
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
140
150
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -145,6 +155,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
145
155
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
146
156
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
147
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
158
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
148
159
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
149
160
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
161
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -162,7 +173,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
162
173
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
163
174
|
});
|
164
175
|
|
165
|
-
it('When the user attempts the question correctly in a random order, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct icons should be displayed for correct dropzones and correct answer section should not be displayed', () => {
|
176
|
+
it('When the user attempts the question correctly in a random order, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses and proper icon should display beside empty responses, correct icons should be displayed for correct dropzones and correct answer section should not be displayed', () => {
|
166
177
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
167
178
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0, 'Parrot': 1, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
168
179
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -173,6 +184,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone scoring
|
|
173
184
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
174
185
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
175
186
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
187
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
176
188
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
177
189
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
178
190
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|