itemengine-cypress-automation 1.0.278 → 1.0.280-applitools-0af112e.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -10,6 +10,14 @@ describe('Preview of Audio response for bar audio recorder style', () => {
10
10
  cy.loginAs('admin');
11
11
  });
12
12
 
13
+ beforeEach(() => {
14
+ cy.startApplitools();
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.eyesClose();
19
+ });
20
+
13
21
  describe('Preview of bar audio recorder style', { tags: 'smoke' }, () => {
14
22
  abortEarlySetup();
15
23
  before(() => {
@@ -19,7 +27,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
19
27
  audioResponsePage.steps.switchToPreviewTab();
20
28
  });
21
29
 
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.', () => {
30
+ 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
31
  utilities.verifyInnerText(audioResponsePage.barPreviewStartRecordingButton(), 'REC');
24
32
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'visible');
25
33
  utilities.verifyElementVisibilityState(audioResponsePage.microphoneIcon(), 'visible');
@@ -27,6 +35,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
27
35
  utilities.verifyElementVisibilityState(audioResponsePage.allowMicrophoneAccessHelpText(), 'visible');
28
36
  utilities.verifyInnerText(audioResponsePage.barPreviewRecordTime(), '15:00');
29
37
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewRecordTime(), 'visible');
38
+ cy.eyesCheckWindow(`Audio response - Mic icon, \'Allow microphone access\' help text`);
30
39
  });
31
40
 
32
41
  it('CSS of \'Preview\' section', { tags: 'css' }, () => {
@@ -52,7 +61,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
52
61
  });
53
62
  });
54
63
 
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.', () => {
64
+ 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
65
  audioResponsePage.steps.startRecordingBarPreview();
57
66
  utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Preparing to record 3');
58
67
  utilities.verifyElementVisibilityState(audioResponsePage.recordingStatusIcon(), 'visible');
@@ -66,6 +75,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
66
75
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStopRecordingButton(), 'visible');
67
76
  utilities.verifyElementVisibilityState(audioResponsePage.recordingStatusIcon(), 'visible');
68
77
  utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Recording...');
78
+ cy.eyesCheckWindow(`Audio response - Verify countdown, help text updates, recording starts with beep, and correct duration. Display Pause, Stop buttons.`);
69
79
  });
70
80
 
71
81
  it('CSS of \'Preview\' section once recording starts', { tags: 'css' }, () => {
@@ -170,13 +180,14 @@ describe('Preview of Audio response for bar audio recorder style', () => {
170
180
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
171
181
  });
172
182
 
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', () => {
183
+ 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
184
  audioResponsePage.steps.resumeRecordingBarPreview();
175
185
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStartRecordingButton(), 'notExist');
176
186
  utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Recording...');
177
187
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPauseRecordingButton(), 'visible');
178
188
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewStopRecordingButton(), 'visible');
179
- audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
189
+ audioResponsePage.steps.verifyRecordingLengthAfterResumingBarPreview();
190
+ cy.eyesCheckWindow(`Audio response - Verify recording resumes, help text updates, progress bar shows time, and correct duration. Display Pause, Stop icons`);
180
191
  });
181
192
 
182
193
  it('When the user hovers on \'Stop recording\' button, \'Stop recording\' text should be displayed in tooltip', () => {
@@ -213,7 +224,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
213
224
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
214
225
  });
215
226
 
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', () => {
227
+ 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
228
  audioResponsePage.steps.resetQuestionPreview();
218
229
  audioResponsePage.steps.startRecordingBarPreview();
219
230
  audioResponsePage.steps.waitForRecordingToStartBarPreview();
@@ -224,9 +235,10 @@ describe('Preview of Audio response for bar audio recorder style', () => {
224
235
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPlaybackTime(), 'visible');
225
236
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
226
237
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:00', '00:04');
238
+ cy.eyesCheckWindow(`Audio response - Verify recording stops, audio saves, progress bar, Play button, and correct duration display`);
227
239
  });
