itemengine-cypress-automation 1.0.584-IEI-7048-098328c.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 (16) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -1
  2. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +109 -8
  3. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +109 -8
  4. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +109 -8
  5. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +7 -2
  6. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +139 -10
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +4 -1
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +124 -9
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +139 -10
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +4 -1
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +124 -9
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +109 -8
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +124 -9
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +243 -2
  15. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +25 -1
  16. package/package.json +1 -1
@@ -1,6 +1,7 @@
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';
4
5
 
5
6
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with grouped options layout', () => {
6
7
  before(() => {
@@ -26,7 +27,9 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
26
27
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
27
28
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
28
29
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
29
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
30
+ if (!alternativeAnswerCheck) {
31
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
32
+ }
30
33
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
31
34
  });
32
35
 
@@ -1,6 +1,9 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
+ import { showAlternativeAnswersComponent } from "../../../../pages/components";
2
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../../support/helpers/utilities";
5
+
6
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
4
7
  const css = Cypress.env('css');
5
8
 
6
9
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -29,9 +32,23 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
29
32
  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', () => {
30
33
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
31
34
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
32
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
33
35
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
34
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
35
52
  });
36
53
 
37
54
  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', () => {
@@ -83,7 +100,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
83
100
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
84
101
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
85
102
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
86
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
87
118
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
88
119
  /*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')
89
120
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -103,7 +134,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
103
134
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
104
135
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
105
136
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
106
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
107
152
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
108
153
  /*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')
109
154
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -123,7 +168,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
123
168
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
124
169
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
125
170
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
126
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
127
186
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
128
187
  /*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')
129
188
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -143,7 +202,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
143
202
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
144
203
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
145
204
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
146
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
147
220
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
148
221
  /*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')
149
222
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -163,7 +236,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
163
236
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
164
237
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
165
238
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
166
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
167
254
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
168
255
  /*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')
169
256
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -183,7 +270,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
183
270
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
184
271
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
185
272
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
186
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
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
+ }
187
288
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
289
  /*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')
189
290
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -1,6 +1,9 @@
1
1
  import { fillInTheGapsDragAndDropPage } from "../../../../pages";
2
+ import { showAlternativeAnswersComponent } from "../../../../pages/components";
2
3
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
4
  import utilities from "../../../../support/helpers/utilities";
5
+
6
+ const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT') === 'true';
4
7
  const css = Cypress.env('css');
5
8
 
6
9
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -29,8 +32,22 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
29
32
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
30
33
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
31
34
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
32
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
33
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
34
51
  });
35
52
 
36
53
  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', () => {
@@ -82,7 +99,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
82
99
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
83
100
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
84
101
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
85
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
86
117
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
87
118
  /*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')
88
119
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -102,7 +133,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
102
133
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
103
134
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
104
135
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
105
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
106
151
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
107
152
  /*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')
108
153
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -122,7 +167,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
122
167
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
123
168
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
124
169
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
125
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
126
185
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
127
186
  /*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')
128
187
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -142,7 +201,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
142
201
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
143
202
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
144
203
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
145
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
146
219
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
147
220
  /*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')
148
221
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -162,7 +235,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
162
235
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
163
236
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
164
237
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
165
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
166
253
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
167
254
  /*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')
168
255
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -182,7 +269,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
182
269
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
183
270
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
184
271
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
185
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
186
287
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
187
288
  /*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')
188
289
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -1,6 +1,9 @@
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';
4
7
  const css = Cypress.env('css');
5
8
 
6
9
  describe('Create item page - Fill in the gaps with drag and drop: All or nothing with alternative answers', () => {
@@ -30,8 +33,22 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
30
33
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
31
34
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
32
35
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
33
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
34
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
35
52
  });
36
53
 
37
54
  it('CSS of correct answer section and dropzone cell numeration', { tags: 'css' }, () => {
@@ -147,7 +164,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
147
164
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
148
165
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
149
166
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
150
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
151
182
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
152
183
  /*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')
153
184
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -167,7 +198,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
167
198
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
168
199
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
169
200
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
170
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
171
216
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
172
217
  /*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')
173
218
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -187,7 +232,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
187
232
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
188
233
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
189
234
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
190
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
191
250
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
192
251
  /*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')
193
252
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -207,7 +266,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
207
266
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
208
267
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
209
268
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
210
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
211
284
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
212
285
  /*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')
213
286
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -227,7 +300,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
227
300
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
228
301
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
229
302
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
230
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
231
318
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
232
319
  /*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')
233
320
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -247,7 +334,21 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
247
334
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
248
335
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
249
336
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
250
- fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
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
+ }
251
352
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
252
353
  /*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')
253
354
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
@@ -2,6 +2,7 @@ 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';
5
6
 
6
7
  describe('Create item page - Fill in the gaps with drag and drop: Partial equal weights for blank responses', () => {
7
8
  before(() => {
@@ -55,7 +56,9 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
55
56
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
56
57
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
57
58
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
58
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
59
+ if (!alternativeAnswerCheck) {
60
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
61
+ }
59
62
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
60
63
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
61
64
  });
@@ -161,7 +164,9 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
161
164
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
162
165
  fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
163
166
  fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
164
- utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
167
+ if (!alternativeAnswerCheck) {
168
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
169
+ }
165
170
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
166
171
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
167
172
  });