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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -14,6 +14,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
+ beforeEach(() => {
18
+ cy.startApplitools();
19
+ });
20
+
21
+ afterEach(() => {
22
+ cy.eyesClose();
23
+ });
24
+
17
25
  if (views.includes('Grading view')) {
18
26
  describe('Grading view contents', { tags: 'smoke' }, () => {
19
27
  abortEarlySetup();
@@ -59,13 +67,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
59
67
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
60
68
  });
61
69
 
62
- it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
70
+ it('Graphing: The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
63
71
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
64
72
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
65
73
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
66
74
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
67
75
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
68
76
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
77
+ cy.eyesCheckWindow('Graphing - The graph plotted by the author in the edit tab should be displayed in the grading view');
69
78
  });
70
79
 
71
80
  it('Correct answer label should be displayed', () => {
@@ -163,13 +172,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
163
172
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
164
173
  });
165
174
 
166
- it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
175
+ it('Graphing: The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
167
176
  utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
168
177
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
169
178
  utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
170
179
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }])
171
180
  utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
172
181
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
182
+ cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
173
183
  });
174
184
 
175
185
  it('The points alloted to the question should be displayed', () => {
@@ -15,6 +15,14 @@ describe('Create item page - Graphing - Preview contents in 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
+
18
26
  views.forEach((view) => {
19
27
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
20
28
  abortEarlySetup();
@@ -86,16 +94,18 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
86
94
  graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
87
95
  });
88
96
 
89
- it('By default, the move control should be in enabled state and all other controls should be disabled', () => {
97
+ it(`${view} - Graphing By default, the move control should be in enabled state and all other controls should be disabled`, () => {
90
98
  utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
91
99
  controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
92
100
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
93
101
  });
102
+ cy.eyesCheckWindow(`${view} - Graphing - Default move control enabled`);
94
103
  });
95
104
 
96
- it('User should be able to plot points using the \'Point\' tool options', () => {
105
+ it(`${view} - Graphing User should be able to plot points using the \'Point\' tool options`, () => {
97
106
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
98
107
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
108
+ cy.eyesCheckWindow(`${view} - Graphing - Plot points using Point tool`);
99
109
  });
100
110
 
101
111
  it('By default, the control options should be in displayed and when the user hovers over the tool options then tooltips should be displayed', () => {
@@ -162,11 +172,12 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
162
172
  utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
163
173
  });
164
174
 
165
- it('User should be able to draw a polygon using the \'Polygon\' tool option', () => {
175
+ it(`${view} - Graphing - User should be able to draw a polygon using the \'Polygon\' tool option`, () => {
166
176
  graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
167
177
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
168
178
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }]);
169
179
  utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
180
+ cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
170
181
  });
171
182
 
172
183
  it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
@@ -179,7 +190,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
179
190
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
180
191
  });
181
192
 
182
- it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
193
+ it(`${view} - Graphing - When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
183
194
  graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
184
195
  graphingPage.steps.confirmReset();
185
196
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
@@ -189,6 +200,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
189
200
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Undo'));
190
201
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Redo'));
191
202
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab('Reset'));
203
+ cy.eyesCheckWindow(`${view} - Graphing - Reset action`);
192
204
  });
193
205
 
194
206
  it('CSS of preview content', { tags: 'css' }, () => {
@@ -12,6 +12,15 @@ describe('Create item page - Grid fill: All or nothing', () => {
12
12
  before(() => {
13
13
  cy.loginAs('admin');
14
14
  });
15
+
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
15
24
 
16
25
  if (!grepTags || !grepTags.includes('smoke')) {
17
26
  describe('Question preview modes: Student view and Grading view', () => {
@@ -91,7 +100,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
91
100
  });
92
101
  };
93
102
  //Failed due to https://redmine.zeuslearning.com/issues/565569
94
- it('When the user selects \'Grading\' view without attempting the question, correct answer tick should be displayed in correct answer cell and correct/incorrect status message should not be displayed', () => {
103
+ it(`${view}: Grid fill - When the user selects \'Grading\' view without attempting the question, correct answer tick should be displayed in correct answer cell and correct/incorrect status message should not be displayed`, () => {
95
104
  if (view === 'Grading view') {
96
105
  studentViewPage.steps.submitResponse();
97
106
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'exist');
@@ -107,9 +116,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
107
116
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
108
117
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
109
118
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
119
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Without attempting the question`);
110
120
  });
111
121
 
112
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
122
+ it(`${view}: Grid fill - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview`, () => {
113
123
  gridFillPage.steps.selectCellPreviewTab(0, 3);
114
124
  if (view === 'Grading view') {
115
125
  studentViewPage.steps.submitResponse();
@@ -126,9 +136,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
126
136
  }
127
137
  gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
128
138
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
139
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question incorrectly`);
129
140
  });