228
240
 
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)\'.', () => {
241
+ 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
242
  audioResponsePage.steps.switchToEditTab();
231
243
  audioResponsePage.steps.setMaximumRecorderLength(10);
232
244
  audioResponsePage.steps.switchToPreviewTab();
@@ -239,6 +251,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
239
251
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPlaybackTime(), 'visible');
240
252
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
241
253
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:00', '00:10');
254
+ cy.eyesCheckWindow(`Audio response - Verify Retake, Play icons, progress bar, and recorded duration '(min:secs)' when recording reaches max length`);
242
255
  });
243
256
  });
244
257
 
@@ -252,7 +265,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
252
265
  audioResponsePage.steps.recordAndSaveAudioBarPreview(5000);
253
266
  });
254
267
 
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', () => {
268
+ 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
269
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewRetakeButton(), 'visible');
257
270
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
258
271
  utilities.verifyElementVisibilityState(audioResponsePage.volumeControlButton(), 'visible');
@@ -260,6 +273,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
260
273
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
261
274
  utilities.verifyElementVisibilityState(audioResponsePage.barPreviewPlaybackTime(), 'visible');
262
275
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:00', '00:05');
276
+ cy.eyesCheckWindow(`Audio response - Audio wave form, Volume meter, Retake recording and Play buttons, Volume control and playback speed buttons, Progress bar and time`);
263
277
  });
264
278
 
265
279
  it('The progress bar should have a slider so that user can click/drag to seek the audio.', () => {
@@ -317,23 +331,23 @@ describe('Preview of Audio response for bar audio recorder style', () => {
317
331
  audioResponsePage.steps.switchToPreviewTab();
318
332
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
319
333
  });
320
-
334
+
321
335
  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
336
  audioResponsePage.playbackPlayButton()
323
337
  .verifyTooltip('Play');
324
338
  });
325
-
339
+
326
340
  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
341
  audioResponsePage.steps.startPlayback();
328
342
  audioResponsePage.steps.waitForPlaybackToBeginBarPreview();
329
343
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:03', '00:10');
330
344
  });
331
-
345
+
332
346
  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
347
  audioResponsePage.playbackPauseButton()
334
348
  .verifyTooltip('Pause');
335
349
  });
336
-
350
+
337
351
  it('CSS of \'Preview\' section if playback is initiated', { tags: 'css' }, () => {
338
352
  utilities.verifyCSS(audioResponsePage.barPreviewPlaybackTime(), {
339
353
  'color': css.color.liText,
@@ -347,11 +361,11 @@ describe('Preview of Audio response for bar audio recorder style', () => {
347
361
  'stroke': css.color.secondaryBtnActive
348
362
  });
349
363
  });
350
-
364
+
351
365
  it('Accessibility of \'Preview\' section if playback is initiated', { tags: 'a11y' }, () => {
352
366
  cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
353
367
  });
354
-
368
+
355
369
  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
370
  audioResponsePage.steps.resetQuestionPreview();
357
371
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
@@ -363,7 +377,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
363
377
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
364
378
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
365
379
  });
366
-
380
+
367
381
  it('CSS of \'Preview\' section if playback is paused', { tags: 'css' }, () => {
368
382
  utilities.verifyCSS(audioResponsePage.playbackPlayButton().find('svg rect'), {
369
383
  'fill': css.color.secondaryBtnBg
@@ -372,36 +386,36 @@ describe('Preview of Audio response for bar audio recorder style', () => {
372
386
  'stroke': css.color.secondaryBtnActive
373
387
  });
374
388
  });
375
-
389
+
376
390
  it('Accessibility of \'Preview\' section if if playback is paused', { tags: 'a11y' }, () => {
377
391
  cy.checkAccessibility(audioResponsePage.barPreviewPlaybackWrapper());
378
392
  });
379
-
393
+
380
394
  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
395
  audioResponsePage.steps.startPlayback();
382
396
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'visible');
383
397
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'notExist');
384
398
  });
