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 - Fill in the gaps over image - drag and drop: All or
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();
@@ -102,7 +110,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
102
110
  });
103
111
  };
104
112
 
105
- it('When the user selects \'Grading\' view without attempting the question, dropzone 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', () => {
113
+ it(`${view}: FIG over image Drag and drop - When the user selects \'Grading\' view without attempting the question then dropzone 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`, () => {
106
114
  if (view === 'Grading view') {
107
115
  studentViewPage.steps.submitResponse();
108
116
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -118,9 +126,10 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
118
126
  utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
119
127
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
120
128
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
129
+ cy.eyesCheckWindow(`FIG Dropdown ${view} view - Without attempting the question`);
121
130
  });
122
131
 
123
- 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', () => {
132
+ it(`${view}: FIG over image Drag and drop - 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`, () => {
124
133
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
125
134
  if (view === 'Grading view') {
126
135
  studentViewPage.steps.submitResponse();
@@ -137,9 +146,10 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
137
146
  fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
138
147
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
139
148
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
149
+ cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question incorrectly`);
140
150
  });
141
151
 
142
- it('When the user attempts the question partially correct with some correct, some incomplete, 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 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', () => {
152
+ it(`${view}: FIG over image Drag and drop - When the user attempts the question partially correct with some correct, some incomplete, 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 responses and 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
153
  if (view === 'Grading view') {
144
154
  studentViewPage.steps.clearResponses();
145
155
  };
@@ -159,9 +169,10 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
159
169
  fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
160
170
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
161
171
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
172
+ cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with some correct, some incomplete, some incorrect options`);
162
173
  });
163
174
 
164
- it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, 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', () => {
175
+ it(`${view}: FIG over image Drag and drop - When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, 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`, () => {
165
176
  if (view === 'Grading view') {
166
177
  studentViewPage.steps.clearResponses();
167
178
  };
@@ -181,9 +192,10 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
181
192
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
182
193
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
183
194
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
195
+ cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question partially correct with all the dropzone correctly attempted but one dropzone incomplete`);
184
196
  });
185
197
 
186
- 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', () => {
198
+ it(`${view}: FIG over image Drag and drop - 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`, () => {
187
199
  if (view === 'Grading view') {
188
200
  studentViewPage.steps.clearResponses();
189
201
  };
@@ -205,6 +217,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
205
217
  //Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
206
218
  //fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
207
219
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
220
+ cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
208
221
  });
209
222
  });
210
223
  });
@@ -10,6 +10,14 @@ describe('Preview tab contents for all views', () => {
10
10
  cy.loginAs('admin');
11
11
  });
12
12
 
