itemengine-cypress-automation 1.0.584-IEI-7041-1da58ac.0 → 1.0.584

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 (74) hide show
  1. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +77 -0
  2. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +78 -1
  3. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +78 -1
  4. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +104 -9
  5. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +4 -0
  6. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +95 -0
  7. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +95 -0
  8. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +84 -0
  9. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +4 -0
  10. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +73 -0
  11. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +84 -0
  12. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +187 -2
  13. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +79 -1
  14. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +79 -0
  15. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +79 -0
  16. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +4 -0
  17. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +103 -0
  18. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +4 -0
  19. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +103 -0
  20. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  21. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +91 -0
  22. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +4 -0
  23. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +79 -0
  24. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +91 -0
  25. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +209 -5
  26. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +195 -1
  27. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  28. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +85 -0
  29. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +82 -0
  30. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +85 -0
  31. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +109 -6
  32. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsBasic.js +4 -0
  33. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +103 -0
  34. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +103 -0
  35. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +91 -0
  36. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsBasic.js +4 -0
  37. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +79 -0
  38. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +91 -0
  39. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +207 -3
  40. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +9 -1
  41. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +102 -2
  42. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +102 -2
  43. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +107 -2
  44. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +36 -2
  45. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +5 -0
  46. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +1 -0
  47. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +10 -1
  48. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +128 -2
  49. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +115 -2
  50. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +128 -2
  51. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +9 -1
  52. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -2
  53. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +102 -2
  54. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +115 -2
  55. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +226 -2
  56. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +9 -1
  57. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +102 -2
  58. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +102 -2
  59. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +102 -2
  60. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +32 -5
  61. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +3 -0
  62. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +10 -1
  63. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +128 -2
  64. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +115 -2
  65. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +128 -2
  66. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +9 -1
  67. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +115 -2
  68. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +102 -2
  69. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +115 -2
  70. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +216 -2
  71. package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +18 -1
  72. package/cypress/pages/listOrderingPage.js +60 -1
  73. package/cypress/pages/matchingPage.js +23 -1
  74. package/package.json +1 -1
@@ -2,6 +2,7 @@ import { matchingPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
6
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
6
7
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
7
8
 
@@ -33,8 +34,23 @@ describe('Create item page - Matching: All or nothing with alternative answers',
33
34
  matchingPage.steps.verifyDropdownNumeration(0);
34
35
  matchingPage.steps.verifyDropdownNumeration(1);
35
36
  matchingPage.steps.verifyDropdownNumeration(2);
36
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
37
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
37
+ if (alternativeAnswerCheck === 'true') {
38
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
39
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
40
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
41
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
42
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
43
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
44
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
45
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
46
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
47
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
48
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
49
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
50
+ } else {
51
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
52
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
53
+ }
38
54
  });
39
55
 
40
56
  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', () => {
@@ -47,6 +63,9 @@ describe('Create item page - Matching: All or nothing with alternative answers',
47
63
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
48
64
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
49
65
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
66
+ if (alternativeAnswerCheck === 'true') {
67
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
68
+ }
50
69
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
70
  });
52
71
 
@@ -60,6 +79,9 @@ describe('Create item page - Matching: All or nothing with alternative answers',
60
79
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
61
80
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
62
81
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
82
+ if (alternativeAnswerCheck === 'true') {
83
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
84
+ }
63
85
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
64
86
  });
65
87
 
@@ -73,6 +95,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
73
95
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
74
96
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
75
97
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
98
+ if (alternativeAnswerCheck === 'true') {
99
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
100
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
101
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
102
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
103
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
104
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
105
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
106
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
107
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
108
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
109
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
110
+ }
76
111
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
77
112
  });
78
113
 
@@ -86,6 +121,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
86
121
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
87
122
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
88
123
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
124
+ if (alternativeAnswerCheck === 'true') {
125
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
126
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
127
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
128
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
129
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
130
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
131
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
132
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
133
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
134
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
135
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
136
+ }
89
137
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
90
138
  });
91
139
 
@@ -99,6 +147,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
99
147
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
100
148
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
101
149
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
150
+ if (alternativeAnswerCheck === 'true') {
151
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
152
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
153
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
154
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
155
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
156
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
157
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
158
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
159
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
160
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
161
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
162
+ }
102
163
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
103
164
  });
104
165
 
@@ -112,6 +173,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
112
173
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
113
174
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
114
175
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
176
+ if (alternativeAnswerCheck === 'true') {
177
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
178
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
179
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
180
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
181
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
182
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
183
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
184
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
185
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
186
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
187
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
188
+ }
115
189
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
116
190
  });