385
-
399
+
386
400
  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
401
  audioResponsePage.steps.seekProgressBarSliderToCenter();
388
402
  audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
389
403
  });
390
-
404
+
391
405
  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
406
  audioResponsePage.steps.pausePlayback();
393
407
  audioResponsePage.steps.seekProgressBarSliderToCenter();
394
408
  audioResponsePage.steps.startPlayback();
395
409
  audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
396
410
  });
397
-
411
+
398
412
  it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
399
413
  audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:10', '00:10');
400
414
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
401
415
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
402
416
  audioResponsePage.steps.verifyProgressBarSliderPosition(99);
403
417
  });
404
-
418
+
405
419
  it('CSS of progress bar in hover state', { tags: 'css' }, () => {
406
420
  audioResponsePage.steps.hoverOnProgressBarSlider();
407
421
  utilities.verifyCSS(audioResponsePage.progressBarSlider().parents('span[class*="MuiSlider-thumb"]'), {
@@ -409,7 +423,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
409
423
  });
410
424
  });
411
425
  });
412
-
426
+
413
427
  describe('Playback player : Volume control', () => {
414
428
  abortEarlySetup();
415
429
  before(() => {
@@ -419,10 +433,10 @@ describe('Preview of Audio response for bar audio recorder style', () => {
419
433
  audioResponsePage.steps.switchToPreviewTab();
420
434
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
421
435
  });
422
-
436
+
423
437
  audioResponsePage.tests.verifyVolumeControlFunctionality();
424
438
  });
425
-
439
+
426
440
  describe('Playback player : Playback speed', () => {
427
441
  const playbackSpeedOptions = ['1', '1.25', '1.5', '2'];
428
442
  abortEarlySetup();
@@ -433,9 +447,9 @@ describe('Preview of Audio response for bar audio recorder style', () => {
433
447
  audioResponsePage.steps.switchToPreviewTab();
434
448
  audioResponsePage.steps.recordAndSaveAudioBarPreview(10000);
435
449
  });
436
-
450
+
437
451
  audioResponsePage.tests.verifyPlaybackSpeedContents(playbackSpeedOptions);
438
-
452
+
439
453
  for (let index = 0; index < playbackSpeedOptions.length; index++) {
440
454
  it(`When the user selects playback speed option ${playbackSpeedOptions[index]}x, the audio playback speed should be changed accordingly`, () => {
441
455
  audioResponsePage.steps.resetQuestionPreview();
@@ -450,7 +464,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
450
464
  });
451
465
  };
452
466
  });
453
-
467
+
454
468
  describe('Playback player : Retake my audio response', () => {
455
469
  abortEarlySetup();
456
470
  before(() => {
@@ -19,11 +19,12 @@ 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...');
26
26
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewRecordingHelpText(), 'visible');
27
+ cy.eyesCheckWindow(`Audio response - Default state of compact recorder style`);
27
28
  });
28
29
 
29
30
  it('CSS of Preview section', { tags: 'css' }, () => {
@@ -140,13 +141,14 @@ describe('Preview of Audio response for compact audio recorder style', () => {
140
141
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
141
142
  });
142
143
 
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.', () => {
144
+ 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
145
  audioResponsePage.steps.resumeRecordingCompactPreview();
145
146
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewResumeRecordingButton(), 'notExist');
146
147
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPauseRecordingButton(), 'visible');
147
148
  utilities.verifyInnerText(audioResponsePage.compactPreviewRecordingStatusText(), 'Recording...')
148
149
  audioResponsePage.steps.addWaitToRecordAudio(1000);
149
150
  audioResponsePage.steps.verifyRecordingLengthAfterResumingCompactPreview();
151
+ cy.eyesCheckWindow(`Audio response - Verify recording resumes, help text updates, volume meter detects sound, and buttons update to Pause. Display Stop button.`);
150
152
  });
151
153
 
152
154
  it('When the recording is inprogress and user clicks on \'Stop\' button, recording should stop and \'Your response has been recorded\' help text message should be displayed in preview. Recorded audio wave form, progress bar, volume control, playback speed buttons should be displayed. Playback time of the recorded audio should be displayed as \'(min:secs / min:sec)\'. Stop button should get replaced with Retake button and Play button should be displayed.', () => {
@@ -185,7 +187,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
185
187
  cy.checkAccessibility(audioResponsePage.previewTabQuestionWrapper());
186
188
  });
187
189
 
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', () => {
190
+ 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
191
  cy.log('Pre-step: Resetting question preview and start recording again')
190
192
  audioResponsePage.steps.resetQuestionPreview();
191
193
  audioResponsePage.steps.startRecordingCompactPreview();
@@ -197,6 +199,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
197
199
  audioResponsePage.steps.verifyResponseIsRecordedHelpText();
198
200
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewRetakeButton(), 'visible');
199
201
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPlaybackPlayButton(), 'visible');
202
+ cy.eyesCheckWindow(`Audio response - Verify recording stops, 'Your response has been recorded' text shows, Stop button replaced with enabled Playback button, and overlay is hidden.`);
200
203
  });