13
+ beforeEach(() => {
14
+ cy.startApplitools();
15
+ });
16
+
17
+ afterEach(() => {
18
+ cy.eyesClose();
19
+ });
20
+
13
21
  views.forEach((view) => {
14
22
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
15
23
  abortEarlySetup();
@@ -89,12 +97,13 @@ describe('Preview tab contents for all views', () => {
89
97
  fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
90
98
  });
91
99
 
92
- it('The image uploaded in the \'Background image\' section should be displayed', () => {
100
+ it(`${view} - Fill in the gaps over image drag and drop - The image uploaded in the \'Background image\' section should be displayed`, () => {
93
101
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
102
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Background image`);
94
103
  });
95
104
 
96
105
  if (view !== 'Grading view' && view !== 'Correct answer view') {
97
- 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}`, () => {
106
+ it(`Fill in the gaps over image drag and drop 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}`, () => {
98
107
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
99
108
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
100
109
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
@@ -102,6 +111,7 @@ describe('Preview tab contents for all views', () => {
102
111
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, '');
103
112
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, '');
104
113
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
114
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Options container and dropzone`);
105
115
  });
106
116
 
107
117
  it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
@@ -113,7 +123,7 @@ describe('Preview tab contents for all views', () => {
113
123
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
114
124
  });
115
125
  } else if (view === 'Grading view') {
116
- it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
126
+ it(`${view} - Fill in the gaps over image drag and drop: The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
117
127
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
118
128
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
119
129
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
@@ -123,6 +133,7 @@ describe('Preview tab contents for all views', () => {
123
133
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
124
134
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
125
135
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.optionContainerOptionsPreviewTab(), 'notExist');
136
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Submitted correct answers`);
126
137
  });
127
138
 
128
139
  it('The content in the dropzone should not be editable', () => {
@@ -131,12 +142,13 @@ describe('Preview tab contents for all views', () => {
131
142
  fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewDropzoneOptionDisabled(2);
132
143
  });
133
144
  } else {
134
- it('The dropzone should be displayed filled with answers', () => {
145
+ it(`${view} - Fill in the gaps over image drag and drop - The dropzone should be displayed filled with answers`, () => {
135
146
  utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab(), 3);
136
147
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
137
148
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
138
149
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
139
150
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
151
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - Correct answers`);
140
152
  });
141
153
  }
142
154
  });
@@ -16,6 +16,14 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
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();
@@ -103,7 +111,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
103
111
  });
104
112
  };
105
113
 
106
- it('When the user selects \'Grading\' view without attempting the question, dropdown 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', () => {
114
+ it(`${view}: FIG over image Dropdown - When the user selects \'Grading\' view without attempting the question, dropdown 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`, () => {
107
115
  if (view === 'Grading view') {
108
116
  studentViewPage.steps.submitResponse();
109
117
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -119,9 +127,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
119
127
  utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.correctAnswersLabel(), 'Correct answers');
120
128
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
121
129
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
130
+ cy.eyesCheckWindow(`${view} view - Without attempting the question`);
122
131
  });
123
132
 
124
- 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', () => {
133
+ it(`${view}: FIG over image 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`, () => {
125
134
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
126
135
  if (view === 'Grading view') {
127
136
  studentViewPage.steps.submitResponse();
@@ -137,9 +146,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
137
146
  fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
138
147
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
139
148
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
149
+ cy.eyesCheckWindow(`${view} - Attempting the question incorrectly`);
140
150
  });
141
151
 
142
- 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', () => {
152
+ it(`${view}: FIG over image 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`, () => {
143
153
  if (view === 'Grading view') {
144
154
  studentViewPage.steps.clearResponses();
145
155
  };
@@ -158,9 +168,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
158
168
  fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
159
169
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
160
170
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
171
+ cy.eyesCheckWindow(`${view} - Attempting partially correct`);
161
172
  });
162
173
 
163
- 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', () => {
174
+ it(`${view}: FIG over image 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`, () => {
164
175
  if (view === 'Grading view') {
165
176
  studentViewPage.steps.clearResponses();
166
177
  };
@@ -180,6 +191,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
180
191
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
181
192
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
182
193
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
194
+ cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
183
195
  });
184
196
  });
185
197
  });
@@ -14,6 +14,14 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
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
  views.forEach((view) => {
18
26
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
19
27
  abortEarlySetup();
@@ -82,8 +90,9 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
82
90
  fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '​' }, { dropdownIndex: 1, dropdownText: '​' }]);
83
91
  });
84
92
 
85
- it('User should be select an option from the dropdown', () => {
93
+ it(`${view} - Fill in the gaps over image dropdown User should be able to select an option from the dropdown`, () => {
86
94
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
95
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Selected options`);
87
96
  });
88
97
  } else if (view === 'Grading view') {
89
98
  it('The dropdowns should be displayed filled with answers', () => {
@@ -96,9 +105,10 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
96
105
  fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
97
106
  });
98
107
  } else {
99
- it('The dropdowns should be displayed filled with correct answers', () => {
108
+ it(`${view} - Fill in the gaps over image dropdown The dropdowns should be displayed filled with correct answers`, () => {
100
109
  utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
101
110
  fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
111
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - Correct answers`);
102
112
  });
103
113
  }
104
114
  });
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
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
  if (!grepTags || !grepTags.includes('smoke')) {
15
23
  describe('Question preview modes: Student view and Grading view', () => {
16
24
  abortEarlySetup();
@@ -95,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
95
103
  });
96
104
  };
97
105
 