130
141
 
131
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
142
+ it(`${view}: Grid fill - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
132
143
  if (view === 'Grading view') {
133
144
  studentViewPage.steps.clearResponses();
134
145
  };
@@ -148,9 +159,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
148
159
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
149
160
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
150
161
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
162
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct`);
151
163
  });
152
164
 
153
- it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
165
+ it(`${view}: Grid fill - When the user attempts the question partially correct with one correct and one incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
154
166
  if (view === 'Grading view') {
155
167
  studentViewPage.steps.clearResponses();
156
168
  };
@@ -171,9 +183,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
171
183
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
172
184
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
173
185
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
186
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with one correct and one incorrect response`);
174
187
  });
175
188
 
176
- it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
189
+ it(`${view}: Grid fill - When the user attempts the question partially correct by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
177
190
  if (view === 'Grading view') {
178
191
  studentViewPage.steps.clearResponses();
179
192
  };
@@ -196,9 +209,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
196
209
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
197
210
  gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
198
211
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
212
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question partially correct with all the correct cells with one incorrect cell`);
199
213
  });
200
214
 
201
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview', () => {
215
+ it(`${view}: Grid fill - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview`, () => {
202
216
  if (view === 'Grading view') {
203
217
  studentViewPage.steps.clearResponses();
204
218
  };
@@ -217,6 +231,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
217
231
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
218
232
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
219
233
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
234
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
220
235
  });
221
236
  });
222
237
  });