201
204
 
202
205
  it('When recording is inprogress, recording should stop at maximum recording length and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state. \Your response has been recorded\' help message should be displayed in preview. Overlay should not be displayed in player', () => {
@@ -215,7 +218,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
215
218
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPlaybackPlayButton(), 'visible');
216
219
  });
217
220
 
218
- it('When the user updates maximum recorder length the recording should stop at the updated recorder length', () => {
221
+ it(`Audio response - When the user updates maximum recorder length the recording should stop at the updated recorder length`, () => {
219
222
  cy.log('Pre-step : Switching to edit tab, updating maximum recorder length and switching back to preview tab to reset the recording');
220
223
  audioResponsePage.steps.switchToEditTab();
221
224
  audioResponsePage.steps.setMaximumRecorderLength(5);
@@ -227,6 +230,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
227
230
  audioResponsePage.steps.verifyPlaybackTimeCompactPreview('00:00', '00:05')
228
231
  cy.log('Switching to Edit tab to prevent browser level alert window from appearing');
229
232
  audioResponsePage.steps.switchToEditTab();
233
+ cy.eyesCheckWindow(`Audio response - Verify recording stops at the updated maximum recorder length.`);
230
234
  });
231
235
  });
232
236
 
@@ -249,6 +253,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
249
253
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
250
254
  utilities.verifyElementVisibilityState(audioResponsePage.compactPreviewPlaybackTime(), 'visible');
251
255
  audioResponsePage.steps.verifyPlaybackTimeCompactPreview('00:00', '00:05');
256
+ cy.eyesCheckWindow(`Audio response - 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`);
252
257
  });
253
258
 
254
259
  it('The progress bar should have a slider so that user can click/drag to seek the audio. When the user hovers on the waveform, a black cursor should be display on the waveform', () => {
@@ -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
@@ -44,6 +52,7 @@ describe('Create item page - audio response: Grading view, Correct answer view c
44
52
  it('The response submitted by the student should be visible in the playback player of the grading view.', () => {
45
53
  utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewPlaybackWrapper(), 'visible');
46
54
  audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:00', '00:10');
55
+ cy.eyesCheckWindow(`Audio response - Grading view contents`);
47
56
  });
48
57
 
49
58
  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.', () => {
@@ -58,10 +67,11 @@ describe('Create item page - audio response: Grading view, Correct answer view c
58
67
  audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:05', '00:10');
59
68
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
60
69
  utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
70
+ cy.eyesCheckWindow(`Audio response : Grading view - Verify progress bar and timer stop, and Pause button is replaced with Play button`);
61
71
  });
62
72
 
63
73
  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', () => {
64
- audioResponsePage.steps.seekProgressBarSliderToCenter();
74
+ audioResponsePage.steps.seekProgressBarSliderToCenter();3
65
75
  audioResponsePage.steps.addWaitToPlayAudio(1000);
66
76
  audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
67
77
  });
