itemengine-cypress-automation 1.0.279-4092Changes-71debc9.0 → 1.0.282-applitools-8c400f4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +17 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -2
  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 +10 -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/e2e/applitools.config.js +14 -0
  101. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  102. package/cypress/support/commands.js +11 -0
  103. package/cypress/support/e2e.js +1 -0
  104. package/package.json +4 -1
@@ -12,6 +12,14 @@ describe('Create Item page - Text entry math: 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();
@@ -119,14 +127,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
119
127
  });
120
128
  };
121
129
 
122
- it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
130
+ it(`TEM ${view}: When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
123
131
  if (view === 'Grading view') {
124
132
  studentViewPage.steps.submitResponse();
125
133
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
126
134
  studentViewPage.steps.clickOnGoToGradingViewButton();
127
135
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
128
136
  }
129
- if (view === 'Question preview' || view === 'Item preview') {
137
+ if (view === 'Item preview' || view === 'Question preview') {
130
138
  textEntryMathPage.steps.switchToGradingView();
131
139
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
132
140
  }
@@ -138,9 +146,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
138
146
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
139
147
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
140
148
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
149
+ cy.eyesCheckWindow(`TEM ${view} view - Without attempting the question`);
141
150
  });
142
151
 
143
- 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, and \'Your answer is incorrect\' label should be displayed', () => {
152
+ it(`TEM ${view}: When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
144
153
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
145
154
  textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
146
155
  equationEditorFlyout.steps.clickOnOkButton();
@@ -156,9 +165,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
156
165
  studentViewPage.steps.clickOnGoToGradingViewButton();
157
166
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
158
167
  }
159
- if (view === 'Question preview' || view === 'Item preview') {
160
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
168
+ if (view === 'Item preview' || view === 'Question preview') {
161
169
  textEntryMathPage.steps.switchToGradingView();
170
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
162
171
  }
163
172
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
164
173
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
@@ -168,9 +177,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
168
177
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
169
178
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
170
179
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
180
+ cy.eyesCheckWindow(`TEM ${view} - Attempting the question incorrectly`);
171
181
  });
172
182
 
173
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
183
+ it(`TEM ${view}: When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
174
184
  if (view === 'Grading view') {
175
185
  studentViewPage.steps.clearResponses();
176
186
  }
@@ -188,9 +198,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
188
198
  studentViewPage.steps.clickOnGoToGradingViewButton();
189
199
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
190
200
  }
191
- if (view === 'Question preview' || view === 'Item preview') {
192
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
201
+ if (view === 'Item preview' || view === 'Question preview') {
193
202
  textEntryMathPage.steps.switchToGradingView();
203
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
194
204
  }
195
205
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
196
206
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -200,9 +210,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
200
210
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
201
211
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
202
212
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
213
+ cy.eyesCheckWindow(`TEM ${view} - Attempting partially correct`);
203
214
  });
204
215
 
205
- it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
216
+ it(`TEM ${view}: When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
206
217
  if (view === 'Grading view') {
207
218
  studentViewPage.steps.clearResponses();
208
219
  }
@@ -217,9 +228,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
217
228
  studentViewPage.steps.clickOnGoToGradingViewButton();
218
229
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
219
230
  }
220
- if (view === 'Question preview' || view === 'Item preview') {
221
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
231
+ if (view === 'Item preview' || view === 'Question preview') {
222
232
  textEntryMathPage.steps.switchToGradingView();
233
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
223
234
  }
224
235
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
225
236
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -229,9 +240,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
229
240
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
230
241
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
231
242
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
243
+ cy.eyesCheckWindow(`TEM ${view} - Attempting partially correct with incomplete response`);
232
244
  });
233
245
 