117
191
 
@@ -125,6 +199,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
125
199
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
126
200
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
201
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
202
+ if (alternativeAnswerCheck === 'true') {
203
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
204
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
205
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
206
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
207
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
208
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
209
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
210
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
211
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
212
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
213
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
214
+ }
128
215
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
129
216
  });
130
217
 
@@ -138,6 +225,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
138
225
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
139
226
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
140
227
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
228
+ if (alternativeAnswerCheck === 'true') {
229
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
230
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
231
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
232
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
233
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
234
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
235
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
236
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
237
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
238
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
239
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
240
+ }
141
241
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
142
242
  });
143
243
  });
@@ -2,6 +2,7 @@ import { matchingPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
5
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
5
6
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
6
7
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
7
8
 
@@ -33,8 +34,23 @@ describe('Create item page - Matching: All or nothing with alternative answers',
33
34
  matchingPage.steps.verifyDropdownNumeration(0);
34
35
  matchingPage.steps.verifyDropdownNumeration(1);
35
36
  matchingPage.steps.verifyDropdownNumeration(2);
36
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
37
- matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
37
+ if (alternativeAnswerCheck === 'true') {
38
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
39
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
40
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
41
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
42
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
43
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
44
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
45
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
46
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
47
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
48
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
49
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
50
+ } else {
51
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
52
+ matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
53
+ }
38
54
  });
39
55
 
40
56
  it('CSS of correct answer section and dropzone numeration', { tags: 'css' }, () => {
@@ -77,6 +93,9 @@ describe('Create item page - Matching: All or nothing with alternative answers',
77
93
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
78
94
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
79
95
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
96
+ if (alternativeAnswerCheck === 'true') {
97
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
98
+ }
80
99
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
81
100
  });
82
101
 
@@ -112,6 +131,9 @@ describe('Create item page - Matching: All or nothing with alternative answers',
112
131
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
113
132
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
114
133
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
134
+ if (alternativeAnswerCheck === 'true') {
135
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
136
+ }
115
137
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
116
138
  });
117
139
 
@@ -125,6 +147,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
125
147
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
126
148
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
149
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
150
+ if (alternativeAnswerCheck === 'true') {
151
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
152
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
153
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
154
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
155
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
156
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
157
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
158
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
159
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
160
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
161
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
162
+ }
128
163
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
129
164
  });
130
165
 
@@ -138,6 +173,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
138
173
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
139
174
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
140
175
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
176
+ if (alternativeAnswerCheck === 'true') {
177
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
178
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
179
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
180
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
181
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
182
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
183
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
184
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
185
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
186
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
187
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
188
+ }
141
189
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
142
190
  });
143
191
 
@@ -151,6 +199,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
151
199
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
152
200
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
201
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
202
+ if (alternativeAnswerCheck === 'true') {
203
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
204
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
205
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
206
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
207
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
208
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
209
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
210
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
211
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
212
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
213
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
214
+ }
154
215
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
155
216
  });
156
217
 
@@ -164,6 +225,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
164
225
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
165
226
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
166
227
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
228
+ if (alternativeAnswerCheck === 'true') {
229
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
230
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
231
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
232
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
233
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
234
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
235
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
236
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
237
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
238
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
239
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
240
+ }
167
241
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
168
242
  });
169
243
 
@@ -177,6 +251,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
177
251
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
178
252
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
179
253
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
254
+ if (alternativeAnswerCheck === 'true') {
255
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
256
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
257
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
258
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
259
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
260
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
261
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
262
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
263
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
264
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
265
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
266
+ }
180
267
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
181
268
  });
182
269
 
@@ -190,6 +277,19 @@ describe('Create item page - Matching: All or nothing with alternative answers',
190
277
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
191
278
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
192
279
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
280
+ if (alternativeAnswerCheck === 'true') {
281
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
282
+ matchingPage.steps.verifyShowAlternativeAnswersToggleExists();
283
+ matchingPage.steps.disableShowAlternativeAnswersToggle();
284
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
285
+ matchingPage.steps.verifyAlternativeAnswersSectionNotExist();
286
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
287
+ matchingPage.steps.verifyShowAlternativeAnswersToggleChecked();
288
+ matchingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(10 points)', 1);
289
+ matchingPage.steps.verifyAlternativeAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']], 1);
290
+ matchingPage.steps.clickShowAlternativeAnswersToggle();
291
+ matchingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
292
+ }
193
293
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
194
294
  });