@@ -74,8 +84,9 @@ describe('Create item page - audio response: Grading view, Correct answer view c
74
84
  audioResponsePage.steps.verifyProgressBarSliderPosition(99);
75
85
  });
76
86
 
77
- it('A download button should be displayed in the playback player', () => {
87
+ it('Audio response - A download button should be displayed in the playback player', () => {
78
88
  utilities.verifyElementVisibilityState(audioResponsePage.downloadAudioButton(), 'visible');
89
+ cy.eyesCheckWindow(`Audio response: Grading view - Verify download button is displayed in the playback player.`);
79
90
  });
80
91
 
81
92
  it('Empty score input field and total score should be displayed', () => {
@@ -125,8 +136,9 @@ describe('Create item page - audio response: Grading view, Correct answer view c
125
136
 
126
137
  correctAnswerViewPage.tests.verifyManualScoredQuestionHelpTextCorrectAnswerPage();
127
138
 
128
- it('The points alloted to the question should be displayed', () => {
139
+ it('Audio response: The points alloted to the question should be displayed', () => {
129
140
  correctAnswerViewPage.steps.verifyAvailablePoints(10);
141
+ cy.eyesCheckWindow('Audio response: Correct answer view contents');
130
142
  });
131
143
  });
132
144
  }
@@ -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');
@@ -59,6 +67,7 @@ describe('Create item page - Audio response: Preview contents', () => {
59
67
  utilities.verifyElementVisibilityState(audioResponsePage.allowMicrophoneAccessHelpText(), 'visible');
60
68
  utilities.verifyInnerText(audioResponsePage.standardPreviewRecordTime(), '15:00');
61
69
  utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewRecordTime(), 'visible');
70
+ cy.eyesCheckWindow(`${view} - Audio response - \'Click the button to start recording...\' help text message, rec button, mic icon, \'Allow microphone access\' help text`);
62
71
  });
63
72
 
64
73
  it('CSS of standard recording interface in Preview tab', { tags: 'css' }, () => {
@@ -106,7 +115,7 @@ describe('Create item page - Audio response: Preview contents', () => {
106
115
  utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
107
116
  });
108
117
 
109
- it('When the user clicks on the stop recording button, the recording should stop and the recording should get saved', () => {
118
+ it(`${view} - Audio response - When the user clicks on the stop recording button, the recording should stop and the recording should get saved`, () => {
110
119
  audioResponsePage.steps.stopRecordingStandardPreview();
111
120
  utilities.verifyInnerText(audioResponsePage.savingStatusText(), 'Saving');
112
121
  utilities.verifyElementVisibilityState(audioResponsePage.savingStatusText(), 'visible');
@@ -116,6 +125,7 @@ describe('Create item page - Audio response: Preview contents', () => {
116
125
  utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
117
126
  utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
118
127
  audioResponsePage.steps.verifyResponseIsRecordedHelpText();
128
+ cy.eyesCheckWindow(`${view} - Audio response - Verify recording stops and is saved when the Stop recording button is clicked`);
119
129
  });
120
130
  });
121
131
  });
@@ -10,6 +10,14 @@ describe('Create item page - Brainingcamp manipulative: Grading view, Correct an
10
10
  before(() => {
11
11
  cy.loginAs('admin');
12
12
  });
13
+
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
13
21
 
14
22
  if (views.includes('Grading view')) {
15
23
  //Failing due to https://redmine.zeuslearning.com/issues/583133
@@ -46,6 +54,7 @@ describe('Create item page - Brainingcamp manipulative: Grading view, Correct an
46
54
 
47
55
  it('Empty score input field and total score should be displayed', () => {
48
56
  gradingViewPage.steps.verifyGradingViewScore('', 10);
57
+ cy.eyesCheckWindow(`Brainingcamp manipulative: Grading view contents`);
49
58
  });
50
59
 
51
60
  it('Accessibility of contents in preview tab', { tags: 'a11y' }, () => {
@@ -87,6 +96,7 @@ describe('Create item page - Brainingcamp manipulative: Grading view, Correct an
87
96
 
88
97
  it('The points alloted to the question should be displayed', () => {
89
98
  correctAnswerViewPage.steps.verifyAvailablePoints(10);
99
+ cy.eyesCheckWindow(`Brainingcamp manipulative: Correct answer view contents`);
90
100
  });
91
101
 
92
102
  //Need to add CSS and A11y here once updated designs are available for correct answer
@@ -52,8 +52,9 @@ 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
+ cy.eyesCheckWindow(`${view} view: Brainingcamp manipulative - Preview contents`);
57
58
  });
58
59
 
59
60
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -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');
@@ -127,10 +135,11 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
127
135
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
128
136
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
129
137
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
138
+ cy.eyesCheckWindow(`${view} - Grading view without attempting`);
130
139
  });
131
140
 
132
141
  //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', () => {
142
+ 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
143
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 }, 'horizontal');
135
144
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 }, 'horizontal');
136
145
  if (view === 'Grading view') {
@@ -153,10 +162,11 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
153
162
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
154
163
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
155
164
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
165
+ cy.eyesCheckWindow(`${view} - Fully incorrect case`);
156
166
  });
157
167
 
158
168
  //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', () => {
169
+ 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
170
  if (view === 'Grading view') {
161
171
  studentViewPage.steps.clearResponses();
162
172
  }
@@ -181,9 +191,10 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
181
191
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
182
192
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
183
193
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
194
+ cy.eyesCheckWindow(`${view} - Partially correct case 1`);
184
195
  });
