itemengine-cypress-automation 1.0.279-4092Changes-71debc9.0 → 1.0.280-applitools-0af112e.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -17,6 +17,14 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
17
17
  cy.loginAs('admin');
18
18
  });
19
19
 
20
+ beforeEach(() => {
21
+ cy.startApplitools();
22
+ });
23
+
24
+ afterEach(() => {
25
+ cy.eyesClose();
26
+ });
27
+
20
28
  if (views.includes('Grading view')) {
21
29
  describe('Grading view contents', { tags: 'smoke' }, () => {
22
30
  abortEarlySetup();
@@ -69,13 +77,14 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
69
77
  utilities.verifyElementVisibilityState(numberLinePage.correctAnswersLabel(), 'visible');
70
78
  });
71
79
 
72
- it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
80
+ it('Number line Horizontal - Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
73
81
  numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5]);
74
82
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
75
83
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
76
84
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -5]);
77
85
  numberLinePage.steps.verifyCorrectRayOnNumberLineCorrectAnswerSection('left', range, -7);
78
86
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
87
+ cy.eyesCheckWindow(`Number line Horizontal - Grading view contents`);
79
88
  });
80
89
 
81
90
  it('Points and the total score should be displayed', () => {
@@ -147,10 +156,11 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
147
156
  });
148
157
  });
149
158
 
150
- it('The correct answer set by user should be displayed in the correct answer view', () => {
159
+ it('Number line Horizontal - The correct answer set by user should be displayed in the correct answer view', () => {
151
160
  numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5, 2]);
152
161
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
153
162
  numberLinePage.steps.verifyCorrectRayOnNumberLinePreviewTab('left', range, -7);
163
+ cy.eyesCheckWindow(`Number line Horizontal - Correct answer view contents`);
154
164
  });
155
165
 
156
166
  it('The points alloted to the question should be displayed', () => {
@@ -16,6 +16,14 @@ describe('Create item page: Number line - Preview contents in all views', () =>
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
+ beforeEach(() => {
20
+ cy.startApplitools();
21
+ });
22
+
23
+ afterEach(() => {
24
+ cy.eyesClose();
25
+ });
26
+
19
27
  views.forEach((view) => {
20
28
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
21
29
  abortEarlySetup();
@@ -84,10 +92,11 @@ describe('Create item page: Number line - Preview contents in all views', () =>
84
92
  numberLinePage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
85
93
  });
86
94
 
87
- it('By default, all controls should be in disabled state', () => {
95
+ it(`${view} view - Number line Horizontal: By default, all controls should be in disabled state`, () => {
88
96
  controlOptions.forEach((controlOption) => {
89
97
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab(controlOption));
90
98
  });
99
+ cy.eyesCheckWindow(`${view} view - Number line Horizontal: Preview contents`);
91
100
  });
92
101
 
93
102
  it('Accessibility of preview content', { tags: 'a11y' }, () => {
@@ -134,11 +143,12 @@ describe('Create item page: Number line - Preview contents in all views', () =>
134
143
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -8);
135
144
  });
136
145
 
137
- it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
146
+ it(`${view} view - Number line Horizontal: User should be able to draw a ray wave using the \'Open right ray\' tool option`, () => {
138
147
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
139
148
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 7);
140
149
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [7]);
141
150
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 7);
151
+ cy.eyesCheckWindow(`${view} view - Number line Horizontal: After plotting using point, segment and ray`);
142
152
  });
143
153
 
144
154
  it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
@@ -176,13 +186,14 @@ describe('Create item page: Number line - Preview contents in all views', () =>
176
186
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 7);
177
187
  });
178
188
 
179
- it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
189
+ it(`${view} view - Number line Horizontal:When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
180
190
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
181
191
  numberLinePage.steps.confirmReset();
182
192
  utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
183
193
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
184
194
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
185
195
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Reset'));
196
+ cy.eyesCheckWindow(`${view} view - Number line Horizontal: After resetting the number line`);
186
197
  });
187
198
 
188
199
  it('User should be able to draw a ray using the \'Left ray\' tool option', () => {
@@ -192,11 +203,12 @@ describe('Create item page: Number line - Preview contents in all views', () =>
192
203
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -5);
193
204
  });
194
205
 
195
- it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
206
+ it(`${view} view - Number line Horizontal: User should be able to draw a ray using the \'Right ray\' tool option`, () => {
196
207
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
197
208
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 6);
198
209
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
199
210
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 6);
211
+ cy.eyesCheckWindow(`${view} view - Number line Horizontal: After plotting ray`);
200
212
  });
