itemengine-cypress-automation 1.0.216 → 1.0.218-numberLineFixes-382e88a.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -1
  2. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +61 -60
  3. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +56 -56
  4. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +57 -57
  5. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +43 -41
  6. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +71 -66
  7. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +86 -77
  8. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +89 -81
  9. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +66 -58
  10. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +158 -153
  11. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.js +5 -5
  12. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +3 -3
  13. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +8 -8
  14. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +40 -40
  15. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +10 -10
  16. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +56 -56
  17. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +10 -10
  18. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +20 -20
  19. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +8 -8
  20. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +31 -31
  21. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -2
  22. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
  23. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -2
  24. package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +1 -1
  25. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -2
  26. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +1 -1
  27. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
  28. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -1
  29. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  30. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +1 -1
  31. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  32. package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -2
  33. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
  34. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  35. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -1
  36. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +6 -6
  37. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +8 -8
  38. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +3 -3
  39. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +5 -5
  40. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -2
  41. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +1 -0
  42. package/cypress/pages/components/layoutSectionComponent.js +65 -53
  43. package/cypress/pages/components/numberLineCommonComponent.js +76 -52
  44. package/cypress/pages/listOrderingPage.js +13 -0
  45. package/cypress/pages/numberLineLabelPage.js +25 -21
  46. package/cypress/pages/numberLinePage.js +64 -59
  47. package/package.json +2 -2
