itemengine-cypress-automation 1.0.201-28thMayRepoUpdate-e720349.0 → 1.0.201

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/headerSection.js +1 -1
  2. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +1 -1
  3. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -0
  4. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +4 -4
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +18 -18
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +5 -7
  12. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +5 -5
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +2 -2
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +28 -28
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +4 -4
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +4 -3
  19. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -2
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +2 -2
  21. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +3 -3
  22. package/cypress/e2e/ILC/ImageHighlight/editTabScoring.js +1 -1
  23. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsBasic.js +6 -6
  24. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +18 -18
  25. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialEqualWeightsBasic.js +6 -6
  26. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +2 -1
  27. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +0 -14
  28. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -12
  29. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +6 -2
  30. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
  31. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +2 -0
  32. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -2
  33. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  34. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  35. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  36. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -1
  37. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  38. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  39. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  40. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +2 -2
  41. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +1 -1
  42. package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -2
  43. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +1 -0
  44. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +3 -1
  45. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +4 -4
  46. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -1
  47. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsStandardRecorderStyle.js +1 -1
  48. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +3 -2
  49. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -1
  50. package/cypress/pages/audioPlayerPage.js +2 -0
  51. package/cypress/pages/chartsLinePage.js +2 -2
  52. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -1
  53. package/cypress/pages/components/commonComponents.js +1 -0
  54. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  55. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  56. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  57. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -2
  58. package/cypress/pages/components/imageCanvasComponent.js +10 -0
  59. package/cypress/pages/dialogBoxBase.js +3 -2
  60. package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -23
  61. package/cypress/pages/drawingResponsePage.js +1 -1
  62. package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -1
  63. package/cypress/pages/listOrderingPage.js +9 -6
  64. package/cypress/pages/numberLineLabelPage.js +2 -0
  65. package/cypress/pages/numberLinePage.js +55 -54
  66. package/cypress/pages/textSelectionPage.js +0 -3
  67. package/cypress/pages/videoResponsePage.js +5 -1
  68. package/package.json +2 -2
