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
@@ -57,15 +57,6 @@ describe('Create item page - Text selection: All or nothing ', () => {
57
57
  views.forEach((view) => {
58
58
  describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
59
59
  abortEarlySetup();
60
-
61
- beforeEach(() => {
62
- cy.startApplitools();
63
- });
64
-
65
- afterEach(() => {
66
- cy.eyesClose();
67
- });
68
-
69
60
  before(() => {
70
61
  switch (view) {
71
62
  case 'Question preview':
@@ -121,7 +112,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
121
112
  });
122
113
  };
123
114
 
124
- it(`Text selection - ${view} - When the user selects 'Grading' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers`, () => {
115
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
125
116
  if (view === 'Grading view') {
126
117
  studentViewPage.steps.submitResponse();
127
118
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -140,10 +131,9 @@ describe('Create item page - Text selection: All or nothing ', () => {
140
131
  // utilities.verifyInnerText(textSelectionPage.correctAnswersLabel(), 'Correct answers');
141
132
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
142
133
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
143
- cy.eyesCheckWindow(`Text selection - ${view} - Grading view without attempting`);
144
134
  });
145
-
146
- it(`Text selection - ${view} - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
135
+
136
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
147
137
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
148
138
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
149
139
  if (view === 'Grading view') {
@@ -163,10 +153,9 @@ describe('Create item page - Text selection: All or nothing ', () => {
163
153
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
164
154
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
165
155
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
166
- cy.eyesCheckWindow(`Text selection - ${view} - Incorrect attempt`);
167
156
  });
168
157
 
169
- it(`Text selection - ${view} - When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
158
+ it('When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
170
159
  if (view === 'Grading view') {
171
160
  studentViewPage.steps.clearResponses();
172
161
  };
@@ -188,10 +177,9 @@ describe('Create item page - Text selection: All or nothing ', () => {
188
177
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
189
178
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
190
179
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
191
- cy.eyesCheckWindow(`Text selection - ${view} - Partially correct attempt`);
192
180
  });
193
181
 
194
- it(`Text selection - ${view} - When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
182
+ it('When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
195
183
  if (view === 'Grading view') {
196
184
  studentViewPage.steps.clearResponses();
197
185
  };
@@ -214,10 +202,9 @@ describe('Create item page - Text selection: All or nothing ', () => {
214
202
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
215
203
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
216
204
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
217
- cy.eyesCheckWindow(`Text selection - ${view} - Partially correct with incorrect answers`);
218
205
  });
219
206
 
220
- it(`Text selection - ${view} - When the user attempts the question correct then the user should be awarded full points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, a status message with text 'Your answer is correct' should be displayed and correct answer section should not be displayed`, () => {
207
+ it('When the user attempts the question correct then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
221
208
  if (view === 'Grading view') {
222
209
  studentViewPage.steps.clearResponses();
223
210
  };
@@ -239,7 +226,6 @@ describe('Create item page - Text selection: All or nothing ', () => {
239
226
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
240
227
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
241
228
  utilities.verifyElementVisibilityState(textSelectionPage.correctAnswerSection(), 'notExist');
242
- cy.eyesCheckWindow(`Text selection - ${view} - Correct attempt`);
243
229
  });
244
230
  });
245
231
  });
@@ -13,14 +13,6 @@ describe('Create item page - Text selection : Preview contents', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
16
  views.forEach((view) => {
25
17
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
26
18
  abortEarlySetup();
@@ -95,51 +87,47 @@ describe('Create item page - Text selection : Preview contents', () => {
95
87
  });
96
88
 
97
89
  if (view !== 'Grading view' && view !== 'Correct answer view') {
98
- it(`Text selection - ${view} - The selected options in specify possible options section should be displayed and by default all options should not be selected`, () => {
90
+ it('The selected options in specify possible options section should be displayed and by default all options should not be selected', () => {
99
91
  for (let index = 0; index < 3; index++) {
100
92
  utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), paragraphTextArray[index]);
101
93
  utilities.verifyElementVisibilityState(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), 'visible');
102
94
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[index]);
103
95
  };
104
96
  utilities.verifyElementCount(textSelectionPage.optionPreviewTab(), 3);
105
- cy.eyesCheckWindow(`Text selection - ${view} - Options displayed and not selected`);
106
97
  });
107
98
 
108
- it(`${view} - When user hovers on the available options, then those options should be displayed in hover state highlight`, () => {
99
+ it('When user hovers on the available options, then those options should be displayed in hover state highlight', () => {
109
100
  for (let index = 0; index < 3; index++) {
110
101
  textSelectionPage.steps.verifyHoverStateOfOptionInPreviewTab(paragraphTextArray[index], "blue");
111
102
  };
112
103
  });
113
104
 
114
- it(`Text selection - ${view} - When user selects an option, then that option should be displayed in selected state`, () => {
105
+ it('When user selects an option, then that option should be displayed in selected state', () => {
115
106
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
116
107
  textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[0], "blue");
117
108
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
118
109
  textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[1], "blue");
119
- cy.eyesCheckWindow(`Text selection - ${view} - Option selected state`);
120
110
  });
121
111
 
122
- it(`${view} - When user clicks on a selected option, then that option should be deselected`, () => {
112
+ it('When user clicks on a selected option, then that option should be deselected', () => {
123
113
  textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
124
114
  textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
125
115
  });
126
116
  } else if (view === 'Grading view') {
127
- it(`${view} - The question text should be displayed with the selected correct options and status message 'Your answer is incorrect' should be displayed`, () => {
117
+ it('The question text should be displayed with the selected correct options and status message \' Your answer is incorrect\' should be displayed', () => {
128
118
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[1]);
129
119
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
130
120
  });
131
121
 
132
- it(`Text selection - ${view} - The submitted answer options should not be editable`, () => {
122
+ it('The submitted answer options should not be editable', () => {
133
123
  textSelectionPage.steps.verifyAnswerSectionNotEditableInPreviewTab();
134
- cy.eyesCheckWindow(`Text selection - ${view} - Submitted answers should not be editable and status message should be displayed`);
135
124
  });
136
125
  } else {
137
- it(`Text selection - ${view} - The question text should be displayed with the selected correct options`, () => {
126
+ it('The question text should be displayed with the selected correct options', () => {
138
127
  for (let index = 0; index < 2; index++) {
139
128
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[index]);
140
129
  };
141
130
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
142
- cy.eyesCheckWindow(`Text selection - ${view} - Correct options displayed`);
143
131
  });
144
132
  }
145
133
  });
@@ -12,14 +12,6 @@ describe('Preview tab contents for all views', () => {
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
- beforeEach(() => {
16
- cy.startApplitools();
17
- });
18
-
19
- afterEach(() => {
20
- cy.eyesClose();
21
- });
22
-
23
15
  //failing in student view due to https://redmine.zeuslearning.com/issues/568592
24
16
  views.forEach((view) => {
25
17
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
@@ -68,7 +60,7 @@ describe('Preview tab contents for all views', () => {
68
60
  }
69
61
  });
70
62
 
71
- it(`${view} view - Tool audio player: When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed`, () => {
63
+ it('When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed', () => {
72
64
  utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
73
65
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
74
66
  utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
@@ -80,7 +72,6 @@ describe('Preview tab contents for all views', () => {
80
72
  utilities.verifyInnerText(audioPlayerPage.playbackTotalTime(), '00:00');
81
73
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackSpeedButton(), 'visible');
82
74
  utilities.verifyElementVisibilityState(audioPlayerPage.addPinButton(), 'visible');
83
- cy.eyesCheckWindow(`${view} view - Tool audio player: Backward, Play, Forward, Volume control, Elapsed time, Progress bar, Total time, Playback speed and Add pin buttons`);
84
75
  });
85
76
 
86
77
  it('When the user clicks on \'Play\' button, then the audio file should load and the user should be able to play the audio. Timer should display the amount of audio that has been played and the total audio length in (mm:ss)/(mm:ss) format.', () => {
@@ -97,11 +88,10 @@ describe('Preview tab contents for all views', () => {
97
88
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
98
89
  });
99
90
 
100
- it(`${view} view - Tool audio player: 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.`, () => {
91
+ 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.', () => {
101
92
  audioPlayerPage.steps.startPlayback();
102
93
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
103
94
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
104
- cy.eyesCheckWindow(`${view} view - Tool audio player: When user clicks on Play button then playback should be resumed and Play button should be replaced with Pause button`);
105
95
  });
106
96
 
107
97
  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', () => {
@@ -110,12 +100,11 @@ describe('Preview tab contents for all views', () => {
110
100
  audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
111
101
  });
112
102
 
113
- it(`${view} view - Tool audio player: When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button`, () => {
103
+ it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
114
104
  audioPlayerPage.steps.verifyAudioPlaybackTimer('00:45', '00:45');
115
105
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
116
106
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
117
107
  audioPlayerPage.steps.verifyProgressBarSliderPosition(99);
118
- cy.eyesCheckWindow(`${view} view - Tool audio player: When the audio playback is completed, the Pause button should get replaced with Play button`);
119
108
  });
120
109
 
121
110
  it('The added audio description and transcript should be displayed in preview tab', () => {
@@ -15,21 +15,13 @@ describe('Tool settings content for all views', () => {
15
15
  cy.loginAs('admin');
16
16
  });
17
17
 
18
- beforeEach(() => {
19
- cy.startApplitools();
20
- });
21
-
22
- afterEach(() => {
23
- cy.eyesClose();
24
- });
25
-
26
18
  views.forEach((view) => {
27
19
  describe(`Preview tab contents : Single tool selected - ${view}`, { tags: 'smoke' }, () => {
28
20
  abortEarlySetup();
29
21
  before(() => {
30
22
  switch (view) {
31
23
  case 'Question preview':
32
- cy.log('Navigating to multiple selection response question type');
24
+ cy.log('Navigating to short text response question type');
33
25
  multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
34
26
  cy.barsPreLoaderWait();
35
27
  multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Text');
@@ -82,12 +74,11 @@ describe('Tool settings content for all views', () => {
82
74
  rulerPage.steps.verifyRulerNotVisible();
83
75
  });
84
76
 
85
- it(`When user clicks on 'Show ruler' button in ${view}, then ruler should be displayed and its button should change to 'Hide ruler'`, () => {
77
+ it('When user clicks on \'Show ruler\' button, then ruler should be displayed and its button should change to \'Hide ruler\'', () => {
86
78
  rulerPage.steps.clickOnRulerVisibilityButton();
87
79
  rulerPage.steps.verifyRulerVisible();
88
80
  rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Hide');
89
81
  rulerPage.steps.verifyLengthOfRulerInPreview('15cm');
90
- cy.eyesCheckWindow(`${view} - Ruler visibility`);
91
82
  });
92
83
 
93
84
  it('CSS of the \'Hide ruler\' button', { tags: 'css' }, () => {
@@ -186,10 +177,9 @@ describe('Tool settings content for all views', () => {
186
177
  protractorPage.steps.verifyPreviewTabProtractorVisibilityButtonLabel('Hide');
187
178
  });
188
179
 
189
- it(`When user has clicked visibility buttons for both the ruler and protractor tools in ${view}, both tools should be displayed simultaneously in the preview tab`, () => {
180
+ it('When user has clicked visibility buttons for both the ruler and protractor tools, both tools should be displayed simultaneously in the preview tab', () => {
190
181
  rulerPage.steps.verifyRulerVisible();
191
182
  protractorPage.steps.verifyProtractorVisibleInPreviewTab();
192
- cy.eyesCheckWindow(`${view} - Protractor and Ruler visibility`);
193
183
  });
194
184
 
195
185
  it('CSS of the \'Hide ruler\' and \'Hide protractor\' button', { tags: 'css' }, () => {
@@ -12,14 +12,6 @@ describe('Create item page - Upload response: Grading view, Correct answer view
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
- beforeEach(() => {
16
- cy.startApplitools();
17
- });
18
-
19
- afterEach(() => {
20
- cy.eyesClose();
21
- });
22
-
23
15
  if (views.includes('Grading view')) {
24
16
  describe('Grading view contents', { tags: 'smoke' }, () => {
25
17
  abortEarlySetup();
@@ -58,7 +50,6 @@ describe('Create item page - Upload response: Grading view, Correct answer view
58
50
 
59
51
  it('Empty score input field and total score should be displayed', () => {
60
52
  gradingViewPage.steps.verifyGradingViewScore('', 10);
61
- cy.eyesCheckWindow('Grading view - Uploaded file and score');
62
53
  });
63
54
 
64
55
  it('Accessibility of uploaded file', { tags: 'a11y' }, () => {
@@ -67,7 +58,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
67
58
 
68
59
  //Adding skip as this does not work on spinnaker
69
60
  it.skip('On clicking on the file name, user should be able to download the file', () => {
70
- cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
61
+ cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
71
62
  });
72
63
  });
73
64
  }
@@ -99,7 +90,6 @@ describe('Create item page - Upload response: Grading view, Correct answer view
99
90
  it('\'This is a manual scored question\' help text should be displayed in the correct answer view', () => {
100
91
  utilities.verifyTextContent(correctAnswerViewPage.manualScoredQuestionHelpText(), 'This is a manual scored question.');
101
92
  utilities.verifyElementVisibilityState(correctAnswerViewPage.manualScoredQuestionHelpText(), 'visible');
102
- cy.eyesCheckWindow('Grading view - question instructions and help text');
103
93
  });
104
94
 
105
95
  it('The points alloted to the question should be displayed', () => {
@@ -14,14 +14,6 @@ describe('Create item page - Upload response : Preview contents', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  views.forEach((view) => {
26
18
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
27
19
  abortEarlySetup();
@@ -62,11 +54,10 @@ describe('Create item page - Upload response : Preview contents', () => {
62
54
  utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
63
55
  });
64
56
 
65
- it(`${view} - Upload response area should have a Cloud icon and text 'Drag & Drop files here 'or browse files on your device, or capture an image' should be displayed`, () => {
57
+ it('Upload response area should have a Cloud icon and text \'Drag & Drop files here \'or browse files on your device, or capture an image\' should be displayed', () => {
66
58
  utilities.verifyElementVisibilityState(uploadResponsePage.uploadCloudIcon(), 'visible');
67
59
  utilities.verifyInnerText(uploadResponsePage.dragAndDropFilesText(), 'Drag & Drop files here');
68
60
  utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device or capture an image');
69
- cy.eyesCheckWindow(`${view} - Upload response area`);
70
61
  });
71
62
 
72
63
  it('Computer icon should be displayed before link texts \'device\'', () => {
@@ -91,12 +82,11 @@ describe('Create item page - Upload response : Preview contents', () => {
91
82
  uploadResponsePage.steps.verifyUploadedFileLimitCount(0, 3);
92
83
  });
93
84
 
94
- it(`${view} - When user uploads file, then uploaded file name should be displayed and file count should get updated`, () => {
85
+ it('When user uploads file, then uploaded file name should be displayed and file count should get updated', () => {
95
86
  uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
96
87
  uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
97
88
  uploadResponsePage.steps.verifyUploadedFileLimitCount(1, 3);
98
89
  utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
99
- cy.eyesCheckWindow(`${view} - Uploaded file name displayed and file count updated`);
100
90
  });
101
91
 
102
92
  it('When user deletes the uploaded file then uploaded file name, edit icon and delete button should disappear and file limit should be updated accordingly', () => {
@@ -113,14 +103,13 @@ describe('Create item page - Upload response : Preview contents', () => {
113
103
  utilities.verifyElementCount(uploadResponsePage.fileName(), 2);
114
104
  });
115
105
 
116
- it(`${view} - When user edits the name of uploaded file, then edited name should be visible`, () => {
106
+ it('When user edits the name of uploaded file, then edited name should be visible', () => {
117
107
  uploadResponsePage.steps.clickOnEditDisplayTextIcon(0);
118
108
  utilities.verifyElementVisibilityState(uploadResponsePage.dialogBox(), 'exist');
119
109
  uploadResponsePage.steps.enterTextInEditDisplayTextPopupInputField('image.csv');
120
110
  uploadResponsePage.steps.verifyTextInEditDisplayTextPopupInputField('image.csv');
121
111
  uploadResponsePage.steps.clickAcceptButtonInPopup();
122
112
  uploadResponsePage.steps.verifyUploadedFileName(0, 'image.csv');
123
- cy.eyesCheckWindow(`${view} - Uploaded file name edited`);
124
113
  });
125
114
 
126
115
  it('CSS of Preview tab', { tags: 'css' }, () => {
@@ -169,17 +158,15 @@ describe('Create item page - Upload response : Preview contents', () => {
169
158
  });
170
159
 
171
160
  //Failed due to https://redmine.zeuslearning.com/issues/563182
172
- it(`${view} - When user uploads file type which is not selected from the 'Supported file types' accordion menu, then file upload error message - 'The file type is not supported. Please upload files with the following supported formats: *file format separated by commas*' should be displayed`, () => {
161
+ it('When user uploads file type which is not selected from the \'Supported file types\' accordion menu, then file upload error message - \'The file type is not supported. Please upload files with the following supported formats: *file format separated by commas*\' should be displayed', () => {
173
162
  uploadResponsePage.steps.uploadFile('uploads/sample.heif');
174
163
  uploadResponsePage.steps.verifyWarningMessage('The file type is not supported. Please upload files with the following supported formats: CSV, Excel, GIF, JPG, Open Office, PDF, PNG, Powerpoint, Publisher, RTF, TXT, Word, XPS, ZIP.');
175
- cy.eyesCheckWindow(`${view} - Unsupported file type error message`);
176
164
  });
177
165
 
178
- it(`${view} - When user tries to upload files more than the limit, then warning message 'You have reached the maximum number of files that can be uploaded.' should be displayed`, () => {
166
+ it('When user tries to upload files more than the limit, then warning message \'You have reached the maximum number of files that can be uploaded.\' should be displayed', () => {
179
167
  uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
180
168
  uploadResponsePage.steps.uploadFile('uploads/image.png');
181
169
  uploadResponsePage.steps.verifyWarningMessage('You have reached the maximum number of files that can be uploaded.');
182
- cy.eyesCheckWindow(`${view} - File upload limit warning message`);
183
170
  });
184
171
 
185
172
  if (view != 'Question preview') {
@@ -1,4 +1,4 @@
1
- import { uploadResponsePage, itemPreviewPage } from "../../../pages";
1
+ import { uploadResponsePage, itemPreviewPage} from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
@@ -13,14 +13,6 @@ describe('Create item page - Upload response : Preview contents', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
16
  views.forEach((view) => {
25
17
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
26
18
  abortEarlySetup();
@@ -64,13 +56,12 @@ describe('Create item page - Upload response : Preview contents', () => {
64
56
  utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
65
57
  });
66
58
 
67
- it(`${view} - When user uploads file, then uploaded file name should be displayed, file count should get updated and thumb nail of the image should be visible`, () => {
59
+ it('When user uploads file, then uploaded file name should be displayed, file count should get updated and thumb nail of the image should be visible', () => {
68
60
  uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
69
61
  uploadResponsePage.steps.verifyThumbNailExistOrNotExist('highlightImage.jpg', 'visible');
70
- cy.eyesCheckWindow(`${view} - Uploaded file name`);
71
62
  });
72
63
 
73
- it(`${view} - CSS of Thumb nail and File name in preview tab`, { tags: 'css' }, () => {
64
+ it('CSS of Thumb nail and File name in preview tab', { tags: 'css' }, () => {
74
65
  utilities.verifyCSS(uploadResponsePage.imageThumbNail(), {
75
66
  'box-sizing': 'border-box',
76
67
  'min-height': 'auto',
@@ -88,11 +79,9 @@ describe('Create item page - Upload response : Preview contents', () => {
88
79
  cy.checkAccessibility(uploadResponsePage.questionWrapperPreviewTab());
89
80
  });
90
81
 
91
- it(`${view} - When user clicks on the thumbnail then popup should open, and on clicking the close button the popup should close and the uploaded files should be displayed`, () => {
92
- utilities.verifyElementCount(uploadResponsePage.imageThumbNail(), 2);
82
+ it('When user clicks on the thumbnail then popup should open, and on clicking the close button the popup should close and the uploaded files should be displayed', () => {
93
83
  uploadResponsePage.steps.clickOnImageThumbNail();
94
84
  uploadResponsePage.steps.verifyImagePopUpDetail();
95
- cy.eyesCheckWindow(`${view} - Thumbnail popup`);
96
85
  uploadResponsePage.steps.closeImagePopup();
97
86
  uploadResponsePage.steps.verifyThumbNailExistOrNotExist('highlightImage.jpg', 'visible');
98
87
  utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
@@ -106,17 +95,16 @@ describe('Create item page - Upload response : Preview contents', () => {
106
95
  utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
107
96
  });
108
97
 
109
- it(`${view} - When user uploads different file types then only image files should be displayed with thumbnail`, () => {
98
+ it('When user uploads different file types then only image files should be displayed with thumbnail', () => {
110
99
  for (let number = 0; number < 13; number++) {
111
100
  uploadResponsePage.steps.deleteFile();
112
101
  uploadResponsePage.steps.clickAcceptButtonInPopup();
113
102
  uploadResponsePage.steps.uploadFile(`uploads/${filename[number]}`);
114
103
  uploadResponsePage.steps.verifyThumbNailExistOrNotExist(filename[number], fileThumbNail[number]);
115
104
  }
116
- cy.eyesCheckWindow(`${view} - Uploaded different file types`);
117
105
  });
118
106
 
119
- it(`${view} - When user uploads a file in .heif or .heic format then and info icon with tool tip should be present and image thumb nail should not be present`, () => {
107
+ it('When user uploads a file in .heif or .heic format then and info icon with tool tip should be present and image thumb nail should not be present', () => {
120
108
  for (let number = 13; number < 15; number++) {
121
109
  uploadResponsePage.steps.deleteFile();
122
110
  uploadResponsePage.steps.clickAcceptButtonInPopup();
@@ -127,7 +115,6 @@ describe('Create item page - Upload response : Preview contents', () => {
127
115
  uploadResponsePage.unSupportedFileInfoIcon()
128
116
  .verifyTooltip('The image format (HEIC/HEIF) is not supported on your current device or operating system version. Please click the link to download and view the image.');
129
117
  }
130
- cy.eyesCheckWindow(`${view} - Uploaded heic and file types`);
131
118
  });
132
119
  });
133
120
  });
@@ -19,20 +19,11 @@ describe('Preview of Video response for compact recorder style', () => {
19
19
  videoResponsePage.steps.switchToPreviewTab();
20
20
  });
21
21
 
22
- beforeEach(() => {
23
- cy.startApplitools();
24
- });
25
-
26
- afterEach(() => {
27
- cy.eyesClose();
28
- });
29
-
30
- it(`Video response : If user selects \'Compact\' option from \'video 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 \'video recorder style\' toggle buttons, then \'Record\' button and \'Click the button to start recording...\' help text should be displayed in the preview tab', () => {
31
23
  utilities.verifyElementVisibilityState(videoResponsePage.recordButtonCompactPreview(), 'visible');
32
24
  utilities.verifyInnerText(videoResponsePage.recordButtonCompactPreview(), 'Record');
33
25
  utilities.verifyInnerText(videoResponsePage.recordingHelpTextCompactPreview(), 'Click the button to start recording...');
34
26
  utilities.verifyElementVisibilityState(videoResponsePage.recordingHelpTextCompactPreview(), 'visible');
35
- cy.eyesCheckWindow(`Video response : Compact video recorder style`);
36
27
  });
37
28
 
38
29
  it('CSS of Preview section', { tags: 'css' }, () => {
@@ -148,7 +139,7 @@ describe('Preview of Video response for compact recorder style', () => {
148
139
  cy.checkAccessibility(videoResponsePage.previewTabQuestionWrapper());
149
140
  });
150
141
 
151
- it(`Video 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...". Resume icon button should get replaced with Pause icon button in the flyout, user should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.`, () => {
142
+ 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...". Resume icon button should get replaced with Pause icon button in the flyout, user should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.', () => {
152
143
  videoResponsePage.steps.resumeRecordingCompactPreview();
153
144
  utilities.verifyElementVisibilityState(videoResponsePage.resumeRecordingButtonCompactPreview(), 'notExist');
154
145
  utilities.verifyElementVisibilityState(videoResponsePage.pauseRecordingButtonCompactPreview(), 'visible');
@@ -157,7 +148,6 @@ describe('Preview of Video response for compact recorder style', () => {
157
148
  videoResponsePage.steps.verifyRecordingStatusCompactPreview('Recording...');
158
149
  videoResponsePage.steps.addWaitToRecord(1000);
159
150
  videoResponsePage.steps.verifyRecordingLengthAfterResumingCompactPreview();
160
- cy.eyesCheckWindow(`Video 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`);
161
151
  });
162
152
 
163
153
  it('When the recording is inprogress and user clicks on \'Stop\' button, recording should stop. The recording should get saved and recorded video, progress bar, volume control, playback speed buttons should be displayed. Playback time of the recorded video should be displayed as \'(min:secs / min:sec)\'. Stop button should get replaced with Retake button and Play button should be displayed.', () => {
@@ -206,7 +196,7 @@ describe('Preview of Video response for compact recorder style', () => {
206
196
  utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'visible');
207
197
  });
208
198
 
209
- it(`Video response : When recording is inprogress, recording should stop at maximum recording duration and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state.`, () => {
199
+ it('When recording is inprogress, recording should stop at maximum recording duration and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state.', () => {
210
200
  cy.log('Pre-step: Switch to edit tab and set maximum recording duration to 10 secs')
211
201
  videoResponsePage.steps.switchToEditTab();
212
202
  videoResponsePage.steps.setMaximumRecordingDuration(40);
@@ -219,7 +209,6 @@ describe('Preview of Video response for compact recorder style', () => {
219
209
  utilities.verifyElementVisibilityState(videoResponsePage.stopRecordingButtonCompactPreview(), 'notExist');
220
210
  utilities.verifyElementVisibilityState(videoResponsePage.retakeButtonCompactPreview(), 'visible');
221
211
  utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'visible');
222
- cy.eyesCheckWindow(`Video response : Recording should stop at maximum recording duration and Stop button should get replaced with Retake button`);
223
212
  });
224
213
 
225
214
  it('When the user updates maximum recorder length the recording should stop at the updated recorder length', () => {
@@ -14,14 +14,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  if (views.includes('Grading view')) {
26
18
  describe('Grading view contents', { tags: 'smoke' }, () => {
27
19
  let actualVideoSeekedInPercent = 50
@@ -51,10 +43,9 @@ describe('Create item page - Video response: Grading view, Correct answer view c
51
43
  utilities.verifyElementVisibilityState(videoResponsePage.questionInstructionsText(), 'visible');
52
44
  });
53
45
 
54
- it('Video response : The response submitted by the student should be visible in the playback player of the grading view.', () => {
46
+ it('The response submitted by the student should be visible in the playback player of the grading view.', () => {
55
47
  utilities.verifyElementVisibilityState(videoResponsePage.standardPreviewPlaybackWrapper(), 'visible');
56
48
  videoResponsePage.steps.verifyVideoPlaybackTimer('0:00', '0:12');
57
- cy.eyesCheckWindow(`Video response - Grading view contents`);
58
49
  });
59
50
 
60
51
  it('When the user clicks on \'Play\' button, then the video should start playing. Timer should display the amount of video that has been played and the total video length in (mm:ss)/(mm:ss) format.', () => {
@@ -63,13 +54,12 @@ describe('Create item page - Video response: Grading view, Correct answer view c
63
54
  videoResponsePage.steps.verifyVideoPlaybackTimer('0:03', '0:12');
64
55
  });
65
56
 
66
- it('Video response : When the video 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', () => {
57
+ it('When the video 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', () => {
67
58
  videoResponsePage.steps.verifyVideoPlaybackTimer('0:05', '0:12');
68
59
  videoResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
69
60
  videoResponsePage.steps.verifyVideoPlaybackTimer('0:05', '0:12');
70
61
  utilities.verifyElementVisibilityState(videoResponsePage.playbackPlayButton(), 'visible');
71
62
  utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
72
- cy.eyesCheckWindow(`Video response : Grading view - Verify progress bar and timer stop, and Pause button is replaced with Play button`);
73
63
  });
74
64
 
75
65
  it('When the user seeks the progress bar slider while the video is playing, then the video should continue to play from the position where the slider is seeked', () => {
@@ -131,9 +121,8 @@ describe('Create item page - Video response: Grading view, Correct answer view c
131
121
  });
132
122
  }
133
123
 
134
- it('Video response : A download button should be displayed in the playback player', () => {
124
+ it('A download button should be displayed in the playback player', () => {
135
125
  utilities.verifyElementVisibilityState(videoResponsePage.downloadVideoButton(), 'visible');
136
- cy.eyesCheckWindow(`Video response: Grading view - Verify download button is displayed in the playback player.`);
137
126
  });
138
127
 
139
128
  it('Empty score input field and total score should be displayed', () => {
@@ -181,9 +170,8 @@ describe('Create item page - Video response: Grading view, Correct answer view c
181
170
 
182
171
  correctAnswerViewPage.tests.verifyManualScoredQuestionHelpTextCorrectAnswerPage();
183
172
 
184
- it('Video response: The points alloted to the question should be displayed', () => {
173
+ it('The points alloted to the question should be displayed', () => {
185
174
  correctAnswerViewPage.steps.verifyAvailablePoints(10);
186
- cy.eyesCheckWindow('Video response: Correct answer view contents');
187
175
  });
188
176
  });
189
177
  }