201
213
  });
202
214
  });
@@ -13,6 +13,14 @@ describe('Create Item page - Number line: All or nothing ', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (!grepTags || !grepTags.includes('smoke')) {
17
25
  describe('Question preview modes: Student view and Grading view', () => {
18
26
  abortEarlySetup();
@@ -107,7 +115,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
107
115
  });
108
116
  };
109
117
 
110
- it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
118
+ it(`${view}: Number line Vertical - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed`, () => {
111
119
  if (view === 'Grading view') {
112
120
  studentViewPage.steps.submitResponse();
113
121
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -123,9 +131,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
123
131
  //numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
124
132
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
125
133
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
134
+ cy.eyesCheckWindow(`Number line vertical ${view} view - Without attempting the question`);
126
135
  });
127
136
 
128
- 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
137
+ it(`${view}: Number line Vertical - 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
129
138
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
130
139
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
131
140
  numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8, 7]);
@@ -146,9 +155,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
146
155
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
147
156
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
148
157
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
158
+ cy.eyesCheckWindow(`Number line vertical ${view} - Attempting the question incorrectly`);
149
159
  });
150
160
 
151
- it('When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
161
+ it(`${view}: Number line Vertical - When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
152
162
  if (view === 'Grading view') {
153
163
  studentViewPage.steps.clearResponses();
154
164
  }
@@ -170,9 +180,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
170
180
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
171
181
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
172
182
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
183
+ cy.eyesCheckWindow(`Number line vertical ${view} - Attempting the question partially correct`);
173
184
  });
174
185
 
175
- it('When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
186
+ it(`${view}: Number line Vertical - When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
176
187
  if (view === 'Grading view') {
177
188
  studentViewPage.steps.clearResponses();
178
189
  }
@@ -202,9 +213,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
202
213
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
203
214
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [-4, -5]);
204
215
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
216
+ cy.eyesCheckWindow(`Number line vertical ${view} - Attempting the question partially correct with an incorrect response`);
205
217
  });
206
218
 
207
- 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 and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
219
+ it(`${view}: Number line Vertical - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
208
220
  if (view === 'Grading view') {
209
221
  studentViewPage.steps.clearResponses();
210
222
  }
@@ -230,6 +242,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
230
242
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
231
243
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
232
244
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
245
+ cy.eyesCheckWindow(`Number line vertical ${view} - Attempting the question correctly`);
233
246
  });
234
247
  });
235
248
  });
@@ -17,6 +17,14 @@ describe('Create item page - Number line vertical: Grading view, Correct answer
17
17
  cy.loginAs('admin');
18
18
  });
19
19
 
20
+ beforeEach(() => {
21
+ cy.startApplitools();
22
+ });
23
+
24
+ afterEach(() => {
25
+ cy.eyesClose();
26
+ });
27
+
20
28
  if (views.includes('Grading view')) {
21
29
  describe('Grading view contents', { tags: 'smoke' }, () => {
22
30
  abortEarlySetup();
@@ -70,13 +78,14 @@ describe('Create item page - Number line vertical: Grading view, Correct answer
70
78
  utilities.verifyElementVisibilityState(numberLinePage.correctAnswersLabel(), 'visible');
71
79
  });
72
80
 
73
- it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
81
+ it('Number line Vertical - Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
74
82
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range, [-4, -5]);
75
83
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
76
84
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
77
85
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [-4, -5]);
78
86
  numberLinePage.steps.verifyCorrectRayOnVerticalNumberLineCorrectAnswerSection('left', range, -7);
79
87
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
88
+ cy.eyesCheckWindow(`Number line Vertical - Grading view contents`);
80
89
  });
81
90
 
82
91
  it('Points and the total score should be displayed', () => {
@@ -149,10 +158,11 @@ describe('Create item page - Number line vertical: Grading view, Correct answer
149
158
  });
150
159
  });
