itemengine-cypress-automation 1.0.292 → 1.0.294-applitools-09785a6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
  10. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  11. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
  12. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
  13. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  14. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
  15. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
  16. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
  19. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
  21. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +15 -6
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +13 -3
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
  34. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
  35. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  36. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
  37. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +15 -5
  38. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
  39. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
  40. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
  41. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
  43. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
  44. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
  45. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
  46. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +6 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
  50. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
  51. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +12 -3
  52. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
  54. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
  55. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
  56. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
  58. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  59. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  60. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
  61. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +3 -2
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  64. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  65. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  66. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  67. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  70. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  71. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  72. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  73. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
  74. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
  75. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  76. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
  77. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
  78. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
  80. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
  82. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
  83. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
  85. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
  86. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
  87. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  88. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  89. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  90. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  91. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +13 -4
  92. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
  93. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  94. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
  95. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
  96. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  97. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  98. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
  99. package/cypress/e2e/applitools.config.js +14 -0
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/cypress/support/commands.js +11 -0
  102. package/cypress/support/e2e.js +1 -0
  103. package/package.json +4 -1
@@ -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();
@@ -67,9 +75,10 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
67
75
  }
68
76
  });
69
77
 
70
- it('Question instructions should be visible', () => {
78
+ it(`${view} - Fill in the gaps over image dropdown Question instructions should be visible`, () => {
71
79
  utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
72
80
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
81
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - defualt state`);
73
82
  });
74
83
 
75
84
  it('The image uploaded in the \'Background image\' section should be displayed', () => {
@@ -82,7 +91,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
82
91
  fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '​' }, { dropdownIndex: 1, dropdownText: '​' }]);
83
92
  });
84
93
 
85
- it('User should be select an option from the dropdown', () => {
94
+ it(`User should be able to select an option from the dropdown`, () => {
86
95
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
87
96
  });
88
97
  } else if (view === 'Grading view') {
@@ -96,7 +105,7 @@ 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(`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] }]);
102
111
  });
@@ -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');
@@ -113,7 +121,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
113
121
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
114
122
  });
115
123
 
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', () => {
124
+ 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
125
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
118
126
  if (view === 'Grading view') {
119
127
  studentViewPage.steps.submitResponse();
@@ -132,7 +140,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
132
140
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
133
141
  });
134
142
 
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', () => {
143
+ 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
144
  if (view === 'Grading view') {
137
145
  studentViewPage.steps.clearResponses();
138
146
  };
@@ -154,7 +162,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
154
162
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
155
163
  });
156
164
 
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', () => {
165
+ 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
166
  if (view === 'Grading view') {
159
167
  studentViewPage.steps.clearResponses();
160
168
  };
@@ -176,6 +184,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
176
184
  fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
177
185
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
178
186
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
187
+ cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
179
188
  });
180
189
  });
181
190
  });
@@ -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();
@@ -62,9 +70,10 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
62
70
  }
63
71
  });
64
72
 
65
- it('Question instructions should be visible', () => {
73
+ it(`${view} - Fill in the gaps over image text Question instructions should be visible`, () => {
66
74
  utilities.verifyInnerText(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'Fill in the gaps');
67
75
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'visible');
76
+ cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
68
77
  });
69
78
 
70
79
  it('The image uploaded in the \'Background image\' section should be displayed', () => {
@@ -77,12 +86,12 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
77
86
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
78
87
  });
79
88
 
80
- it('User should be able to enter text in the answer input fields', () => {
89
+ it(`User should be able to enter text in the answer input fields`, () => {
81
90
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
82
91
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
83
92
  });
84
93
  } else if (view === 'Grading view') {
85
- it('The answer input fields should be displayed filled with answers', () => {
94
+ it(`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' }]);
88
97
  });
@@ -93,7 +102,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
93
102
  fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
94
103
  });
95
104
  } else {
96
- it('The answer input fields should be displayed filled with correct answers', () => {
105
+ it(`The answer input fields should be displayed filled with correct answers`, () => {
97
106
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
98
107
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
99
108
  });
@@ -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');
@@ -105,7 +113,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
105
113
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
106
114
  });
107
115
 
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', () => {
116
+ 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
117
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
110
118
  if (view === 'Grading view') {
111
119
  studentViewPage.steps.submitResponse();
@@ -124,7 +132,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
124
132
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
125
133
  });
126
134
 
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', () => {
135
+ 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
136
  if (view === 'Grading view') {
129
137
  studentViewPage.steps.clearResponses();
130
138
  };
@@ -146,7 +154,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
146
154
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
147
155
  });
148
156
 
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', () => {
157
+ 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
158
  if (view === 'Grading view') {
151
159
  studentViewPage.steps.clearResponses();
152
160
  };
@@ -167,6 +175,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
167
175
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
168
176
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
169
177
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
178
+ cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
170
179
  });
171
180
  });
172
181
  });
@@ -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();
@@ -60,9 +68,10 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
60
68
  }
61
69
  });
62
70
 
63
- it('Question instructions should be visible', () => {
71
+ it(`Fill in the gaps text - ${view} Question instructions should be visible`, () => {
64
72
  utilities.verifyInnerText(fillInTheGapsTextPage.questionInstructionsText(), 'Fill in the gaps');
65
73
  utilities.verifyElementVisibilityState(fillInTheGapsTextPage.questionInstructionsText(), 'visible');
74
+ cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Default question state`);
66
75
  });
67
76
 
68
77
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -72,12 +81,12 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
72
81
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
73
82
  });
74
83
 
75
- it('User should be able to enter text in the answer input fields', () => {
84
+ it(`Fill in the gaps text - ${view} User should be able to enter text in the answer input fields`, () => {
76
85
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
77
86
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
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' }]);
83
92
  });
@@ -88,7 +97,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
88
97
  fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
89
98
  });
90
99
  } else {
91
- it('The answer input fields should be displayed filled with correct answers', () => {
100
+ it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with correct answers`, () => {
92
101
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
93
102
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
94
103
  });
@@ -116,7 +116,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
116
116
  });
117
117
  };
118
118
 
119
- 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', () => {
119
+ 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`, () => {
120
120
  if (view === 'Grading view') {
121
121
  studentViewPage.steps.submitResponse();
122
122
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -148,7 +148,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
148
148
  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 }]);
149
149
  });