98
- it('When the user selects \'Grading\' view without attempting the question, dropzone 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', () => {
106
+ it(`${view}: FIG over image Text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
99
107
  if (view === 'Grading view') {
100
108
  studentViewPage.steps.submitResponse();
101
109
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -111,9 +119,10 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
111
119
  utilities.verifyInnerText(fillInTheGapsOverImageTextPage.correctAnswersLabel(), 'Correct answers');
112
120
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
113
121
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
122
+ cy.eyesCheckWindow(`FIG over image text - ${view} view - Without attempting the question`);
114
123
  });
115
124
 
116
- 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', () => {
125
+ it(`${view}: FIG over image Text - 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`, () => {
117
126
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
118
127
  if (view === 'Grading view') {
119
128
  studentViewPage.steps.submitResponse();
@@ -130,9 +139,10 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
130
139
  fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
131
140
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
132
141
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
142
+ cy.eyesCheckWindow(`FIG over image text - ${view} - Attempting the question incorrectly`);
133
143
  });
134
144
 
135
- 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', () => {
145
+ it(`${view}: FIG over image Text - 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`, () => {
136
146
  if (view === 'Grading view') {
137
147
  studentViewPage.steps.clearResponses();
138
148
  };
@@ -152,9 +162,10 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
152
162
  fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
153
163
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
154
164
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
165
+ cy.eyesCheckWindow(`FIG over image text - ${view} - Attempting partially correct`);
155
166
  });
156
167
 
157
- 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', () => {
168
+ it(`${view}: FIG over image Text - 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`, () => {
158
169
  if (view === 'Grading view') {
159
170
  studentViewPage.steps.clearResponses();
160
171
  };
@@ -176,6 +187,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
176
187
  fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
177
188
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
178
189
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
190
+ cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
179
191
  });
180
192
  });
181
193
  });
@@ -9,6 +9,14 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
9
9
  cy.loginAs('admin');
10
10
  });
11
11
 
12
+ beforeEach(() => {
13
+ cy.startApplitools();
14
+ });
15
+
16
+ afterEach(() => {
17
+ cy.eyesClose();
18
+ });
19
+
12
20
  views.forEach((view) => {
13
21
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
14
22
  abortEarlySetup();
@@ -77,14 +85,16 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
77
85
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
78
86
  });
79
87
 
80
- it('User should be able to enter text in the answer input fields', () => {
88
+ it(`${view} - Fill in the gaps over image text User should be able to enter text in the answer input fields`, () => {
81
89
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
82
90
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
91
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
83
92
  });
84
93
  } else if (view === 'Grading view') {
85
- it('The answer input fields should be displayed filled with answers', () => {
94
+ it(`${view} - Fill in the gaps over image text The answer input fields should be displayed filled with answers`, () => {
86
95
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
87
96
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
97
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
88
98
  });
89
99
 
90
100
  it('The input fields should not be editable', () => {
@@ -93,9 +103,10 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
93
103
  fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
94
104
  });
95
105
  } else {
96
- it('The answer input fields should be displayed filled with correct answers', () => {
106
+ it(`${view} - Fill in the gaps over image text The answer input fields should be displayed filled with correct answers`, () => {
97
107
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
98
108
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
109
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Correct answers`);
99
110
  });
100
111
  }
101
112
  });
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
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
  if (!grepTags || !grepTags.includes('smoke')) {
15
23
  describe('Question preview modes: Student view and Grading view', () => {
16
24
  abortEarlySetup();
@@ -87,7 +95,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
87
95
  });
88
96
  };
89
97
 
90
- it('When the user selects \'Grading\' view without attempting the question, dropzone 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', () => {
98
+ it(`${view}: FIG text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration and correct/incorrect status message should not be displayed`, () => {
91
99
  if (view === 'Grading view') {
92
100
  studentViewPage.steps.submitResponse();
93
101
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -103,9 +111,10 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
103
111
  utilities.verifyInnerText(fillInTheGapsTextPage.correctAnswersLabel(), 'Correct answers');
104
112
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
105
113
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
114
+ cy.eyesCheckWindow(`FIG Text - ${view} view - Without attempting the question`);
106
115
  });
107
116
 
108
- 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', () => {
117
+ it(`${view}: FIG text - 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`, () => {
109
118
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
110
119
  if (view === 'Grading view') {
111
120
  studentViewPage.steps.submitResponse();
@@ -122,9 +131,10 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
122
131
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
123
132
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
124
133
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
134
+ cy.eyesCheckWindow(`FIG Text - ${view} - Attempting the question incorrectly`);
125
135
  });
126
136
 
127
- 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', () => {
137
+ it(`${view}: FIG text - 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`, () => {
128
138
  if (view === 'Grading view') {
129
139
  studentViewPage.steps.clearResponses();
130
140
  };
@@ -144,9 +154,10 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
144
154
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
145
155
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
146
156
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
157
+ cy.eyesCheckWindow(`FIG Text - ${view} - Attempting partially correct`);
147
158
  });
148
159
 
149
- 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', () => {
160
+ it(`${view}: FIG text - 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`, () => {
150
161
  if (view === 'Grading view') {
151
162
  studentViewPage.steps.clearResponses();
152
163
  };
@@ -167,6 +178,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
167
178
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
168
179
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
169
180
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
181
+ cy.eyesCheckWindow(`FIG Text - ${view} - Attempting the question correctly`);
170
182
  });
171
183
  });
172
184
  });