151
160
 
152
- it('The correct answer set by user should be displayed in the correct answer view', () => {
161
+ it('Number line Vertical - The correct answer set by user should be displayed in the correct answer view', () => {
153
162
  numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range, [-4, -5, 2]);
154
163
  numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
155
164
  numberLinePage.steps.verifyCorrectRayOnVerticalNumberLinePreviewTab('left', range, -7);
165
+ cy.eyesCheckWindow(`Number line Vertical - Correct answer view contents`);
156
166
  });
157
167
 
158
168
  it('The points alloted to the question should be displayed', () => {
@@ -16,6 +16,14 @@ describe('Create item page: Number line - Preview contents in all views', () =>
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
+ beforeEach(() => {
20
+ cy.startApplitools();
21
+ });
22
+
23
+ afterEach(() => {
24
+ cy.eyesClose();
25
+ });
26
+
19
27
  views.forEach((view) => {
20
28
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
21
29
  abortEarlySetup();
@@ -85,10 +93,11 @@ describe('Create item page: Number line - Preview contents in all views', () =>
85
93
  numberLinePage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
86
94
  });
87
95
 
88
- it('By default, all controls should be in disabled state', () => {
96
+ it(`${view} view - Number line Vertical: By default, all controls should be in disabled state`, () => {
89
97
  controlOptions.forEach((controlOption) => {
90
98
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab(controlOption));
91
99
  });
100
+ cy.eyesCheckWindow(`${view} view - Number line Vertical: Preview contents`);
92
101
  });
93
102
 
94
103
  it('Accessibility of preview content', { tags: 'a11y' }, () => {
@@ -135,11 +144,12 @@ describe('Create item page: Number line - Preview contents in all views', () =>
135
144
  numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -8);
136
145
  });
137
146
 
138
- it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
147
+ it(`${view} view - Number line Vertical: User should be able to draw a ray wave using the \'Open right ray\' tool option`, () => {
139
148
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
140
149
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
141
150
  numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8]);
142
151
  numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('up', range, 8);
152
+ cy.eyesCheckWindow(`${view} view - Number line Vertical: After plotting using point, segment and ray`);
143
153
  });
144
154
 
145
155
  it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
@@ -177,13 +187,14 @@ describe('Create item page: Number line - Preview contents in all views', () =>
177
187
  numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('up', range, 8);
178
188
  });
179
189
 
180
- it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
190
+ it(`${view} view - Number line Vertical: When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
181
191
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
182
192
  numberLinePage.steps.confirmReset();
183
193
  utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
184
194
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Undo'));
185
195
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Redo'));
186
196
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab('Reset'));
197
+ cy.eyesCheckWindow(`${view} view - Number line Vertical: After resetting the number line`);
187
198
  });
188
199
 
189
200
  it('User should be able to draw a ray using the \'Left ray\' tool option', () => {
@@ -193,11 +204,12 @@ describe('Create item page: Number line - Preview contents in all views', () =>
193
204
  numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -6);
194
205
  });
195
206
 
196
- it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
207
+ it(`${view} view - Number line Vertical: User should be able to draw a ray using the \'Right ray\' tool option`, () => {
197
208
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
198
209
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 6);
199
210
  numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [6]);
200
211
  numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('up', range, 6);
212
+ cy.eyesCheckWindow(`${view} view - Number line Vertical: After plotting ray`);
201
213
  });
202
214
  });
203
215
  });
@@ -12,6 +12,14 @@ describe('Create Item page - Number line label: 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
+
15
23
  if (!grepTags || !grepTags.includes('smoke')) {
16
24
  describe('Question preview modes: Student view and Grading view', () => {
17
25
  abortEarlySetup();
@@ -105,7 +113,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
105
113
  });
106
114
  };
107
115
 
108
- it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
116
+ it(`${view}: Number line Label Horizontal - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
109
117
  if (view === 'Grading view') {
110
118
  studentViewPage.steps.submitResponse();
111
119
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -121,9 +129,10 @@ describe('Create Item page - Number line label: All or nothing ', () => {
121
129
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
122
130
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
123
131
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
132
+ cy.eyesCheckWindow(`Number line horizontal - ${view} view - Without attempting the question`);
124
133
  });
125
134
 
126
- 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
135
+ it(`${view}: Number line Label Horizontal - 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
127
136
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 0);
128
137
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
129
138
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 4);
@@ -143,9 +152,10 @@ describe('Create Item page - Number line label: All or nothing ', () => {
143
152
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
144
153
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
145
154
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
155
+ cy.eyesCheckWindow(`Number line horizontal - ${view} - Attempting the question incorrectly`);
146
156
  });