150
150
 
151
- 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', () => {
151
+ 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`, () => {
152
152
  graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
153
153
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
154
154
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
@@ -184,7 +184,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
184
184
  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 }]);
185
185
  });
186
186
 
187
- 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', () => {
187
+ 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`, () => {
188
188
  if (view === 'Grading view') {
189
189
  studentViewPage.steps.clearResponses();
190
190
  }
@@ -223,7 +223,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
223
223
  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 }]);
224
224
  });
225
225
 
226
- 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', () => {
226
+ 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`, () => {
227
227
  if (view === 'Grading view') {
228
228
  studentViewPage.steps.clearResponses();
229
229
  }
@@ -266,7 +266,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
266
266
  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 }]);
267
267
  });
268
268
 
269
- 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', () => {
269
+ 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`, () => {
270
270
  if (view === 'Grading view') {
271
271
  studentViewPage.steps.clearResponses();
272
272
  }
@@ -14,6 +14,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
+ beforeEach(() => {
18
+ cy.startApplitools();
19
+ });
20
+
21
+ afterEach(() => {
22
+ cy.eyesClose();
23
+ });
24
+
17
25
  if (views.includes('Grading view')) {
18
26
  describe('Grading view contents', { tags: 'smoke' }, () => {
19
27
  abortEarlySetup();
@@ -59,13 +67,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
59
67
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
60
68
  });
61
69
 
62
- it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
70
+ it('Graphing: The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
63
71
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
64
72
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
65
73
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
66
74
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
67
75
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
68
76
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
77
+ cy.eyesCheckWindow('Graphing - The graph plotted by the author in the edit tab should be displayed in the grading view');
69
78
  });
70
79
 
71
80
  it('Correct answer label should be displayed', () => {
@@ -164,13 +173,14 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
164
173
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
165
174
  });
166
175
 
167
- it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
176
+ it('Graphing: The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
168
177
  utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
169
178
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
170
179
  utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
171
180
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }])
172
181
  utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
173
182
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
183
+ cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
174
184
  });
175
185
 
176
186
  it('The points alloted to the question should be displayed', () => {
@@ -15,6 +15,14 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
15
15
  cy.loginAs('admin');
16
16
  });
17
17
 
18
+ beforeEach(() => {
19
+ cy.startApplitools();
20
+ });
21
+
22
+ afterEach(() => {
23
+ cy.eyesClose();
24
+ });
25
+
18
26
  views.forEach((view) => {
19
27
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
20
28
  abortEarlySetup();
@@ -86,14 +94,14 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
86
94
  graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
87
95
  });
88
96
 
89
- it('By default, the move control should be in enabled state and all other controls should be disabled', () => {
97
+ it(`By default, the move control should be in enabled state and all other controls should be disabled`, () => {
90
98
  utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
91
99
  controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
92
100
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
93
101
  });
94
102
  });
95
103
 
96
- it('User should be able to plot points using the \'Point\' tool options', () => {
104
+ it(`User should be able to plot points using the \'Point\' tool options`, () => {
97
105
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
98
106
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
99
107
  });
@@ -162,11 +170,12 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
162
170
  utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
163
171
  });
164
172
 
165
- it('User should be able to draw a polygon using the \'Polygon\' tool option', () => {
173
+ it(`${view} - Graphing - User should be able to draw a polygon using the \'Polygon\' tool option`, () => {
166
174
  graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
167
175
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
168
176
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }]);
169
177
  utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
178
+ cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
170
179
  });
171
180
 
172
181
  it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
@@ -179,7 +188,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
179
188
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
180
189
  });
181
190
 
