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