itemengine-cypress-automation 1.0.584-IEI-7041-1da58ac.0 → 1.0.585-IEI-7048-5c19852.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +1 -4
  2. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +8 -109
  3. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +8 -109
  4. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +8 -109
  5. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +2 -7
  6. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +10 -139
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -4
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +9 -124
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +10 -139
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +1 -4
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +9 -124
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +8 -109
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +9 -124
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -243
  15. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +77 -0
  16. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +78 -1
  17. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +78 -1
  18. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +104 -9
  19. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +4 -0
  20. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +95 -0
  21. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +95 -0
  22. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +84 -0
  23. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +4 -0
  24. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +73 -0
  25. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +84 -0
  26. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +187 -2
  27. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +79 -1
  28. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +79 -0
  29. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +79 -0
  30. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +4 -0
  31. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +103 -0
  32. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +4 -0
  33. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +103 -0
  34. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  35. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +91 -0
  36. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +4 -0
  37. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +79 -0
  38. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +91 -0
  39. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +209 -5
  40. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +195 -1
  41. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  42. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +85 -0
  43. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +82 -0
  44. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +85 -0
  45. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +109 -6
  46. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +4 -0
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +103 -0
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +91 -0
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +4 -0
  51. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +79 -0
  52. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +91 -0
  53. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +207 -3
  54. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +9 -1
  55. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +102 -2
  56. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +102 -2
  57. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +107 -2
  58. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +36 -2
  59. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +5 -0
  60. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +1 -0
  61. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +10 -1
  62. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +128 -2
  63. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +115 -2
  64. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +128 -2
  65. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +9 -1
  66. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -2
  67. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +102 -2
  68. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +115 -2
  69. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +226 -2
  70. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +9 -1
  71. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +102 -2
  72. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +102 -2
  73. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +102 -2
  74. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +32 -5
  75. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +3 -0
  76. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +10 -1
  77. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +128 -2
  78. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +115 -2
  79. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +128 -2
  80. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +9 -1
  81. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -2
  82. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +102 -2
  83. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +115 -2
  84. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +216 -2
  85. package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +18 -1
  86. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -25
  87. package/cypress/pages/listOrderingPage.js +60 -1
  88. package/cypress/pages/matchingPage.js +23 -1
  89. package/package.json +1 -1
@@ -1,7 +1,6 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
5
4
 
6
5
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with grouped options layout', () => {
7
6
  before(() => {
@@ -27,9 +26,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
27
26
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
28
27
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
29
28
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
30
- if (!alternativeAnswerCheck) {
31
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
32
- }
29
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
33
30
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
34
31
  });
35
32
 
@@ -1,9 +1,6 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
3
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
3
  import utilities from "../../../../support/helpers/utilities";
5
-
6
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
7
4
  const css = Cypress.env('css');
8
5
 
9
6
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -32,23 +29,9 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
32
29
  it('When the user selects \'Grading\' view without attempting the question, cell numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective cell numeration', () => {
33
30
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
34
31
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
32
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
35
33
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
36
- if (alternativeAnswerCheck) {
37
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
38
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
39
- {
40
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
41
- points: ['(20 points)'],
42
- },
43
- {
44
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
45
- points: ['(10 points)'],
46
- }
47
- ]);
48
- } else {
49
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
50
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
51
- }
34
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
52
35
  });
53
36
 