234
- 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, and \'Your answer is correct\' should be displayed', () => {
246
+ it(`TEM ${view}: 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, and \'Your answer is correct\' should be displayed`, () => {
235
247
  if (view === 'Grading view') {
236
248
  studentViewPage.steps.clearResponses();
237
249
  }
@@ -250,15 +262,16 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
250
262
  cy.wait(1000);
251
263
  gradingViewPage.steps.verifyGradingViewScore(20, 20);
252
264
  }
253
- if (view === 'Question preview' || view === 'Item preview') {
254
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
265
+ if (view === 'Item preview' || view === 'Question preview') {
255
266
  textEntryMathPage.steps.switchToGradingView();
267
+ textEntryMathPage.steps.verifyPreviewScore(20, 20);
256
268
  }
257
269
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
258
270
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
259
271
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
260
272
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
261
273
  textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
274
+ cy.eyesCheckWindow(`TEM ${view} - Attempting the question correctly`);
262
275
  });
263
276
  });
264
277
  });
@@ -12,6 +12,14 @@ describe('Create Item page - Text entry math: 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
  views.forEach((view) => {
16
24
  describe(`Text entry math: all or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -31,7 +39,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
31
39
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
32
40
  equationEditorFlyout.steps.clickOnOkButton();
33
41
  textEntryMathPage.steps.expandLayoutAccordion();
34
- textEntryMathPage.steps.focusInLayoutInputFieldNew(0);
42
+ textEntryMathPage.steps.focusInLayoutInputField(0);
35
43
  textEntryMathPage.steps.addResponseContainer();
36
44
  equationEditorFlyout.steps.clickOnOkButton();
37
45
  textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
@@ -39,7 +47,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
39
47
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
40
48
  equationEditorFlyout.steps.enterQuadraticEquation();
41
49
  textEntryMathPage.steps.expandLayoutAccordion();
42
- textEntryMathPage.steps.focusInLayoutInputFieldNew(1);
50
+ textEntryMathPage.steps.focusInLayoutInputField(1);
43
51
  textEntryMathPage.steps.addResponseContainer();
44
52
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x', 'square', 'y', 'square'] }]);
45
53
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['add'] }]);
@@ -53,7 +61,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
53
61
  textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
54
62
  equationEditorFlyout.steps.enterEquationUsingPiSymbol();
55
63
  textEntryMathPage.steps.expandLayoutAccordion();
56
- textEntryMathPage.steps.focusInLayoutInputFieldNew(2);
64
+ textEntryMathPage.steps.focusInLayoutInputField(2);
57
65
  textEntryMathPage.steps.addResponseContainer();
58
66
  equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['multiply'] }, { categoryName: 'intermediate', symbolName: ['pi'] }]);
59
67
  equationEditorFlyout.steps.clickOnOkButton();
@@ -96,7 +104,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
96
104
  });
97
105
  };
98
106
 
99
- it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
107
+ it(`${view}: Formula template: When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
100
108
  if (view === 'Grading view') {
101
109
  studentViewPage.steps.submitResponse();
102
110
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -115,9 +123,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
115
123
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
116
124
  textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
117
125
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
126
+ cy.eyesCheckWindow(`Formula template: ${view} view - Without attempting the question`);
118
127
  });
119
128
 
120
- 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, and \'Your answer is incorrect\' label should be displayed', () => {
129
+ it(`${view}: Formula template: 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, and \'Your answer is incorrect\' label should be displayed`, () => {
121
130
  textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
122
131
  equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
123
132
  equationEditorFlyout.steps.clickOnOkButton();
@@ -151,9 +160,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
151
160
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
152
161
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
153
162
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
163
+ cy.eyesCheckWindow(`Formula template: ${view} view - Incorrect attempt`);
154
164
  });
155
165
 
156
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
166
+ it(`${view}: Formula template: When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
157
167
  if (view === 'Grading view') {
158
168
  studentViewPage.steps.clearResponses();
159
169
  }
@@ -190,9 +200,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
190
200
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
191
201
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
192
202
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
203
+ cy.eyesCheckWindow(`Formula template: ${view} view - Partial correct attempt`);
193
204
  });
194
205
 
195
- it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
206
+ it(`${view}: Formula template: When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
196
207
  if (view === 'Grading view') {
197
208
  studentViewPage.steps.clearResponses();
198
209
  }
@@ -226,9 +237,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
226
237
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
227
238
  textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
228
239
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
240
+ cy.eyesCheckWindow(`Formula template: ${view} view - Partial correct with incomplete response`);
229
241
  });
230
242
 
231
- 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, and \'Your answer is correct\' should be displayed', () => {
243
+ it(`${view}: Formula template: 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, and \'Your answer is correct\' should be displayed`, () => {
232
244
  if (view === 'Grading view') {
233
245
  studentViewPage.steps.clearResponses();
234
246
  }
@@ -264,8 +276,8 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
264
276
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
265
277
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
266
278
  textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
279
+ cy.eyesCheckWindow(`Formula template: ${view} view - Correct attempt`);
267
280
  });
268
281
  });
269
282
  });