185
196
 
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', () => {
197
+ 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
198
  if (view === 'Grading view') {
188
199
  studentViewPage.steps.clearResponses();
189
200
  }
@@ -208,9 +219,10 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
208
219
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
209
220
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
210
221
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
222
+ cy.eyesCheckWindow(`${view} - Partially correct case 2`);
211
223
  });
212
224
 
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', () => {
225
+ 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
226
  if (view === 'Grading view') {
215
227
  studentViewPage.steps.clearResponses();
216
228
  }
@@ -235,9 +247,10 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
235
247
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
236
248
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
237
249
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
250
+ cy.eyesCheckWindow(`${view} - Partially correct case 3`);
238
251
  });
239
252
 
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', () => {
253
+ 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
254
  if (view === 'Grading view') {
242
255
  studentViewPage.steps.clearResponses();
243
256
  }
@@ -262,9 +275,10 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
262
275
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
263
276
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
264
277
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
278
+ cy.eyesCheckWindow(`${view} - Partially correct case 4`);
265
279
  });
266
280
 
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', () => {
281
+ 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
282
  if (view === 'Grading view') {
269
283
  studentViewPage.steps.clearResponses();
270
284
  }
@@ -289,10 +303,11 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
289
303
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
290
304
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
291
305
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
306
+ cy.eyesCheckWindow(`${view} - Partially correct case 5`);
292
307
  });
293
308
 
294
309
  //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', () => {
310
+ 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
311
  if (view === 'Grading view') {
297
312
  studentViewPage.steps.clearResponses();
298
313
  }
@@ -314,6 +329,7 @@ describe('Create item page - Charts - Bar horizontal orientation: All or nothing
314
329
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
315
330
  chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
316
331
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
332
+ cy.eyesCheckWindow(`${view} - Fully correct case`);
317
333
  });
318
334
  });
319
335
  });