54
37
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct tab and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
@@ -100,21 +83,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
100
83
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
101
84
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
102
85
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
103
- if (alternativeAnswerCheck) {
104
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
105
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
106
- {
107
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
108
- points: ['(20 points)'],
109
- },
110
- {
111
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
112
- points: ['(10 points)'],
113
- }
114
- ]);
115
- } else {
116
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
117
- }
86
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
118
87
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
119
88
  /*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, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
120
89
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -134,21 +103,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
134
103
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
135
104
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
136
105
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
137
- if (alternativeAnswerCheck) {
138
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
139
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
140
- {
141
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
142
- points: ['(20 points)'],
143
- },
144
- {
145
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
146
- points: ['(10 points)'],
147
- }
148
- ]);
149
- } else {
150
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
151
- }
106
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
152
107
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
108
  /*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, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
154
109
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -168,21 +123,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
168
123
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
169
124
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
170
125
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
171
- if (alternativeAnswerCheck) {
172
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
173
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
174
- {
175
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
176
- points: ['(20 points)'],
177
- },
178
- {
179
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
180
- points: ['(10 points)'],
181
- }
182
- ]);
183
- } else {
184
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
185
- }
126
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
186
127
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
187
128
  /*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, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
188
129
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -202,21 +143,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
202
143
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
203
144
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
204
145
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
205
- if (alternativeAnswerCheck) {
206
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
207
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
208
- {
209
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
210
- points: ['(20 points)'],
211
- },
212
- {
213
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
214
- points: ['(10 points)'],
215
- }
216
- ]);
217
- } else {
218
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
219
- }
146
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
220
147
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
221
148
  /*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, incorrect icon should be displayed beside empty responses a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
222
149
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -236,21 +163,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
236
163
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
237
164
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
238
165
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
239
- if (alternativeAnswerCheck) {
240
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
241
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
242
- {
243
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
244
- points: ['(20 points)'],
245
- },
246
- {
247
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
248
- points: ['(10 points)'],
249
- }
250
- ]);
251
- } else {
252
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
253
- }
166
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
254
167
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
255
168
  /*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 for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
256
169
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -270,21 +183,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
270
183
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
271
184
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
272
185
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
273
- if (alternativeAnswerCheck) {
274
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
275
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
276
- {
277
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
278
- points: ['(20 points)'],
279
- },
280
- {
281
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
282
- points: ['(10 points)'],
283
- }
284
- ]);
285
- } else {
286
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
287
- }
186
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
288
187
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
289
188
  /*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 for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
290
189
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -1,9 +1,6 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
3
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
3
  import utilities from "../../../../support/helpers/utilities";
5
-
6
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
7
4
  const css = Cypress.env('css');
8
5
 
9
6
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -32,22 +29,8 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
32
29
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
33
30
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
34
31
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
35
- if (alternativeAnswerCheck) {
36
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
37
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
38
- {
39
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
40
- points: ['(20 points)'],
41
- },
42
- {
43
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
44
- points: ['(20 points)'],
45
- }
46
- ]);
47
- } else {
48
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
49
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
50
- }
32
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
33
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
51
34
  });
52
35
 
53
36
  it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
@@ -99,21 +82,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
99
82
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
100
83
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
101
84
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
102
- if (alternativeAnswerCheck) {
103
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
104
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
105
- {
106
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
107
- points: ['(20 points)'],
108
- },
109
- {
110
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
111
- points: ['(20 points)'],
112
- }
113
- ]);
114
- } else {
115
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
116
- }
85
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
117
86
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
118
87
  /*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, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
119
88
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -133,21 +102,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
133
102
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
134
103
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
135
104
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
136
- if (alternativeAnswerCheck) {
137
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
138
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
139
- {
140
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
141
- points: ['(20 points)'],
142
- },
143
- {
144
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
145
- points: ['(20 points)'],
146
- }
147
- ]);
148
- } else {
149
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
150
- }
105
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
151
106
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
152
107
  /*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, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
153
108
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -167,21 +122,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
167
122
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
168
123
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
169
124
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
170
- if (alternativeAnswerCheck) {
171
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
172
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
173
- {
174
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
175
- points: ['(20 points)'],
176
- },
177
- {
178
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
179
- points: ['(20 points)'],
180
- }
181
- ]);
182
- } else {
183
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
184
- }
125
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
185
126
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
186
127
  /*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 alternative accordion, incorrect icon should be displayed besides the empty response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
187
128
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -201,21 +142,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
201
142
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
202
143
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
203
144
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
204
- if (alternativeAnswerCheck) {
205
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
206
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
207
- {
208
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
209
- points: ['(20 points)'],
210
- },
211
- {
212
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
213
- points: ['(20 points)'],
214
- }
215
- ]);
216
- } else {
217
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
218
- }
145
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
219
146
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
220
147
  /*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, red cross-mark should be displayed beside option from the alternative accordion a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
221
148
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -235,21 +162,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
235
162
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
236
163
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
237
164
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
238
- if (alternativeAnswerCheck) {
239
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
240
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
241
- {
242
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
243
- points: ['(20 points)'],
244
- },
245
- {
246
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
247
- points: ['(20 points)'],
248
- }
249
- ]);
250
- } else {
251
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
252
- }
165
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
253
166
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
254
167
  /*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
255
168
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -269,21 +182,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
269
182
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
270
183
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
271
184
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
272
- if (alternativeAnswerCheck) {
273
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
274
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
275
- {
276
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
277
- points: ['(20 points)'],
278
- },
279
- {
280
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
281
- points: ['(20 points)'],
282
- }
283
- ]);
284
- } else {
285
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
286
- }
185
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
287
186
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
288
187
  /*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
289
188
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -1,9 +1,6 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
- import { showAlternativeAnswersComponent } from "../../../../pages/components";
5
-
6
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
7
4
  const css = Cypress.env('css');
8
5
 
9
6
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -33,22 +30,8 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
33
30
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
34
31
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
35
32
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
36
- if (alternativeAnswerCheck) {
37
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
38
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
39
- {
40
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
41
- points: ['(20 points)'],
42
- },
43
- {
44
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
45
- points: ['(10 points)'],
46
- }
47
- ]);
48
- } else {
49
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
50
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
51
- }
33
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
34
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
52
35
  });
53
36
 
54
37
  it('CSS of correct answer section and dropzone cell numeration', { tags: 'css' }, () => {
@@ -164,21 +147,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
164
147
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
165
148
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
166
149
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
167
- if (alternativeAnswerCheck) {
168
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
169
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
170
- {
171
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
172
- points: ['(20 points)'],
173
- },
174
- {
175
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
176
- points: ['(10 points)'],
177
- }
178
- ]);
179
- } else {
180
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
181
- }
150
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
182
151
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
183
152
  /*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, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
184
153
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -198,21 +167,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
198
167
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
199
168
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
200
169
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
201
- if (alternativeAnswerCheck) {
202
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
203
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
204
- {
205
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
206
- points: ['(20 points)'],
207
- },
208
- {
209
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
210
- points: ['(10 points)'],
211
- }
212
- ]);
213
- } else {
214
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
215
- }
170
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
216
171
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
217
172
  /*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, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
218
173
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -232,21 +187,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
232
187
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
233
188
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
234
189
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
235
- if (alternativeAnswerCheck) {
236
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
237
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
238
- {
239
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
240
- points: ['(20 points)'],
241
- },
242
- {
243
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
244
- points: ['(10 points)'],
245
- }
246
- ]);
247
- } else {
248
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
249
- }
190
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
250
191
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
251
192
  /*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, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
252
193
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -266,21 +207,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
266
207
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
267
208
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
268
209
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
269
- if (alternativeAnswerCheck) {
270
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
271
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
272
- {
273
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
274
- points: ['(20 points)'],
275
- },
276
- {
277
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
278
- points: ['(10 points)'],
279
- }
280
- ]);
281
- } else {
282
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
283
- }
210
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
284
211
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
285
212
  /*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, incorrect icon should be displayed beside empty responses a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
286
213
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -300,21 +227,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
300
227
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
301
228
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
302
229
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
303
- if (alternativeAnswerCheck) {
304
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
305
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
306
- {
307
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
308
- points: ['(20 points)'],
309
- },
310
- {
311
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
312
- points: ['(10 points)'],
313
- }
314
- ]);
315
- } else {
316
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
317
- }
230
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
318
231
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
319
232
  /*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
320
233
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -334,21 +247,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
334
247
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
335
248
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
336
249
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
337
- if (alternativeAnswerCheck) {
338
- showAlternativeAnswersComponent.steps.clickShowAlternativeAnswersToggle();
339
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionWithAlternateAnswers([
340
- {
341
- correctAnswers: [['Petals'], ['Flower'], ['Leaves']],
342
- points: ['(20 points)'],
343
- },
344
- {
345
- correctAnswers: [['Petals'], ['Stem'], ['Seed']],
346
- points: ['(10 points)'],
347
- }
348
- ]);
349
- } else {
350
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
351
- }
250
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
352
251
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
353
252
  /*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 with text \'Your answer is incorrect\' and correct answer section should not be displayed')
354
253
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -2,7 +2,6 @@ import { dialogBoxBase, fillInTheGapsDragAndDropPage, gradingViewPage, itemPrevi
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
  var itemReferenceID = "";
5
- const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
6
5
 
7
6
  describe('Create item page - Fill in the gaps with drag and drop: Partial equal weights for blank responses', () => {
8
7
  before(() => {
@@ -56,9 +55,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
56
55
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
57
56
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
58
57
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
59
- if (!alternativeAnswerCheck) {
60
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
61
- }
58
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
62
59
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
63
60
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
64
61
  });
@@ -164,9 +161,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
164
161
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
165
162
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
166
163
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
167
- if (!alternativeAnswerCheck) {
168
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
169
- }
164
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
170
165
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
171
166
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
172
167
  });