270
-
271
283
  });
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: Preview contents', () => {
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();
@@ -81,7 +89,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
81
89
  utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
82
90
  });
83
91
 
84
- it(`User should able to enter answers in the response fields for ${view}`, () => {
92
+ it(`TEM User should able to enter answers in the response fields for ${view}`, () => {
85
93
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
86
94
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
87
95
  equationEditorFlyout.steps.clickOnOkButton();
@@ -89,18 +97,21 @@ describe('Create item page - Text entry math: Preview contents', () => {
89
97
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
90
98
  equationEditorFlyout.steps.enterQuadraticEquation();
91
99
  textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
100
+ cy.eyesCheckWindow(`TEM ${view}: User should able to enter answers in the response fields`);
92
101
  });
93
102
  } else if (view === 'Grading view') {
94
- it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
103
+ it(`TEM The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
95
104
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
96
105
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
97
106
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
98
107
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
108
+ cy.eyesCheckWindow(`TEM ${view}: User should able to enter answers in the response fields`);
99
109
  });
100
110
  } else {
101
- it(`The response input fields should be displayed filled with correct answers`, () => {
111
+ it(`TEM The response input fields should be displayed filled with correct answers`, () => {
102
112
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
103
113
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
114
+ cy.eyesCheckWindow(`TEM ${view}: User should able to enter answers in the response fields`);
104
115
  });
105
116
  }
106
117
 
@@ -12,6 +12,14 @@ describe('Create Item page - Text entry math: 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();
@@ -73,7 +81,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
73
81
  textEntryMathWithImagePage.steps.verifyImageIsUploaded();
74
82
  textEntryMathWithImagePage.steps.insertResponseArea(10);
75
83
  textEntryMathWithImagePage.steps.insertResponseArea(40);
76
- textEntryMathWithImagePage.steps.insertResponseArea(80);
84
+ textEntryMathWithImagePage.steps.insertResponseArea(50);
77
85
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
78
86
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
79
87
  equationEditorFlyout.steps.clearAll();
@@ -121,7 +129,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
121
129
  });
122
130
  };
123
131
 
124
- it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
132
+ it(`TEM Image ${view} - When the user selects 'Grading' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
125
133
  if (view === 'Grading view') {
126
134
  studentViewPage.steps.submitResponse();
127
135
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -132,6 +140,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
132
140
  textEntryMathWithImagePage.steps.switchToGradingView();
133
141
  textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
134
142
  }
143
+ cy.eyesCheckWindow(`TEM Image ${view} - Grading view without attempting`);
135
144
  textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
136
145
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
137
146
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
@@ -142,15 +151,15 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
142
151
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
143
152
  });
144
153
 
145
- 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, and \'Your answer is incorrect\' label should be displayed', () => {
154
+ it(`TEM Image ${view} - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, and 'Your answer is incorrect' label should be displayed`, () => {
146
155
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
147
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
156
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
148
157
  equationEditorFlyout.steps.clickOnOkButton();
149
158
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
150
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
159
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
151
160
  equationEditorFlyout.steps.clickOnOkButton();
152
161
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
153
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '15');
162
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
154
163
  equationEditorFlyout.steps.clickOnOkButton();
155
164
  if (view === 'Grading view') {
156
165
  studentViewPage.steps.submitResponse();
@@ -162,6 +171,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
162
171
  textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
163
172
  textEntryMathWithImagePage.steps.switchToGradingView();
164
173
  }
174
+ cy.eyesCheckWindow(`TEM Image ${view} - Incorrect attempt`);
165
175
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(0);
166
176
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(1);
167
177
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
@@ -172,17 +182,17 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
172
182
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
173
183
  });
174
184
 
175
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
185
+ it(`TEM Image ${view} - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to 'Grading' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and 'Your answer is incorrect' label should be displayed`, () => {
176
186
  if (view === 'Grading view') {
177
187
  studentViewPage.steps.clearResponses();
178
188
  }
179
189
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
180
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
190
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
181
191
  equationEditorFlyout.steps.clickOnOkButton();
182
192
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
183
193
  equationEditorFlyout.steps.enterQuadraticEquation();
184
194
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
185
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '13');
195
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '13');
186
196
  equationEditorFlyout.steps.clickOnOkButton();
187
197
  if (view === 'Grading view') {
188
198
  studentViewPage.steps.submitResponse();
@@ -194,6 +204,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
194
204
  textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
195
205
  textEntryMathWithImagePage.steps.switchToGradingView();
196
206
  }
207
+ cy.eyesCheckWindow(`TEM Image ${view} - Partial correct attempt`);
197
208
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
198
209
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
199
210
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
@@ -204,12 +215,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
204
215
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
205
216
  });
206
217
 
207
- it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
218
+ it(`TEM Image ${view} - When the user attempts the question partially correct with an incomplete response, then the user should be awarded 0 points and on switching to 'Grading' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, 'Your answer is incorrect' should be displayed`, () => {
208
219
  if (view === 'Grading view') {
209
220
  studentViewPage.steps.clearResponses();
210
221
  }
211
222
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
212
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
223
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
213
224
  equationEditorFlyout.steps.clickOnOkButton();
214
225
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
215
226
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -223,6 +234,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
223
234
  textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
224
235
  textEntryMathWithImagePage.steps.switchToGradingView();
225
236
  }
237
+ cy.eyesCheckWindow(`TEM Image ${view} - Partial correct with incomplete response`);
226
238
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
227
239
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
228
240
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
@@ -233,12 +245,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
233
245
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
234
246
  });