195
295
 
@@ -1,6 +1,7 @@
1
1
  import { dialogBoxBase, matchingPage, studentViewPage, itemPreviewPage, gradingViewPage } 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');
4
5
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
5
6
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
6
7
 
@@ -34,7 +35,11 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
34
35
  matchingPage.steps.verifyDropdownNumeration(0);
35
36
  matchingPage.steps.verifyDropdownNumeration(1);
36
37
  matchingPage.steps.verifyDropdownNumeration(2);
37
- matchingPage.steps.verifyCorrectAnswerSectionLabel();
38
+ if (alternativeAnswerCheck === 'true') {
39
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
40
+ } else {
41
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
42
+ }
38
43
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
39
44
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
40
45
  });
@@ -47,7 +52,11 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
47
52
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
48
53
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(1);
49
54
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(2);
50
- matchingPage.steps.verifyCorrectAnswerSectionLabel();
55
+ if (alternativeAnswerCheck === 'true') {
56
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
57
+ } else {
58
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
59
+ }
51
60
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
52
61
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
53
62
  });
@@ -64,7 +73,11 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
64
73
  matchingPage.steps.verifyDropdownNumeration(0);
65
74
  matchingPage.steps.verifyDropdownNumeration(1);
66
75
  matchingPage.steps.verifyDropdownNumeration(2);
67
- matchingPage.steps.verifyCorrectAnswerSectionLabel();
76
+ if (alternativeAnswerCheck === 'true') {
77
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points - 10 pts)', 0);
78
+ } else {
79
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
80
+ }
68
81
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
69
82
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
70
83
  });
@@ -116,6 +129,9 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
116
129
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
117
130
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel("correct");
118
131
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
132
+ if (alternativeAnswerCheck === 'true') {
133
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
134
+ }
119
135
  });
120
136
  });
121
137
 
@@ -143,7 +159,11 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
143
159
  matchingPage.steps.verifyDropdownNumeration(0);
144
160
  matchingPage.steps.verifyDropdownNumeration(1);
145
161
  matchingPage.steps.verifyDropdownNumeration(2);
146
- matchingPage.steps.verifyCorrectAnswerSectionLabel();
162
+ if (alternativeAnswerCheck === 'true') {
163
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 8 pts)', 0);
164
+ } else {
165
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
166
+ }
147
167
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
148
168
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''],[''],['']]);
149
169
  });
@@ -171,7 +191,11 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
171
191
  matchingPage.steps.verifyDropdownNumeration(0);
172
192
  matchingPage.steps.verifyDropdownNumeration(1);
173
193
  matchingPage.steps.verifyDropdownNumeration(2);
174
- matchingPage.steps.verifyCorrectAnswerSectionLabel();
194
+ if (alternativeAnswerCheck === 'true') {
195
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response - 8 pts)', 0);
196
+ } else {
197
+ matchingPage.steps.verifyCorrectAnswerSectionLabel();
198
+ }
175
199
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
176
200
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'],[''],['Cat']]);
177
201
  });
@@ -208,6 +232,9 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
208
232
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
209
233
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
210
234
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
235
+ if (alternativeAnswerCheck === 'true') {
236
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
237
+ }
211
238
  });
212
239
  });
213
240
  });
@@ -110,6 +110,9 @@ describe('Create Item page - Matching: Manually and non scored', () => {
110
110
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
111
111
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
112
112
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
113
+ if (alternativeAnswerCheck === 'true') {
114
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
115
+ }
113
116
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
117
  });
115
118
 
@@ -1,6 +1,8 @@
1
1
  import { matchingPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../../support/helpers/utilities";
4
+
5
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
4
6
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
5
7
  const optionsArray = ['Cat', 'Elephant', 'Fish', 'Bear', 'Eagle', 'Penguin'];
6
8
 
@@ -35,7 +37,11 @@ describe('Create item page - Matching: Partial different weights', () => {
35
37
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
36
38
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
37
39
  matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
38
- utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
40
+ if(alternativeAnswerCheck === 'true') {
41
+ matchingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(Points per response in order of appearance - 9 pts, 6 pts, 5 pts)', 0);
42
+ } else {
43
+ utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
44
+ }
39
45
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
40
46
  });
41
47
 
@@ -88,6 +94,9 @@ describe('Create item page - Matching: Partial different weights', () => {
88
94
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
89
95
  matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
90
96
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
97
+ if (alternativeAnswerCheck === 'true') {
98
+ matchingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
99
+ }
91
100
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
92
101
  });
93
102
  });