itemengine-cypress-automation 1.0.282-applitools-8c400f4.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 (104) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -40
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -17
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -14
  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 -10
  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/cypress/support/commands.js +0 -11
  102. package/cypress/support/e2e.js +0 -1
  103. package/package.json +1 -4
  104. package/cypress/e2e/applitools.config.js +0 -14
@@ -13,14 +13,6 @@ describe('Create item page - Video 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();
@@ -67,9 +59,8 @@ describe('Create item page - Video response: Preview contents', () => {
67
59
  utilities.verifyElementVisibilityState(videoResponsePage.startRecordingText(), 'visible');
68
60
  });
69
61
 
70
- it(`${view} view - Video response: When the user has not started recording, a status message: \'Allow camera and microphone access.\' along with a microphone icon should be displayed on the recording interface`, () => {
62
+ it('When the user has not started recording, a status message: \'Allow camera and microphone access.\' along with a microphone icon should be displayed on the recording interface', () => {
71
63
  videoResponsePage.steps.verifyRecordingStatus('Allow camera and microphone access.');
72
- cy.eyesCheckWindow(`${view} view - Video response: Status message: Allow camera and microphone access. and microphone icon should be displayed`);
73
64
  });
74
65
 
75
66
  //Note: Add "Blur background" and "Mirror video" assertions when made available
@@ -155,14 +146,13 @@ describe('Create item page - Video response: Preview contents', () => {
155
146
  utilities.verifyElementVisibilityState(videoResponsePage.stopButton(), 'visible');
156
147
  });
157
148
 
158
- it(`${view} view - Video response: When a recording is in progress and the user first pauses the recording and then stops recording, then the recording should stop, recorded video response should be saved. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs)\'.`, () => {
149
+ it('When a recording is in progress and the user first pauses the recording and then stops recording, then the recording should stop, recorded video response should be saved. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs)\'.', () => {
159
150
  videoResponsePage.steps.resetQuestionPreview();
160
151
  videoResponsePage.steps.startRecording();
161
152
  videoResponsePage.steps.waitForRecordingToStart();
162
153
  videoResponsePage.steps.addWaitToRecord(9000);
163
154
  videoResponsePage.steps.pauseRecording();
164
155
  videoResponsePage.steps.stopAndVerifySavingAndRecordingLength();
165
- cy.eyesCheckWindow(`${view} view - Video response: Duration of their recorded video in minutes`);
166
156
  });
167
157
  } else {
168
158
  it('When a recording is in progress and the user clicks on the \'Pause recording\' button, recording should pause and the status message should update to \'Recording paused\'. User should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs/min:sec)\'. \'Pause recording\' button should get replaced with \'Resume recording\' button. \'Stop recording\' button should be displayed beside resume recording button', () => {
@@ -192,11 +182,10 @@ describe('Create item page - Video response: Preview contents', () => {
192
182
  utilities.verifyInnerText(videoResponsePage.savedResponseText(), 'Your response has been recorded.');
193
183
  });
194
184
 
195
- it(`${view} view - 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`, () => {
185
+ 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', () => {
196
186
  videoResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
197
187
  utilities.verifyElementVisibilityState(videoResponsePage.playbackPlayButton(), 'visible');
198
188
  utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
199
- cy.eyesCheckWindow(`${view} view - Video response: Playback state`);
200
189
  });
201
190
 
202
191
  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', () => {
@@ -12,14 +12,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
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 (!grepTags || !grepTags.includes('smoke')) {
24
16
  describe('Question preview modes: Student view and Grading view', () => {
25
17
  abortEarlySetup();
@@ -52,7 +44,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
52
44
  };
53
45
 
54
46
  views.forEach((view) => {
55
- describe(`Charts - Dot: All or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
47
+ describe(` Charts - Dot: All or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
56
48
  abortEarlySetup();
57
49
  before(() => {
58
50
  switch (view) {
@@ -124,7 +116,7 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
124
116
  };
125
117
 
126
118
  //Note: Remove comment after https://redmine.zeuslearning.com/issues/570904 is resolved
127
- it.skip(`${view} - Charts Dot - When the user selects \'Grading\' view without attempting the question, then by default correct dot column should have correct icons, incorrect dot column should have incorrect icons, the correct answer should be displayed in the correct answer section number line axis and correct/incorrect status message should not be displayed`, () => {
119
+ it.skip('When the user selects \'Grading\' view without attempting the question, then by default correct dot column should have correct icons, incorrect dot column should have incorrect icons, the correct answer should be displayed in the correct answer section number line axis and correct/incorrect status message should not be displayed', () => {
128
120
  if (view === 'Grading view') {
129
121
  studentViewPage.steps.submitResponse();
130
122
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -147,10 +139,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
147
139
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
148
140
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
149
141
  chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
150
- cy.eyesCheckWindow(`${view} view - Charts Dot - Without attempting the question`);
151
142
  });
152
143
 
153
- it(`${view} - Charts Dot - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
144
+ it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
154
145
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1 });
155
146
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
156
147
  if (view === 'Grading view') {
@@ -177,10 +168,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
177
168
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
178
169
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
179
170
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
180
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question incorrectly`);
181
171
  });
182
172
 
183
- it(`${view} - Charts Dot - When the user attempts the question by adding more dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
173
+ it('When the user attempts the question by adding more dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
184
174
  if (view === 'Grading view') {
185
175
  studentViewPage.steps.clearResponses();
186
176
  };
@@ -209,10 +199,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
209
199
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
210
200
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
211
201
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
212
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding more dots than required in the dot columns having dots by default`);
213
202
  });
214
203
 
215
- it(`${view} - Charts Dot - When the user attempts the question by setting fewer dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
204
+ it('When the user attempts the question by setting fewer dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
216
205
  if (view === 'Grading view') {
217
206
  studentViewPage.steps.clearResponses();
218
207
  };
@@ -242,10 +231,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
242
231
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
243
232
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
244
233
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
245
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by setting fewer dots than required in the dot columns having dots by default`);
246
234
  });
247
235
 
248
- it(`${view} - Charts Dot - When the user attempts the question by removing all the dots to dot column that is not supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
236
+ it('When the user attempts the question by removing all the dots to dot column that is not supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
249
237
  if (view === 'Grading view') {
250
238
  studentViewPage.steps.clearResponses();
251
239
  };
@@ -275,10 +263,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
275
263
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
276
264
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
277
265
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
278
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by removing all the dots to dot column that is not supposed to be empty`);
279
266
  });
280
267
 
281
- it(`${view} - Charts Dot - When the user attempts the question by adding dots to the dot columns that is supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
268
+ it('When the user attempts the question by adding dots to the dot columns that is supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis', () => {
282
269
  if (view === 'Grading view') {
283
270
  studentViewPage.steps.clearResponses();
284
271
  };
@@ -308,10 +295,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
308
295
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
309
296
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
310
297
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
311
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding dots to the dot columns that is supposed to be empty`);
312
298
  });
313
299
 
314
- it(`${view} - Charts Dot - When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the incorrectly attempted dot column should be displayed incorrect, correctly attempted dot column should be displayed correct, and the correct answer should be displayed in the correct answer section number line axis`, () => {
300
+ it('When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the incorrectly attempted dot column should be displayed incorrect, correctly attempted dot column should be displayed correct, and the correct answer should be displayed in the correct answer section number line axis', () => {
315
301
  if (view === 'Grading view') {
316
302
  studentViewPage.steps.clearResponses();
317
303
  };
@@ -342,10 +328,9 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
342
328
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
343
329
  chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
344
330
  chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
345
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly`);
346
331
  });
347
332
 
348
- it(`${view} - Charts Dot - When the user attempts the question correctly, the user should be awarded with full points and on switching to grading view, \'Your answer is correct\' should be displayed and correct answer section should not be displayed`, () => {
333
+ it('When the user attempts the question correctly, the user should be awarded with full points and on switching to grading view, \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
349
334
  if (view === 'Grading view') {
350
335
  studentViewPage.steps.clearResponses();
351
336
  };
@@ -368,7 +353,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
368
353
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1 });
369
354
  chartsDotPlotPage.steps.verifyEmptyDotColumnPreviewTab({ point: 6, min: 1, interval: 1 });
370
355
  chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
371
- cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question correctly`);
372
356
  });
373
357
 
374
358
  });
@@ -11,14 +11,6 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
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
  abortEarlySetup();
@@ -96,14 +88,13 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
96
88
  chartsDotPlotPage.steps.verifyDotCountCorrectAnswerSection(2, { point: 1, min: 1, interval: 0.25 });
97
89
  });
98
90
 
99
- it('Charts Dot - Correct answer section along with dot plot attempted by the user should be displayed', () => {
91
+ it('Correct answer section along with dot plot attempted by the user should be displayed', () => {
100
92
  chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 0.25 });
101
93
  chartsDotPlotPage.steps.verifyCorrectDotPreviewTab({ point: 3, min: 1, interval: 0.25 });
102
94
  chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 0.25 });
103
95
  chartsDotPlotPage.steps.verifyIncorrectDotPreviewTab({ point: 2, min: 1, interval: 0.25 });
104
96
  chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 0.25 });
105
97
  chartsDotPlotPage.steps.verifyCorrectDotCorrectAnswerSection({ point: 3, min: 1, interval: 0.25 });
106
- cy.eyesCheckWindow('Charts Dot - Grading view contents');
107
98
  });
108
99
 
109
100
  it('Points and the total score should be displayed', () => {
@@ -190,9 +181,8 @@ describe('Create item page - Dot plot charts : Grading view, Correct answer view
190
181
  chartsDotPlotPage.steps.verifyCorrectDotPreviewTab({ point: 3, min: 1, interval: 0.25 });
191
182
  });
192
183
 
193
- it('Charts Dot - The points alloted to the question should be displayed', () => {
184
+ it('The points alloted to the question should be displayed', () => {
194
185
  correctAnswerViewPage.steps.verifyAvailablePoints(10);
195
- cy.eyesCheckWindow('Charts Dot- Correct answer view contents');
196
186
  });
197
187
 
198
188
  it('CSS of correct answer section', { tags: 'css' }, () => {
@@ -13,14 +13,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
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();
@@ -79,17 +71,15 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
79
71
  utilities.verifyElementVisibilityState(chartsDotPlotPage.previewTabXAxisLabelButton(), 'visible');
80
72
  });
81
73
 
82
- it(`${view} - Charts Dot - The number line axis should be displayed with labels from 1 to 6 with 20 divisions`, () => {
74
+ it('The number line axis should be displayed with labels from 1 to 6 with 20 divisions', () => {
83
75
  utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
84
76
  chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisPreviewTab({ min: 1, max: 6, interval: 0.25 });
85
77
  chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 4);
86
- cy.eyesCheckWindow(`${view}- Charts Dot - Charts Dot: Question instructions, Graph title, X axis label and line divisions`);
87
78
  });
88
79
 
89
- it(`${view} - Charts Dot - User should be able to edit the X axis labels in preview tab`, () => {
80
+ it('User should be able to edit the X axis labels in preview tab', () => {
90
81
  chartsDotPlotPage.steps.editXAxisLabelInPreviewTab('Numbers of days');
91
82
  utilities.verifyInnerText(chartsDotPlotPage.previewTabXAxisLabelButton(), 'Numbers of days');
92
- cy.eyesCheckWindow(`${view} - Charts Dot: After Editing X axis label`);
93
83
  });
94
84
 
95
85
  it('When user hovers over dot column then it should be displayed in interactive state and tooltip with add and minus button should be displayed', () => {
@@ -174,7 +164,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
174
164
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
175
165
  });
176
166
 
177
- it(`${view} - Charts Dot - When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state`, () => {
167
+ it('When user removes dots from dot column having 10 dots then \'Add dot\' button should be in enabled state', () => {
178
168
  //using minus button
179
169
  chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(9, { point: 5, min: 1, interval: 0.25 });
180
170
  chartsDotPlotPage.steps.selectDotColumnInPreviewTab({ point: 5, min: 1, interval: 0.25 });
@@ -184,7 +174,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
184
174
  chartsDotPlotPage.steps.decreaseDotInDotColumnUsingKeyboardPreviewTab(1, { point: 4, min: 1, interval: 0.25 });
185
175
  utilities.verifyElementNotDisabled(chartsDotPlotPage.addButtonPreviewTab());
186
176
  chartsDotPlotPage.steps.unselectDotColumnInPreviewTab({ point: 4, min: 1, interval: 0.25 });
187
- cy.eyesCheckWindow(`${view} - Charts Dot - Charts Dot: After Adding/Removing dots`);
188
177
  });
189
178
 
190
179
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -381,7 +370,7 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
381
370
  utilities.verifyElementNotDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
382
371
  });
383
372
 
384
- it(`${view} - Charts Dot - When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state and control options should be in disabled state`, () => {
373
+ it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state and control options should be in disabled state', () => {
385
374
  chartsDotPlotPage.steps.selectControlOptionPreviewTab(controlOptions[2]);
386
375
  chartsDotPlotPage.steps.confirmReset();
387
376
  chartsDotPlotPage.steps.verifyDotColumnIsLockedInPreviewTab({ point: 1, min: 1, interval: 0.25 });
@@ -390,7 +379,6 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
390
379
  utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[0]));
391
380
  utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[1]));
392
381
  utilities.verifyElementDisabled(chartsDotPlotPage.controlOptionsPreviewTab(controlOptions[2]));
393
- cy.eyesCheckWindow(`${view} - Charts Dot: Chart reset to default state`);
394
382
  });
395
383
 
396
384
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -363,7 +363,6 @@ const tests = {
363
363
  equationEditorSectionCommonComponent.steps.focusInResponseAnswerInputFieldPreviewTab(0);
364
364
  }
365
365
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'visible');
366
- cy.eyesCheckWindow('Equation Editor flyout in preview tab');
367
366
  });
368
367
 
369
368
  it('\'Done\'button should be displayed at the bottom of the flyout', () => {
@@ -431,12 +430,11 @@ const tests = {
431
430
  cy.checkAccessibility(equationEditorFlyout.dialogBox());
432
431
  });
433
432
 
434
- it(`${questionType} Cancel button should be displayed in the flyout and when user clicks the 'Cancel' button then the flyout should close`, () => {
433
+ it('Cancel button should be displayed in the flyout and when user clicks the \'Cancel\' button then the flyout should close', () => {
435
434
  utilities.verifyElementVisibilityState(equationEditorFlyout.buttonCancel(), 'visible');
436
435
  utilities.verifyInnerText(equationEditorFlyout.buttonCancel(), 'Cancel');
437
436
  equationEditorFlyout.steps.clickOnEquationEditorCancelButton();
438
437
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
439
- cy.eyesCheckWindow(`${questionType} Equation Editor flyout should not be displayed`);
440
438
  });
441
439
  },
442
440
 
@@ -5,7 +5,6 @@ import 'cypress-file-upload';
5
5
  import { iePage } from './migrationHelpers/verifyIeQuestionData';
6
6
  import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
7
7
  require('cy-verify-downloads').addCustomCommand();
8
- import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
9
8
  //import addContext from "mochawesome/addContext";
10
9
 
11
10
  const randomUser = (j, username, i) => ({
@@ -155,16 +154,6 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
155
154
  .should('be.visible');
156
155
  });
157
156
 
158
- Cypress.Commands.add('startApplitools', () => {
159
- cy.eyesOpen({
160
- apiKey,
161
- serverUrl,
162
- browser,
163
- appName: 'Applitools Demo - ILC',
164
- testName: Cypress.currentTest.title,
165
- });
166
- });
167
-
168
157
  Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
169
158
  iePage.questionAndResourceWrapper()
170
159
  .then((elements) => {
@@ -4,7 +4,6 @@ import 'cypress-axe';
4
4
  import './helpers/cypressUtilities';
5
5
  import './helpers/accessibility';
6
6
  import './helpers/selectText';
7
- import '@applitools/eyes-cypress/commands'
8
7
 
9
8
  let windowConsoleError;
10
9
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.282-applitools-8c400f4.0",
3
+ "version": "1.0.283-updatedPackageFile-3c0db7c.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,8 +35,5 @@
35
35
  "node-fetch": "^3.3.2",
36
36
  "react-uuid": "^2.0.0",
37
37
  "typescript": "^5.6.3"
38
- },
39
- "devDependencies": {
40
- "@applitools/eyes-cypress": "^3.47.0"
41
38
  }
42
39
  }
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- apiKey: 'XkObRjxHCyNlYPTHm1VLxIKoCXxY1111nW2RQr5IaUHHk110',
3
- serverUrl: 'https://eyes.applitools.com',
4
- browser: [
5
- { width: 1366, height: 609, name: 'chrome' },
6
- { width: 1280, height: 832, name: 'edgechromium' },
7
- { width: 1536, height: 960, name: 'safari' },
8
- { width: 1024, height: 1366, name: 'safari' }
9
- ],
10
- //Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
11
- ignoreDisplacements: true, // Set to false to detect mismatches in the displacements of the elements
12
- failCypressOnDiff: false, // Set to true to fail the test when differences are detected
13
- isDisabled: false // Set to true to disable Applitools
14
- };