@@ -3,6 +3,7 @@ import { createQuestionBasePage, toolsAndControlsComponent, questionInstructions
3
3
  import { dialogBoxBase } from './dialogBoxBase';
4
4
  const css = Cypress.env('css');
5
5
  const range = 20.75;
6
+ const tolerance = 11.36;
6
7
 
7
8
  const selectors = {
8
9
  ...toolsAndControlsComponent,
@@ -153,9 +154,9 @@ const steps = {
153
154
  .then(($graphElement) => {
154
155
  const graphWidth = $graphElement[0].clientWidth;
155
156
  const graphHeight = $graphElement[0].clientHeight;
156
- const originX = graphWidth / 2;
157
+ const originX = graphWidth / 2 + tolerance / 2;
157
158
  const originY = graphHeight / 2;
158
- const xPixel = originX + x * (graphWidth / range);
159
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
159
160
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][tabindex="0"]`)
160
161
  .should('exist');
161
162
  });
@@ -174,10 +175,10 @@ const steps = {
174
175
  .then(($graphElement) => {
175
176
  const graphWidth = $graphElement[0].clientWidth;
176
177
  const graphHeight = $graphElement[0].clientHeight;
177
- const originX = graphWidth / 2;
178
+ const originX = graphWidth / 2 + tolerance / 2;
178
179
  const originY = graphHeight / 2;
179
- const x1Pixel = originX + x1 * (graphWidth / range);
180
- const x2Pixel = originX + x2 * (graphWidth / range);
180
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
181
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
181
182
  cy.get(`.ngie-accordion .ngie-jxgbox svg [stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
182
183
  .should('be.visible');
183
184
  });
@@ -195,9 +196,9 @@ const steps = {
195
196
  .then(($graphElement) => {
196
197
  const graphWidth = $graphElement[0].clientWidth;
197
198
  const graphHeight = $graphElement[0].clientHeight;
198
- const originX = graphWidth / 2;
199
+ const originX = graphWidth / 2 + tolerance / 2;
199
200
  const originY = graphHeight / 2;
200
- const x1Pixel = originX + startingPoint * (graphWidth / range);
201
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
201
202
  const rayArrowWidth = 18;
202
203
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
203
204
  cy.get(`.ngie-accordion .ngie-jxgbox svg [stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -216,9 +217,9 @@ const steps = {
216
217
  .then(($graphElement) => {
217
218
  const graphWidth = $graphElement[0].clientWidth;
218
219
  const graphHeight = $graphElement[0].clientHeight;
219
- const originX = graphWidth / 2;
220
+ const originX = graphWidth / 2 + tolerance / 2;
220
221
  const originY = graphHeight / 2;
221
- const xPixel = originX + x * (graphWidth / range);
222
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
222
223
  cy.get(`.ngie-accordion .ngie-jxgbox svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][tabindex="0"]`)
223
224
  .should('not.exist');
224
225
  });
@@ -276,9 +277,9 @@ const steps = {
276
277
  .then(($graphElement) => {
277
278
  const graphWidth = $graphElement[0].clientWidth;
278
279
  const graphHeight = $graphElement[0].clientHeight;
279
- const originX = graphWidth / 2;
280
+ const originX = graphWidth / 2 + tolerance / 2;
280
281
  const originY = graphHeight / 2;
281
- const xPixel = originX + x * (graphWidth / range);
282
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
282
283
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][tabindex="0"]`)
283
284
  .should('exist');
284
285
  });
@@ -316,9 +317,9 @@ const steps = {
316
317
  .then(($graphElement) => {
317
318
  const graphWidth = $graphElement[0].clientWidth;
318
319
  const graphHeight = $graphElement[0].clientHeight;
319
- const originX = graphWidth / 2;
320
+ const originX = graphWidth / 2 + tolerance / 2;
320
321
  const originY = graphHeight / 2;
321
- const xPixel = originX + x * (graphWidth / range);
322
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
322
323
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][display="inline"]`)
323
324
  .should('have.css', 'stroke', css.color.correctAnswer);
324
325
  });
@@ -336,9 +337,9 @@ const steps = {
336
337
  .then(($graphElement) => {
337
338
  const graphWidth = $graphElement[0].clientWidth;
338
339
  const graphHeight = $graphElement[0].clientHeight;
339
- const originX = graphWidth / 2;
340
+ const originX = graphWidth / 2 + tolerance / 2;
340
341
  const originY = graphHeight / 2;
341
- const xPixel = originX + x * (graphWidth / range);
342
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
342
343
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][display="inline"]`)
343
344
  .should('have.css', 'stroke', css.color.incorrectAnswer);
344
345
  });
@@ -357,10 +358,10 @@ const steps = {
357
358
  .then(($graphElement) => {
358
359
  const graphWidth = $graphElement[0].clientWidth;
359
360
  const graphHeight = $graphElement[0].clientHeight;
360
- const originX = graphWidth / 2;
361
+ const originX = graphWidth / 2 + tolerance / 2;
361
362
  const originY = graphHeight / 2;
362
- const x1Pixel = originX + x1 * (graphWidth / range);
363
- const x2Pixel = originX + x2 * (graphWidth / range);
363
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
364
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
364
365
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
365
366
  .should('be.visible');
366
367
  });
@@ -378,9 +379,9 @@ const steps = {
378
379
  .then(($graphElement) => {
379
380
  const graphWidth = $graphElement[0].clientWidth;
380
381
  const graphHeight = $graphElement[0].clientHeight;
381
- const originX = graphWidth / 2;
382
+ const originX = graphWidth / 2 + tolerance / 2;
382
383
  const originY = graphHeight / 2;
383
- const x1Pixel = originX + startingPoint * (graphWidth / range);
384
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
384
385
  const rayArrowWidth = 18;
385
386
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
386
387
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -399,10 +400,10 @@ const steps = {
399
400
  .then(($graphElement) => {
400
401
  const graphWidth = $graphElement[0].clientWidth;
401
402
  const graphHeight = $graphElement[0].clientHeight;
402
- const originX = graphWidth / 2;
403
+ const originX = graphWidth / 2 + tolerance / 2;
403
404
  const originY = graphHeight / 2;
404
- const x1Pixel = originX + x1 * (graphWidth / range);
405
- const x2Pixel = originX + x2 * (graphWidth / range);
405
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
406
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
406
407
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
407
408
  .should('have.css', 'stroke', css.color.correctAnswer);
408
409
  });
@@ -420,9 +421,9 @@ const steps = {
420
421
  .then(($graphElement) => {
421
422
  const graphWidth = $graphElement[0].clientWidth;
422
423
  const graphHeight = $graphElement[0].clientHeight;
423
- const originX = graphWidth / 2;
424
+ const originX = graphWidth / 2 + tolerance / 2;
424
425
  const originY = graphHeight / 2;
425
- const x1Pixel = originX + startingPoint * (graphWidth / range);
426
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
426
427
  const rayArrowWidth = 18;
427
428
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
428
429
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -441,10 +442,10 @@ const steps = {
441
442
  .then(($graphElement) => {
442
443
  const graphWidth = $graphElement[0].clientWidth;
443
444
  const graphHeight = $graphElement[0].clientHeight;
444
- const originX = graphWidth / 2;
445
+ const originX = graphWidth / 2 + tolerance / 2;
445
446
  const originY = graphHeight / 2;
446
- const x1Pixel = originX + x1 * (graphWidth / range);
447
- const x2Pixel = originX + x2 * (graphWidth / range);
447
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
448
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
448
449
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
449
450
  .should('have.css', 'stroke', css.color.incorrectAnswer);
450
451
  });
@@ -462,9 +463,9 @@ const steps = {
462
463
  .then(($graphElement) => {
463
464
  const graphWidth = $graphElement[0].clientWidth;
464
465
  const graphHeight = $graphElement[0].clientHeight;
465
- const originX = graphWidth / 2;
466
+ const originX = graphWidth / 2 + tolerance / 2;
466
467
  const originY = graphHeight / 2;
467
- const x1Pixel = originX + startingPoint * (graphWidth / range);
468
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
468
469
  const rayArrowWidth = 18;
469
470
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
470
471
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -484,10 +485,10 @@ const steps = {
484
485
  .then(($graphElement) => {
485
486
  const graphWidth = $graphElement[0].clientWidth;
486
487
  const graphHeight = $graphElement[0].clientHeight;
487
- const originX = graphWidth / 2;
488
+ const originX = graphWidth / 2 + tolerance / 2;
488
489
  const originY = graphHeight / 2;
489
- const x1Pixel = originX + x1 * (graphWidth / range);
490
- const x2Pixel = originX + x2 * (graphWidth / range);
490
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
491
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
491
492
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
492
493
  .should('not.exist');
493
494
  });
@@ -505,9 +506,9 @@ const steps = {
505
506
  .then(($graphElement) => {
506
507
  const graphWidth = $graphElement[0].clientWidth;
507
508
  const graphHeight = $graphElement[0].clientHeight;
508
- const originX = graphWidth / 2;
509
+ const originX = graphWidth / 2 + tolerance / 2;
509
510
  const originY = graphHeight / 2;
510
- const x1Pixel = originX + startingPoint * (graphWidth / range);
511
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
511
512
  const rayArrowWidth = 18;
512
513
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
513
514
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -587,9 +588,9 @@ const steps = {
587
588
  .then(($graphElement) => {
588
589
  const graphWidth = $graphElement[0].clientWidth;
589
590
  const graphHeight = $graphElement[0].clientHeight;
590
- const originX = graphWidth / 2;
591
+ const originX = graphWidth / 2 + tolerance / 2;
591
592
  const originY = graphHeight / 2;
592
- const xPixel = originX + x * (graphWidth / range);
593
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
593
594
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][pointer-events="visiblePainted"]`)
594
595
  .should('exist');
595
596
  });
@@ -608,9 +609,9 @@ const steps = {
608
609
  .then(($graphElement) => {
609
610
  const graphWidth = $graphElement[0].clientWidth;
610
611
  const graphHeight = $graphElement[0].clientHeight;
611
- const originX = graphWidth / 2;
612
+ const originX = graphWidth / 2 + tolerance / 2;
612
613
  const originY = graphHeight / 2;
613
- const xPixel = originX + x * (graphWidth / range);
614
+ const xPixel = originX + x * ((graphWidth - tolerance) / range);
614
615
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg ellipse[cx*="${Math.floor(xPixel)}"][cy*="${Math.floor(originY)}"][display="inline"]`)
615
616
  .should('have.css', 'stroke', css.color.correctAnswer);
616
617
  });
@@ -629,10 +630,10 @@ const steps = {
629
630
  .then(($graphElement) => {
630
631
  const graphWidth = $graphElement[0].clientWidth;
631
632
  const graphHeight = $graphElement[0].clientHeight;
632
- const originX = graphWidth / 2;
633
+ const originX = graphWidth / 2 + tolerance / 2;
633
634
  const originY = graphHeight / 2;
634
- const x1Pixel = originX + x1 * (graphWidth / range);
635
- const x2Pixel = originX + x2 * (graphWidth / range);
635
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
636
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
636
637
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
637
638
  .should('be.visible');
638
639
  });
@@ -650,9 +651,9 @@ const steps = {
650
651
  .then(($graphElement) => {
651
652
  const graphWidth = $graphElement[0].clientWidth;
652
653
  const graphHeight = $graphElement[0].clientHeight;
653
- const originX = graphWidth / 2;
654
+ const originX = graphWidth / 2 + tolerance / 2;
654
655
  const originY = graphHeight / 2;
655
- const x1Pixel = originX + startingPoint * (graphWidth / range);
656
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
656
657
  const rayArrowWidth = 18;
657
658
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
658
659
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -671,10 +672,10 @@ const steps = {
671
672
  .then(($graphElement) => {
672
673
  const graphWidth = $graphElement[0].clientWidth;
673
674
  const graphHeight = $graphElement[0].clientHeight;
674
- const originX = graphWidth / 2;
675
+ const originX = graphWidth / 2 + tolerance / 2;
675
676
  const originY = graphHeight / 2;
676
- const x1Pixel = originX + x1 * (graphWidth / range);
677
- const x2Pixel = originX + x2 * (graphWidth / range);
677
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
678
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
678
679
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
679
680
  .should('have.css', 'stroke', css.color.correctAnswer);
680
681
  });
@@ -692,9 +693,9 @@ const steps = {
692
693
  .then(($graphElement) => {
693
694
  const graphWidth = $graphElement[0].clientWidth;
694
695
  const graphHeight = $graphElement[0].clientHeight;
695
- const originX = graphWidth / 2;
696
+ const originX = graphWidth / 2 + tolerance / 2;
696
697
  const originY = graphHeight / 2;
697
- const x1Pixel = originX + startingPoint * (graphWidth / range);
698
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
698
699
  const rayArrowWidth = 18;
699
700
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
700
701
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`[stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -714,10 +715,10 @@ const steps = {
714
715
  .then(($graphElement) => {
715
716
  const graphWidth = $graphElement[0].clientWidth;
716
717
  const graphHeight = $graphElement[0].clientHeight;
717
- const originX = graphWidth / 2;
718
+ const originX = graphWidth / 2 + tolerance / 2;
718
719
  const originY = graphHeight / 2;
719
- const x1Pixel = originX + x1 * (graphWidth / range);
720
- const x2Pixel = originX + x2 * (graphWidth / range);
720
+ const x1Pixel = originX + x1 * ((graphWidth - tolerance) / range);
721
+ const x2Pixel = originX + x2 * ((graphWidth - tolerance) / range);
721
722
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg [stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
722
723
  .should('not.exist');
723
724
  });
@@ -735,9 +736,9 @@ const steps = {
735
736
  .then(($graphElement) => {
736
737
  const graphWidth = $graphElement[0].clientWidth;
737
738
  const graphHeight = $graphElement[0].clientHeight;
738
- const originX = graphWidth / 2;
739
+ const originX = graphWidth / 2 + tolerance / 2;
739
740
  const originY = graphHeight / 2;
740
- const x1Pixel = originX + startingPoint * (graphWidth / range);
741
+ const x1Pixel = originX + startingPoint * ((graphWidth - tolerance) / range);
741
742
  const rayArrowWidth = 18;
742
743
  const x2Pixel = direction === "left" ? rayArrowWidth : graphWidth - rayArrowWidth;
743
744
  cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(1).find(`svg [stroke-linecap="butt"][x1*="${Math.floor(x1Pixel)}"][y1*="${Math.floor(originY)}"][x2*="${Math.floor(x2Pixel)}"][y2*="${Math.floor(originY)}"]`)
@@ -143,7 +143,6 @@ const steps = {
143
143
  textSelectionPage.questionInputField()
144
144
  .find('[data-widget="ngie_equation"]')
145
145
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
146
- .contains(constants.CKEditorInputFieldEnteredEquationText);
147
146
  },
148
147
 
149
148
  verifyLinkInQuestionInputField: () => {
@@ -171,7 +170,6 @@ const steps = {
171
170
  textSelectionPage.specifyPossibleOptionsTextFieldWrapper()
172
171
  .find('span[role="math"]')
173
172
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
174
- .contains(constants.CKEditorInputFieldEnteredEquationText);
175
173
  },
176
174
 
177
175
  verifyLinkInSpecifyPossibleOptionsSection: () => {
@@ -199,7 +197,6 @@ const steps = {
199
197
  textSelectionPage.specifyCorrectAnswerTextWrapper()
200
198
  .find('span[role="math"]')
201
199
  .should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
202
- .contains(constants.CKEditorInputFieldEnteredEquationText);
203
200
  },
204
201
 
205
202
  verifyLinkInSpecifyCorrectAnswerSection: () => {
@@ -28,7 +28,7 @@ const selectors = {
28
28
  retakeRecordingButton: () => cy.get('.recording-again-button'),
29
29
  playerTimer: () => cy.get('[class*="VideoRecorderstyle__PlayerTimerWrapper"]'),
30
30
  playbackSpeedButton: () => cy.get('button[aria-label="Playback speed"]'),
31
- fullScreenButton: () => cy.get('button[aria-label="Full Screen"]'),
31
+ fullScreenButton: () => cy.get('button[aria-label="Full screen"]'),
32
32
  savedResponseText: () => cy.get('[class*="VideoRecorderstyle__ResponseTextWrapper"]'),
33
33
  maxRecorderLengthInputField: () => cy.get('input[aria-label="max recording duration"]'),
34
34
  confirmRetakeButton: () => cy.get('.delete-action-btn-wrapper button').eq(1),
@@ -963,6 +963,10 @@ const steps = {
963
963
  expect(flyoutHeight).to.be.closeTo(height, 2)
964
964
  expect(flyoutWidth).to.be.closeTo(width, 2)
965
965
  });
966
+ },
967
+
968
+ verifyResponseIsRecordedHelpText: () => {
969
+ utilities.verifyInnerText(videoResponsePage.savedResponseText(), 'Your response has been recorded.');
966
970
  }
967
971
  }
968
972
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.201-28thMayRepoUpdate-e720349.0",
3
+ "version": "1.0.201",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,4 +35,4 @@
35
35
  "node-fetch": "^3.3.2",
36
36
  "react-uuid": "^2.0.0"
37
37
  }
38
- }
38
+ }