147
157
 
148
- it('When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
158
+ it(`${view}: Number line Label Horizontal - When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
149
159
  if (view === 'Grading view') {
150
160
  studentViewPage.steps.clearResponses();
151
161
  }
@@ -171,9 +181,10 @@ describe('Create Item page - Number line label: All or nothing ', () => {
171
181
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
172
182
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
173
183
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
184
+ cy.eyesCheckWindow(`Number line horizontal - ${view} - Attempting partially correct`);
174
185
  });
175
186
 
176
- it('When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
187
+ it(`${view}: Number line Label Horizontal - When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
177
188
  if (view === 'Grading view') {
178
189
  studentViewPage.steps.clearResponses();
179
190
  }
@@ -202,9 +213,10 @@ describe('Create Item page - Number line label: All or nothing ', () => {
202
213
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
203
214
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
204
215
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
216
+ cy.eyesCheckWindow(`Number line horizontal - ${view} - Attempting partially correct with an incorrect response`);
205
217
  });
206
218
 
207
- 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 and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
219
+ it(`${view}: Number line Label 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 and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
208
220
  if (view === 'Grading view') {
209
221
  studentViewPage.steps.clearResponses();
210
222
  }
@@ -228,6 +240,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
228
240
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
229
241
  numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
230
242
  numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
243
+ cy.eyesCheckWindow(`Number line horizontal - ${view} - Attempting the question correctly`);
231
244
  });
232
245
  });
233
246
  });
@@ -13,6 +13,14 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (views.includes('Grading view')) {
17
25
  describe('Grading view contents', { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -67,6 +75,7 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
67
75
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
68
76
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
69
77
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
78
+ cy.eyesCheckWindow(`Number line label Horizontal - Grading view contents`);
70
79
  });
71
80
 
72
81
  it('The unattempted labels should be displayed in disabled state', () => {
@@ -140,6 +149,7 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
140
149
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
141
150
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
142
151
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
152
+ cy.eyesCheckWindow(`Number line label Horizontal - Correct answer view contents`);
143
153
  });
144
154
 
145
155
  it('The points alloted to the question should be displayed', () => {
@@ -12,6 +12,14 @@ describe('Create item page: Number line label - Preview contents in 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
+
15
23
  views.forEach((view) => {
16
24
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -98,10 +106,11 @@ describe('Create item page: Number line label - Preview contents in all views',
98
106
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
99
107
  });
100
108
 
101
- it('The user should be able to change the plotted label on the number line', () => {
109
+ it(`${view} view - Number line label Horizontal: The user should be able to change the plotted label on the number line`, () => {
102
110
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'horizontal', range, -8);
103
111
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-8]);
104
112
  numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [-9]);
113
+ cy.eyesCheckWindow(`${view} view - Number line label Horizontal: Preview contents`);
105
114
  });
106
115
 
107
116
  it('CSS of number line label', { tags: 'css' }, () => {
@@ -12,6 +12,14 @@ describe('Create Item page - Number line: 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
+
15
23
  if (!grepTags || !grepTags.includes('smoke')) {
16
24
  describe('Question preview modes: Student view and Grading view', () => {
17
25
  abortEarlySetup();
@@ -105,7 +113,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
105
113
  });
106
114
  };
107
115
 
108
- it('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', () => {
116
+ it(`${view}: Number line Label Vertical - 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`, () => {
109
117
  if (view === 'Grading view') {
110
118
  studentViewPage.steps.submitResponse();
111
119
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -121,9 +129,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
121
129
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
122
130
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
123
131
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
132
+ cy.eyesCheckWindow(`Number line label vertical - ${view} view - Without attempting the question`);
124
133
  });
125
134
 
126
- 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
135
+ it(`${view}: Number line Label Vertical - 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 graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
127
136
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'vertical', range, 0);
128
137
  numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [0]);
129
138
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'vertical', range, 4);
@@ -143,9 +152,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
143
152
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
144
153
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
145
154
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
155
+ cy.eyesCheckWindow(`Number line label vertical - ${view} - Attempting the question incorrectly`);
146
156
  });
