itemengine-cypress-automation 1.0.564-IEI-7011-cf323ce.0 → 1.0.564-IEI-6998-Add-coverage-for-image-hightlight-question-type-f372002.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 +1 -2
- package/cypress/config-files/ilqa.json +1 -2
- package/cypress/config-files/ilstage.json +1 -2
- package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +86 -0
- package/cypress/e2e/ILC/ImageHighlight/backgroundImageAndCanvasProperties.js +60 -9
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +14 -12
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +12 -3
- package/cypress/e2e/ILC/ImageHighlight/minimumScoringPenaltyPointsAndRoundingDropdown.js +65 -2
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +15 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +1 -168
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -86
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +0 -91
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +0 -79
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -130
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +0 -16
- package/cypress/pages/components/index.js +0 -1
- package/cypress/pages/imageHighlightPage.js +184 -7
- package/cypress/pages/itemPreviewPage.js +1 -0
- package/cypress/pages/multipleSelectionPage.js +1 -3
- package/cypress/pages/singleSelectionPage.js +1 -5
- package/cypress/support/helpers/utilities.js +16 -0
- package/package.json +1 -1
- package/service.yaml +1 -9
- package/cypress/pages/components/showAlternativeAnswersComponent.js +0 -169
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { dialogBoxBase, gradingViewPage, itemPreviewPage, multipleSelectionPage, studentViewPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
|
4
|
-
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'
|
|
4
|
+
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'];
|
|
5
5
|
const grepTags = Cypress.env('grepTags');
|
|
6
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
7
6
|
let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
|
|
8
7
|
let questionMethodsViews = ['Question preview', 'Grading view'];
|
|
9
8
|
const views = utilities.getViews(correctAnswerViews);
|
|
@@ -204,172 +203,6 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
|
204
203
|
});
|
|
205
204
|
});
|
|
206
205
|
|
|
207
|
-
views.forEach((view) => {
|
|
208
|
-
describe(`Multiple selection: all or nothing scoring with alternative answer - ${view}`, { tags: 'smoke' }, () => {
|
|
209
|
-
abortEarlySetup();
|
|
210
|
-
before(() => {
|
|
211
|
-
switch (view) {
|
|
212
|
-
case 'Question preview':
|
|
213
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
|
214
|
-
cy.barsPreLoaderWait();
|
|
215
|
-
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
|
216
|
-
multipleSelectionPage.steps.addOption();
|
|
217
|
-
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
|
218
|
-
multipleSelectionPage.steps.allotPoints(20);
|
|
219
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
|
220
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
|
221
|
-
multipleSelectionPage.steps.clickOnAddAlternativeAnswerButton();
|
|
222
|
-
multipleSelectionPage.steps.allotPoints(10);
|
|
223
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(4);
|
|
224
|
-
multipleSelectionPage.steps.switchToPreviewTab();
|
|
225
|
-
break;
|
|
226
|
-
case 'Item preview':
|
|
227
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
|
228
|
-
itemPreviewPage.steps.switchToPreviewTab();
|
|
229
|
-
break;
|
|
230
|
-
case 'Grading view':
|
|
231
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
|
232
|
-
break;
|
|
233
|
-
}
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
beforeEach(() => {
|
|
237
|
-
switch (view) {
|
|
238
|
-
case 'Question preview':
|
|
239
|
-
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
240
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
|
|
241
|
-
multipleSelectionPage.steps.resetQuestionPreview();
|
|
242
|
-
break;
|
|
243
|
-
case 'Item preview':
|
|
244
|
-
itemPreviewPage.steps.switchToStudentView();
|
|
245
|
-
itemPreviewPage.steps.resetQuestionPreview();
|
|
246
|
-
break;
|
|
247
|
-
case 'Grading view':
|
|
248
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
|
249
|
-
break;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
|
|
253
|
-
if (view === 'Question preview') {
|
|
254
|
-
after(() => {
|
|
255
|
-
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
|
256
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
|
257
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
|
|
262
|
-
if (view === 'Grading view') {
|
|
263
|
-
studentViewPage.steps.submitResponse();
|
|
264
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
265
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
266
|
-
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
267
|
-
}
|
|
268
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
|
269
|
-
multipleSelectionPage.steps.switchToGradingView();
|
|
270
|
-
multipleSelectionPage.steps.verifyPreviewScore(0, 20);
|
|
271
|
-
}
|
|
272
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
|
273
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
|
274
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
|
275
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
|
276
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
|
277
|
-
//correct answer section
|
|
278
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
|
279
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
|
280
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
281
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
282
|
-
if (alternativeAnswerCheck === 'true') {
|
|
283
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
|
288
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
|
289
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
|
290
|
-
if (view === 'Grading view') {
|
|
291
|
-
studentViewPage.steps.submitResponse();
|
|
292
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
293
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
294
|
-
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
295
|
-
}
|
|
296
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
|
297
|
-
multipleSelectionPage.steps.verifyPreviewScore(0, 20);
|
|
298
|
-
multipleSelectionPage.steps.switchToGradingView();
|
|
299
|
-
}
|
|
300
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
|
301
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
|
302
|
-
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
|
303
|
-
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
|
|
304
|
-
//correct answer section
|
|
305
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
|
306
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
|
307
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
308
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
309
|
-
if (alternativeAnswerCheck === 'true') {
|
|
310
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
311
|
-
}
|
|
312
|
-
});
|
|
313
|
-
|
|
314
|
-
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses and no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
|
315
|
-
if (view === 'Grading view') {
|
|
316
|
-
studentViewPage.steps.clearResponses();
|
|
317
|
-
}
|
|
318
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
|
319
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
|
320
|
-
if (view === 'Grading view') {
|
|
321
|
-
studentViewPage.steps.submitResponse();
|
|
322
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
|
|
323
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
324
|
-
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
|
325
|
-
}
|
|
326
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
|
327
|
-
multipleSelectionPage.steps.verifyPreviewScore(0, 20);
|
|
328
|
-
multipleSelectionPage.steps.switchToGradingView();
|
|
329
|
-
}
|
|
330
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
|
331
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
|
332
|
-
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
|
333
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
|
334
|
-
//correct answer section
|
|
335
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
|
336
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
|
337
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
|
338
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
339
|
-
if (alternativeAnswerCheck === 'true') {
|
|
340
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
341
|
-
}
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
it(`${view}: Multiple selection - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, and status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed`, () => {
|
|
345
|
-
if (view === 'Grading view') {
|
|
346
|
-
studentViewPage.steps.clearResponses();
|
|
347
|
-
}
|
|
348
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
|
349
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
|
350
|
-
if (view === 'Grading view') {
|
|
351
|
-
studentViewPage.steps.submitResponse();
|
|
352
|
-
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
|
353
|
-
studentViewPage.steps.clickOnGoToGradingViewButton();
|
|
354
|
-
gradingViewPage.steps.verifyGradingViewScore(20, 20);
|
|
355
|
-
}
|
|
356
|
-
if (view === 'Question preview' || view === 'Item preview') {
|
|
357
|
-
multipleSelectionPage.steps.verifyPreviewScore(20, 20);
|
|
358
|
-
multipleSelectionPage.steps.switchToGradingView();
|
|
359
|
-
}
|
|
360
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
|
361
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
|
362
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
|
363
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
|
364
|
-
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
365
|
-
if (alternativeAnswerCheck === 'true') {
|
|
366
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
367
|
-
}
|
|
368
|
-
cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question correctly`);
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
|
|
373
206
|
views.forEach((view) => {
|
|
374
207
|
describe(`Multiple selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
|
|
375
208
|
abortEarlySetup();
|
|
@@ -2,7 +2,6 @@ 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');
|
|
6
5
|
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'];
|
|
7
6
|
|
|
8
7
|
describe('Create item page - Multiple selection: All or nothing with alternative answer', () => {
|
|
@@ -49,9 +48,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
49
48
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
50
49
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
51
50
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
52
|
-
if (alternativeAnswerCheck === 'true') {
|
|
53
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
54
|
-
}
|
|
55
51
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
56
52
|
});
|
|
57
53
|
|
|
@@ -69,9 +65,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
69
65
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
70
66
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
71
67
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
72
|
-
if (alternativeAnswerCheck === 'true') {
|
|
73
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
74
|
-
}
|
|
75
68
|
//multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
76
69
|
/*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')
|
|
77
70
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -119,9 +112,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
119
112
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
120
113
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
121
114
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
122
|
-
if (alternativeAnswerCheck === 'true') {
|
|
123
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
124
|
-
}
|
|
125
115
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
116
|
/*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')
|
|
127
117
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -153,10 +143,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
153
143
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
154
144
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
155
145
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
156
|
-
//show alternative answers
|
|
157
|
-
if (alternativeAnswerCheck === 'true') {
|
|
158
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
159
|
-
}
|
|
160
146
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
161
147
|
/*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')
|
|
162
148
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -188,10 +174,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
188
174
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
189
175
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
190
176
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
191
|
-
//show alternative answers
|
|
192
|
-
if (alternativeAnswerCheck === 'true') {
|
|
193
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
194
|
-
}
|
|
195
177
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
196
178
|
/*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')
|
|
197
179
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -222,10 +204,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
222
204
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
223
205
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
224
206
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
225
|
-
//show alternative answers
|
|
226
|
-
if (alternativeAnswerCheck === 'true') {
|
|
227
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
228
|
-
}
|
|
229
207
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
230
208
|
/*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')
|
|
231
209
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -256,10 +234,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
256
234
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
257
235
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
258
236
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
259
|
-
//show alternative answers
|
|
260
|
-
if (alternativeAnswerCheck === 'true') {
|
|
261
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
262
|
-
}
|
|
263
237
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
264
238
|
/*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')
|
|
265
239
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -288,10 +262,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
288
262
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
289
263
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
290
264
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
291
|
-
//show alternative answers
|
|
292
|
-
if (alternativeAnswerCheck === 'true') {
|
|
293
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
294
|
-
}
|
|
295
265
|
// multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
296
266
|
/*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')
|
|
297
267
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -381,10 +351,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
381
351
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
382
352
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
383
353
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
384
|
-
//show alternative answers
|
|
385
|
-
if (alternativeAnswerCheck === 'true') {
|
|
386
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
387
|
-
}
|
|
388
354
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
389
355
|
});
|
|
390
356
|
|
|
@@ -402,9 +368,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
402
368
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
403
369
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
404
370
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
405
|
-
if (alternativeAnswerCheck === 'true') {
|
|
406
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
407
|
-
}
|
|
408
371
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
409
372
|
/*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')
|
|
410
373
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -431,9 +394,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
431
394
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
432
395
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
433
396
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
434
|
-
if (alternativeAnswerCheck === 'true') {
|
|
435
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
436
|
-
}
|
|
437
397
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
438
398
|
/*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')
|
|
439
399
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -466,10 +426,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
466
426
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
467
427
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
468
428
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
469
|
-
//show alternative answers
|
|
470
|
-
if (alternativeAnswerCheck === 'true') {
|
|
471
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
472
|
-
}
|
|
473
429
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
474
430
|
/*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')
|
|
475
431
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -500,10 +456,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
500
456
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
501
457
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
502
458
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
503
|
-
//show alternative answers
|
|
504
|
-
if (alternativeAnswerCheck === 'true') {
|
|
505
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
506
|
-
}
|
|
507
459
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
508
460
|
/*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')
|
|
509
461
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -534,10 +486,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
534
486
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
535
487
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
536
488
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
537
|
-
//show alternative answers
|
|
538
|
-
if (alternativeAnswerCheck === 'true') {
|
|
539
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
540
|
-
}
|
|
541
489
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
542
490
|
/*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')
|
|
543
491
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -567,10 +515,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
567
515
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
568
516
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
569
517
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
570
|
-
//show alternative answers
|
|
571
|
-
if (alternativeAnswerCheck === 'true') {
|
|
572
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
573
|
-
}
|
|
574
518
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
575
519
|
/*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')
|
|
576
520
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -599,10 +543,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
599
543
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(3);
|
|
600
544
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(4);
|
|
601
545
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
602
|
-
//show alternative answers
|
|
603
|
-
if (alternativeAnswerCheck === 'true') {
|
|
604
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 10);
|
|
605
|
-
}
|
|
606
546
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
607
547
|
/*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')
|
|
608
548
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -653,10 +593,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
653
593
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
654
594
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
655
595
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
656
|
-
//show alternative answers
|
|
657
|
-
if (alternativeAnswerCheck === 'true') {
|
|
658
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
|
|
659
|
-
}
|
|
660
596
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
661
597
|
});
|
|
662
598
|
|
|
@@ -674,9 +610,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
674
610
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
675
611
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
676
612
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
677
|
-
if (alternativeAnswerCheck === 'true') {
|
|
678
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
679
|
-
}
|
|
680
613
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
681
614
|
/*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')
|
|
682
615
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -703,9 +636,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
703
636
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(5);
|
|
704
637
|
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
705
638
|
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
706
|
-
if (alternativeAnswerCheck === 'true') {
|
|
707
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
708
|
-
}
|
|
709
639
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
710
640
|
/*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')
|
|
711
641
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -737,10 +667,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
737
667
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
738
668
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
739
669
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
740
|
-
//show alternative answers
|
|
741
|
-
if (alternativeAnswerCheck === 'true') {
|
|
742
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
|
|
743
|
-
}
|
|
744
670
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
745
671
|
/*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')
|
|
746
672
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -772,10 +698,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
772
698
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
773
699
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
774
700
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
775
|
-
//show alternative answers
|
|
776
|
-
if (alternativeAnswerCheck === 'true') {
|
|
777
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
|
|
778
|
-
}
|
|
779
701
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
780
702
|
/*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')
|
|
781
703
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -806,10 +728,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
806
728
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
807
729
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
808
730
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
809
|
-
//show alternative answers
|
|
810
|
-
if (alternativeAnswerCheck === 'true') {
|
|
811
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
|
|
812
|
-
}
|
|
813
731
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
814
732
|
/*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')
|
|
815
733
|
multipleSelectionPage.steps.checkAnswer();
|
|
@@ -867,10 +785,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
|
|
|
867
785
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
|
868
786
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(4);
|
|
869
787
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(5);
|
|
870
|
-
//show alternative answers
|
|
871
|
-
if (alternativeAnswerCheck === 'true') {
|
|
872
|
-
multipleSelectionPage.steps.verifyShowAlternativeAnswersToggleFunctionality(1, 20);
|
|
873
|
-
}
|
|
874
788
|
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
875
789
|
/*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')
|
|
876
790
|
multipleSelectionPage.steps.checkAnswer();
|