itemengine-cypress-automation 1.0.292 → 1.0.294-applitools-09785a6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
  10. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  11. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
  12. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
  13. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  14. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
  15. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
  16. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
  19. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
  21. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +15 -6
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +13 -3
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
  34. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
  35. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  36. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
  37. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +15 -5
  38. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
  39. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
  40. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
  41. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
  43. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
  44. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
  45. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
  46. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +6 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
  50. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
  51. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +12 -3
  52. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
  54. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
  55. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
  56. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
  58. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  59. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  60. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
  61. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +3 -2
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  64. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  65. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  66. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  67. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  70. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  71. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  72. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  73. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
  74. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
  75. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  76. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
  77. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
  78. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
  80. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
  82. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
  83. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
  85. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
  86. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
  87. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  88. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  89. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  90. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  91. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +13 -4
  92. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
  93. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  94. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
  95. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
  96. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  97. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  98. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
  99. package/cypress/e2e/applitools.config.js +14 -0
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/cypress/support/commands.js +11 -0
  102. package/cypress/support/e2e.js +1 -0
  103. package/package.json +4 -1
@@ -19,7 +19,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
19
19
  audioResponsePage.steps.switchToPreviewTab();
20
20
  });
21
21
 
22
- it('By default: Mic icon, \'Allow microphone access\' help text should be displayed in \'bar audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.', () => {
22
+ it(`Audio response - By default: Mic icon, \'Allow microphone access\' help text should be displayed in \'bar audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.`, () => {
23
23
  utilities.verifyInnerText(audioResponsePage.barPreviewStartRecordingButton(), 'REC');
24
24
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'visible');
25
25
  utilities.verifyElementVisibilityState(audioResponsePage.microphoneIcon(), 'visible');
@@ -52,7 +52,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
52
52
  });
53
53
  });
54
54
 
