itemengine-cypress-automation 1.0.571 → 1.0.573-IEI-7011-17b1079.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.
- package/cypress/config-files/ilprod.json +2 -1
- package/cypress/config-files/ilqa.json +2 -1
- package/cypress/config-files/ilstage.json +2 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +353 -0
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +464 -1
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +379 -0
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +103 -0
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/showAlternativeAnswersComponent.js +145 -0
- package/cypress/pages/multipleSelectionPage.js +35 -1
- package/cypress/pages/singleSelectionPage.js +22 -1
- package/package.json +1 -1
- package/service.yaml +9 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"admin_password": "GzL1Ezjou4wVFL8o",
|
|
13
13
|
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315",
|
|
14
14
|
"migration_usernme": "ilc-prod-content-user",
|
|
15
|
-
"migration_password": "Oj2kTWQM7ZRmegmS"
|
|
15
|
+
"migration_password": "Oj2kTWQM7ZRmegmS",
|
|
16
|
+
"ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT": "false"
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"admin_password": "GtOrLiig9surpeW1",
|
|
13
13
|
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315",
|
|
14
14
|
"migration_usernme": "demo-technical-tester",
|
|
15
|
-
"migration_password": "SXYeokWOoTuwEg2w"
|
|
15
|
+
"migration_password": "SXYeokWOoTuwEg2w",
|
|
16
|
+
"ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT": "true"
|
|
16
17
|
}
|
|
17
18
|
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"scriptSrc": "https://assets-itemengine-staging.imaginelearning.com/content/itemengine-assets-staging/v2/author-loader-nocache.js",
|
|
11
11
|
"admin_username": "demouser-ilc",
|
|
12
12
|
"admin_password": "T6b9FK0pC6Tg8wDz",
|
|
13
|
-
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315"
|
|
13
|
+
"organisation_id": "eb7d4a20-c96c-4852-9b34-7e3231016315",
|
|
14
|
+
"ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT": "false"
|
|
14
15
|
}
|
|
15
16
|
}
|
|
@@ -2,6 +2,7 @@ import { multipleSelectionPage } 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 options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste'];
|
|
6
7
|
|
|
7
8
|
describe('Create item page - Multiple selection: All or nothing with alternative answer', () => {
|
|
@@ -48,6 +49,24 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
48
49
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
49
50
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
50
51
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
52
|
+
if (alternativeAnswerCheck === 'true') {
|
|
53
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
54
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
55
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
56
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
57
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
58
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
59
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
60
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
61
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
62
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
63
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
64
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
65
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
66
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
67
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
68
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
69
|
+
}
|
|
51
70
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
52
71
|
});
|
|
53
72
|
|
|
@@ -65,6 +84,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
65
84
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
66
85
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
67
86
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
87
|
+
if (alternativeAnswerCheck === 'true') {
|
|
88
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
89
|
+
}
|
|
68
90
|
//multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
69
91
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
70
92
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -112,6 +134,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
112
134
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
113
135
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
114
136
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
137
|
+
if (alternativeAnswerCheck === 'true') {
|
|
138
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
139
|
+
}
|
|
115
140
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
116
141
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
117
142
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -143,6 +168,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
143
168
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
144
169
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
145
170
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
171
|
+
//show alternative answers
|
|
172
|
+
if (alternativeAnswerCheck === 'true') {
|
|
173
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
174
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
175
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
176
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
177
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
178
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
179
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
180
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
181
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
182
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
183
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
184
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
185
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
186
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
187
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
188
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
189
|
+
}
|
|
146
190
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
147
191
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
148
192
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -174,6 +218,19 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
174
218
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
175
219
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
176
220
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
221
|
+
//show alternative answers
|
|
222
|
+
if (alternativeAnswerCheck === 'true') {
|
|
223
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
224
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
225
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
226
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
227
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
228
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
229
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
230
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
231
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
232
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
233
|
+
}
|
|
177
234
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
178
235
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
179
236
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -204,6 +261,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
204
261
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
205
262
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
206
263
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
264
|
+
//show alternative answers
|
|
265
|
+
if (alternativeAnswerCheck === 'true') {
|
|
266
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
267
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
268
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
269
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
270
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
271
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
272
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
273
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
274
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
275
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
276
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
277
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
278
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
279
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
280
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
281
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
282
|
+
}
|
|
207
283
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
208
284
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
209
285
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -234,6 +310,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
234
310
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
235
311
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
236
312
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
313
|
+
//show alternative answers
|
|
314
|
+
if (alternativeAnswerCheck === 'true') {
|
|
315
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
316
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
317
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
318
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
319
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
320
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
321
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
322
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
323
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
324
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
325
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
326
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
327
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
328
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
329
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
330
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
331
|
+
}
|
|
237
332
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
238
333
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
239
334
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -262,6 +357,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
262
357
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
263
358
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
264
359
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
360
|
+
//show alternative answers
|
|
361
|
+
if (alternativeAnswerCheck === 'true') {
|
|
362
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
363
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
364
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
365
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
366
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
367
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
368
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
369
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
370
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
371
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
372
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
373
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
374
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
375
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
376
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
377
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
378
|
+
}
|
|
265
379
|
// multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
266
380
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
267
381
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -351,6 +465,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
351
465
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
352
466
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
353
467
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
468
|
+
//show alternative answers
|
|
469
|
+
if (alternativeAnswerCheck === 'true') {
|
|
470
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
471
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
472
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
473
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
474
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
475
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
476
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
477
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
478
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
479
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
480
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
481
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
482
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
483
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
484
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
485
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
486
|
+
}
|
|
354
487
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
355
488
|
});
|
|
356
489
|
|
|
@@ -368,6 +501,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
368
501
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
369
502
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
370
503
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
504
|
+
if (alternativeAnswerCheck === 'true') {
|
|
505
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
506
|
+
}
|
|
371
507
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
372
508
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
373
509
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -394,6 +530,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
394
530
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
395
531
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
396
532
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
533
|
+
if (alternativeAnswerCheck === 'true') {
|
|
534
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
535
|
+
}
|
|
397
536
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
398
537
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
399
538
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -426,6 +565,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
426
565
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
427
566
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
428
567
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
568
|
+
//show alternative answers
|
|
569
|
+
if (alternativeAnswerCheck === 'true') {
|
|
570
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
571
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
572
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
573
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
574
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
575
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
576
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
577
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
578
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
579
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
580
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
581
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
582
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
583
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
584
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
585
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
586
|
+
}
|
|
429
587
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
430
588
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
431
589
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -456,6 +614,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
456
614
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
457
615
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
458
616
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
617
|
+
//show alternative answers
|
|
618
|
+
if (alternativeAnswerCheck === 'true') {
|
|
619
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
620
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
621
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
622
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
623
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
624
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
625
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
626
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
627
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
628
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
629
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
630
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
631
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
632
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
633
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
634
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
635
|
+
}
|
|
459
636
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
460
637
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
461
638
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -486,6 +663,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
486
663
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
487
664
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
488
665
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
666
|
+
//show alternative answers
|
|
667
|
+
if (alternativeAnswerCheck === 'true') {
|
|
668
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
669
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
670
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
671
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
672
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
673
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
674
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
675
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
676
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
677
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
678
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
679
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
680
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
681
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
682
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
683
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
684
|
+
}
|
|
489
685
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
490
686
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides alternative accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides correct accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
491
687
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -515,6 +711,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
515
711
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
516
712
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
517
713
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
714
|
+
//show alternative answers
|
|
715
|
+
if (alternativeAnswerCheck === 'true') {
|
|
716
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
717
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
718
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
719
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
720
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
721
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
722
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
723
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
724
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
725
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
726
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
727
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
728
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
729
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
730
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
731
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
732
|
+
}
|
|
518
733
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
519
734
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion, and clicks on \'Check answer\' button, then correct icons should only be displayed besides the common response, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
520
735
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -543,6 +758,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
543
758
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
544
759
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
545
760
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
761
|
+
//show alternative answers
|
|
762
|
+
if (alternativeAnswerCheck === 'true') {
|
|
763
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
764
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
765
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
766
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
767
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
768
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
769
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
770
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(10 points)');
|
|
771
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(0);
|
|
772
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(1);
|
|
773
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
774
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(3);
|
|
775
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(4);
|
|
776
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
777
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
778
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
779
|
+
}
|
|
546
780
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
547
781
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
548
782
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -593,6 +827,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
593
827
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
594
828
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
595
829
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
830
|
+
//show alternative answers
|
|
831
|
+
if (alternativeAnswerCheck === 'true') {
|
|
832
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
833
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
834
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
835
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
836
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
837
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
838
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
839
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
840
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
841
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
842
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
843
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
844
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
845
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
846
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
847
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
848
|
+
}
|
|
596
849
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
597
850
|
});
|
|
598
851
|
|
|
@@ -610,6 +863,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
610
863
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
611
864
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
612
865
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
866
|
+
if (alternativeAnswerCheck === 'true') {
|
|
867
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
868
|
+
}
|
|
613
869
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
614
870
|
/*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
615
871
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -636,6 +892,9 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
636
892
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
637
893
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
638
894
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
895
|
+
if (alternativeAnswerCheck === 'true') {
|
|
896
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
897
|
+
}
|
|
639
898
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
640
899
|
/*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, and status message \'Your answer is correct\' should be displayed below the question preview')
|
|
641
900
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -667,6 +926,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
667
926
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
668
927
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
669
928
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
929
|
+
//show alternative answers
|
|
930
|
+
if (alternativeAnswerCheck === 'true') {
|
|
931
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
932
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
933
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
934
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
935
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
936
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
937
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
938
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
939
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
940
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
941
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
942
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
943
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
944
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
945
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
946
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
947
|
+
}
|
|
670
948
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
671
949
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
672
950
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -698,6 +976,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
698
976
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
699
977
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
700
978
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
979
|
+
//show alternative answers
|
|
980
|
+
if (alternativeAnswerCheck === 'true') {
|
|
981
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
982
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
983
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
984
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
985
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
986
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
987
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
988
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
989
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
990
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
991
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
992
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
993
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
994
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
995
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
996
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
997
|
+
}
|
|
701
998
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
702
999
|
/*cy.log('When the user has attempted the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
703
1000
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -728,6 +1025,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
728
1025
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
729
1026
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
730
1027
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1028
|
+
//show alternative answers
|
|
1029
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1030
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
1031
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1032
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1033
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1034
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1035
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1036
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1037
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
1038
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1039
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1040
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1041
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1042
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1043
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1044
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1045
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1046
|
+
}
|
|
731
1047
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
732
1048
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct accordion and alternative accordion, then correct icon should be displayed besides correct accordion answer responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides alternative accordion answer responses, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
733
1049
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -757,6 +1073,24 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
757
1073
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
758
1074
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
759
1075
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1076
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1077
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
1078
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1079
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1080
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1081
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1082
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1083
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1084
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
1085
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1086
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1087
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1088
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1089
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1090
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1091
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1092
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1093
|
+
}
|
|
760
1094
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
761
1095
|
/*cy.log('When the user has attempted the question with the common response between correct accordion and alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the correct accordion, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
762
1096
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -785,6 +1119,25 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
785
1119
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
786
1120
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
787
1121
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
1122
|
+
//show alternative answers
|
|
1123
|
+
if (alternativeAnswerCheck === 'true') {
|
|
1124
|
+
multipleSelectionPage.steps.verifyCorrectAnswersLabelAndPointVisible('(20 points)');
|
|
1125
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
1126
|
+
multipleSelectionPage.steps.disableShowAlternativeAnswersToggle();
|
|
1127
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1128
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
1129
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1130
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
1131
|
+
multipleSelectionPage.steps.verifyAlternativeAnswersLabelAndPointVisible(1, '(20 points)');
|
|
1132
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(2);
|
|
1133
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(3);
|
|
1134
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconAlternativeAnswerSection(4);
|
|
1135
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(0);
|
|
1136
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(1);
|
|
1137
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleAlternativeAnswerSection(5);
|
|
1138
|
+
multipleSelectionPage.steps.clickShowAlternativeAnswersToggle();
|
|
1139
|
+
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
1140
|
+
}
|
|
788
1141
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
789
1142
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, and status message \'Your answer is incorrect\' should be displayed below the question preview')
|
|
790
1143
|
multipleSelectionPage.steps.checkAnswer();
|