@@ -11,6 +11,14 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
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();
@@ -72,14 +80,16 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
72
80
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
73
81
  });
74
82
 
75
- it('User should be able to enter text in the answer input fields', () => {
83
+ it(`Fill in the gaps text - ${view} User should be able to enter text in the answer input fields`, () => {
76
84
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
77
85
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
86
+ cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
78
87
  });
79
88
  } else if (view === 'Grading view') {
80
- it('The answer input fields should be displayed filled with answers', () => {
89
+ it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with answers`, () => {
81
90
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
82
91
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
92
+ cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Filled input fields`);
83
93
  });
84
94
 
85
95
  it('The input fields should not be editable', () => {
@@ -88,9 +98,10 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
88
98
  fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
89
99
  });
90
100
  } else {
91
- it('The answer input fields should be displayed filled with correct answers', () => {
101
+ it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with correct answers`, () => {
92
102
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
93
103
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
104
+ cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Correct answers`);
94
105
  });
95
106
  }
96
107
 
@@ -13,6 +13,14 @@ describe('Create Item page - Graphing: All or nothing ', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (!grepTags || !grepTags.includes('smoke')) {
17
25
  describe('Question preview modes: Student view and Grading view', () => {
18
26
  abortEarlySetup();
@@ -114,7 +122,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
114
122
  });
115
123
  };
116
124
 
117
- it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
125
+ it(`Graphing: ${view} - When the user selects 'Grading' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
118
126
  if (view === 'Grading view') {
119
127
  studentViewPage.steps.submitResponse();
120
128
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -144,9 +152,10 @@ describe('Create Item page - Graphing: All or nothing ', () => {
144
152
  graphingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
145
153
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
146
154
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
155
+ cy.eyesCheckWindow(`Graphing: ${view} - Grading view without attempting the question`);
147
156
  });
148
157
 
149
- it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
158
+ it(`Graphing: ${view} - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
150
159
  graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
151
160
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
152
161
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
@@ -180,9 +189,10 @@ describe('Create Item page - Graphing: All or nothing ', () => {
180
189
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
181
190
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
182
191
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
192
+ cy.eyesCheckWindow(`Graphing: ${view} - Incorrect answer displayed in grading view`);
183
193
  });
184
194
 
185
- it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
195
+ it(`Graphing: ${view} - When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
186
196
  if (view === 'Grading view') {
187
197
  studentViewPage.steps.clearResponses();
188
198
  }
@@ -219,9 +229,10 @@ describe('Create Item page - Graphing: All or nothing ', () => {
219
229
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
220
230
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
221
231
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
232
+ cy.eyesCheckWindow(`Graphing: ${view} - Partially correct answer displayed in grading view`);
222
233
  });
223
234
 
224
- it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
235
+ it(`Graphing: ${view} - When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
225
236
  if (view === 'Grading view') {
226
237
  studentViewPage.steps.clearResponses();
227
238
  }
@@ -262,9 +273,10 @@ describe('Create Item page - Graphing: All or nothing ', () => {
262
273
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
263
274
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
264
275
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
276
+ cy.eyesCheckWindow(`Graphing: ${view} - Partially correct with incorrect response displayed in grading view`);
265
277
  });
266
278
 
267
- it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
279
+ it(`Graphing: ${view} - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view 'Your answer is correct' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
268
280
  if (view === 'Grading view') {
269
281
  studentViewPage.steps.clearResponses();
270
282
  }
@@ -295,6 +307,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
295
307
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
296
308
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
297
309
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();
310
+ cy.eyesCheckWindow(`Graphing: ${view} - Correct answer displayed in grading view`);
298
311
  });
299
312
  });
300
313
  });