55
- it('When the user clicks on the \'Start recording\' button, a countdown should begin and help text "Preparing to record" should be displayed. The recording should start after the countdown, a beep sound should play and the help text should change to "Recording...". User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and Stop recording buttons should be displayed in record player. Start recording button should not be displayed.', () => {
55
+ it(`Audio response - When the user clicks on the \'Start recording\' button, a countdown should begin and help text "Preparing to record" should be displayed. The recording should start after the countdown, a beep sound should play and the help text should change to "Recording...". User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and Stop recording buttons should be displayed in record player. Start recording button should not be displayed.`, () => {
56
56
  audioResponsePage.steps.startRecordingBarPreview();
57
57
  utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Preparing to record 3');
58
58
  utilities.verifyElementVisibilityState(audioResponsePage.recordingStatusIcon(), 'visible');
@@ -170,13 +170,13 @@ describe('Preview of Audio response for bar audio recorder style', () => {
170
170
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
171
171
  });
172
172
 
173
- it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button, recording should get resumed. The help text should update to "Recording...". Progress bar should display the elapsed time and the remaining time until recording is in progress. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and stop recording icon should be displayed. Start recording button should not be displayed', () => {
173
+ it(`Audio response -When the recorder is in paused state and the user clicks on the \'Resume recording\' button, recording should get resumed. The help text should update to "Recording...". Progress bar should display the elapsed time and the remaining time until recording is in progress. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Pause recording and stop recording icon should be displayed. Start recording button should not be displayed`, () => {
174
174
  audioResponsePage.steps.resumeRecordingBarPreview();
175
175
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'notExist');
176
176
  utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Recording...');
177
177
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPauseRecordingButton(), 'visible');
178
178
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStopRecordingButton(), 'visible');
179
- audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
179
+ audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
180
180
  });
181
181
 
182
182
  it('When the user hovers on \'Stop recording\' button, \'Stop recording\' text should be displayed in tooltip', () => {
@@ -213,7 +213,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
213
213
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
214
214
  });
215
215
 
216
- it('When the user stops paused recording, recording should stop, recorded audio response should be saved. Progress bar and start recording button should be displayed on bar player. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'. Play button should be displayed. Stop recording button should not be displayed', () => {
216
+ it(`Audio response -When the user stops paused recording, recording should stop, recorded audio response should be saved. Progress bar and start recording button should be displayed on bar player. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'. Play button should be displayed. Stop recording button should not be displayed`, () => {
217
217
  audioResponsePage.steps.resetQuestionPreview();
218
218
  audioResponsePage.steps.startRecordingBarPreview();
219
219
  audioResponsePage.steps.waitForRecordingToStartBarPreview();
@@ -226,7 +226,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
226
226
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:00', '00:04');
227
227
  });
228
228
 
229
- it('When recording is inprogress and user has reached maximum recorder length, Retake and Play icon should be displayed along with progress bar. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'.', () => {
229
+ it(`Audio response -When recording is inprogress and user has reached maximum recorder length, Retake and Play icon should be displayed along with progress bar. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'.`, () => {
230
230
  audioResponsePage.steps.switchToEditTab();
231
231
  audioResponsePage.steps.setMaximumRecorderLength(10);
232
232
  audioResponsePage.steps.switchToPreviewTab();
@@ -252,7 +252,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
252
252
  audioResponsePage.steps.recordAndSaveAudioBarPreview(5000);
253
253
  });
254
254
 
255
- it('A playback player with audio wave form, Volume meter, Retake recording and Play buttons, Volume control and playback speed buttons, Progress bar and time in (mm:ss / mm:ss) format should be displayed', () => {
255
+ it(`Audio response -A playback player with audio wave form, Volume meter, Retake recording and Play buttons, Volume control and playback speed buttons, Progress bar and time in (mm:ss / mm:ss) format should be displayed`, () => {
256
256
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewRetakeButton(), 'visible');
257
257
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
258
258
  utilities.verifyElementVisibilityState(audioResponsePage.volumeControlButton(), 'visible');
@@ -317,23 +317,23 @@ describe('Preview of Audio response for bar audio recorder style', () => {
317
317
  audioResponsePage.steps.switchToPreviewTab();
318
318
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
319
319
  });
320
-
320
+
321
321
  it('When the user hovers over the \'Play\' button, a tooltip \'Play\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
322
322
  audioResponsePage.playbackPlayButton()
323
323
  .verifyTooltip('Play');
324
324
  });
325
-
325
+
326
326
  it('When the user clicks on \'Play\' button, then the audio should start playing. Timer should display the amount of audio that has been played and the total audio length in (mm:ss)/(mm:ss) format.', () => {
327
327
  audioResponsePage.steps.startPlayback();
328
328
  audioResponsePage.steps.waitForPlaybackToBeginBarPreview();
329
329
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:03', '00:10');
330
330
  });
331
-
331
+
332
332
  it('When the user hovers over the \'Pause\' button, a tooltip \'Pause\' should be displayed and on moving away the focus, the tooltip should disappear', () => {
333
333
  audioResponsePage.playbackPauseButton()
334
334
  .verifyTooltip('Pause');
335
335
  });
336
-
336
+
337
337
  it('CSS of \'Preview\' section if playback is initiated', { tags: 'css' }, () => {
338
338
  utilities.verifyCSS(audioResponsePage.barPreviewPlaybackTime(), {
339
339
  'color': css.color.liText,
@@ -347,11 +347,11 @@ describe('Preview of Audio response for bar audio recorder style', () => {
347
347
  'stroke': css.color.secondaryBtnActive
348
348
  });
349
349
  });
350
-
350
+
351
351
  it('Accessibility of \'Preview\' section if playback is initiated', { tags: 'a11y' }, () => {
352
352
  cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
353
353
  });
354
-
354
+
355
355
  it('When the audio player is in playback state and the user clicks on \'Pause\' button, then playback should get paused. Progress bar and timer should not update further and the \'Pause\' button should get replaced with \'Play\' button', () => {
356
356
  audioResponsePage.steps.resetQuestionPreview();
357
357
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
@@ -363,7 +363,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
363
363
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
364
364
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
365
365
  });
366
-
366
+
367
367
  it('CSS of \'Preview\' section if playback is paused', { tags: 'css' }, () => {
368
368
  utilities.verifyCSS(audioResponsePage.playbackPlayButton().find('svg rect'), {
369
369
  'fill': css.color.secondaryBtnBg
@@ -372,36 +372,36 @@ describe('Preview of Audio response for bar audio recorder style', () => {
372
372
  'stroke': css.color.secondaryBtnActive
373
373
  });
374
374
  });
375
-
375
+
376
376
  it('Accessibility of \'Preview\' section if if playback is paused', { tags: 'a11y' }, () => {
377
377
  cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
378
378
  });
379
-
379
+
380
380
  it('When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
381
381
  audioResponsePage.steps.startPlayback();
382
382
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'visible');
383
383
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'notExist');
384
384
  });
385
-
385
+
386
386
  it('When the user seeks the progress bar slider while the audio is playing, then the audio should continue to play from the position where the slider is seeked', () => {
387
387
  audioResponsePage.steps.seekProgressBarSliderToCenter();
388
388
  audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
389
389
  });
390
-
390
+
391
391
  it('When the user seeks the progress bar slider while the audio is paused, then the audio playback should be in paused state and on playing the audio, then the audio should play from the position where the slider is seeked', () => {
392
392
  audioResponsePage.steps.pausePlayback();
393
393
  audioResponsePage.steps.seekProgressBarSliderToCenter();
394
394
  audioResponsePage.steps.startPlayback();
395
395
  audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
396
396
  });
397
-
397
+
398
398
  it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
399
399
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:10', '00:10');
400
400
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
401
401
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
402
402
  audioResponsePage.steps.verifyProgressBarSliderPosition(99);
403
403
  });
404
-
404
+
405
405
  it('CSS of progress bar in hover state', { tags: 'css' }, () => {
406
406
  audioResponsePage.steps.hoverOnProgressBarSlider();
407
407
  utilities.verifyCSS(audioResponsePage.progressBarSlider().parents('span[class*="MuiSlider-thumb"]'), {
@@ -409,7 +409,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
409
409
  });
410
410
  });
411
411
  });
412
-
412
+
413
413
  describe('Playback player : Volume control', () => {
414
414
  abortEarlySetup();
415
415
  before(() => {
@@ -419,10 +419,10 @@ describe('Preview of Audio response for bar audio recorder style', () => {
419
419
  audioResponsePage.steps.switchToPreviewTab();
420
420
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
421
421
  });
422
-
422
+
423
423
  audioResponsePage.tests.verifyVolumeControlFunctionality();
424
424
  });
425
-
425
+
426
426
  describe('Playback player : Playback speed', () => {
427
427
  const playbackSpeedOptions = ['1', '1.25', '1.5', '2'];
428
428
  abortEarlySetup();
@@ -433,9 +433,9 @@ describe('Preview of Audio response for bar audio recorder style', () => {
433
433
  audioResponsePage.steps.switchToPreviewTab();
434
434
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
435
435
  });
436
-
436
+
437
437
  audioResponsePage.tests.verifyPlaybackSpeedContents(playbackSpeedOptions);
438
-
438
+
439
439
  for (let index = 0; index < playbackSpeedOptions.length; index++) {
440
440
  it(`When the user selects playback speed option ${playbackSpeedOptions[index]}x, the audio playback speed should be changed accordingly`, () => {
441
441
  audioResponsePage.steps.resetQuestionPreview();
@@ -450,7 +450,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
450
450
  });
451
451
  };
452
452
  });
453
-
453
+
454
454
  describe('Playback player : Retake my audio response', () => {
455
455
  abortEarlySetup();
456
456
  before(() => {
@@ -19,7 +19,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
19
19
  audioResponsePage.steps.switchToPreviewTab();
20
20
  });
21
21
 
22
- it('If user selects \'Compact\' option from \'Audio recorder style\' toggle buttons, then \'Record\' button and \'Click the button to start recording...\' help text should be displayed in the preview tab', () => {
22
+ it(`Audio response - If user selects \'Compact\' option from \'Audio recorder style\' toggle buttons, then \'Record\' button and \'Click the button to start recording...\' help text should be displayed in the preview tab`, () => {
23
23
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewRecordButton(), 'visible');
24
24
  utilities.verifyInnerText(audioResponsePage.compactPreviewRecordButton(), 'Record');
25
25
  utilities.verifyInnerText(audioResponsePage.compactPreviewRecordingHelpText(), 'Click the button to start recording...');
@@ -140,7 +140,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
140
140
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
141
141
  });
142
142
 
143
- it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button the recording should get resumed from where it was paused. Resume recording button should update to Pause button and the help text should update to "Recording...". The volume meter should also detect the sound levels during recording. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.', () => {
143
+ it(`Audio response - When the recorder is in paused state and the user clicks on the \'Resume recording\' button the recording should get resumed from where it was paused. Resume recording button should update to Pause button and the help text should update to "Recording...". The volume meter should also detect the sound levels during recording. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.`, () => {
144
144
  audioResponsePage.steps.resumeRecordingCompactPreview();
145
145
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewResumeRecordingButton(), 'notExist');
146
146
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPauseRecordingButton(), 'visible');
@@ -185,7 +185,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
185
185
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
186
186
  });
187
187
 
188
- it('When recording is paused and the user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Stop button should get replaced with Playback button and Playback button should be enabled. Overlay should not be displayed in player', () => {
188
+ it(`Audio response - When recording is paused and the user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Stop button should get replaced with Playback button and Playback button should be enabled. Overlay should not be displayed in player`, () => {
189
189
  cy.log('Pre-step: Resetting question preview and start recording again')
190
190
  audioResponsePage.steps.resetQuestionPreview();
191
191
  audioResponsePage.steps.startRecordingCompactPreview();
@@ -215,7 +215,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
215
215
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPlaybackPlayButton(), 'visible');
216
216
  });
217
217
 
218
- it('When the user updates maximum recorder length the recording should stop at the updated recorder length', () => {
218
+ it(`Audio response - When the user updates maximum recorder length the recording should stop at the updated recorder length`, () => {
219
219
  cy.log('Pre-step : Switching to edit tab, updating maximum recorder length and switching back to preview tab to reset the recording');
220
220
  audioResponsePage.steps.switchToEditTab();
221
221
  audioResponsePage.steps.setMaximumRecorderLength(5);
@@ -11,6 +11,14 @@ describe('Create item page - audio response: Grading view, Correct answer view c
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  if (views.includes('Grading view')) {
15
23
  describe('Grading view contents', { tags: 'smoke' }, () => {
16
24
  let actualAudioSeekedInPercent = 50
@@ -74,8 +82,9 @@ describe('Create item page - audio response: Grading view, Correct answer view c
74
82
  audioResponsePage.steps.verifyProgressBarSliderPosition(99);
75
83
  });
76
84
 
77
- it('A download button should be displayed in the playback player', () => {
85
+ it('Audio response - A download button should be displayed in the playback player', () => {
78
86
  utilities.verifyElementVisibilityState(audioResponsePage.downloadAudioButton(), 'visible');
87
+ cy.eyesCheckWindow(`Audio response: Grading view - Verify download button is displayed in the playback player.`);
79
88
  });
80
89
 
81
90
  it('Empty score input field and total score should be displayed', () => {
@@ -125,8 +134,9 @@ describe('Create item page - audio response: Grading view, Correct answer view c
125
134
 
126
135
  correctAnswerViewPage.tests.verifyManualScoredQuestionHelpTextCorrectAnswerPage();
127
136
 
128
- it('The points alloted to the question should be displayed', () => {
137
+ it('Audio response: The points alloted to the question should be displayed', () => {
129
138
  correctAnswerViewPage.steps.verifyAvailablePoints(10);
139
+ cy.eyesCheckWindow('Audio response: Correct answer view contents');
130
140
  });
131
141
  });
132
142
  }
@@ -11,6 +11,14 @@ describe('Create item page - Audio response: Preview contents', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -49,7 +57,7 @@ describe('Create item page - Audio response: Preview contents', () => {
49
57
  utilities.verifyElementVisibilityState(audioResponsePage.questionInstructionsText(), 'visible');
50
58
  });
51
59
 
52
- it('When the user switches to preview tab, \'Click the button to start recording...\' help text message, rec button, mic icon, \'Allow microphone access\' help text should be displayed in \'Standard audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.', () => {
60
+ it(`${view} - Audio response - When the user switches to preview tab, \'Click the button to start recording...\' help text message, rec button, mic icon, \'Allow microphone access\' help text should be displayed in \'Standard audio recorder\'. Maximum recording length should be displayed in minutes(mm:ss) format.`, () => {
53
61
  utilities.verifyInnerText(audioResponsePage.standardPreviewRecorderHelpText(), 'Click the button to start recording...');
54
62
  utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewRecorderHelpText(), 'visible');
55
63
  utilities.verifyInnerText(audioResponsePage.standardPreviewStartRecordingButton(), 'REC');
@@ -106,7 +114,7 @@ describe('Create item page - Audio response: Preview contents', () => {
106
114
  utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
107
115
  });
108
116
 
109
- it('When the user clicks on the stop recording button, the recording should stop and the recording should get saved', () => {
117
+ it(`${view} - Audio response - When the user clicks on the stop recording button, the recording should stop and the recording should get saved`, () => {
110
118
  audioResponsePage.steps.stopRecordingStandardPreview();
111
119
  utilities.verifyInnerText(audioResponsePage.savingStatusText(), 'Saving');
112
120
  utilities.verifyElementVisibilityState(audioResponsePage.savingStatusText(), 'visible');
@@ -116,6 +124,7 @@ describe('Create item page - Audio response: Preview contents', () => {
116
124
  utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
117
125
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
118
126
  audioResponsePage.steps.verifyResponseIsRecordedHelpText();
127
+ cy.eyesCheckWindow(`${view} - Audio response - Verify recording stops and is saved when the Stop recording button is clicked`);
119
128
  });
120
129
  });
121
130
  });
@@ -52,7 +52,7 @@ describe('Create item page - Brainingcamp manipulative: Preview contents', () =>
52
52
  utilities.verifyElementVisibilityState(brainingCampManipulativePage.questionInstructionsText(), 'visible');
53
53
  });
54
54
 
55
- it('The brainingcamp manipulative resource should be displayed', () => {
55
+ it(`${view} view: Brainingcamp manipulative - The brainingcamp manipulative resource should be displayed`, () => {
56
56
  utilities.verifyElementVisibilityState(brainingCampManipulativePage.previewTabCanvas(), 'visible');
57
57
  });
58
58
 
@@ -11,6 +11,14 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  if (!grepTags || !grepTags.includes('smoke')) {
15
23
  describe('Question preview modes: Student view and Grading view', () => {
16
24
  abortEarlySetup();
@@ -107,7 +115,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
107
115
  };
108
116
 
109
117
  //Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
110
- it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
118
+ it.skip(`${view} - Charts bar: Horizontal - When the user selects 'Grading' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed`, () => {
111
119
  if (view === 'Grading view') {
112
120
  studentViewPage.steps.submitResponse();
113
121
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -130,7 +138,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
130
138
  });
131
139
 
132
140
  //Fully incorrect case
133
- it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
141
+ it(`${view} - Charts bar: Horizontal - When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
134
142
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 }, 'horizontal');
135
143
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 }, 'horizontal');
136
144
  if (view === 'Grading view') {
@@ -156,7 +164,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
156
164
  });
157
165
 
158
166
  //Partially correct cases
159
- it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
167
+ it(`${view} - Charts bar: Horizontal - When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
160
168
  if (view === 'Grading view') {
161
169
  studentViewPage.steps.clearResponses();
162
170
  }
@@ -183,7 +191,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
183
191
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
184
192
  });
185
193
 
186
- it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
194
+ it(`${view} - Charts bar: Horizontal - When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
187
195
  if (view === 'Grading view') {
188
196
  studentViewPage.steps.clearResponses();
189
197
  }
@@ -210,7 +218,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
210
218
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
211
219
  });
212
220
 
213
- it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
221
+ it(`${view} - Charts bar: Horizontal - When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
214
222
  if (view === 'Grading view') {
215
223
  studentViewPage.steps.clearResponses();
216
224
  }
@@ -237,7 +245,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
237
245
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
238
246
  });
239
247
 
240
- it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
248
+ it(`${view} - Charts bar: Horizontal - When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
241
249
  if (view === 'Grading view') {
242
250
  studentViewPage.steps.clearResponses();
243
251
  }
@@ -264,7 +272,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
264
272
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
265
273
  });
266
274
 
267
- it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
275
+ it(`${view} - Charts bar: Horizontal - When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
268
276
  if (view === 'Grading view') {
269
277
  studentViewPage.steps.clearResponses();
270
278
  }
@@ -292,7 +300,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
292
300
  });
293
301
 
294
302
  //Fully correct
295
- it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
303
+ it(`${view} - Charts bar: Horizontal - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view 'Your answer is correct' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed`, () => {
296
304
  if (view === 'Grading view') {
297
305
  studentViewPage.steps.clearResponses();
298
306
  }
@@ -314,6 +322,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
314
322
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
315
323
  chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
316
324
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
325
+ cy.eyesCheckWindow(`${view} - Fully correct case`);
317
326
  });
318
327
  });
319
328
  });
@@ -96,7 +96,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
96
96
  });
97
97
 
98
98
  it('All the bar graphs in grading view should be non-editable', () => {
99
- chartsBarPage.steps.verifyDragHandleNotVisible();
99
+ chartsBarPage.steps.verifyDragHandleNotVisible();
100
100
  for (let index = 0; index < 5; index++) {
101
101
  utilities.triggerMouseover(utilities.getNthElement(chartsBarPage.previewTabBar(), index));
102
102
  utilities.verifyElementVisibilityState(chartsBarPage.barAndPointTooltipWrapper(), 'notExist');
@@ -108,7 +108,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
108
108
  utilities.verifyElementVisibilityState(chartsBarPage.correctAnswersLabel(), 'visible');
109
109
  });
110
110
 
111
- it('Correct answer should be displayed in the correct answer section', () => {
111
+ it('Charts bar: Horizontal - Correct answer should be displayed in the correct answer section', () => {
112
112
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 0, barValue: 2, range: 20 });
113
113
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 20 });
114
114
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 20 });
@@ -222,7 +222,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
222
222
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolBarWrapper(), 'notExist');
223
223
  });
224
224
 
225
- it('The correct answer set by user should be displayed in the correct answer view', () => {
225
+ it('Charts bar: Horizontal - The correct answer set by user should be displayed in the correct answer view', () => {
226
226
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 2, range: 20 });
227
227
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
228
228
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 5, range: 20 });
@@ -13,6 +13,14 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  views.forEach((view) => {
17
25
  describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -81,7 +89,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
81
89
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
82
90
  });
83
91
 
84
- it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
92
+ it(`${view} - Charts bar: Horizontal -The graph title, Y axis label, X axis label and bar labels should be displayed`, () => {
85
93
  utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
86
94
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
87
95
  utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Profit');
@@ -142,9 +150,10 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
142
150
 
143
151
  chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
144
152
 
145
- it('User should be able to edit the label a bar', () => {
153
+ it(`${view} - Charts bar: Horizontal: User should be able to edit the label a bar`, () => {
146
154
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, '2000');
147
155
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(3, '2004');
156
+ cy.eyesCheckWindow(`${view} - Charts bar after editing the bar height and labels`);
148
157
  });
149
158
 
150
159
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -310,7 +319,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
310
319
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
311
320
  });
312
321
 
313
- it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
322
+ it(`${view} Charts bar - Horizontal: When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled`, () => {
314
323
  chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
315
324
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
316
325
  });
@@ -365,7 +374,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
365
374
  });
366
375
 
367
376
  //Bar labels
368
- it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
377
+ it(`${view} - Charts bar: Horizontal When user updates a bar label, then the undo and reset button should be displayed in enabled state`, () => {
369
378
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, 'Edited bar 1');
370
379
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
371
380
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
@@ -593,7 +602,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
593
602
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 6, range: 10 });
594
603
  });
595
604
 
596
- it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
605
+ it(`${view}: Charts bar: Horizontal - When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state`, () => {
597
606
  chartsBarPage.steps.clickOnResetButtonPreviewTab();
598
607
  chartsBarPage.steps.confirmReset();
599
608
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
@@ -11,6 +11,14 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  if (!grepTags || !grepTags.includes('smoke')) {
15
23
  describe('Question preview modes: Student view and Grading view', () => {
16
24
  abortEarlySetup();
@@ -105,7 +113,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
105
113
  };
106
114
 
107
115
  //Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
108
- it.skip('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
116
+ it.skip(`${view} - Charts bar: Vertical - When the user selects 'Grading' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
109
117
  if (view === 'Grading view') {
110
118
  studentViewPage.steps.submitResponse();
111
119
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -128,7 +136,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
128
136
  });
129
137
 
130
138
  //Fully incorrect case
131
- it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
139
+ it(`${view} - Charts bar: Vertical - When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
132
140
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 });
133
141
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 });
134
142
  if (view === 'Grading view') {
@@ -154,7 +162,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
154
162
  });
155
163
 
156
164
  //Partially correct cases
157
- it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
165
+ it(`${view} - Charts bar: Vertical - When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
158
166
  if (view === 'Grading view') {
159
167
  studentViewPage.steps.clearResponses();
160
168
  }
@@ -181,7 +189,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
181
189
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
182
190
  });
183
191
 
184
- it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
192
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
185
193
  if (view === 'Grading view') {
186
194
  studentViewPage.steps.clearResponses();
187
195
  }
@@ -208,7 +216,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
208
216
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
209
217
  });
210
218
 
211
- it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
219
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
212
220
  if (view === 'Grading view') {
213
221
  studentViewPage.steps.clearResponses();
214
222
  }
@@ -235,7 +243,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
235
243
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
236
244
  });
237
245
 
238
- it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
246
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
239
247
  if (view === 'Grading view') {
240
248
  studentViewPage.steps.clearResponses();
241
249
  }
@@ -262,7 +270,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
262
270
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
263
271
  });
264
272
 
265
- it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
273
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
266
274
  if (view === 'Grading view') {
267
275
  studentViewPage.steps.clearResponses();
268
276
  }
@@ -290,7 +298,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
290
298
  });
291
299
 
292
300
  //Fully correct
293
- it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
301
+ it(`${view} - Charts bar: Vertical - Charts bar: Vertical - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view 'Your answer is correct' should be displayed, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed`, () => {
294
302
  if (view === 'Grading view') {
295
303
  studentViewPage.steps.clearResponses();
296
304
  }
@@ -312,6 +320,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
312
320
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
313
321
  chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
314
322
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
323
+ cy.eyesCheckWindow(`${view} - Fully correct case`);
315
324
  });
316
325
  });
317
326
  });