@@ -11,6 +11,14 @@ describe('Create item page - Grid fill : Preview contents', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -74,16 +82,19 @@ describe('Create item page - Grid fill : Preview contents', () => {
74
82
  gridFillPage.steps.verifyRowsCountPreviewTab(4);
75
83
  gridFillPage.steps.verifyColumnsCountPreviewTab(6);
76
84
  gridFillPage.steps.getCellCountInGridPreviewTab(24);
85
+ cy.eyesCheckWindow(`Grid fill - ${view} - Grid matrix`);
77
86
  });
78
87
 
79
88
  it('Cell with \'Hide\' customization should be displayed', () => {
80
89
  gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
90
+ cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
81
91
  });
82
92
 
83
93
  if (view !== 'Grading view' && view !== 'Correct answer view') {
84
94
 
85
95
  it('Cell with \'Shade\' customization should be displayed', () => {
86
96
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
97
+ cy.eyesCheckWindow(`Grid fill - ${view} - Shade customization`);
87
98
  });
88
99
 
89
100
  it('User should be able to select cell', () => {
@@ -91,10 +102,12 @@ describe('Create item page - Grid fill : Preview contents', () => {
91
102
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
92
103
  gridFillPage.steps.selectCellPreviewTab(0, 5);
93
104
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
105
+ cy.eyesCheckWindow(`Grid fill - ${view} - Select cell`);
94
106
  });
95
107
 
96
108
  it('User should be able to unselect cells', () => {
97
109
  gridFillPage.steps.unselectCellPreviewTab(0, 0);
110
+ cy.eyesCheckWindow(`Grid fill - ${view} - Unselect cell`);
98
111
  });
99
112
 
100
113
  it('When user hovers over cell, then cell should be in interactive state', () => {
@@ -104,27 +117,32 @@ describe('Create item page - Grid fill : Preview contents', () => {
104
117
  'background-color': css.color.gridCellHoverStateBg
105
118
  });
106
119
  utilities.hoverAwayFromElement(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 9));
120
+ cy.eyesCheckWindow(`Grid fill - ${view} - Hover over cell`);
107
121
  });
108
122
  }
109
123
  else if (view === 'Grading view') {
110
124
  it('Cell with \'Hide\' customization should be displayed', () => {
111
125
  gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
126
+ cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
112
127
  });
113
128
 
114
129
  it(`The grid fill should be displayed filled with selected correct answer cells and status message \' Your answer is correct\' should be displayed`, () => {
115
130
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
116
131
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
117
132
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
133
+ cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer`);
118
134
  });
119
135
 
120
136
  it('Grid fill should not be editable', () => {
121
137
  gridFillPage.steps.selectCellPreviewTab(1, 3);
122
138
  gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
139
+ cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
123
140
  });
124
141
 
125
142
  } else {
126
143
  it('Cell with \'Hide\' customization should be displayed', () => {
127
144
  gridFillPage.steps.verifyHideCustomizedCellPreviewTab(0, 2);
145
+ cy.eyesCheckWindow(`Grid fill - ${view} - Hide customization`);
128
146
  });
129
147
 
130
148
  it(`The grid fill should be displayed filled with selected correct answer cells`, () => {
@@ -132,11 +150,13 @@ describe('Create item page - Grid fill : Preview contents', () => {
132
150
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
133
151
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
134
152
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 5);
153
+ cy.eyesCheckWindow(`Grid fill - ${view} - Correct answer cells`);
135
154
  });
136
155
 
137
156
  it('Grid fill should not be editable', () => {
138
157
  gridFillPage.steps.selectCellPreviewTab(1, 3);
139
158
  gridFillPage.steps.verifyCellNotSelectedPreviewTab(1, 3);
159
+ cy.eyesCheckWindow(`Grid fill - ${view} - Not editable`);
140
160
  });
141
161
  }
142
162
 
@@ -16,6 +16,14 @@ describe('Create item page - Image highlight: All or nothing ', () => {
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
  if (!grepTags || !grepTags.includes('smoke')) {
20
28
  describe('Question preview modes: Student view and Grading view', () => {
21
29
  abortEarlySetup();
@@ -107,7 +115,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
107
115
  });
108
116
  };
109
117
 
110
- it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
118
+ it(`${view}: Image highlight - When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
111
119
  if (view === 'Grading view') {
112
120
  studentViewPage.steps.submitResponse();
113
121
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -125,9 +133,11 @@ describe('Create item page - Image highlight: All or nothing ', () => {
125
133
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
126
134
  utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
127
135
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
136
+ cy.eyesCheckWindow(`Image highlight: ${view} view - Without attempting the question`);
137
+
128
138
  });
129
139
 
130
- 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 along with numeration should be displayed', () => {
140
+ it(`${view}: Image highlight - 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 along with numeration should be displayed`, () => {
131
141
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
132
142
  if (view === 'Grading view') {
133
143
  studentViewPage.steps.submitResponse();
@@ -145,9 +155,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
145
155
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
146
156
  imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
147
157
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
158
+ cy.eyesCheckWindow(`${view} view - Attempting the question incorrectly`);
148
159
  });
149
160
 
150
- it('When the user attempts the question partially correct then the user should be awarded 0 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 incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
161
+ it(`${view}: Image highlight - When the user attempts the question partially correct then the user should be awarded 0 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 incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
151
162
  if (view === 'Grading view') {
152
163
  studentViewPage.steps.clearResponses();
153
164
  };
@@ -168,9 +179,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
168
179
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
169
180
  imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
170
181
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
182
+ cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct`);
171
183
  });
172
184
 
173
- it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
185
+ it(`${view}: Image highlight - When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
174
186
  if (view === 'Grading view') {
175
187
  studentViewPage.steps.clearResponses();
176
188
  };
@@ -193,9 +205,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
193
205
  imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
194
206
  imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
195
207
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
208
+ cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question partially correct with correct response and an incorrect response`);
196
209
  });
197
210
 
198
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
211
+ it(`${view}: Image highlight - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
199
212
  if (view === 'Grading view') {
200
213
  studentViewPage.steps.clearResponses();
201
214
  };
@@ -218,6 +231,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
218
231
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
219
232
  imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
220
233
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
234
+ cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question correctly`);
221
235
  });
222
236
  });
223
237
  });
