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
@@ -32,10 +32,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
32
32
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
33
33
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
34
34
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
35
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
35
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
36
36
|
});
|
37
37
|
|
38
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed 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', () => {
|
38
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses and proper icon should display beside empty container, 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
39
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
40
40
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
41
41
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -46,6 +46,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
46
46
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
49
50
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
50
51
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
51
52
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -63,7 +64,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
63
64
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
64
65
|
});
|
65
66
|
|
66
|
-
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', () => {
|
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 and proper icon should display beside empty container, 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', () => {
|
67
68
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
68
69
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
69
70
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -74,6 +75,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
74
75
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
75
76
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
76
77
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
78
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
77
79
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
78
80
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
79
81
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -91,15 +93,19 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
91
93
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
92
94
|
});
|
93
95
|
|
94
|
-
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 correct accordion along with dropzone numeration should be displayed', () => {
|
96
|
+
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 and proper icon should display beside empty dropzones, 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', () => {
|
95
97
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
96
98
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Parrot': 1 });
|
97
99
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
98
100
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
99
101
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
100
102
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
103
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
104
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
105
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
106
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
101
107
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
102
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
108
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
103
109
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
104
110
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
105
111
|
/*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')
|
@@ -111,15 +117,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
111
117
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
112
118
|
});
|
113
119
|
|
114
|
-
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 correct accordion along with dropzone numeration should be displayed', () => {
|
120
|
+
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 and proper icon should display beside empty dropzones, 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', () => {
|
115
121
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
116
122
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
|
117
123
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
118
124
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
119
125
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
126
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
127
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
128
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
129
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(5);
|
120
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
121
132
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
122
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
133
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
123
134
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
124
135
|
/*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')
|
125
136
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -129,16 +140,21 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
129
140
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
130
141
|
});
|
131
142
|
|
132
|
-
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 correct accordion is equal to the points achieved from alternative accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides the alternative 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 correct accordion along with dropzone numeration should be displayed', () => {
|
143
|
+
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 correct accordion is equal to the points achieved from alternative accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides the alternative accordion responses, incorrect icon should be displayed for the dropzone containing options of alternative accordion and correct accordion in the same dropzone and proper icon should display beside empty dropzone. 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', () => {
|
133
144
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
134
145
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0 });
|
135
146
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
136
147
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
137
148
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
138
149
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
150
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
151
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
152
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
153
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
154
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
139
155
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
140
156
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
141
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
157
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
142
158
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
143
159
|
/*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 correct accordion responses, incorrect icon should be displayed besides the alternative 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')
|
144
160
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -149,16 +165,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
149
165
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
150
166
|
});
|
151
167
|
|
152
|
-
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 correct accordion mapping is equal to the points achieved from alternative 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 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 correct accordion along with dropzone numeration should be displayed', () => {
|
168
|
+
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 correct accordion mapping is equal to the points achieved from alternative 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 the alternative accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone and proper icon should display beside empty dropzone. 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', () => {
|
153
169
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
154
170
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 2, 'Octopus': 4 });
|
155
171
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
156
172
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
157
173
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
158
174
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
175
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(0);
|
176
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
177
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
178
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
159
179
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
160
180
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
161
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
181
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
162
182
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
163
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 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')
|
164
184
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -169,15 +189,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
169
189
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
170
190
|
});
|
171
191
|
|
172
|
-
it('When the user attempts the question partially correct with only common options across both accordions and points achieved from the correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone as per the correct 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 correct 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 correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone as per the correct 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 and proper icon should display beside empty dropzone. 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', () => {
|
173
193
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
174
194
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Ostrich': 3 });
|
175
195
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
176
196
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
177
197
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
198
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(0);
|
199
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
200
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
201
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
202
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
178
203
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
179
204
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
180
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
205
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
181
206
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
182
207
|
/*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')
|
183
208
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -187,7 +212,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
187
212
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
188
213
|
});
|
189
214
|
|
190
|
-
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 correct accordion mapping is equal to the points achieved from alternative accordion mapping, then the points achieved 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, 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 correct accordion along with dropzone numeration should be displayed', () => {
|
215
|
+
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 correct accordion mapping is equal to the points achieved from alternative accordion mapping, then the points achieved 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, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone and proper icon should display beside empty dropzones. correct/incorrect answer status message and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
191
216
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
192
217
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Ostrich': 3 });
|
193
218
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
@@ -196,9 +221,12 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
196
221
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
197
222
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
198
223
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
224
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
225
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
226
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
199
227
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'correct': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
200
228
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
201
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
229
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
202
230
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
203
231
|
/*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 correct accordion responses, incorrect icon should be displayed besides 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')
|
204
232
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -212,7 +240,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
212
240
|
});
|
213
241
|
|
214
242
|
//Failing due to https://redmine.zeuslearning.com/issues/556773
|
215
|
-
it('When the user attempts the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct accordion mapping and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points achieved 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 alternate accordion along with dropzone numeration should be displayed', () => {
|
243
|
+
it('When the user attempts the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct accordion mapping and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points achieved 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 and proper icon should display beside empty dropzone. correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the alternate accordion along with dropzone numeration should be displayed', () => {
|
216
244
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
217
245
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 4, 'Octopus': 5 });
|
218
246
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(20, 30);
|
@@ -222,9 +250,11 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
222
250
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
223
251
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
224
252
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
253
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
254
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
225
255
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'correct': 4, 'correct': 5 });
|
226
256
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
227
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
257
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus'], []], ['1', '2', '4', '5', '6', '3']);
|
228
258
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
229
259
|
/*cy.log('When the user has attempted the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct 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')
|
230
260
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -32,10 +32,10 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
32
32
|
dragAndDropIntoCategoriesPage.steps.verifyDropzoneCellNumeration(['1', '2', '3', '4', '5', '6']);
|
33
33
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
34
34
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 30);
|
35
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
35
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
36
36
|
});
|
37
37
|
|
38
|
-
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed 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', () => {
|
38
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct icons should be displayed for all correct dropzones proper icon should display beside empty dropzone, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
39
39
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
40
40
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
41
41
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
@@ -46,6 +46,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
46
46
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
47
47
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
49
50
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
50
51
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
51
52
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -63,7 +64,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
63
64
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
64
65
|
});
|
65
66
|
|
66
|
-
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 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', () => {
|
67
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (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 proper icon should display beside empty dropzone, correct/incorrect answer status message should not be displayed and correct answer section should not be displayed', () => {
|
67
68
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
68
69
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5 });
|
69
70
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 30);
|
@@ -74,6 +75,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
74
75
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
75
76
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
76
77
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
78
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
77
79
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'correct': 1, 'correct': 2, 'correct': 3, 'correct': 4, 'correct': 5 });
|
78
80
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
79
81
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -91,15 +93,19 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
91
93
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
92
94
|
});
|
93
95
|
|
94
|
-
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 correct accordion along with dropzone numeration should be displayed', () => {
|
96
|
+
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 and proper icon should display beside empty dropzone, 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', () => {
|
95
97
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
96
98
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Parrot': 1 });
|
97
99
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
98
100
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
99
101
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
100
102
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
103
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
104
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
105
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
106
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
101
107
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
102
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
108
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
103
109
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
104
110
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
105
111
|
/*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')
|
@@ -111,16 +117,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
111
117
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
112
118
|
});
|
113
119
|
|
114
|
-
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 correct accordion along with dropzone numeration should be displayed', () => {
|
120
|
+
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 and proper icon should display beside empty dropzone, 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', () => {
|
115
121
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
116
122
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Octopus': 5 });
|
117
123
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(9, 30);
|
118
124
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
119
125
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
120
126
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
127
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
128
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
129
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
121
131
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
122
132
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
123
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
133
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
124
134
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
125
135
|
/*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
136
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -131,16 +141,21 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
131
141
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
132
142
|
});
|
133
143
|
|
134
|
-
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 correct accordion is more than the points achieved from alternative accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides the alternative 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 correct 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 correct accordion is more than the points achieved from alternative accordion mapping, then the user should be awarded points as per the total of correct dropzones as per the correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides the alternative accordion responses, incorrect icon should be displayed for the dropzone containing options of alternative accordion and correct accordion in the same dropzone and proper icon should display beside empty dropzone. 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', () => {
|
135
145
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
136
146
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Bat': 0 });
|
137
147
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
138
148
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
139
149
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
140
150
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
151
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
152
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
153
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
154
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
155
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
141
156
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
|
142
157
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
143
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
158
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
144
159
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
145
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 correct accordion responses, incorrect icon should be displayed besides the alternative 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')
|
146
161
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -151,16 +166,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
151
166
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
152
167
|
});
|
153
168
|
|
154
|
-
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 correct accordion mapping is more than the points achieved from alternative 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 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 correct 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 correct accordion mapping is more than the points achieved from alternative 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 the alternative accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone and proper icon should display beside empty dropzone. 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', () => {
|
155
170
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
156
171
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Platypus': 2, 'Octopus': 5 });
|
157
172
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(5, 30);
|
158
173
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
159
174
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
160
175
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
176
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(0);
|
177
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
178
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
179
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
161
180
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
|
162
181
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
163
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
182
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
164
183
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
165
184
|
/*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 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')
|
166
185
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -171,15 +190,20 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
171
190
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
172
191
|
});
|
173
192
|
|
174
|
-
it('When the user attempts the question partially correct with only common options across both accordions and points achieved from the correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone as per the correct 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 correct accordion along with dropzone numeration should be displayed', () => {
|
193
|
+
it('When the user attempts the question partially correct with only common options across both accordions and points achieved from the correct accordion mapping is more than the points achieved from alternative accordion mapping, then the points awarded should be of the total points obtained by each correct dropzone as per the correct 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 and proper icon should display beside empty dropzone. 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', () => {
|
175
194
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
176
195
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Ostrich': 3 });
|
177
196
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(10, 30);
|
178
197
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
179
198
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
199
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(0);
|
200
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(1);
|
201
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
202
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
203
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
180
204
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
181
205
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
182
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
206
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
183
207
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
184
208
|
/*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')
|
185
209
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -189,7 +213,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
189
213
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
190
214
|
});
|
191
215
|
|
192
|
-
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 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 and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides 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 with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
216
|
+
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 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 and on switching to \'Grading\' view, correct icon should be displayed besides correct accordion responses, incorrect icon should be displayed besides alternative accordion responses, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone and proper icon should display beside empty dropzone. correct/incorrect answer status message and correct answer section with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
193
217
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
194
218
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Ostrich': 3 });
|
195
219
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(15, 30);
|
@@ -198,9 +222,12 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
198
222
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
199
223
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
200
224
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
225
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
226
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(4);
|
227
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
201
228
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'correct': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
202
229
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
203
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
230
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
204
231
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
232
|
/*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 correct accordion responses, incorrect icon should be displayed besides 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')
|
206
233
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -214,7 +241,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
214
241
|
});
|
215
242
|
|
216
243
|
//Failing due to https://redmine.zeuslearning.com/issues/556773
|
217
|
-
it('When the user attempts the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct accordion mapping and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points achieved 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 correct accordion along with dropzone numeration should be displayed', () => {
|
244
|
+
it('When the user attempts the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct accordion mapping and points achieved from the alternative accordion mapping is more than the points achieved from correct accordion mapping, then the points achieved 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 and proper icon should display beside empty dropzone. 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', () => {
|
218
245
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
219
246
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 4, 'Octopus': 5 });
|
220
247
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(12, 30);
|
@@ -224,9 +251,11 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
224
251
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
225
252
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
226
253
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
254
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(2);
|
255
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(3);
|
227
256
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'correct': 4, 'correct': 5 });
|
228
257
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
229
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
258
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
230
259
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
231
260
|
/*cy.log('When the user has attempted the question such that more number of dropzones are correct as per the alternative accordion mapping than the correct accordion mapping and points achieved from the alternative accordion mapping is more than the points achieved from correct 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')
|
232
261
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -240,7 +269,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
240
269
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
241
270
|
});
|
242
271
|
|
243
|
-
it('When the user attempts the question partially correct such that more number of dropzones are correct according to the alternative accordion mapping and points achieved from the correct accordion mapping is equal to the points achieved from alternative accordion mapping then the points achieved 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, 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 correct accordion along with dropzone numeration should be displayed', () => {
|
272
|
+
it('When the user attempts the question partially correct such that more number of dropzones are correct according to the alternative accordion mapping and points achieved from the correct accordion mapping is equal to the points achieved from alternative accordion mapping then the points achieved 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, correct icon should be displayed for correct dropzone, incorrect icon should be displayed for incorrect dropzone and proper icon should display beside empty dropzone. 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', () => {
|
244
273
|
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')
|
245
274
|
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
246
275
|
dragAndDropIntoCategoriesPage.steps.expandCorrectAnswerAccordion();
|
@@ -257,9 +286,11 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
|
|
257
286
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
258
287
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
259
288
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(4);
|
289
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectIconForEmptyContainer(2);
|
290
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectIconForEmptyContainer(5);
|
260
291
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'incorrect': 0, 'incorrect': 1, 'incorrect': 2, 'correct': 3, 'incorrect': 4, 'correct': 5 });
|
261
292
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
262
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
293
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
263
294
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
264
295
|
/*cy.log('When the user has attempted the question such that more number of dropzones are correct according to the alternative 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 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')
|
265
296
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
@@ -595,8 +595,6 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
595
595
|
});
|
596
596
|
|
597
597
|
it('When the user adds upto 10 color blocks, then the add[+] color block should get disabled when 10 blocks have been added.', () => {
|
598
|
-
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
599
|
-
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
600
598
|
for (let i = 0; i < 6; i++) {
|
601
599
|
drawingResponsePage.steps.clickOnAddColorBlockInDefaultFontStrokeColorBlockSection();
|
602
600
|
drawingResponsePage.steps.clickOnEditTabColorPaletteOkButton();
|
@@ -5,6 +5,9 @@ let gradingAndCorrectAnsView = ['Grading view', 'Correct answer view']
|
|
5
5
|
const views = utilities.getViews(gradingAndCorrectAnsView);
|
6
6
|
let itemReferenceID = "";
|
7
7
|
|
8
|
+
//TODO- Update https://redmine.zeuslearning.com/issues/563177
|
9
|
+
const defaultToolbarAndControlOptions = ['Select', 'Scribble', 'Line', 'Curved line', 'Capture image', 'Insert image', 'Text', 'Point eraser', 'bring to front', 'send to back', 'Duplicate', 'Undo', 'Redo', 'Full screen', 'Clear all'];
|
10
|
+
|
8
11
|
describe('Create item page - Drawing response: Grading view, Correct answer view contents', () => {
|
9
12
|
before(() => {
|
10
13
|
cy.loginAs('admin');
|
@@ -166,7 +166,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
166
166
|
});
|
167
167
|
|
168
168
|
it('When the user tries to upload an image an image more than 5mb then an error should be displayed \'The following files were rejected *filename* is too large. The maximum file size is 5MB\'', () => {
|
169
|
-
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[0].displayName);
|
170
169
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
171
170
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
172
171
|
drawingResponsePage.steps.verifyImageContainerErrorMessage('20mbFile.png');
|
@@ -861,8 +860,6 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
861
860
|
|
862
861
|
it(`When \'Fill color picker\' additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].secondaryToolbarOptions[0]} secondary toolbar option popup should display color picker and its related components`, () => {
|
863
862
|
drawingResponsePage.steps.switchToEditTab();
|
864
|
-
//Need to remove this once https://redmine.zeuslearning.com/issues/577356 is resolved
|
865
|
-
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
866
863
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[6]}`]);
|
867
864
|
drawingResponsePage.steps.switchToPreviewTab();
|
868
865
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[9].displayName);
|
@@ -384,6 +384,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
384
384
|
});
|
385
385
|
|
386
386
|
it('The category with only category name should be displayed in the preview tab equation editor', () => {
|
387
|
+
equationEditorFlyout.steps.clickOnEquationEditorButtonNext();
|
387
388
|
equationEditorFlyout.steps.verifyCategoryInEquationEditorPreviewTab('Custom category with name.', '');
|
388
389
|
});
|
389
390
|
|
@@ -402,7 +403,7 @@ describe('Create question page - Essay Response: Create custom category', () =>
|
|
402
403
|
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), '°:δ~π');
|
403
404
|
});
|
404
405
|
|
405
|
-
essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('
|
406
|
+
essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('°:δ∼π', '1');
|
406
407
|
|
407
408
|
it('When user deselects any added custom category from the Equation editor section, it should not be displayed in the Equation editor flyout', () => {
|
408
409
|
cy.log('Switch to edit tab')
|
@@ -29,14 +29,14 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
29
29
|
utilities.verifyElementVisibilityState(essayResponsePage.previewTabToolbarOption('Equation Editor'), 'visible');
|
30
30
|
});
|
31
31
|
|
32
|
-
it('When user clicks on \'Equation Editor\' icon in preview tab toolbar, then Equation Editor flyout should appear
|
32
|
+
it('When user clicks on \'Equation Editor\' icon in preview tab toolbar, then Equation Editor flyout should appear', () => {
|
33
33
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Equation Editor');
|
34
34
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'visible');
|
35
35
|
});
|
36
36
|
|
37
|
-
it('
|
37
|
+
it('Done button should be displayed at the bottom of the flyout', () => {
|
38
38
|
utilities.verifyElementVisibilityState(equationEditorFlyout.buttonOk(), 'visible');
|
39
|
-
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), '
|
39
|
+
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), 'Done');
|
40
40
|
});
|
41
41
|
|
42
42
|
it('Equation Editor input field should be displayed and when user focuses in the input field should have cursor', () => {
|
@@ -396,7 +396,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
396
396
|
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
397
397
|
cy.log('Adding this to focus out of input field')
|
398
398
|
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
399
|
-
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
399
|
+
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
400
400
|
});
|
401
401
|
|
402
402
|
it('When user clicks on Cancel button the equation should be displayed in the preview input field without any changes', () => {
|