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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -11,6 +11,14 @@ describe('Create item page - Matching - Preview contents in all views', () => {
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();
@@ -94,32 +102,35 @@ describe('Create item page - Matching - Preview contents in all views', () => {
94
102
  utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
95
103
  });
96
104
 
97
- it('The prompt should have image, equation, bold text displayed', () => {
105
+ it(`Matching - ${view} - The prompt should have image, equation, bold text displayed`, () => {
98
106
  matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
99
107
  matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
100
108
  matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
109
+ cy.eyesCheckWindow(`Matching - ${view} - Prompt with image, equation, bold text`);
101
110
  });
102
111
 
103
112
  if (view !== 'Grading view' && view !== 'Correct answer view') {
104
- 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}`, () => {
113
+ it(`Matching - ${view} - 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}`, () => {
105
114
  matchingPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
106
115
  matchingPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
107
116
  matchingPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
108
117
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, '');
109
118
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, '');
110
119
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(2, '');
120
+ cy.eyesCheckWindow(`Matching - ${view} - Options container with image, equation, bold text`);
111
121
  });
112
122
 
113
- it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
123
+ it(`Matching - ${view} - User should be able to drag and drop image, bold text and equation options in the dropzone`, () => {
114
124
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
115
125
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
116
126
  matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
117
127
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
118
128
  matchingPage.steps.verifyDropzoneContainsTextPreviewTab(2, 'Solve the following');
119
129
  matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
130
+ cy.eyesCheckWindow(`Matching - ${view} - Drag and drop options in dropzone`);
120
131
  });
121
132
  } else if (view === 'Grading view') {
122
- it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
133
+ it(`Matching - ${view} - The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
123
134
  matchingPage.steps.verifyDropzoneContainsTextPreviewTab(0, 'Fox');
124
135
  matchingPage.steps.verifyDropzoneContainsTextPreviewTab(1, 'This is a bold option');
125
136
  matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
@@ -129,18 +140,20 @@ describe('Create item page - Matching - Preview contents in all views', () => {
129
140
  matchingPage.steps.verifyCorrectOptionIcon(2);
130
141
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
131
142
  utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
143
+ cy.eyesCheckWindow(`Matching - ${view} - Submitted options in dropzone`);
132
144
  });
133
145
 
134
146
  it('The content in the dropzone should not be editable', () => {
135
147
  matchingPage.steps.verifyGradingViewOptionDisabled([{ optionText: 'Elephant', dropzoneIndex: 0 }]);
136
148
  });
137
149
  } else {
138
- it('The dropzone should be displayed filled with answers', () => {
150
+ it(`Matching - ${view} - The dropzone should be displayed filled with answers`, () => {
139
151
  utilities.verifyElementCount(matchingPage.dropzonePreviewTab(), 3);
140
152
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
141
153
  matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
142
154
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
143
155
  matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
156
+ cy.eyesCheckWindow(`Matching - ${view} - Dropzone filled with answers`);
144
157
  });
145
158
  }
146
159
  });
@@ -14,6 +14,14 @@ describe('Create item page - Matching: All or nothing ', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
+ beforeEach(() => {
18
+ cy.startApplitools();
19
+ });
20
+
21
+ afterEach(() => {
22
+ cy.eyesClose();
23
+ });
24
+
17
25
  if (!grepTags || !grepTags.includes('smoke')) {
18
26
  describe('Question preview modes: Student view and Grading view', () => {
19
27
  abortEarlySetup();
@@ -98,7 +106,7 @@ describe('Create item page - Matching: All or nothing ', () => {
98
106
  });
99
107
  };
100
108
 
101
- 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', () => {
109
+ it(`${view}: Matching 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`, () => {
102
110
  if (view === 'Grading view') {
103
111
  studentViewPage.steps.submitResponse();
104
112
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -117,9 +125,10 @@ describe('Create item page - Matching: All or nothing ', () => {
117
125
  matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
118
126
  utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
119
127
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
128
+ cy.eyesCheckWindow(`Matching dropdown - ${view} view - Without attempting the question`);
120
129
  });
121
130
 
122
- 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', () => {
131
+ it(`${view}: Matching 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`, () => {
123
132
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
124
133
  if (view === 'Grading view') {
125
134
  studentViewPage.steps.submitResponse();
@@ -136,9 +145,10 @@ describe('Create item page - Matching: All or nothing ', () => {
136
145
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
137
146
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
138
147
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
148
+ cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question incorrectly`);
139
149
  });
140
150
 
141
- 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', () => {
151
+ it(`${view}: Matching dropdown - When the user attempts the question partially correct with some correct, some incomplete 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 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`, () => {
142
152
  if (view === 'Grading view') {
143
153
  studentViewPage.steps.clearResponses();
144
154
  };
@@ -158,9 +168,10 @@ describe('Create item page - Matching: All or nothing ', () => {
158
168
  matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
159
169
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
160
170
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
171
+ cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question partially correct with some correct, some incomplete and some incorrect options`);
161
172
  });
162
173
 
163
- it('When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown 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', () => {
174
+ it(`${view}: Matching dropdown - When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown 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`, () => {
164
175
  if (view === 'Grading view') {
165
176
  studentViewPage.steps.clearResponses();
166
177
  };
@@ -180,9 +191,10 @@ describe('Create item page - Matching: All or nothing ', () => {
180
191
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
181
192
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
182
193
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
194
+ cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question partially correct with one dropdown incomplete`);
183
195
  });
184
196
 
185
- 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', () => {
197
+ it(`${view}: Matching 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`, () => {
186
198
  if (view === 'Grading view') {
187
199
  studentViewPage.steps.clearResponses();
188
200
  };
@@ -203,6 +215,7 @@ describe('Create item page - Matching: All or nothing ', () => {
203
215
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
204
216
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
205
217
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
218
+ cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question correctly`);
206
219
  });
207
220
  });
208
221
  });
@@ -11,6 +11,14 @@ describe('Create item page - Matching - Preview contents in all views', () => {
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();
@@ -80,18 +88,20 @@ describe('Create item page - Matching - Preview contents in all views', () => {
80
88
  utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
81
89
  });
82
90
 
83
- it('The prompt should have image, equation, bold text displayed', () => {
91
+ it(`Matching dropdown - ${view} - The prompt should have image, equation, bold text displayed`, () => {
84
92
  matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
85
93
  matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
86
94
  matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
95
+ cy.eyesCheckWindow(`Matching dropdown - ${view} - Prompt with image, equation, bold text`);
87
96
  });
88
97
 
89
98
  if (view !== 'Grading view' && view !== 'Correct answer view') {
90
- it('User should be able to attempt the question by selecting option from the dropdowns', () => {
99
+ it(`Matching dropdown - ${view} - User should be able to attempt the question by selecting option from the dropdowns`, () => {
91
100
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
101
+ cy.eyesCheckWindow(`Matching dropdown - ${view} - Attempt question by selecting options`);
92
102
  });
93
103
  } else if (view === 'Grading view') {
94
- it('The dropdowns should be displayed filled with answers', () => {
104
+ it(`Matching dropdown - ${view} - The dropdowns should be displayed filled with answers`, () => {
95
105
  utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
96
106
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
97
107
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
@@ -101,6 +111,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
101
111
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
102
112
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
103
113
  utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
114
+ cy.eyesCheckWindow(`Matching dropdown - ${view} - Dropdowns filled with answers`);
104
115
  });
105
116
 
106
117
  it('The dropdowns should be in disabled state', () => {
@@ -109,7 +120,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
109
120
  matchingPage.steps.verifyDropdownIsDisabled(2);
110
121
  });
111
122
  } else {
112
- it('The dropdowns should be displayed filled with answers', () => {
123
+ it(`Matching dropdown - ${view} - The dropdowns should be displayed filled with answers`, () => {
113
124
  utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
114
125
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
115
126
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
@@ -117,6 +128,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
117
128
  matchingPage.steps.verifyCorrectOptionIconDropdown(0);
118
129
  matchingPage.steps.verifyCorrectOptionIconDropdown(1);
119
130
  matchingPage.steps.verifyCorrectOptionIconDropdown(2);
131
+ cy.eyesCheckWindow(`Matching dropdown - ${view} - Dropdowns filled with answers`);
120
132
  });
121
133
  }
122
134
  });
@@ -12,6 +12,14 @@ describe('Create Item page - Multiple selection: 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();
@@ -93,7 +101,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
93
101
  });
94
102
  };
95
103
 
96
- it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
104
+ it(`${view}: Multiple selection - When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section`, () => {
97
105
  if (view === 'Grading view') {
98
106
  studentViewPage.steps.submitResponse();
99
107
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -114,9 +122,10 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
114
122
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
115
123
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
116
124
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
125
+ cy.eyesCheckWindow(`Multiple selection ${view} view - Without attempting the question`);
117
126
  });
118
127
 
119
- 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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
128
+ it(`${view}: Multiple 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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section`, () => {
120
129
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
121
130
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
122
131
  if (view === 'Grading view') {
@@ -138,9 +147,10 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
138
147
  multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
139
148
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
140
149
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
150
+ cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question incorrectly`);
141
151
  });
142
152
 
143
- 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 no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
153
+ it(`${view}: Multiple selection - 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 no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section`, () => {
144
154
  if (view === 'Grading view') {
145
155
  studentViewPage.steps.clearResponses();
146
156
  }
@@ -160,14 +170,15 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
160
170
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
161
171
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
162
172
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
163
- //correct answer section
164
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
165
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
166
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
167
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
173
+ //correct answer section
174
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
175
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
176
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
177
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
178
+ cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question partially correct`);
168
179
  });
169
180
 
170
- 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 status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed', () => {
181
+ it(`${view}: Multiple selection - 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 status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed`, () => {
171
182
  if (view === 'Grading view') {
172
183
  studentViewPage.steps.clearResponses();
173
184
  }
@@ -187,7 +198,8 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
187
198
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
188
199
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
189
200
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
190
- multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist()
201
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
202
+ cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question correctly`);
191
203
  });
192
204
  });
193
205
  });
@@ -12,6 +12,14 @@ describe('Create item page - Multiple selection: 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();
@@ -77,27 +85,30 @@ describe('Create item page - Multiple selection: Preview contents', () => {
77
85
  utilities.verifyElementVisibilityState(multipleSelectionPage.questionInstructionsText(), 'visible');
78
86
  });
79
87
 
80
- it(`When the user has added image, bold text and equation to the options input they should be displayed in the ${view}`, () => {
88
+ it(`Multiple selection - ${view} - When the user has added image, bold text and equation to the options input they should be displayed in the ${view}`, () => {
81
89
  multipleSelectionPage.steps.verifyImageInPreviewTab(0);
82
90
  multipleSelectionPage.steps.verifyBoldTextInPreviewTab(1);
83
91
  multipleSelectionPage.steps.verifyEquationTextInPreviewTab(2);
92
+ cy.eyesCheckWindow(`Multiple selection - ${view} - Image, Bold Text, and Equation Display`);
84
93
  });
85
94
 
86
95
  if (view !== 'Grading view' && view !== 'Correct answer view') {
87
- it(`All the options should be in unchecked state`, () => {
96
+ it(`Multiple selection - ${view} - All the options should be in unchecked state`, () => {
88
97
  for (let index = 0; index < 4; index++) {
89
98
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabUncheckedState(index);
90
- };
99
+ }
100
+ cy.eyesCheckWindow(`Multiple selection - ${view} - Options Unchecked State`);
91
101
  });
92
102
 
93
- it(`User should able to select options in the ${view}`, () => {
103
+ it(`Multiple selection - ${view} - User should able to select options in the ${view}`, () => {
94
104
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
95
105
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
96
106
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(0);
97
107
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(1);
108
+ cy.eyesCheckWindow(`Multiple selection - ${view} - Options Checked State`);
98
109
  });
99
110
  } else if (view === 'Grading view') {
100
- it(`The submitted options should be in checked state and they should not be editable`, () => {
111
+ it(`Multiple selection - ${view} - The submitted options should be in checked state and they should not be editable`, () => {
101
112
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(0);
102
113
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(1);
103
114
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabUncheckedState(2);
@@ -105,14 +116,16 @@ describe('Create item page - Multiple selection: Preview contents', () => {
105
116
  options.forEach((_, index) => {
106
117
  multipleSelectionPage.steps.verifyOptionCheckBoxIsDisabled(index);
107
118
  });
119
+ cy.eyesCheckWindow(`Multiple selection - ${view} - Submitted Options Checked State`);
108
120
  });
109
121
  } else {
110
- it(`The correct options should have correct icons besides them`, () => {
122
+ it(`Multiple selection - ${view} - The correct options should have correct icons besides them`, () => {
111
123
  // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
112
124
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
113
125
  // multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
114
126
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
115
127
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
128
+ cy.eyesCheckWindow(`Multiple selection - ${view} - Correct Options Icons`);
116
129
  });
117
130
  }
118
131
 
@@ -11,6 +11,14 @@ describe('Create item page - Multiple selection grid: 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();
@@ -93,7 +101,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
93
101
  });
94
102
  };
95
103
 
96
- it('When the user selects \'Grading\' view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers', () => {
104
+ it(`${view}: Multiple selection grid - When the user selects \'Grading\' view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers`, () => {
97
105
  if (view === 'Grading view') {
98
106
  studentViewPage.steps.submitResponse();
99
107
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -108,9 +116,10 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
108
116
  multipleSelectionGridPage.steps.verifyCorrectIncorrectIconsNotExist();
109
117
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
110
118
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
119
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} view - Without attempting the question`);
111
120
  });
112
121
 
113
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
122
+ it(`${view}: Multiple selection grid - 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 a preview of the entire grid with correct answers should be displayed`, () => {
114
123
  multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
115
124
  if (view === 'Grading view') {
116
125
  studentViewPage.steps.submitResponse();
@@ -126,9 +135,10 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
126
135
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
127
136
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
128
137
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
138
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question incorrectly`);
129
139
  });
130
140
 
131
- it('When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed', () => {
141
+ it(`${view}: Multiple selection grid - When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed`, () => {
132
142
  if (view === 'Grading view') {
133
143
  studentViewPage.steps.clearResponses();
134
144
  };
@@ -149,9 +159,10 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
149
159
  multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
150
160
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
151
161
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
162
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question partially correct with incorrect responses`);
152
163
  });
153
164
 
154
- it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
165
+ it(`${view}: Multiple selection grid - When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
155
166
  if (view === 'Grading view') {
156
167
  studentViewPage.steps.clearResponses();
157
168
  };
@@ -172,9 +183,10 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
172
183
  multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 1 });
173
184
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
174
185
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
186
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question partially correct with incomplete responses`);
175
187
  });
176
188
 
177
- 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', () => {
189
+ it(`${view}: Multiple selection grid - 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`, () => {
178
190
  if (view === 'Grading view') {
179
191
  studentViewPage.steps.clearResponses();
180
192
  };
@@ -196,6 +208,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
196
208
  multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
197
209
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
198
210
  multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
211
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question correctly`);
199
212
  });
200
213
  });
201
214
  });
@@ -6,11 +6,20 @@ const css = Cypress.env('css');
6
6
  let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
7
7
  const views = utilities.getViews(previewContentViews);
8
8
  var itemReferenceID = "";
9
+
9
10
  describe('Create item page - Multiple selection grid: Preview contents', () => {
10
11
  before(() => {
11
12
  cy.loginAs('admin');
12
13
  });
13
14
 
15
+ beforeEach(() => {
16
+ cy.startApplitools();
17
+ });
18
+
19
+ afterEach(() => {
20
+ cy.eyesClose();
21
+ });
22
+
14
23
  views.forEach((view) => {
15
24
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
25
  abortEarlySetup();
@@ -82,7 +91,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
82
91
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsText(), 'visible');
83
92
  });
84
93
 
85
- it(`The question grid as set by the user should be displayed in the ${view}`, () => {
94
+ it(`Multiple selection grid - The question grid as set by the user should be displayed in the ${view}`, () => {
86
95
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
87
96
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
88
97
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
@@ -93,31 +102,35 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
93
102
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
94
103
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No checkbox');
95
104
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No checkbox');
105
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Question grid displayed`);
96
106
  });
97
107
 
98
108
  if (view !== 'Grading view' && view !== 'Correct answer view') {
99
- it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
109
+ it(`Multiple selection grid - When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
100
110
  multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
101
111
  multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
102
112
  multipleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
113
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Image, equation, bold text displayed`);
103
114
  });
104
115
 
105
- it(`User should be able to select options in the ${view}`, () => {
116
+ it(`Multiple selection grid - User should be able to select options in the ${view}`, () => {
106
117
  multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
118
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Options selected`);
107
119
  });
108
120
  } else if (view === 'Grading view') {
109
- it(`The submitted options should be in checked state`, () => {
121
+ it(`Multiple selection grid - ${view} - The submitted options should be in checked state`, () => {
110
122
  multipleSelectionGridPage.steps.verifyOptionWithCheckboxSelectedState({ row: 1, column: 0 });
111
123
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 2, column: 1 });
112
124
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 3, column: 0 });
113
125
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 4, column: 1 });
126
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Submitted options checked state`);
114
127
  });
115
128
 
116
- it('The content in the grid should not be editable', () => {
129
+ it('Multiple selection grid - The content in the grid should not be editable', () => {
117
130
  multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
118
131
  });
119
132
  } else {
120
- it(`The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
133
+ it(`Multiple selection grid - ${view} - The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
121
134
  multipleSelectionGridPage.steps.verifyOptionWithCheckboxSelectedState({ row: 1, column: 0 });
122
135
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 2, column: 1 });
123
136
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 3, column: 0 });
@@ -126,6 +139,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
126
139
  multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
127
140
  multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
128
141
  multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
142
+ cy.eyesCheckWindow(`Multiple selection grid - ${view} - Correct options checked state and icons`);
129
143
  });
130
144
  }
131
145
 
@@ -13,6 +13,14 @@ describe('Create Item page - Number line: All or nothing ', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (!grepTags || !grepTags.includes('smoke')) {
17
25
  describe('Question preview modes: Student view and Grading view', () => {
18
26
  abortEarlySetup();
@@ -105,7 +113,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
105
113
  });
106
114
  };
107
115
 
108
- it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
116
+ it(`${view}: Number line Horizontal - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
109
117
  if (view === 'Grading view') {
110
118
  studentViewPage.steps.submitResponse();
111
119
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -124,9 +132,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
124
132
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
125
133
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
126
134
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
135
+ cy.eyesCheckWindow(`Number line horizontal ${view} view - Without attempting the question`);
127
136
  });
128
137
 
129
- 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', () => {
138
+ it(`${view}: Number line Horizontal - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
130
139
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
131
140
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
132
141
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
@@ -148,9 +157,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
148
157
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
149
158
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
150
159
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
160
+ cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question incorrectly`);
151
161
  });
152
162
 
153
- 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', () => {
163
+ it(`${view}: Number line Horizontal - When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
154
164
  if (view === 'Grading view') {
155
165
  studentViewPage.steps.clearResponses();
156
166
  }
@@ -173,9 +183,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
173
183
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
174
184
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
175
185
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
186
+ cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question partially correct`);
176
187
  });
177
188
 
178
- 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', () => {
189
+ it(`${view}: Number line Horizontal - When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
179
190
  if (view === 'Grading view') {
180
191
  studentViewPage.steps.clearResponses();
181
192
  }
@@ -206,9 +217,10 @@ describe('Create Item page - Number line: All or nothing ', () => {
206
217
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
207
218
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -5]);
208
219
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
220
+ cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question partially correct with an incorrect response`);
209
221
  });
210
222
 
211
- 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', () => {
223
+ it(`${view}: Number line Horizontal - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
212
224
  if (view === 'Grading view') {
213
225
  studentViewPage.steps.clearResponses();
214
226
  }
@@ -235,6 +247,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
235
247
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
236
248
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
237
249
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
250
+ cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question correctly`);
238
251
  });
239
252
  });
240
253
  });