itemengine-cypress-automation 1.0.283-updatedPackageFile-3c0db7c.0 → 1.0.284-IEI-4866-bc2c255.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/cypress/e2e/Gzip/gzip.js +7 -7
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +7 -6
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
  8. package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +214 -0
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
  28. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
  29. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
  30. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  31. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  32. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  33. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +239 -0
  34. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  35. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  36. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  37. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  38. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  39. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  40. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  41. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  42. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  43. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
  44. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  45. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
  46. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  47. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +212 -0
  48. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
  49. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  50. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  51. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
  52. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
  53. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
  54. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  55. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  56. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
  58. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
  59. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
  60. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
  61. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
  62. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
  63. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
  64. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
  65. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
  66. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
  67. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
  68. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
  69. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
  70. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
  71. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
  72. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
  73. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  74. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
  75. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +3 -3
  76. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
  77. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
  78. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
  79. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
  80. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  81. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
  82. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
  83. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
  84. package/cypress/pages/audioPlayerPage.js +4 -4
  85. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
  86. package/cypress/pages/components/equationEditorFlyout.js +1 -1
  87. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
  88. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
  89. package/cypress/pages/components/gridQuestionCommonComponent.js +41 -1
  90. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  91. package/cypress/pages/createItemPage.js +38 -1
  92. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  93. package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
  94. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
  95. package/cypress/pages/listOrderingPage.js +1 -1
  96. package/cypress/pages/matchingPage.js +34 -7
  97. package/cypress/pages/multipleSelectionPage.js +17 -2
  98. package/cypress/pages/numberLineLabelPage.js +3 -3
  99. package/cypress/pages/readingRulerPage.js +5 -3
  100. package/cypress/pages/singleSelectionPage.js +5 -2
  101. package/cypress/pages/textEntryMathPage.js +19 -5
  102. package/cypress/pages/textSelectionPage.js +1 -1
  103. package/package.json +1 -1
@@ -83,7 +83,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
83
83
  matchingPage.steps.switchToGradingView();
84
84
  matchingPage.steps.verifyCorrectOptionIcon(0);
85
85
  matchingPage.steps.verifyCorrectOptionIcon(1);
86
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
86
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
87
87
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
88
88
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
89
89
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -91,7 +91,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
91
91
  matchingPage.steps.checkAnswer();
92
92
  matchingPage.steps.verifyCorrectOptionIcon(0);
93
93
  matchingPage.steps.verifyCorrectOptionIcon(1);
94
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
94
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
95
95
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
96
96
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
97
97
  });
@@ -103,7 +103,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
103
103
  matchingPage.steps.switchToGradingView();
104
104
  matchingPage.steps.verifyCorrectOptionIcon(0);
105
105
  matchingPage.steps.verifyCorrectOptionIcon(1);
106
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
106
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
107
107
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
108
108
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
109
109
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -111,7 +111,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
111
111
  matchingPage.steps.checkAnswer();
112
112
  matchingPage.steps.verifyCorrectOptionIcon(0);
113
113
  matchingPage.steps.verifyCorrectOptionIcon(1);
114
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
114
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
115
115
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
116
116
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
117
117
  });
@@ -122,7 +122,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
122
122
  matchingPage.steps.verifyPreviewScore(10, 15);
123
123
  matchingPage.steps.switchToGradingView();
124
124
  matchingPage.steps.verifyCorrectOptionIcon(0);
125
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
125
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
126
126
  matchingPage.steps.verifyCorrectOptionIcon(2);
