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