182
- it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
191
+ it(`When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
183
192
  graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
184
193
  graphingPage.steps.confirmReset();
185
194
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
@@ -13,6 +13,15 @@ describe('Create item page - Grid fill: 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
+
24
+
16
25
  if (!grepTags || !grepTags.includes('smoke')) {
17
26
  describe('Question preview modes: Student view and Grading view', () => {
18
27
  abortEarlySetup();
@@ -109,7 +118,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
109
118
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
110
119
  });
111
120
 
112
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
121
+ it(`${view}: Grid fill - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview`, () => {
113
122
  gridFillPage.steps.selectCellPreviewTab(0, 3);
114
123
  if (view === 'Grading view') {
115
124
  studentViewPage.steps.submitResponse();
@@ -128,7 +137,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
128
137
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
129
138
  });
130
139
 
131
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
140
+ it(`${view}: Grid fill - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
132
141
  if (view === 'Grading view') {
133
142
  studentViewPage.steps.clearResponses();
134
143
  };
@@ -150,7 +159,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
150
159
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
151
160
  });
152
161
 
153
- it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
162
+ it(`${view}: Grid fill - When the user attempts the question partially correct with one correct and one incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
154
163
  if (view === 'Grading view') {
155
164
  studentViewPage.steps.clearResponses();
156
165
  };
@@ -173,7 +182,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
173
182
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
174
183
  });
175
184
 
176
- it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
185
+ it(`${view}: Grid fill - When the user attempts the question partially correct by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
177
186
  if (view === 'Grading view') {
178
187
  studentViewPage.steps.clearResponses();
179
188
  };
@@ -198,7 +207,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
198
207
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
199
208
  });
200
209
 
201
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview', () => {
210
+ it(`${view}: Grid fill - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview`, () => {
202
211
  if (view === 'Grading view') {
203
212
  studentViewPage.steps.clearResponses();
204
213
  };
@@ -217,6 +226,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
217
226
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
218
227
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
219
228
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
229
+ cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
220
230
  });
221
231
  });
222
232
  });
@@ -11,6 +11,14 @@ describe('Create item page - Grid fill : Preview contents', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -74,6 +82,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
74
82
  gridFillPage.steps.verifyRowsCountPreviewTab(4);
75
83
  gridFillPage.steps.verifyColumnsCountPreviewTab(6);
76
84
  gridFillPage.steps.getCellCountInGridPreviewTab(24);
85
+ cy.eyesCheckWindow(`Grid fill - ${view} - Grid matrix`);
77
86
  });
78
87
 
79
88
  it('Cell with \'Hide\' customization should be displayed', () => {
@@ -81,7 +90,6 @@ describe('Create item page - Grid fill : Preview contents', () => {
81
90
  });
82
91
 
83
92
  if (view !== 'Grading view' && view !== 'Correct answer view') {
84
-
85
93
  it('Cell with \'Shade\' customization should be displayed', () => {
86
94
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
87
95
  });
@@ -16,6 +16,14 @@ describe('Create item page - Image highlight: All or nothing ', () => {
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
+ beforeEach(() => {
20
+ cy.startApplitools();
21
+ });
22
+
23
+ afterEach(() => {
24
+ cy.eyesClose();
25
+ });
26
+
19
27
  if (!grepTags || !grepTags.includes('smoke')) {
20
28
  describe('Question preview modes: Student view and Grading view', () => {
21
29
  abortEarlySetup();
@@ -106,7 +114,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
106
114
  });
107
115
  };
108
116
 
109
- it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
117
+ it(`${view}: Image highlight - When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
110
118
  if (view === 'Grading view') {
111
119
  studentViewPage.steps.submitResponse();
112
120
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -124,9 +132,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
124
132
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
125
133
  utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
126
134
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
135
+
127
136
  });
128
137
 
129
- 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', () => {
138
+ it(`${view}: Image highlight - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
130
139
  imageHighlightPage.steps.highlightARegionInPreviewTab(1);
131
140
  if (view === 'Grading view') {
132
141
  studentViewPage.steps.submitResponse();
@@ -146,7 +155,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
146
155
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
147
156
  });
148
157
 
149
- it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
158
+ it(`${view}: Image highlight - When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
150
159
  if (view === 'Grading view') {
151
160
  studentViewPage.steps.clearResponses();
152
161
  };
@@ -169,7 +178,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
169
178
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
170
179
  });
171
180
 
172
- it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
181
+ it(`${view}: Image highlight - When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
173
182
  if (view === 'Grading view') {
174
183
  studentViewPage.steps.clearResponses();
175
184
  };
@@ -194,7 +203,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
194
203
  imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
195
204
  });
196
205
 
197
- 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', () => {
206
+ it(`${view}: Image highlight - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed`, () => {
198
207
  if (view === 'Grading view') {
199
208
  studentViewPage.steps.clearResponses();
200
209
  };
@@ -217,6 +226,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
217
226
  imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
218
227
  imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
219
228
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
229
+ cy.eyesCheckWindow(`Image highlight: ${view} view - Attempting the question correctly`);
220
230
  });
221
231
  });
222
232
  });