127
127
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
128
128
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -130,7 +130,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
130
130
  /*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message should not be displayed and correct answer section should not be displayed')
131
131
  matchingPage.steps.checkAnswer();
132
132
  matchingPage.steps.verifyCorrectOptionIcon(0);
133
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
133
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
134
134
  matchingPage.steps.verifyCorrectOptionIcon(2);
135
135
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
136
136
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -161,16 +161,16 @@ describe('Create item page - Matching: Partial equal weights with alternative an
161
161
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Cat', dropzoneIndex: 2 }]);
162
162
  matchingPage.steps.verifyPreviewScore(5, 15);
163
163
  matchingPage.steps.switchToGradingView();
164
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(0);
165
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
164
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
165
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
166
166
  matchingPage.steps.verifyCorrectOptionIcon(2);
167
167
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
168
168
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
169
169
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
170
170
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
171
171
  matchingPage.steps.checkAnswer();
172
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(0);
173
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
172
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
173
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
174
174
  matchingPage.steps.verifyCorrectOptionIcon(2);
175
175
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
176
176
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -182,16 +182,16 @@ describe('Create item page - Matching: Partial equal weights with alternative an
182
182
  matchingPage.steps.verifyPreviewScore(0, 15);
183
183
  matchingPage.steps.switchToGradingView();
184
184
  matchingPage.steps.verifyIncorrectOptionIcon(0);
185
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
186
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
185
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
186
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
187
187
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
188
188
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
189
189
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
190
190
  /*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, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
191
191
  matchingPage.steps.checkAnswer();
192
192
  matchingPage.steps.verifyIncorrectOptionIcon(0);
193
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
194
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
193
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
194
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
195
195
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
196
196
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
197
197
  });
@@ -83,7 +83,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
83
83
  matchingPage.steps.switchToGradingView();
84
84
  matchingPage.steps.verifyCorrectOptionIcon(0);
85
85
  matchingPage.steps.verifyCorrectOptionIcon(1);
86
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
86
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
87
87
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
88
88
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
89
89
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -91,7 +91,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
91
91
  matchingPage.steps.checkAnswer();
92
92
  matchingPage.steps.verifyCorrectOptionIcon(0);
93
93
  matchingPage.steps.verifyCorrectOptionIcon(1);
94
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
94
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
95
95
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
96
96
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
97
97
  });
@@ -103,7 +103,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
103
103
  matchingPage.steps.switchToGradingView();
104
104
  matchingPage.steps.verifyCorrectOptionIcon(0);
105
105
  matchingPage.steps.verifyCorrectOptionIcon(1);
106
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
106
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
107
107
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
108
108
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
109
109
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -111,7 +111,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
111
111
  matchingPage.steps.checkAnswer();
112
112
  matchingPage.steps.verifyCorrectOptionIcon(0);
113
113
  matchingPage.steps.verifyCorrectOptionIcon(1);
114
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
114
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
115
115
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
116
116
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
117
117
  });
@@ -122,7 +122,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
122
122
  matchingPage.steps.verifyPreviewScore(6, 15);
123
123
  matchingPage.steps.switchToGradingView();
124
124
  matchingPage.steps.verifyCorrectOptionIcon(0);
125
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
125
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
126
126
  matchingPage.steps.verifyCorrectOptionIcon(2);
127
127
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
128
128
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -130,7 +130,7 @@ describe('Create item page - Matching: Partial equal weights with alternative an
130
130
  /*cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message should not be displayed and correct answer section should not be displayed')
131
131
  matchingPage.steps.checkAnswer();
132
132
  matchingPage.steps.verifyCorrectOptionIcon(0);
133
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
133
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
134
134
  matchingPage.steps.verifyCorrectOptionIcon(2);
135
135
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
136
136
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -161,16 +161,16 @@ describe('Create item page - Matching: Partial equal weights with alternative an
161
161
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Cat', dropzoneIndex: 2 }]);
162
162
  matchingPage.steps.verifyPreviewScore(5, 15);
163
163
  matchingPage.steps.switchToGradingView();
164
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(0);
165
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
164
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
165
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
166
166
  matchingPage.steps.verifyCorrectOptionIcon(2);
167
167
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
168
168
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
169
169
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
170
170
  /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
171
171
  matchingPage.steps.checkAnswer();
172
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(0);
173
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
172
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(0);
173
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
174
174
  matchingPage.steps.verifyCorrectOptionIcon(2);
175
175
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
176
176
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -182,16 +182,16 @@ describe('Create item page - Matching: Partial equal weights with alternative an
182
182
  matchingPage.steps.verifyPreviewScore(0, 15);
183
183
  matchingPage.steps.switchToGradingView();
184
184
  matchingPage.steps.verifyIncorrectOptionIcon(0);
185
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
186
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
185
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
186
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
187
187
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
188
188
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
189
189
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
190
190
  /*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, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
191
191
  matchingPage.steps.checkAnswer();
192
192
  matchingPage.steps.verifyIncorrectOptionIcon(0);
193
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(1);
194
- matchingPage.steps.verifyCorrectIncorrectIconNotExist(2);
193
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(1);
194
+ matchingPage.steps.verifyIncorrectOptionIconForEmptyOption(2);
195
195
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
196
196
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
197
197
  });
@@ -56,7 +56,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
56
56
  'font-size': css.fontSize.normal,
57
57
  'font-weight': css.fontWeight.semibold
58
58
  })
59
- utilities.getNthElement( matchingPage.promptInputFieldWrapper(),0)
59
+ utilities.getNthElement(matchingPage.promptInputFieldWrapper(), 0)
60
60
  .within(() => {
61
61
  utilities.verifyCSS(matchingPage.dragHandleButton(), {
62
62
  'color': css.color.secondaryBtnActive,
@@ -76,7 +76,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
76
76
  'font-size': css.fontSize.normal,
77
77
  'font-weight': css.fontWeight.semibold
78
78
  });
79
- utilities.verifyCSS(utilities.getNthElement( matchingPage.promptInputField(),0), {
79
+ utilities.verifyCSS(utilities.getNthElement(matchingPage.promptInputField(), 0), {
80
80
  'color': css.color.text,
81
81
  'font-size': css.fontSize.default,
82
82
  'font-weight': css.fontWeight.regular
@@ -163,6 +163,7 @@ describe('Create Item page - Matching : Question Instructions and prompt section
163
163
  cy.log('Navigating to Matching question type');
164
164
  matchingPage.steps.navigateToCreateQuestion('matching');
165
165
  cy.barsPreLoaderWait();
166
+ matchingPage.steps.addTextInQuestionInstructionsInputField('Fill the categories with the right answer.');
166
167
  });
167
168
 
168
169
  it('When user clicks on the \'Delete\' question prompt button then deleted prompt should not be displayed in the \'Specify correct answer\' section table', () => {
@@ -70,7 +70,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
70
70
  matchingPage.steps.switchToGradingView();
71
71
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
72
72
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
73
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
73
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
74
74
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
75
75
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
76
76
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -83,7 +83,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
83
83
  matchingPage.steps.switchToGradingView();
84
84
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
85
85
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
86
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
86
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
87
87
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
88
88
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
89
89
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -94,7 +94,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
94
94
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
95
95
  matchingPage.steps.verifyPreviewScore(0, 20);
96
96
  matchingPage.steps.switchToGradingView();
97
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
97
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
98
98
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
99
99
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
100
100
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -120,8 +120,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
120
120
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
121
121
  matchingPage.steps.verifyPreviewScore(0, 20);
122
122
  matchingPage.steps.switchToGradingView();
123
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
124
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
123
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
124
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
125
125
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
126
126
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
127
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
@@ -133,8 +133,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
133
133
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 2, dropdownOption: optionsArray[4] }]);
134
134
  matchingPage.steps.verifyPreviewScore(0, 20);
135
135
  matchingPage.steps.switchToGradingView();
136
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
137
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
136
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
137
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
138
138
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
139
139
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
140
140
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
@@ -70,7 +70,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
70
70
  matchingPage.steps.switchToGradingView();
71
71
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
72
72
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
73
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
73
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
74
74
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
75
75
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
76
76
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -83,7 +83,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
83
83
  matchingPage.steps.switchToGradingView();
84
84
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
85
85
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
86
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
86
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
87
87
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
88
88
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
89
89
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -95,7 +95,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
95
95
  matchingPage.steps.verifyPreviewScore(0, 20);
96
96
  matchingPage.steps.switchToGradingView();
97
97
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
98
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
98
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
99
99
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
100
100
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
101
101
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -120,8 +120,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
120
120
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
121
121
  matchingPage.steps.verifyPreviewScore(0, 20);
122
122
  matchingPage.steps.switchToGradingView();
123
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
124
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
123
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
124
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
125
125
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
126
126
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
127
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -134,8 +134,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
134
134
  matchingPage.steps.verifyPreviewScore(0, 20);
135
135
  matchingPage.steps.switchToGradingView();
136
136
  matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
137
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
138
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
137
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
138
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
139
139
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
140
140
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
141
141
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -122,7 +122,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
122
122
  matchingPage.steps.switchToGradingView();
123
123
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
124
124
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
125
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
125
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
126
126
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
127
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
128
128
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -135,7 +135,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
135
135
  matchingPage.steps.switchToGradingView();
136
136
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
137
137
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
138
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
138
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
139
139
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
140
140
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
141
141
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -147,7 +147,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
147
147
  matchingPage.steps.verifyPreviewScore(0, 20);
148
148
  matchingPage.steps.switchToGradingView();
149
149
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
150
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
150
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
151
151
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
152
152
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
153
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -172,8 +172,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
172
172
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
173
173
  matchingPage.steps.verifyPreviewScore(0, 20);
174
174
  matchingPage.steps.switchToGradingView();
175
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
176
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
175
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
176
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
177
177
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
178
178
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
179
179
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -186,8 +186,8 @@ describe('Create item page - Matching: All or nothing with alternative answers',
186
186
  matchingPage.steps.verifyPreviewScore(0, 20);
187
187
  matchingPage.steps.switchToGradingView();
188
188
  matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
189
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
190
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
189
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
190
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
191
191
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
192
192
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
193
193
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -0,0 +1,212 @@
1
+ import { dialogBoxBase, matchingPage, studentViewPage, itemPreviewPage, gradingViewPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ import utilities from "../../../../support/helpers/utilities";
4
+ const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
5
+ const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
6
+
7
+ describe('Create item page - Matching-Dropdown: Scoring for blank responses', () => {
8
+ before(() => {
9
+ cy.loginAs('admin');
10
+ });
11
+
12
+ describe(`Auto scored - All or nothing scoring`, () => {
13
+ abortEarlySetup();
14
+ before(() => {
15
+ matchingPage.steps.navigateToCreateQuestion('matching');
16
+ cy.barsPreLoaderWait();
17
+ matchingPage.steps.addTextInQuestionInstructionsInputField('Match the following');
18
+ matchingPage.steps.selectOptionLayoutToggleButton('Dropdown menu');
19
+ matchingPage.steps.selectAutoScoredScoringSubtype('All or nothing')
20
+ matchingPage.steps.allotPoints(10);
21
+ matchingPage.steps.addMultipleOptionFields(3);
22
+ matchingPage.steps.enterTextInPromptInputField(promptTextArray);
23
+ matchingPage.steps.enterTextInOptionInputField(optionsArray);
24
+ matchingPage.steps.switchToPreviewTab();
25
+ });
26
+
27
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
28
+ matchingPage.steps.switchToGradingView();
29
+ matchingPage.steps.verifyPreviewScore(0, 10);
30
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
31
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
32
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
33
+ matchingPage.steps.verifyDropdownNumeration(0);
34
+ matchingPage.steps.verifyDropdownNumeration(1);
35
+ matchingPage.steps.verifyDropdownNumeration(2);
36
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
37
+ matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
38
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
39
+ });
40
+
41
+ it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, no points should be allocated and correct answer section should be displayed', () => {
42
+ matchingPage.steps.resetQuestionPreview();
43
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }]);
44
+ matchingPage.steps.switchToGradingView();
45
+ matchingPage.steps.verifyPreviewScore(0, 10);
46
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
47
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
48
+ matchingPage.steps.verifyCorrectOptionIconDropdown(2);
49
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
50
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
51
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
52
+ });
53
+
54
+ it('When the user sets an partial blank answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
55
+ matchingPage.steps.switchToEditTab();
56
+ matchingPage.steps.selectResponseFromDropdownInSpecifyCorrectAnswerSection([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
57
+ matchingPage.steps.switchToPreviewTab();
58
+ matchingPage.steps.switchToGradingView();
59
+ matchingPage.steps.verifyPreviewScore(0, 10);
60
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
61
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
62
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
63
+ matchingPage.steps.verifyDropdownNumeration(0);
64
+ matchingPage.steps.verifyDropdownNumeration(1);
65
+ matchingPage.steps.verifyDropdownNumeration(2);
66
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
67
+ matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
68
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
69
+ });
70
+
71
+ it('When the user has set an partial blank answer in the \'Specify correct answer\' section and enters partial incorrect responses in the preview tab then incorrect icons should be displayed beside the incorrect responses, correct icon should be displayed for blank response, no points should be allocated and correct answer section should be displayed', () => {
72
+ matchingPage.steps.resetQuestionPreview();
73
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[2] }]);
74
+ matchingPage.steps.switchToGradingView();
75
+ matchingPage.steps.verifyPreviewScore(0, 10);
76
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
77
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
78
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
79
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
80
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
81
+ });
82
+
83
+ it('When the user has set an partial blank answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses, correct icon should be displayed for blank response, no points should be allocated and correct answer section should be displayed', () => {
84
+ matchingPage.steps.resetQuestionPreview();
85
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }]);
86
+ matchingPage.steps.switchToGradingView();
87
+ matchingPage.steps.verifyPreviewScore(0, 10);
88
+ matchingPage.steps.verifyCorrectOptionIconDropdown(0);
89
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
90
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
91
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
92
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
93
+ });
94
+
95
+ 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, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
96
+ matchingPage.steps.resetQuestionPreview();
97
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[1] }]);
98
+ matchingPage.steps.verifyPreviewScore(0, 10);
99
+ matchingPage.steps.switchToGradingView();
100
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
101
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
102
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
103
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel("incorrect");
104
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
105
+ });
106
+
107
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
108
+ matchingPage.steps.resetQuestionPreview();
109
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
110
+ matchingPage.steps.switchToGradingView();
111
+ matchingPage.steps.verifyPreviewScore(10, 10);
112
+ matchingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
113
+ matchingPage.steps.verifyCorrectOptionIconDropdown(0);
114
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
115
+ matchingPage.steps.verifyCorrectOptionIconDropdown(2);
116
+ matchingPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
117
+ matchingPage.steps.verifyCorrectAnswerSectionNotExists();
118
+ });
119
+ });
120
+
121
+ describe(`Auto scored - Partial equal weights`, () => {
122
+ abortEarlySetup();
123
+ before(() => {
124
+ matchingPage.steps.navigateToCreateQuestion('matching');
125
+ cy.barsPreLoaderWait();
126
+ matchingPage.steps.addTextInQuestionInstructionsInputField('Match the following');
127
+ matchingPage.steps.selectOptionLayoutToggleButton('Dropdown menu');
128
+ matchingPage.steps.allotPoints(24);
129
+ matchingPage.steps.addMultipleOptionFields(3);
130
+ matchingPage.steps.enterTextInPromptInputField(promptTextArray);
131
+ matchingPage.steps.enterTextInOptionInputField(optionsArray);
132
+ matchingPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
133
+ matchingPage.steps.switchToPreviewTab();
134
+ });
135
+
136
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
137
+ matchingPage.steps.switchToGradingView();
138
+ matchingPage.steps.verifyPreviewScore(0, 24);
139
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
140
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
141
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
142
+ matchingPage.steps.verifyDropdownNumeration(0);
143
+ matchingPage.steps.verifyDropdownNumeration(1);
144
+ matchingPage.steps.verifyDropdownNumeration(2);
145
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
146
+ matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
147
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''],[''],['']]);
148
+ });
149
+
150
+ it('When the user has not set any answer in the \'Specify correct answer\' section and enters incorrect response in any response in the preview tab then correct icons should be displayed beside the empty responses, incorrect icons should be displayed beside incorrect responses, points for the correct answers should be allocated and correct answer section should be displayed', () => {
151
+ matchingPage.steps.resetQuestionPreview();
152
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }]);
153
+ matchingPage.steps.switchToGradingView();
154
+ matchingPage.steps.verifyPreviewScore(16, 24);
155
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
156
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
157
+ matchingPage.steps.verifyCorrectOptionIconDropdown(2);
158
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''],[''],['']]);
159
+ });
160
+
161
+ it('When the user sets an partial blank answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
162
+ matchingPage.steps.switchToEditTab();
163
+ matchingPage.steps.selectResponseFromDropdownInSpecifyCorrectAnswerSection([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
164
+ matchingPage.steps.switchToPreviewTab();
165
+ matchingPage.steps.verifyPreviewScore(0, 24);
166
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
167
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
168
+ matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
169
+ matchingPage.steps.switchToGradingView();
170
+ matchingPage.steps.verifyDropdownNumeration(0);
171
+ matchingPage.steps.verifyDropdownNumeration(1);
172
+ matchingPage.steps.verifyDropdownNumeration(2);
173
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
174
+ matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
175
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
176
+ });
177
+
178
+ it('When the user has set an partial blank answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, correct icon should be displayed for blank response, points should be allocated for the correct answers and correct answer section should be displayed', () => {
179
+ matchingPage.steps.resetQuestionPreview();
180
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }]);
181
+ matchingPage.steps.switchToGradingView();
182
+ matchingPage.steps.verifyPreviewScore(16, 24);
183
+ matchingPage.steps.verifyCorrectOptionIconDropdown(0);
184
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
185
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
186
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
187
+ });
188
+
189
+ 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, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
190
+ matchingPage.steps.resetQuestionPreview();
191
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[1] }]);
192
+ matchingPage.steps.verifyPreviewScore(0, 24);
193
+ matchingPage.steps.switchToGradingView();
194
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
195
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
196
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
197
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
198
+ });
199
+
200
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
201
+ matchingPage.steps.resetQuestionPreview();
202
+ matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
203
+ matchingPage.steps.verifyPreviewScore(24, 24);
204
+ matchingPage.steps.switchToGradingView();
205
+ matchingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
206
+ matchingPage.steps.verifyCorrectOptionIconDropdown(0);
207
+ matchingPage.steps.verifyCorrectOptionIconDropdown(1);
208
+ matchingPage.steps.verifyCorrectOptionIconDropdown(2);
209
+ matchingPage.steps.verifyCorrectAnswerSectionNotExists();
210
+ });
211
+ });
212
+ });
@@ -78,7 +78,7 @@ describe('Create Item page - Matching: Manually and non scored', () => {
78
78
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[4] }]);
79
79
  matchingPage.steps.switchToGradingView();
80
80
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
81
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
81
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
82
82
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
83
83
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
84
84
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -89,7 +89,7 @@ describe('Create Item page - Matching: Manually and non scored', () => {
89
89
  matchingPage.steps.resetQuestionPreview();
90
90
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
91
91
  matchingPage.steps.switchToGradingView();
92
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
92
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
93
93
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
94
94
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
95
95
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -57,7 +57,7 @@ describe('Create item page - Matching: Partial different weights', () => {
57
57
  matchingPage.steps.verifyPreviewScore(9, 20);
58
58
  matchingPage.steps.switchToGradingView();
59
59
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
60
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
60
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
61
61
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
62
62
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
63
63
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
@@ -69,7 +69,7 @@ describe('Create item page - Matching: Partial different weights', () => {
69
69
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
70
70
  matchingPage.steps.verifyPreviewScore(11, 20);
71
71
  matchingPage.steps.switchToGradingView();
72
- matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
72
+ matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
73
73
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
74
74
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
75
75
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();