235
247
 
236
- 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, and \'Your answer is correct\' should be displayed', () => {
248
+ it(`TEM Image ${view} - 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, and 'Your answer is correct' should be displayed`, () => {
237
249
  if (view === 'Grading view') {
238
250
  studentViewPage.steps.clearResponses();
239
251
  }
240
252
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
241
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
253
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
242
254
  equationEditorFlyout.steps.clickOnOkButton();
243
255
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
244
256
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -254,6 +266,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
254
266
  textEntryMathWithImagePage.steps.verifyPreviewScore(20, 20);
255
267
  textEntryMathWithImagePage.steps.switchToGradingView();
256
268
  }
269
+ cy.eyesCheckWindow(`TEM Image ${view} - Correct attempt`);
257
270
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(0);
258
271
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
259
272
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(2);
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: Preview contents', () => {
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();
@@ -76,7 +84,6 @@ describe('Create item page - Text entry math: Preview contents', () => {
76
84
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.questionInstructionsText(), 'visible');
77
85
  });
78
86
 
79
-
80
87
  it('The text area should be displayed on the image canvas', () => {
81
88
  textEntryMathWithImagePage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
82
89
  });
@@ -86,13 +93,13 @@ describe('Create item page - Text entry math: Preview contents', () => {
86
93
  });
87
94
 
88
95
  if (view !== 'Grading view' && view !== 'Correct answer view') {
89
- it(`The two empty response fields should be disabled ${view}`, () => {
96
+ it(`Two empty response fields should be disabled ${view}`, () => {
90
97
  utilities.verifyTextContent(textEntryMathWithImagePage.responseFieldPreviewTab(), '')
91
98
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseFieldPreviewTab(), 'visible');
92
99
  utilities.verifyElementCount(textEntryMathWithImagePage.responseFieldPreviewTab(), '2');
93
100
  });
94
101
 
95
- it(`User should able to enter answers in the response fields for ${view}`, () => {
102
+ it(`TEM Image User should able to enter answers in the response fields for ${view}`, () => {
96
103
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
97
104
  textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
98
105
  equationEditorFlyout.steps.clickOnOkButton();
@@ -100,18 +107,21 @@ describe('Create item page - Text entry math: Preview contents', () => {
100
107
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
101
108
  equationEditorFlyout.steps.enterQuadraticEquation();
102
109
  textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
110
+ cy.eyesCheckWindow(`TEM Image ${view} Verify response fields with answers`);
103
111
  });
104
112
  } else if (view === 'Grading view') {
105
- it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
113
+ it(`TEM Image The response fields should be filled with the submitted responses and user should not be able to edit them in the grading view`, () => {
106
114
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
107
115
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
108
116
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
109
117
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
118
+ cy.eyesCheckWindow(`TEM Image ${view} Verify response submitted answers`);
110
119
  });
111
120
  } else {
112
- it(`The response input fields should be displayed filled with correct answers`, () => {
121
+ it(`TEM Image The responses should be displayed filled with correct answers`, () => {
113
122
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
114
123
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
124
+ cy.eyesCheckWindow(`TEM Image ${view} Verify response fields filled with correct answers`);
115
125
  });
116
126
  }
117
127
 
@@ -250,9 +250,18 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
250
250
  textSelectionPage.steps.switchToPreviewTab();
251
251
  });
252
252
 
253
- it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
253
+ beforeEach(() => {
254
+ cy.startApplitools();
255
+ });
256
+
257
+ afterEach(() => {
258
+ cy.eyesClose();
259
+ });
260
+
261
+ it('Text selection: When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
254
262
  textSelectionPage.steps.verifyPreviewScore(0, 20);
255
263
  textSelectionPage.steps.switchToGradingView();
264
+ cy.eyesCheckWindow('Text selection: Grading view - without attempting the question');
256
265
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
257
266
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[1]);
258
267
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(sentenceTextArray[0]);
@@ -260,12 +269,13 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
260
269
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
261
270
  });
262
271
 
263
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
272
+ it('Text selection: When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
264
273
  textSelectionPage.steps.resetQuestionPreview();
265
274
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
266
275
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
267
276
  textSelectionPage.steps.verifyPreviewScore(0, 20);
268
277
  textSelectionPage.steps.switchToGradingView();
278
+ cy.eyesCheckWindow('Text selection: Grading view - incorrect attempt');
269
279
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
270
280
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[1]);
271
281
  textSelectionPage.steps.verifyIncorrectIconForOption(sentenceTextArray[2]);
@@ -284,12 +294,13 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
284
294
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
285
295
  });
286
296
 
287
- it('When the user attempts the question partially correct with some correct and some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
297
+ it('Text selection: When the user attempts the question partially correct with some correct and some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
288
298
  textSelectionPage.steps.resetQuestionPreview();
289
299
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
290
300
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
291
301
  textSelectionPage.steps.verifyPreviewScore(0, 20);
292
302
  textSelectionPage.steps.switchToGradingView();
303
+ cy.eyesCheckWindow('Text selection: Grading view - partially correct attempt');
293
304
  textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[0]);
294
305
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[1]);
295
306
  textSelectionPage.steps.verifyIncorrectIconForOption(sentenceTextArray[2]);
@@ -308,12 +319,13 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
308
319
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
309
320
  });
310
321
 
311
- it('When the user attempts the question correctly then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
322
+ it('Text selection: When the user attempts the question correctly then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
312
323
  textSelectionPage.steps.resetQuestionPreview();
313
324
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
314
325
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
315
326
  textSelectionPage.steps.verifyPreviewScore(20, 20);
316
327
  textSelectionPage.steps.switchToGradingView();
328
+ cy.eyesCheckWindow('Text selection: Grading view - correct attempt');
317
329
  textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[0]);
318
330
  textSelectionPage.steps.verifyCorrectIconForOption(sentenceTextArray[1]);
319
331
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[2]);