@@ -15,6 +15,14 @@ describe('Create item page - Image highlight - Preview contents in 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
+
18
26
  views.forEach((view) => {
19
27
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
20
28
  abortEarlySetup();
@@ -74,18 +82,20 @@ describe('Create item page - Image highlight - Preview contents in all views', (
74
82
  utilities.verifyElementVisibilityState(imageHighlightPage.questionInstructionsText(), 'visible');
75
83
  });
76
84
 
77
- it('The uploaded image should be displayed in the preview tab', () => {
85
+ it(`${view} - Image highlight The uploaded image should be displayed in the preview tab`, () => {
78
86
  imageHighlightPage.steps.verifyImageUploadedPreviewTab();
79
87
  imageHighlightPage.steps.verifyHighlightRegionCountInPreviewTab(3);
80
88
  imageHighlightPage.steps.verifyImageUploadedAltTextPreviewTab('Image alternative text');
81
89
  imageHighlightPage.steps.verifyImageUploadedWidthAndHeightPreviewTab('768', '432');
90
+ cy.eyesCheckWindow(`Image highlight - ${view} - Uploaded image displayed`);
82
91
  });
83
92
 
84
93
  if (view !== 'Grading view' && view !== 'Correct answer view') {
85
- it('The highlighted regions should be displayed', () => {
94
+ it(`The highlighted regions should be displayed - ${view} - Image highlight`, () => {
86
95
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
87
96
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, branchesHighlightRegion);
88
97
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, leafHighlightRegion);
98
+ cy.eyesCheckWindow(`Image highlight - ${view} - Highlighted regions displayed`);
89
99
  });
90
100
 
91
101
  it('By default the highlighted sections should be hidden and when the user hovers over any highlighted section it should be visible', () => {
@@ -110,10 +120,11 @@ describe('Create item page - Image highlight - Preview contents in all views', (
110
120
  imageHighlightPage.steps.removeHighlightOfARegionInPreviewTab(1);
111
121
  });
112
122
  } else if (view === 'Grading view') {
113
- it('The highlighted regions should be displayed', () => {
123
+ it(`${view} - Image highlight - The highlighted regions should be displayed`, () => {
114
124
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(0, flowerHighlightRegion);
115
125
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(1, leafHighlightRegion);
116
126
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
127
+ cy.eyesCheckWindow(`Image highlight - ${view} - Highlighted regions displayed`);
117
128
  });
118
129
 
119
130
  it('The highlight regions should be displayed with correct border', () => {
@@ -138,9 +149,10 @@ describe('Create item page - Image highlight - Preview contents in all views', (
138
149
  imageHighlightPage.steps.verifyHighlightRegionsInPreviewTab(2, branchesHighlightRegion);
139
150
  });
140
151
 
141
- it('The highlight regions should be displayed with correct answers', () => {
152
+ it(`${view} - Image highlight - The highlight regions should be displayed with correct answers`, () => {
142
153
  imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
143
154
  imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
155
+ cy.eyesCheckWindow(`Image highlight - ${view} - Highlight regions correct answers`);
144
156
  });
145
157
  }
146
158
 
@@ -14,6 +14,14 @@ describe('Create item page - List ordering: All or nothing ', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
+ beforeEach(() => {
18
+ cy.startApplitools();
19
+ });
20
+
21
+ afterEach(() => {
22
+ cy.eyesClose();
23
+ });
24
+
17
25
  if (!grepTags || !grepTags.includes('smoke')) {
18
26
  describe('Question preview modes: Student view and Grading view', () => {
19
27
  abortEarlySetup();
@@ -92,7 +100,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
92
100
  });
93
101
  };
94
102
 
95
- it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
103
+ it(`${view}: List ordering dropdown - When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
96
104
  if (view === 'Grading view') {
97
105
  utilities.verifyElementDisabledClass(studentViewPage.submitButton());
98
106
  };
@@ -107,10 +115,11 @@ describe('Create item page - List ordering: All or nothing ', () => {
107
115
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
108
116
  utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
109
117
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
118
+ cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Without attempting the question`);
110
119
  };
111
120
  });
112
121
 
113
- 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 along with numeration should be displayed', () => {
122
+ it(`${view}: List ordering dropdown - 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 along with numeration should be displayed`, () => {
114
123
  listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
115
124
  if (view === 'Grading view') {
116
125
  studentViewPage.steps.submitResponse();
@@ -128,9 +137,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
128
137
  listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
129
138
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
130
139
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
140
+ cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question incorrectly`);
131
141
  });
132
142
 
133
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
143
+ it(`${view}: List ordering dropdown - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
134
144
  if (view === 'Grading view') {
135
145
  studentViewPage.steps.clearResponses();
136
146
  };
@@ -151,9 +161,10 @@ describe('Create item page - List ordering: All or nothing ', () => {
151
161
  listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
152
162
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
163
  listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
164
+ cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question partially correct`);
154
165
  });
155
166
 
156
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
167
+ it(`${view}: List ordering dropdown - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
157
168
  if (view === 'Grading view') {
158
169
  studentViewPage.steps.clearResponses();
159
170
  };
@@ -175,6 +186,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
175
186
  listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
176
187
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
177
188
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
189
+ cy.eyesCheckWindow(`List ordering dropdown - ${view} view - Attempting the question correctly`);
178
190
  });
179
191
  });
180
192
  });
@@ -12,6 +12,14 @@ describe('Create item page - List ordering - 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();
@@ -80,10 +88,11 @@ describe('Create item page - List ordering - Preview contents in all views', ()
80
88
  });
81
89
 
82
90
  if (view !== 'Grading view' && view !== 'Correct answer view') {
83
- it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
91
+ it(`List ordering: dropdown When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
84
92
  listOrderingPage.steps.verifyOptionWithImageInPreviewTab(0);
85
93
  listOrderingPage.steps.verifyOptionWithBoldTextInPreviewTab(1);
86
94
  listOrderingPage.steps.verifyOptionWithEquationTextInPreviewTab(2);
95
+ cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Options with image, bold text, and equation`);
87
96
  });
88
97
 
89
98
  it('When the user expands a position dropdown, based on the number of options in the list to order, a list of dropdown options to place the particular option in the list order should be displayed', () => {
@@ -105,12 +114,13 @@ describe('Create item page - List ordering - Preview contents in all views', ()
105
114
  listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '');
106
115
  });
107
116
 
108
- it('User should be able to reorder options containing image, bold text and equation options in the list using position dropdowns. On setting position for all options, the alert message should get removed', () => {
117
+ it(`List ordering: dropdown - ${view} User should be able to reorder options containing image, bold text and equation options in the list using position dropdowns. On setting position for all options, the alert message should get removed`, () => {
109
118
  listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }])
110
119
  listOrderingPage.steps.verifyAlertMessageNotExists();
120
+ cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Reorder options`);
111
121
  });
112
122
  } else if (view === 'Grading view') {
113
- it(`The order of the responses should be as per the submitted response`, () => {
123
+ it(`List ordering: dropdown - ${view} The order of the responses should be as per the submitted response`, () => {
114
124
  listOrderingPage.steps.verifyOptionWithImageDropdownLayoutInGradingView(0);
115
125
  listOrderingPage.steps.verifyOptionWithBoldTextDropdownLayoutInGradingView(1);
116
126
  listOrderingPage.steps.verifyOptionWithEquationTextDropdownLayoutInGradingView(2);
@@ -121,6 +131,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
121
131
  listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
122
132
  listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
123
133
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
134
+ cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Submitted response order`);
124
135
  });
125
136
 
126
137
  it('The order of the responses should not be editable', () => {
@@ -128,7 +139,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
128
139
  utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.positionDropdownListOption(), 2), '3');
129
140
  });
130
141
  } else {
131
- it('The order of the options should be as per the correct answer order', () => {
142
+ it(`List ordering: dropdown - ${view} The order of the options should be as per the correct answer order`, () => {
132
143
  listOrderingPage.steps.verifySelectedOptionPositionDropdown(0, '2');
133
144
  listOrderingPage.steps.verifySelectedOptionPositionDropdown(1, '1');
134
145
  listOrderingPage.steps.verifySelectedOptionPositionDropdown(2, '3');
@@ -137,6 +148,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
137
148
  listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(1);
138
149
  listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(2);
139
150
  listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(3);
151
+ cy.eyesCheckWindow(`List ordering: dropdown - ${view} - Correct answer order`);
140
152
  });
141
153
  }
142
154