@@ -45,11 +45,11 @@ const steps = {
45
45
 
46
46
  /**
47
47
  * Verifies the orientation and size of the specify correct answer section.
48
- * @param {string} orientation - The orientation of the specify correct answer section ('Horizontal' or 'Vertical').
48
+ * @param {string} orientation - The orientation of the specify correct answer section ('Sideways' or 'Upright').
49
49
  * @param {string} value - The value representing the width or height of the specify correct answer section.
50
50
  */
51
51
  verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection: (orientation, value) => {
52
- if (orientation === 'Horizontal') {
52
+ if (orientation === 'Sideways') {
53
53
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
54
54
  .should('have.attr', 'width', value)
55
55
  } else {
@@ -70,13 +70,13 @@ const steps = {
70
70
 
71
71
  /**
72
72
  * Verifies the response spacing for the specify correct answer section of the number line.
73
- * @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
73
+ * @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
74
74
  * @param {number} value - The expected response spacing value.
75
75
  */
76
76
  verifyResponseSpacingSpecifyCorrectAnswerSection: (orientation, value) => {
77
- const attribute = orientation === 'Horizontal' ? 'height' : 'width';
77
+ const attribute = orientation === 'Sideways' ? 'height' : 'width';
78
78
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
79
- .should('have.attr', attribute, value * 4);
79
+ .should('have.attr', attribute, value * 5);
80
80
  },
81
81
 
82
82
  /**
@@ -127,17 +127,19 @@ const steps = {
127
127
 
128
128
  /**
129
129
  * Verifies the visibility and text of labels on the specify correct answer section of the number line.
130
- * @param {string} value - The initial value of the labels.
130
+ * @param {string} min - The initial value of the labels.
131
131
  * @param {number} interval - The interval between consecutive labels.
132
132
  */
133
- verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection: (value, interval) => {
133
+ verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection: (min, interval) => {
134
134
  cy.log('Wait added to make sure all the labels are visible after checking the checkbox')
135
135
  cy.wait(3000)
136
136
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
137
137
  .parents('.ngie-jxgbox')
138
138
  .find('.number-line-tick-font')
139
139
  .its('length').then((len) => {
140
- for (let index = 0; index < len; index++) {
140
+ const length = len - 3;
141
+ let value = min + 1;
142
+ for (let index = 0; index < length; index++) {
141
143
  numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
142
144
  .parents('.ngie-jxgbox')
143
145
  .find('.number-line-tick-font')
@@ -145,16 +147,26 @@ const steps = {
145
147
  .should('have.text', value);
146
148
  value += interval;
147
149
  }
150
+ numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
151
+ .parents('.ngie-jxgbox')
152
+ .find('.number-line-tick-font')
153
+ .eq(len - 2)
154
+ .should('have.text', min);
155
+ numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
156
+ .parents('.ngie-jxgbox')
157
+ .find('.number-line-tick-font')
158
+ .eq(len - 1)
159
+ .should('have.text', `${value + 1}`);
148
160
  });
149
161
  },
150
162
 
151
163
  /**
152
164
  * Verifies the orientation and size of the preview tab of the number line.
153
- * @param {string} orientation - The orientation of the preview tab ('Horizontal' or 'Vertical').
165
+ * @param {string} orientation - The orientation of the preview tab ('Sideways' or 'Upright').
154
166
  * @param {string} value - The value representing the width or height of the preview tab.
155
167
  */
156
168
  verifyNumberLineOrientationAndSizePreviewTab: (orientation, value) => {
157
- if (orientation === 'Horizontal') {
169
+ if (orientation === 'Sideways') {
158
170
  numberLineCommonComponent.numberLinePreviewTab()
159
171
  .should('have.attr', 'width', value)
160
172
  } else {
@@ -175,13 +187,13 @@ const steps = {
175
187
 
176
188
  /**
177
189
  * Verifies the response spacing for the preview tab of the number line.
178
- * @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
190
+ * @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
179
191
  * @param {number} value - The expected response spacing value.
180
192
  */
181
193
  verifyResponseSpacingPreviewTab: (orientation, value) => {
182
- const attribute = orientation === 'Horizontal' ? 'height' : 'width';
194
+ const attribute = orientation === 'Sideways' ? 'height' : 'width';
183
195
  numberLineCommonComponent.numberLinePreviewTab()
184
- .should('have.attr', attribute, value * 4);
196
+ .should('have.attr', attribute, value * 5);
185
197
  },
186
198
 
187
199
  /**
@@ -224,15 +236,17 @@ const steps = {
224
236
 
225
237
  /**
226
238
  * Verifies the visibility and text of labels on the preview tab of the number line.
227
- * @param {string} value - The initial value of the labels.
239
+ * @param {string} min - The initial value of the labels.
228
240
  * @param {number} interval - The interval between consecutive labels.
229
241
  */
230
- verifyLabelsVisibleOnNumberLinePreviewTab: (value, interval) => {
242
+ verifyLabelsVisibleOnNumberLinePreviewTab: (min, interval) => {
231
243
  numberLineCommonComponent.numberLinePreviewTab()
232
244
  .parents('.ngie-jxgbox')
233
245
  .find('.number-line-tick-font')
234
246
  .its('length').then((len) => {
235
- for (let index = 0; index < len; index++) {
247
+ const length = len - 3;
248
+ let value = min + 1;
249
+ for (let index = 0; index < length; index++) {
236
250
  numberLineCommonComponent.numberLinePreviewTab()
237
251
  .parents('.ngie-jxgbox')
238
252
  .find('.number-line-tick-font')
@@ -240,6 +254,16 @@ const steps = {
240
254
  .should('have.text', value);
241
255
  value += interval;
242
256
  }
257
+ numberLineCommonComponent.numberLinePreviewTab()
258
+ .parents('.ngie-jxgbox')
259
+ .find('.number-line-tick-font')
260
+ .eq(len - 2)
261
+ .should('have.text', min);
262
+ numberLineCommonComponent.numberLinePreviewTab()
263
+ .parents('.ngie-jxgbox')
264
+ .find('.number-line-tick-font')
265
+ .eq(len - 1)
266
+ .should('have.text', `${value + 1}`);
243
267
  });
244
268
  },
245
269
 
@@ -323,7 +347,7 @@ const steps = {
323
347
  const tests = {
324
348
  /**
325
349
  * Verifies the functionality of the layout section in the edit tab.
326
- * @param {('Horizontal'|'Vertical')} orientation - The orientation of the number line
350
+ * @param {('Sideways'|'Upright')} orientation - The orientation of the number line
327
351
  */
328
352
  verifyLayoutSectionEditTabFunctionality: (orientation) => {
329
353
  it(`When user selects ${orientation} orientation, then number line in Number line section and Specify correct answer section should be updated to ${orientation} number line`, () => {
@@ -332,7 +356,7 @@ const tests = {
332
356
  numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection(orientation, '640');
333
357
  });
334
358
 
335
- if (orientation === "Horizontal") {
359
+ if (orientation === "Sideways") {
336
360
  it('When user updates value for Width input field, it should get updated in Number line section and Specify correct answer section', () => {
337
361
  numberLineCommonComponent.steps.enterTextInWidthInputField(600);
338
362
  numberLineCommonComponent.steps.verifyTextInWidthInputField(600);
@@ -357,26 +381,26 @@ const tests = {
357
381
  numberLineCommonComponent.steps.enterTextInMarginInputField(10);
358
382
  });
359
383
 
360
- it('When user checks Show min arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
361
- numberLineCommonComponent.steps.checkCheckbox('Show min arrow');
384
+ it('When user checks Display minimum arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
385
+ numberLineCommonComponent.steps.checkCheckbox('Display minimum arrow');
362
386
  numberLineCommonComponent.steps.verifyMinArrowVisibilitySpecifyCorrectAnswerSection('visible');
363
387
  numberLineCommonComponent.steps.verifyMinArrowVisibilityNumberLineSection('visible');
364
388
  });
365
389
 
366
- it('When user unchecks Show min arrow checkbox, then arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
367
- numberLineCommonComponent.steps.uncheckCheckbox('Show min arrow');
390
+ it('When user unchecks Display minimum arrow checkbox, then arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
391
+ numberLineCommonComponent.steps.uncheckCheckbox('Display minimum arrow');
368
392
  numberLineCommonComponent.steps.verifyMinArrowVisibilitySpecifyCorrectAnswerSection('hidden');
369
393
  numberLineCommonComponent.steps.verifyMinArrowVisibilityNumberLineSection('hidden');
370
394
  });
371
395
 
372
- it('When user checks Show max arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
373
- numberLineCommonComponent.steps.checkCheckbox('Show max arrow');
396
+ it('When user checks Display maximum arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
397
+ numberLineCommonComponent.steps.checkCheckbox('Display maximum arrow');
374
398
  numberLineCommonComponent.steps.verifyMaxArrowVisibilitySpecifyCorrectAnswerSection('visible');
375
399
  numberLineCommonComponent.steps.verifyMaxArrowVisibilityNumberLineSection('visible');
376
400
  });
377
401
 
378
- it('When user unchecks Show max arrow checkbox, then arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
379
- numberLineCommonComponent.steps.uncheckCheckbox('Show max arrow');
402
+ it('When user unchecks Display maximum arrow checkbox, then arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
403
+ numberLineCommonComponent.steps.uncheckCheckbox('Display maximum arrow');
380
404
  numberLineCommonComponent.steps.verifyMaxArrowVisibilitySpecifyCorrectAnswerSection('hidden');
381
405
  numberLineCommonComponent.steps.verifyMaxArrowVisibilityNumberLineSection('hidden');
382
406
  });
@@ -391,40 +415,40 @@ const tests = {
391
415
  numberLineCommonComponent.steps.checkCheckbox('Stagger response');
392
416
  });
393
417
 
394
- it('When user unchecks Show labels checkbox, then labels on number line should disappear in number line section and specify correct answer section', () => {
395
- numberLineCommonComponent.steps.uncheckCheckbox('Show labels');
418
+ it('When user unchecks Display values checkbox, then labels on number line should disappear in number line section and specify correct answer section', () => {
419
+ numberLineCommonComponent.steps.uncheckCheckbox('Display values');
396
420
  numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLineNumberLineSection();
397
421
  numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLineSpecifyCorrectAnswerSection();
398
422
  });
399
423
 
400
- it('When Show labels checkbox is unchecked, then Line settings and Display numbers section should be in disabled state', () => {
424
+ it('When Display values checkbox is unchecked, then Line settings and Display numbers section should be in disabled state', () => {
401
425
  numberLineCommonComponent.steps.verifyDisplayNumbersAndLineSettingsSectionDisabled();
402
426
  });
403
427
 
404
- it('When user checks Show labels checkbox, then labels on number line should be displayed in number line section and specify correct answer section', () => {
405
- numberLineCommonComponent.steps.checkCheckbox('Show labels');
428
+ it('When user checks Display values checkbox, then labels on number line should be displayed in number line section and specify correct answer section', () => {
429
+ numberLineCommonComponent.steps.checkCheckbox('Display values');
406
430
  numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineNumberLineSection(-10, 1);
407
431
  numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection(-10, 1);
408
432
  });
409
433
 
410
- it('When Show labels checkbox is checked, then Line settings and Display numbers section should be in enabled state', () => {
434
+ it('When Display values checkbox is checked, then Line settings and Display numbers section should be in enabled state', () => {
411
435
  numberLineCommonComponent.steps.verifyDisplayNumbersAndLineSettingsSectionEnabled();
412
436
  });
413
437
 
414
438
  //Note: Unable to check on cypress, added to manual sheet
415
- it('When user unchecks Show ticks checkbox, then ticks on number line should disappear in number line section and specify correct answer section', () => {
439
+ it('When user unchecks Display nodes checkbox, then ticks on number line should disappear in number line section and specify correct answer section', () => {
416
440
 
417
441
  });
418
442
 
419
443
  //Note: Unable to check on cypress, added to manual sheet
420
- it('When user checks Show ticks checkbox, then ticks on number line should be displayed in number line section and specify correct answer section', () => {
444
+ it('When user checks Display nodes checkbox, then ticks on number line should be displayed in number line section and specify correct answer section', () => {
421
445
 
422
446
  });
423
447
  },
424
448
 
425
449
  /**
426
450
  * Verifies the functionality of the layout section in the preview tab.
427
- * @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
451
+ * @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
428
452
  */
429
453
  verifyLayoutSectionPreviewTabFunctionality: (orientation) => {
430
454
  it(`When user selects ${orientation} orientation, then ${orientation} number line should be displayed in preview tab`, () => {
@@ -434,7 +458,7 @@ const tests = {
434
458
  numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizePreviewTab(orientation, '640');
435
459
  });
436
460
 
437
- if (orientation === "Horizontal") {
461
+ if (orientation === "Sideways") {
438
462
  it('When user updates value for Width input field, it should get updated in preview tab', () => {
439
463
  numberLineCommonComponent.steps.switchToEditTab();
440
464
  numberLineCommonComponent.steps.enterTextInWidthInputField(600);
@@ -463,63 +487,63 @@ const tests = {
463
487
  numberLineCommonComponent.steps.verifyMarginForNumberLinePreviewTab(12);
464
488
  });
465
489
 
466
- it('When user checks Show min arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in preview tab', () => {
490
+ it('When user checks Display minimum arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in preview tab', () => {
467
491
  numberLineCommonComponent.steps.switchToEditTab();
468
492
  numberLineCommonComponent.steps.enterTextInMarginInputField(10);
469
- numberLineCommonComponent.steps.checkCheckbox('Show min arrow');
493
+ numberLineCommonComponent.steps.checkCheckbox('Display minimum arrow');
470
494
  numberLineCommonComponent.steps.switchToPreviewTab();
471
495
  numberLineCommonComponent.steps.verifyMinArrowVisibilityPreviewTab('visible');
472
496
  });
473
497
 
474
- it('When user unchecks Show min arrow checkbox, then arrow should not be displayed on left end of number line in preview tab', () => {
498
+ it('When user unchecks Display minimum arrow checkbox, then arrow should not be displayed on left end of number line in preview tab', () => {
475
499
  numberLineCommonComponent.steps.switchToEditTab();
476
- numberLineCommonComponent.steps.uncheckCheckbox('Show min arrow');
500
+ numberLineCommonComponent.steps.uncheckCheckbox('Display minimum arrow');
477
501
  numberLineCommonComponent.steps.switchToPreviewTab();
478
502
  numberLineCommonComponent.steps.verifyMinArrowVisibilityPreviewTab('hidden');
479
503
  });
480
504
 
481
- it('When user checks Show max arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in preview tab', () => {
505
+ it('When user checks Display maximum arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in preview tab', () => {
482
506
  numberLineCommonComponent.steps.switchToEditTab();
483
- numberLineCommonComponent.steps.checkCheckbox('Show max arrow');
507
+ numberLineCommonComponent.steps.checkCheckbox('Display maximum arrow');
484
508
  numberLineCommonComponent.steps.switchToPreviewTab();
485
509
  numberLineCommonComponent.steps.verifyMaxArrowVisibilityPreviewTab('visible');
486
510
  });
487
511
 
488
- it('When user unchecks Show max arrow checkbox, then arrow should not be displayed on right end of number line in preview tab', () => {
512
+ it('When user unchecks Display maximum arrow checkbox, then arrow should not be displayed on right end of number line in preview tab', () => {
489
513
  numberLineCommonComponent.steps.switchToEditTab();
490
- numberLineCommonComponent.steps.uncheckCheckbox('Show max arrow');
514
+ numberLineCommonComponent.steps.uncheckCheckbox('Display maximum arrow');
491
515
  numberLineCommonComponent.steps.switchToPreviewTab();
492
516
  numberLineCommonComponent.steps.verifyMaxArrowVisibilityPreviewTab('hidden');
493
517
  });
494
518
 
495
- it('When user unchecks Show labels checkbox, then labels on number line should disappear in preview tab', () => {
519
+ it('When user unchecks Display values checkbox, then labels on number line should disappear in preview tab', () => {
496
520
  numberLineCommonComponent.steps.switchToEditTab();
497
- numberLineCommonComponent.steps.uncheckCheckbox('Show labels');
521
+ numberLineCommonComponent.steps.uncheckCheckbox('Display values');
498
522
  numberLineCommonComponent.steps.switchToPreviewTab();
499
523
  numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLinePreviewTab();
500
524
  });
501
525
 
502
- it('When user checks Show labels checkbox, then labels on number line should be displayed in preview tab', () => {
526
+ it('When user checks Display values checkbox, then labels on number line should be displayed in preview tab', () => {
503
527
  numberLineCommonComponent.steps.switchToEditTab();
504
- numberLineCommonComponent.steps.checkCheckbox('Show labels');
528
+ numberLineCommonComponent.steps.checkCheckbox('Display values');
505
529
  numberLineCommonComponent.steps.switchToPreviewTab();
506
530
  numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLinePreviewTab(-10, 1);
507
531
  });
508
532
 
509
533
  //Note: Unable to check on cypress, added to manual sheet
510
- it('When user unchecks Show ticks checkbox, then ticks on number line should disappear in preview tab', () => {
534
+ it('When user unchecks Display nodes checkbox, then ticks on number line should disappear in preview tab', () => {
511
535
 
512
536
  });
513
537
 
514
538
  //Note: Unable to check on cypress, added to manual sheet
515
- it('When user checks Show ticks checkbox, then ticks on number line should be displayed in preview tab', () => {
539
+ it('When user checks Display nodes checkbox, then ticks on number line should be displayed in preview tab', () => {
516
540
 
517
541
  });
518
542
  },
519
543
 
520
544
  /**
521
545
  * Verifies the functionality of the number line title popup in the edit tab.
522
- * @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
546
+ * @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
523
547
  */
524
548
  verifyNumberLineTitlePopupEditTabFunctionality: (title) => {
525
549
  it('When the user edits the Number line title and clicks on \'Cancel\' button then the changes should not be displayed in the Number line section and \'Specify correct answer\' section Number line', () => {
@@ -578,7 +602,7 @@ const tests = {
578
602
 
579
603
  /**
580
604
  * Verifies the functionality of the number line title popup in the preview tab.
581
- * @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
605
+ * @param {string} orientation - The orientation of the number line ('Sideways' or 'Upright').
582
606
  */
583
607
  verifyNumberLineTitlePopupPreviewTabFunctionality: (title) => {
584
608
  it('When the user edits the number line title and clicks on \'Cancel\' button then the changes should not be displayed in the preview tab', () => {
@@ -776,6 +776,19 @@ const steps = {
776
776
  .click({ force: true });
777
777
  },
778
778
 
779
+ /**
780
+ * @param {string} optionsText text content of the option
781
+ * @param {number} targetIndex the position at which the options is being dropped
782
+ * @description verifies option cant be selected in grading view
783
+ */
784
+ verifyOptionNotEditableInGradingView: (optionsTextArray) => {
785
+ optionsTextArray.forEach(optionsText => {
786
+ listOrderingPage.horizontalOptionPreviewTab()
787
+ .contains(optionsText)
788
+ .should('have.css', 'pointer-events', 'none');
789
+ });
790
+ },
791
+
779
792
  /**
780
793
  * @param {string} optionsText text content of the option
781
794
  * @param {number} targetIndex the position at which the options is being dropped
@@ -2,7 +2,7 @@ import constants from '../fixtures/constants';
2
2
  import utilities from '../support/helpers/utilities';
3
3
  import { createQuestionBasePage, questionInstructionsComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, autoScoredStudentViewSettings, numberLineCommonComponent, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType, commonComponents, studentViewSettingsLabelComponent, randomizeOptionsComponent, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, toolSettingsComponent, layoutSectionComponent } from './components';
4
4
  const css = Cypress.env('css');
5
- const tolerance = 11.36;
5
+ const tolerance = 6.24;
6
6
 
7
7
  const selectors = {
8
8
  ...questionInstructionsComponent,
@@ -667,6 +667,7 @@ const steps = {
667
667
  * Verifies the orientation and size of the preview tab
668
668
  * @param {number} height - The value representing the width or height of the preview tab.
669
669
  */
670
+
670
671
  verifyVerticalNumberLineOrientationAndSizePreviewTab: (height) => {
671
672
  numberLineLabelPage.labelContainerPreviewTab()
672
673
  .then(($element) => {
@@ -783,9 +784,12 @@ const steps = {
783
784
  .then(($element) => {
784
785
  let graphHeight = $graphElement[0].clientHeight;
785
786
  let containerHeight = $element[0].clientHeight;
786
- graphHeight = graphHeight - containerHeight - 42;
787
- const originY = graphHeight / 2;
788
- const yPixel = originY - y * (graphHeight / range);
787
+ graphHeight = graphHeight - containerHeight - 32;
788
+ const originY = graphHeight / 2 - tolerance / 2;
789
+ const yPixel = originY - y * ((graphHeight - tolerance) / range);
790
+ cy.log(yPixel)
791
+ cy.log(graphHeight)
792
+ cy.log(originY)
789
793
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
790
794
  .should('exist');
791
795
  });
@@ -806,9 +810,9 @@ const steps = {
806
810
  .then(($element) => {
807
811
  let graphHeight = $graphElement[0].clientHeight;
808
812
  let containerHeight = $element[0].clientHeight;
809
- graphHeight = graphHeight - containerHeight - 42;
810
- const originY = graphHeight / 2;
811
- const yPixel = originY - y * (graphHeight / range);
813
+ graphHeight = graphHeight - containerHeight - 32;
814
+ const originY = graphHeight / 2 - tolerance/2;
815
+ const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
812
816
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
813
817
  .should('not.exist');
814
818
  });
@@ -829,9 +833,9 @@ const steps = {
829
833
  .then(($element) => {
830
834
  let graphHeight = $graphElement[0].clientHeight;
831
835
  let containerHeight = $element[0].clientHeight;
832
- graphHeight = graphHeight - containerHeight - 42;
833
- const originY = graphHeight / 2;
834
- const yPixel = originY - y * (graphHeight / range);
836
+ graphHeight = graphHeight - containerHeight - 32;
837
+ const originY = graphHeight / 2 - tolerance/2;
838
+ const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
835
839
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
836
840
  .should('not.exist');
837
841
  });
@@ -852,9 +856,9 @@ const steps = {
852
856
  .then(($element) => {
853
857
  let graphHeight = $graphElement[0].clientHeight;
854
858
  let containerHeight = $element[0].clientHeight;
855
- graphHeight = graphHeight - containerHeight - 42;
856
- const originY = graphHeight / 2;
857
- const yPixel = originY - y * (graphHeight / range);
859
+ graphHeight = graphHeight - containerHeight - 32;
860
+ const originY = graphHeight / 2 - tolerance/2;
861
+ const yPixel = originY - y * ((graphHeight - tolerance) / range);
858
862
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
859
863
  .should('exist');
860
864
  });
@@ -874,9 +878,9 @@ const steps = {
874
878
  .then(($element) => {
875
879
  let graphHeight = $graphElement[0].clientHeight;
876
880
  let containerHeight = $element[0].clientHeight;
877
- graphHeight = graphHeight - containerHeight - 42;
878
- const originY = graphHeight / 2;
879
- const yPixel = originY - coordinate * (graphHeight / range);
881
+ graphHeight = graphHeight - containerHeight - 32;
882
+ const originY = graphHeight / 2 - tolerance / 2;
883
+ const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
880
884
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
881
885
  .should('have.css', 'fill', css.color.incorrectAnswer);
882
886
  });
@@ -904,9 +908,9 @@ const steps = {
904
908
  .then(($element) => {
905
909
  let graphHeight = $graphElement[0].clientHeight;
906
910
  let containerHeight = $element[0].clientHeight;
907
- graphHeight = graphHeight - containerHeight - 42;
908
- const originY = graphHeight / 2;
909
- const yPixel = originY - coordinate * (graphHeight / range);
911
+ graphHeight = graphHeight - containerHeight - 32;
912
+ const originY = graphHeight / 2 - tolerance / 2;
913
+ const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
910
914
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cy*="${Math.floor(yPixel)}"]:visible`)
911
915
  .should('have.css', 'fill', css.color.correctAnswer);
912
916
  });
@@ -931,8 +935,8 @@ const steps = {
931
935
  numberLineLabelPage.numberLineCorrectAnswerSection()
932
936
  .then(($graphElement) => {
933
937
  let graphHeight = $graphElement[0].clientHeight;
934
- const originY = graphHeight / 2;
935
- const yPixel = originY - coordinate * (graphHeight / range);
938
+ const originY = graphHeight / 2 - tolerance / 2;
939
+ const yPixel = originY - coordinate * ((graphHeight - tolerance) / range);
936
940
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cy*="${Math.floor(yPixel)}"][display="inline"]:visible`)
937
941
  .should('have.css', 'fill', css.color.correctAnswer);
938
942
  });