itemengine-cypress-automation 1.0.585-IEI-7054-f7c1dac.0 → 1.0.585-IEI-7055-cypress-f1d43b9.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/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -136
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -121
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -121
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +0 -273
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +1 -6
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +69 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +69 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +69 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +69 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +81 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +69 -0
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +240 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +235 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +87 -6
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +80 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +81 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +98 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +98 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +98 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +86 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +74 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +86 -0
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +258 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +241 -0
- package/cypress/pages/graphingPage.js +1 -33
- package/cypress/pages/numberLineLabelPage.js +12 -8
- package/cypress/pages/numberLinePage.js +15 -10
- package/package.json +1 -1
|
@@ -3,7 +3,6 @@ import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const unselectedToolOption = ['Circle', 'Parabola', 'Sine', 'Polygon'];
|
|
5
5
|
const css = Cypress.env('css');
|
|
6
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
7
6
|
|
|
8
7
|
describe('Create Item page - Graphing: All or nothing with alternative answer', () => {
|
|
9
8
|
before(() => {
|
|
@@ -68,26 +67,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
68
67
|
graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
69
68
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
70
69
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
71
|
-
|
|
72
|
-
if (alternativeAnswerCheck === 'true') {
|
|
73
|
-
// Correct answer label and points
|
|
74
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
75
|
-
// Alternative answer toggle
|
|
76
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
77
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
78
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
79
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
80
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
81
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
82
|
-
// Alternate answer section
|
|
83
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
84
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
85
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
86
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
87
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
88
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
89
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
90
|
-
}
|
|
91
70
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
92
71
|
|
|
93
72
|
/*cy.log('When the user switches to \'Grading view\' without attempting the question and clicks on \'Check answer\' button, status message and correct answer section should not be displayed')
|
|
@@ -121,9 +100,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
121
100
|
//Correct/incorrect icon
|
|
122
101
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
123
102
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
124
|
-
if (alternativeAnswerCheck === 'true') {
|
|
125
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
126
|
-
}
|
|
127
103
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
128
104
|
|
|
129
105
|
/*cy.log('When the user attempts the question with responses from the correct accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -159,9 +135,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
159
135
|
//Correct/incorrect icon
|
|
160
136
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct')
|
|
161
137
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
162
|
-
if (alternativeAnswerCheck === 'true') {
|
|
163
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
164
|
-
}
|
|
165
138
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
166
139
|
|
|
167
140
|
/*cy.log('When the user attempts the question with responses from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -202,26 +175,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
202
175
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
203
176
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
204
177
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
205
|
-
|
|
206
|
-
if (alternativeAnswerCheck === 'true') {
|
|
207
|
-
// Correct answer label and points
|
|
208
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
209
|
-
// Alternative answer toggle
|
|
210
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
211
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
212
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
213
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
214
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
215
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
216
|
-
// Alternate answer section
|
|
217
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
218
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
219
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
220
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
221
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
222
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
223
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
224
|
-
}
|
|
225
178
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
226
179
|
|
|
227
180
|
/*cy.log('When the user attempts the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -262,26 +215,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
262
215
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
263
216
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
264
217
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
265
|
-
|
|
266
|
-
if (alternativeAnswerCheck === 'true') {
|
|
267
|
-
// Correct answer label and points
|
|
268
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
269
|
-
// Alternative answer toggle
|
|
270
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
271
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
272
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
273
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
274
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
275
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
276
|
-
// Alternate answer section
|
|
277
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
278
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
279
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
280
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
281
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
282
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
283
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
284
|
-
}
|
|
285
218
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
286
219
|
|
|
287
220
|
/*cy.log('When the user attempts the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -324,25 +257,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
324
257
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
325
258
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
326
259
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
327
|
-
if (alternativeAnswerCheck === 'true') {
|
|
328
|
-
// Correct answer label and points
|
|
329
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
330
|
-
// Alternative answer toggle
|
|
331
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
332
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
333
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
334
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
335
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
336
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
337
|
-
// Alternate answer section
|
|
338
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
339
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
340
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
341
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
342
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
343
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
344
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
345
|
-
}
|
|
346
260
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
347
261
|
|
|
348
262
|
/*cy.log('When the user attempts the question with equal number responses from the correct and alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -382,25 +296,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
382
296
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
383
297
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
384
298
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
385
|
-
if (alternativeAnswerCheck === 'true') {
|
|
386
|
-
// Correct answer label and points
|
|
387
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
388
|
-
// Alternative answer toggle
|
|
389
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
390
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
391
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
392
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
393
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
394
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
395
|
-
// Alternate answer section
|
|
396
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
397
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
398
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
399
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
400
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
401
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
402
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
403
|
-
}
|
|
404
299
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
405
300
|
|
|
406
301
|
/*cy.log('When the user attempts the question with common response from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -439,25 +334,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
439
334
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
440
335
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
441
336
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
|
|
442
|
-
if (alternativeAnswerCheck === 'true') {
|
|
443
|
-
// Correct answer label and points
|
|
444
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
445
|
-
// Alternative answer toggle
|
|
446
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
447
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
448
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
449
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
450
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
451
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
452
|
-
// Alternate answer section
|
|
453
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(12 points)', 1);
|
|
454
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
455
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
456
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
457
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 1);
|
|
458
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
459
|
-
utilities.verifyElementCount(graphingPage.graphPolygonAlternativeAnswerSection(), 1);
|
|
460
|
-
}
|
|
461
337
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
462
338
|
|
|
463
339
|
/*cy.log('When the user has attempted the question with incorrect responses and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -491,9 +367,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
491
367
|
graphingPage.steps.switchToGradingView();
|
|
492
368
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
493
369
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
494
|
-
if (alternativeAnswerCheck === 'true') {
|
|
495
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
496
|
-
}
|
|
497
370
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
498
371
|
});
|
|
499
372
|
|
|
@@ -506,9 +379,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
506
379
|
graphingPage.steps.switchToGradingView();
|
|
507
380
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
508
381
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
509
|
-
if (alternativeAnswerCheck === 'true') {
|
|
510
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
511
|
-
}
|
|
512
382
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
513
383
|
});
|
|
514
384
|
});
|
|
@@ -537,9 +407,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
537
407
|
graphingPage.steps.switchToGradingView();
|
|
538
408
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
539
409
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
540
|
-
if (alternativeAnswerCheck === 'true') {
|
|
541
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
542
|
-
}
|
|
543
410
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
544
411
|
});
|
|
545
412
|
|
|
@@ -550,9 +417,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
550
417
|
graphingPage.steps.switchToGradingView();
|
|
551
418
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
552
419
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
553
|
-
if (alternativeAnswerCheck === 'true') {
|
|
554
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
555
|
-
}
|
|
556
420
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
557
421
|
});
|
|
558
422
|
});
|
package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js
CHANGED
|
@@ -3,7 +3,6 @@ import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
|
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
|
4
4
|
const unselectedToolOption = ['Circle', 'Parabola', 'Sine', 'Polygon'];
|
|
5
5
|
const css = Cypress.env('css');
|
|
6
|
-
const alternativeAnswerCheck = Cypress.env('ENABLE_ALTERNATIVE_ANSWER_ENHANCEMENT');
|
|
7
6
|
|
|
8
7
|
describe('Create Item page - Graphing: All or nothing with alternative answer', () => {
|
|
9
8
|
before(() => {
|
|
@@ -69,24 +68,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
69
68
|
graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
|
70
69
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
71
70
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
|
72
|
-
if (alternativeAnswerCheck === 'true') {
|
|
73
|
-
// Correct answer label and points
|
|
74
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
75
|
-
// Alternative answer toggle
|
|
76
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
77
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
78
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
79
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
80
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
81
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
82
|
-
// Alternate answer section
|
|
83
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
84
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
85
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
86
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
87
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
88
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
89
|
-
}
|
|
90
71
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
91
72
|
|
|
92
73
|
/*cy.log('When the user switches to \'Grading view\' without attempting the question and clicks on \'Check answer\' button, status message and correct answer section should not be displayed')
|
|
@@ -119,9 +100,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
119
100
|
//Correct/incorrect icon
|
|
120
101
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
121
102
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
122
|
-
if (alternativeAnswerCheck === 'true') {
|
|
123
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
124
|
-
}
|
|
125
103
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
126
104
|
|
|
127
105
|
/*cy.log('When the user attempts the question with responses from the correct accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -157,9 +135,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
157
135
|
//Correct/incorrect icon
|
|
158
136
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct')
|
|
159
137
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
160
|
-
if (alternativeAnswerCheck === 'true') {
|
|
161
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
162
|
-
}
|
|
163
138
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
164
139
|
|
|
165
140
|
/*cy.log('When the user attempts the question with responses from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -201,24 +176,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
201
176
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
202
177
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
203
178
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
|
204
|
-
if (alternativeAnswerCheck === 'true') {
|
|
205
|
-
// Correct answer label and points
|
|
206
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
207
|
-
// Alternative answer toggle
|
|
208
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
209
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
210
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
211
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
212
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
213
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
214
|
-
// Alternate answer section
|
|
215
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
216
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
217
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
218
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
219
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
220
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
221
|
-
}
|
|
222
179
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
223
180
|
|
|
224
181
|
/*cy.log('When the user attempts the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -260,24 +217,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
260
217
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
261
218
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
262
219
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
|
263
|
-
if (alternativeAnswerCheck === 'true') {
|
|
264
|
-
// Correct answer label and points
|
|
265
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
266
|
-
// Alternative answer toggle
|
|
267
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
268
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
269
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
270
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
271
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
272
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
273
|
-
// Alternate answer section
|
|
274
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
275
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
276
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
277
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
278
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
279
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
280
|
-
}
|
|
281
220
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
282
221
|
|
|
283
222
|
/*cy.log('When the user attempts the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -321,24 +260,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
321
260
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
322
261
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
323
262
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
|
324
|
-
if (alternativeAnswerCheck === 'true') {
|
|
325
|
-
// Correct answer label and points
|
|
326
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
327
|
-
// Alternative answer toggle
|
|
328
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
329
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
330
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
331
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
332
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
333
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
334
|
-
// Alternate answer section
|
|
335
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
336
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
337
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
338
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
339
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
340
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
341
|
-
}
|
|
342
263
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
343
264
|
|
|
344
265
|
/*cy.log('When the user attempts the question with equal number responses from the correct and alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -379,24 +300,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
379
300
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
380
301
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
381
302
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }]);
|
|
382
|
-
if (alternativeAnswerCheck === 'true') {
|
|
383
|
-
// Correct answer label and points
|
|
384
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
385
|
-
// Alternative answer toggle
|
|
386
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
387
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
388
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
389
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
390
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
391
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
392
|
-
// Alternate answer section
|
|
393
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
394
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
395
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
396
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
397
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
398
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
399
|
-
}
|
|
400
303
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
401
304
|
|
|
402
305
|
/*cy.log('When the user attempts the question with common response from the alternative accordion and clicks on \'Check answer\' button, the attempted graph should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
|
@@ -436,24 +339,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
436
339
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
|
437
340
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
438
341
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
|
439
|
-
if (alternativeAnswerCheck === 'true') {
|
|
440
|
-
// Correct answer label and points
|
|
441
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Correct answer', '(20 points)', 0);
|
|
442
|
-
// Alternative answer toggle
|
|
443
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleExists();
|
|
444
|
-
graphingPage.steps.disableShowAlternativeAnswersToggle();
|
|
445
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleUnchecked();
|
|
446
|
-
graphingPage.steps.verifyAlternativeAnswersSectionNotExist();
|
|
447
|
-
graphingPage.steps.clickShowAlternativeAnswersToggle();
|
|
448
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleChecked();
|
|
449
|
-
// Alternate answer section
|
|
450
|
-
graphingPage.steps.verifyAnswerLabelAndPoints('Alternative answer', '(20 points)', 1);
|
|
451
|
-
utilities.verifyElementCount(graphingPage.graphCircleAlternativeAnswerSection(), 2);
|
|
452
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
|
|
453
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 0, xRange: 20, y: 1, yRange: 20 }, { x: 0, xRange: 20, y: 2, yRange: 20 }]);
|
|
454
|
-
utilities.verifyElementCount(graphingPage.graphLineAlternativeAnswerSection(), 2);
|
|
455
|
-
graphingPage.steps.verifyPointsPlottedOnAlternativeAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
|
456
|
-
}
|
|
457
342
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
458
343
|
|
|
459
344
|
/*cy.log('When the user has attempted the question with incorrect responses and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
|
@@ -492,9 +377,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
492
377
|
graphingPage.steps.switchToGradingView();
|
|
493
378
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
494
379
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
495
|
-
if (alternativeAnswerCheck === 'true') {
|
|
496
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
497
|
-
}
|
|
498
380
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
499
381
|
});
|
|
500
382
|
|
|
@@ -505,9 +387,6 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
|
505
387
|
graphingPage.steps.switchToGradingView();
|
|
506
388
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
|
507
389
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
|
508
|
-
if (alternativeAnswerCheck === 'true') {
|
|
509
|
-
graphingPage.steps.verifyShowAlternativeAnswersToggleNotExists();
|
|
510
|
-
}
|
|
511
390
|
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
|
512
391
|
});
|
|
513
392
|
});
|