147
157
 
148
- it('When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
158
+ it(`${view}: Number line Label Vertical - When the user attempts the question partially correct 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 graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
149
159
  if (view === 'Grading view') {
150
160
  studentViewPage.steps.clearResponses();
151
161
  }
@@ -171,9 +181,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
171
181
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
172
182
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
173
183
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
184
+ cy.eyesCheckWindow(`Number line label vertical - ${view} - Attempting partially correct`);
174
185
  });
175
186
 
176
- it('When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
187
+ it(`${view}: Number line Label Vertical - When the user attempts the question partially correct with an incorrect response 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 graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
177
188
  if (view === 'Grading view') {
178
189
  studentViewPage.steps.clearResponses();
179
190
  }
@@ -202,9 +213,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
202
213
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
203
214
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
204
215
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
216
+ cy.eyesCheckWindow(`Number line label vertical - ${view} - Attempting partially correct with an incorrect response`);
205
217
  });
206
218
 
207
- 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 and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
219
+ it(`${view}: Number line Label Vertical - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
208
220
  if (view === 'Grading view') {
209
221
  studentViewPage.steps.clearResponses();
210
222
  }
@@ -228,6 +240,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
228
240
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
229
241
  numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
230
242
  numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
243
+ cy.eyesCheckWindow(`Number line label vertical - ${view} - Attempting the question correctly`);
231
244
  });
232
245
  });
233
246
  });
@@ -13,6 +13,14 @@ describe('Create item page - Number line label - vertical: Grading view, Correct
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (views.includes('Grading view')) {
17
25
  describe('Grading view contents', { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -61,13 +69,14 @@ describe('Create item page - Number line label - vertical: Grading view, Correct
61
69
  utilities.verifyElementVisibilityState(numberLineLabelPage.correctAnswersLabel(), 'visible');
62
70
  });
63
71
 
64
- it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
72
+ it('Number line label Vertical: Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
65
73
  numberLineLabelPage.steps.verifyVerticalIncorrectResponseOnNumberLinePreviewTab('Label 3', range, -8);
66
74
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
67
75
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
68
76
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
69
77
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
70
78
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
79
+ cy.eyesCheckWindow(`Number line label Vertical - Grading view contents`);
71
80
  });
72
81
 
73
82
  it('The unattempted labels should be displayed in disabled state', () => {
@@ -138,10 +147,11 @@ describe('Create item page - Number line label - vertical: Grading view, Correct
138
147
  utilities.verifyElementVisibilityState(numberLineLabelPage.questionInstructionsText(), 'visible');
139
148
  });
140
149
 
141
- it('The correct answer set by user should be displayed in the correct answer view', () => {
150
+ it('Number line label Vertical: The correct answer set by user should be displayed in the correct answer view', () => {
142
151
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 1', 316);
143
152
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 2', 59);
144
153
  numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerView('Label 3', 573);
154
+ cy.eyesCheckWindow(`Number line label Vertical - Correct answer view contents`);
145
155
  });
146
156
 
147
157
  it('The points alloted to the question should be displayed', () => {
@@ -12,6 +12,14 @@ describe('Create item page: Number line label - Preview contents in 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
+
15
23
  views.forEach((view) => {
16
24
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -90,9 +98,10 @@ describe('Create item page: Number line label - Preview contents in all views',
90
98
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'vertical', range, -9);
91
99
  });
92
100
 
93
- it('The user should be able to change the plotted label on the number line', () => {
101
+ it(`${view} view - Number line label Vertical: The user should be able to change the plotted label on the number line`, () => {
94
102
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Solve the following', 'vertical', range, 5);
95
103
  numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [5]);
104
+ cy.eyesCheckWindow(`${view} view - Number line label Vertical: Preview contents`);
96
105
  });
97
106
 
98
107
  it('CSS of number line label', { tags: 'css' }, () => {