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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -14,6 +14,14 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
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();
@@ -108,7 +116,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
108
116
  utilities.verifyElementVisibilityState(chartsBarPage.correctAnswersLabel(), 'visible');
109
117
  });
110
118
 
111
- it('Correct answer should be displayed in the correct answer section', () => {
119
+ it('Charts bar: Horizontal - Correct answer should be displayed in the correct answer section', () => {
112
120
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 0, barValue: 2, range: 20 });
113
121
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 20 });
114
122
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 20 });
@@ -122,6 +130,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
122
130
  chartsBarPage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
123
131
  chartsBarPage.steps.verifyXAxisLabelInCorrectAnswerSection('Profit');
124
132
  chartsBarPage.steps.verifyYAxisLabelInCorrectAnswerSection('Year');
133
+ cy.eyesCheckWindow('Charts bar: Horizontal - Grading view contents')
125
134
  });
126
135
 
127
136
  it('Points and the total score should be displayed', () => {
@@ -222,7 +231,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
222
231
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolBarWrapper(), 'notExist');
223
232
  });
224
233
 
225
- it('The correct answer set by user should be displayed in the correct answer view', () => {
234
+ it('Charts bar: Horizontal - The correct answer set by user should be displayed in the correct answer view', () => {
226
235
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 2, range: 20 });
227
236
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
228
237
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 5, range: 20 });
@@ -234,6 +243,7 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
234
243
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
235
244
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
236
245
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
246
+ cy.eyesCheckWindow('Charts bar: Horizontal -Correct answer view contents')
237
247
  });
238
248
 
239
249
  it('The points alloted to the question should be displayed', () => {
@@ -13,6 +13,14 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
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
  views.forEach((view) => {
17
25
  describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -81,7 +89,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
81
89
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
82
90
  });
83
91
 
84
- it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
92
+ it(`${view} - Charts bar: Horizontal -The graph title, Y axis label, X axis label and bar labels should be displayed`, () => {
85
93
  utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
86
94
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
87
95
  utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Profit');
@@ -89,6 +97,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
89
97
  utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Year');
90
98
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabYAxisLabelButton(), 'visible');
91
99
  chartsBarPage.steps.verifyBarLabelHorizontalPreviewTab([[0, 'Bar 1'], [1, 'Bar 2'], [2, 'Bar 3'], [3, 'Bar 4']]);
100
+ cy.eyesCheckWindow(`${view} Charts bar: Horizontal - Question instructions, Graph title, Y axis label, X axis label and bar labels`);
92
101
  });
93
102
 
94
103
  it('The graph max value should be as set in the Max X input field and it should affect the chart division', () => {
@@ -142,9 +151,10 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
142
151
 
143
152
  chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
144
153
 
145
- it('User should be able to edit the label a bar', () => {
154
+ it(`${view} - Charts bar: Horizontal: User should be able to edit the label a bar`, () => {
146
155
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, '2000');
147
156
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(3, '2004');
157
+ cy.eyesCheckWindow(`${view} - Charts bar after editing the bar height and labels`);
148
158
  });
149
159
 
150
160
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -310,9 +320,10 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
310
320
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
311
321
  });
312
322
 
313
- it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
323
+ it(`${view} Charts bar - Horizontal: When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled`, () => {
314
324
  chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
315
325
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
326
+ cy.eyesCheckWindow(`${view} - Charts bar: Horizontal: Charts bar after adding and deleting bars`);
316
327
  });
317
328
  });
318
329
  });
@@ -365,10 +376,11 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
365
376
  });
366
377
 
367
378
  //Bar labels
368
- it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
379
+ it(`${view} - Charts bar: Horizontal When user updates a bar label, then the undo and reset button should be displayed in enabled state`, () => {
369
380
  chartsBarPage.steps.editBarLabelHorizontalInPreviewTab(0, 'Edited bar 1');
370
381
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
371
382
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
383
+ cy.eyesCheckWindow(`${view} - Bar label updated`);
372
384
  });
373
385
 
374
386
  it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
@@ -593,7 +605,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
593
605
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 6, range: 10 });
594
606
  });
595
607
 
596
- it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
608
+ it(`${view}: Charts bar: Horizontal - When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state`, () => {
597
609
  chartsBarPage.steps.clickOnResetButtonPreviewTab();
598
610
  chartsBarPage.steps.confirmReset();
599
611
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
@@ -611,6 +623,7 @@ describe('Create item page: Charts - Bar horizontal orientation- Preview content
611
623
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 10 });
612
624
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 10 });
613
625
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 10 });
626
+ cy.eyesCheckWindow(`${view} - After confirming reset`);
614
627
  });
615
628
 
616
629
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -11,6 +11,14 @@ describe('Create item page - Charts - Bar: 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();
@@ -105,7 +113,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
105
113
  };
106
114
 
107
115
  //Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
108
- it.skip('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.skip(`${view} - Charts bar: Vertical - 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');
@@ -125,10 +133,11 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
125
133
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
126
134
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
127
135
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
136
+ cy.eyesCheckWindow(`${view} - Grading view without attempting`);
128
137
  });
129
138
 
130
139
  //Fully incorrect case
131
- it('When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
140
+ it(`${view} - Charts bar: Vertical - When the user incorrectly sets a bar which was correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
132
141
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 5, range: 10 });
133
142
  chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 4, value: 2, range: 10 });
134
143
  if (view === 'Grading view') {
@@ -151,10 +160,11 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
151
160
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
152
161
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
153
162
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
163
+ cy.eyesCheckWindow(`${view} - Fully incorrect case`);
154
164
  });
155
165
 
156
166
  //Partially correct cases
157
- it('When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
167
+ it(`${view} - Charts bar: Vertical - When the user incorrectly sets a bar which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
158
168
  if (view === 'Grading view') {
159
169
  studentViewPage.steps.clearResponses();
160
170
  }
@@ -179,9 +189,10 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
179
189
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
180
190
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
181
191
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
192
+ cy.eyesCheckWindow(`${view} - Partially correct case 1`);
182
193
  });
183
194
 
184
- it('When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
195
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
185
196
  if (view === 'Grading view') {
186
197
  studentViewPage.steps.clearResponses();
187
198
  }
@@ -206,9 +217,10 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
206
217
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
207
218
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
208
219
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
220
+ cy.eyesCheckWindow(`${view} - Partially correct case 2`);
209
221
  });
210
222
 
211
- it('When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
223
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
212
224
  if (view === 'Grading view') {
213
225
  studentViewPage.steps.clearResponses();
214
226
  }
@@ -233,9 +245,10 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
233
245
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
234
246
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
235
247
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
248
+ cy.eyesCheckWindow(`${view} - Partially correct case 3`);
236
249
  });
237
250
 
238
- it('When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
251
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by incorrectly setting a bar which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars, incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
239
252
  if (view === 'Grading view') {
240
253
  studentViewPage.steps.clearResponses();
241
254
  }
@@ -260,9 +273,10 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
260
273
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
261
274
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
262
275
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
276
+ cy.eyesCheckWindow(`${view} - Partially correct case 4`);
263
277
  });
264
278
 
265
- it('When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers', () => {
279
+ it(`${view} - Charts bar: Vertical - When the user attempts the question partially correct by setting all bars correctly except 1 then the user should be awarded with 0 points and on switching to grading view 'Your answer is incorrect' should be displayed, correct icons should be displayed on the correctly attempted bars and incorrect icons should be displayed on the incorrectly attempted bars and correct answer section should be displayed with the correct answers`, () => {
266
280
  if (view === 'Grading view') {
267
281
  studentViewPage.steps.clearResponses();
268
282
  }
@@ -287,10 +301,11 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
287
301
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 2, barValue: 6, range: 10 });
288
302
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 3, barValue: 5, range: 10 });
289
303
  chartsBarPage.steps.verifyBarInCorrectAnswerSection({ barIndex: 4, barValue: 0, range: 10 });
304
+ cy.eyesCheckWindow(`${view} - Partially correct case 5`);
290
305
  });
291
306
 
292
307
  //Fully correct
293
- 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, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed', () => {
308
+ it(`${view} - Charts bar: Vertical - Charts bar: Vertical - 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, correct icons should be displayed on the correctly attempted bars and the correct answer section graph should not be displayed`, () => {
294
309
  if (view === 'Grading view') {
295
310
  studentViewPage.steps.clearResponses();
296
311
  }
@@ -312,6 +327,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
312
327
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
313
328
  chartsBarPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
314
329
  chartsBarPage.steps.verifyCorrectAnswerSectionNotExist();
330
+ cy.eyesCheckWindow(`${view} - Fully correct case`);
315
331
  });
316
332
  });
317
333
  });
@@ -14,6 +14,14 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
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();
@@ -107,7 +115,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
107
115
  utilities.verifyElementVisibilityState(chartsBarPage.correctAnswersLabel(), 'visible');
108
116
  });
109
117
 
110
- it('Correct answer should be displayed in the correct answer section', () => {
118
+ it('Charts bar: Vertical - Correct answer should be displayed in the correct answer section', () => {
111
119
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 0, barValue: 2, range: 20 });
112
120
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 1, barValue: 2, range: 20 });
113
121
  chartsBarPage.steps.verifyBarHeightInCorrectAnswerSection({ barIndex: 2, barValue: 5, range: 20 });
@@ -121,6 +129,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
121
129
  chartsBarPage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
122
130
  chartsBarPage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
123
131
  chartsBarPage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
132
+ cy.eyesCheckWindow('Charts bar: Vertical - Grading view contents');
124
133
  });
125
134
 
126
135
  it('Points and the total score should be displayed', () => {
@@ -220,7 +229,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
220
229
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolBarWrapper(), 'notExist');
221
230
  });
222
231
 
223
- it('The correct answer set by user should be displayed in the correct answer view', () => {
232
+ it('Charts bar: Verical - The correct answer set by user should be displayed in the correct answer view', () => {
224
233
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 2, range: 20 });
225
234
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
226
235
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 5, range: 20 });
@@ -232,6 +241,7 @@ describe('Create item page - Charts - Bar: Grading view, Correct answer view con
232
241
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(2, 'correct');
233
242
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(3, 'correct');
234
243
  chartsBarPage.steps.verifyBarCorrectIncorrectIconInPreviewTab(4, 'correct');
244
+ cy.eyesCheckWindow('Charts bar: Verical - Correct answer view contents')
235
245
  });
236
246
 
237
247
  it('The points alloted to the question should be displayed', () => {
@@ -13,6 +13,14 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
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
  views.forEach((view) => {
17
25
  describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -80,7 +88,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
80
88
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
81
89
  });
82
90
 
83
- it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
91
+ it(`${view} - Charts bar: Vertical The graph title, Y axis label, X axis label and bar labels should be displayed`, () => {
84
92
  utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
85
93
  utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
86
94
  utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
@@ -91,6 +99,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
91
99
  utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 1), 'Bar 2');
92
100
  utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 2), 'Bar 3');
93
101
  utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Bar 4');
102
+ cy.eyesCheckWindow(`${view} - Charts bar: Vertical Question instructions, Graph title, Y axis label, X axis label and bar labels`);
94
103
  });
95
104
 
96
105
  it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
@@ -144,9 +153,10 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
144
153
 
145
154
  chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
146
155
 
147
- it('User should be able to edit the label a bar', () => {
156
+ it(`${view} - Charts bar: Vertical User should be able to edit the label a bar`, () => {
148
157
  chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
149
158
  chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
159
+ cy.eyesCheckWindow(`${view} - Charts bar: Vertical after editing the bar height and labels`);
150
160
  });
151
161
 
152
162
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -312,9 +322,10 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
312
322
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
313
323
  });
314
324
 
315
- it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
325
+ it(`${view} Charts bar - Vertical: When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled`, () => {
316
326
  chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
317
327
  utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
328
+ cy.eyesCheckWindow(`${view} - Charts bar - Vertical: Charts bar after adding and deleting bars`);
318
329
  });
319
330
  });
320
331
  });
@@ -366,13 +377,14 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
366
377
  });
367
378
 
368
379
  //Bar labels
369
- it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
380
+ it(`${view} - Charts bar: Vertical When user updates a bar label, then the undo and reset button should be displayed in enabled state`, () => {
370
381
  chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
371
382
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
372
383
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
384
+ cy.eyesCheckWindow(`${view} - Bar label updated`);
373
385
  });
374
386
 
375
- it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
387
+ it(`When user hovers on the enabled undo and reset button, then tooltips 'Undo' and 'Reset' should be displayed`, () => {
376
388
  chartsBarPage.previewTabToolsUndoButton()
377
389
  .verifyTooltip('Undo');
378
390
  chartsBarPage.previewTabToolsResetButton()
@@ -594,7 +606,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
594
606
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 6, range: 10 });
595
607
  });
596
608
 
597
- it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
609
+ it(`${view}: Charts bar: Vertical - When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state`, () => {
598
610
  chartsBarPage.steps.clickOnResetButtonPreviewTab();
599
611
  chartsBarPage.steps.confirmReset();
600
612
  utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
@@ -612,6 +624,7 @@ describe('Create item page: Charts - Bar - Preview contents in all views', () =>
612
624
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 10 });
613
625
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 10 });
614
626
  chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 10 });
627
+ cy.eyesCheckWindow(`${view}: Charts bar: Vertical - Chart reset to default state`);
615
628
  });
616
629
 
617
630
  it('CSS of preview tab contents', { tags: 'css' }, () => {
@@ -11,6 +11,14 @@ describe('Create item page - Charts - Line: 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();
@@ -102,7 +110,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
102
110
  });
103
111
  };
104
112
  //Need to remove skip once https://redmine.zeuslearning.com/issues/577535, https://redmine.zeuslearning.com/issues/577716 is resolved
105
- it.skip('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', () => {
113
+ it.skip(`${view}: Charts Line - 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`, () => {
106
114
  if (view === 'Grading view') {
107
115
  studentViewPage.steps.submitResponse();
108
116
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -123,10 +131,11 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
123
131
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
124
132
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
125
133
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
134
+ cy.eyesCheckWindow(`${view} view: Charts Line - Without attempting the question`);
126
135
  });
127
136
 
128
137
  //Fully incorrect case
129
- it('When the user incorrectly sets a point which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
138
+ it(`${view}: Charts Line - When the user incorrectly sets a point which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
130
139
  chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
131
140
  chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
132
141
  if (view === 'Grading view') {
@@ -149,10 +158,11 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
149
158
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
150
159
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
151
160
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
161
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question incorrectly`);
152
162
  });
153
163
 
154
164
  //Partially correct cases
155
- it('When the user incorrectly sets a point which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
165
+ it(`${view}: Charts Line - When the user incorrectly sets a point which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
156
166
  if (view === 'Grading view') {
157
167
  studentViewPage.steps.clearResponses();
158
168
  }
@@ -177,9 +187,10 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
177
187
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
178
188
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
179
189
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
190
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question incorrectly by setting a point which was set to 0 and correct by default`);
180
191
  });
181
192
 
182
- it('When the user attempts the question partially correct by incorrectly setting a point which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
193
+ it(`${view}: Charts Line - When the user attempts the question partially correct by incorrectly setting a point which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
183
194
  if (view === 'Grading view') {
184
195
  studentViewPage.steps.clearResponses();
185
196
  }
@@ -204,9 +215,10 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
204
215
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
205
216
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
206
217
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
218
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question partially correct by incorrectly setting a point which was incorrect by default`);
207
219
  });
208
220
 
209
- it('When the user attempts the question partially correct by incorrectly setting a point to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
221
+ it(`${view}: Charts Line - When the user attempts the question partially correct by incorrectly setting a point to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
210
222
  if (view === 'Grading view') {
211
223
  studentViewPage.steps.clearResponses();
212
224
  }
@@ -231,9 +243,10 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
231
243
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
232
244
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
233
245
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
246
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question partially correct by incorrectly setting a point to zero which was incorrect by default`);
234
247
  });
235
248
 
236
- it('When the user attempts the question partially correct by incorrectly setting a point which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
249
+ it(`${view}: Charts Line - When the user attempts the question partially correct by incorrectly setting a point which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
237
250
  if (view === 'Grading view') {
238
251
  studentViewPage.steps.clearResponses();
239
252
  }
@@ -258,9 +271,10 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
258
271
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
259
272
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
260
273
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
274
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question partially correct by incorrectly setting a point which was set to zero by default`);
261
275
  });
262
276
 
263
- it('When the user attempts the question partially correct by setting all points correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points and incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
277
+ it(`${view}: Charts Line - When the user attempts the question partially correct by setting all points correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points and incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers`, () => {
264
278
  if (view === 'Grading view') {
265
279
  studentViewPage.steps.clearResponses();
266
280
  }
@@ -285,10 +299,11 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
285
299
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
286
300
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
287
301
  chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
302
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question partially correct by setting all points correctly except 1 `);
288
303
  });
289
304
 
290
305
  //Fully correct
291
- 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, correct icons should be displayed on the correctly attempted points and the correct answer section graph should not be displayed', () => {
306
+ it(`${view}: Charts Line - 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, correct icons should be displayed on the correctly attempted points and the correct answer section graph should not be displayed`, () => {
292
307
  if (view === 'Grading view') {
293
308
  studentViewPage.steps.clearResponses();
294
309
  }
@@ -310,6 +325,7 @@ describe('Create item page - Charts - Line: All or nothing ', () => {
310
325
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
311
326
  chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
312
327
  chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
328
+ cy.eyesCheckWindow(`${view} view: Charts Line - Attempting the question correctly`);
313
329
  });
314
330
  });
315
331
  });
@@ -13,6 +13,14 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
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 (views.includes('Grading view')) {
17
25
  describe('Grading view contents', { tags: 'smoke' }, () => {
18
26
  abortEarlySetup();
@@ -106,7 +114,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
106
114
  utilities.verifyElementVisibilityState(chartsLinePage.correctAnswersLabel(), 'visible');
107
115
  });
108
116
 
109
- it('Correct answer should be displayed in the correct answer section', () => {
117
+ it('Charts Line - Correct answer should be displayed in the correct answer section', () => {
110
118
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 0, value: 2, range: 20 });
111
119
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 20 });
112
120
  chartsLinePage.steps.verifyPointValueInCorrectAnswerSection({ pointIndex: 2, value: 5, range: 20 });
@@ -120,6 +128,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
120
128
  chartsLinePage.steps.verifyGraphTitleInCorrectAnswerSection('Graph of profits');
121
129
  chartsLinePage.steps.verifyYAxisLabelInCorrectAnswerSection('Profit');
122
130
  chartsLinePage.steps.verifyXAxisLabelInCorrectAnswerSection('Year');
131
+ cy.eyesCheckWindow('Charts Line - Grading view contents');
123
132
  });
124
133
 
125
134
  it('Points and the total score should be displayed', () => {
@@ -220,7 +229,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
220
229
  utilities.verifyElementVisibilityState(chartsLinePage.previewTabToolBarWrapper(), 'notExist');
221
230
  });
222
231
 
223
- it('The correct answer set by user should be displayed in the correct answer view', () => {
232
+ it('Charts Line - The correct answer set by user should be displayed in the correct answer view', () => {
224
233
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 20 });
225
234
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 20 });
226
235
  chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 5, range: 20 });
@@ -232,6 +241,7 @@ describe('Create item page - Charts - Line: Grading view, Correct answer view co
232
241
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
233
242
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
234
243
  chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
244
+ cy.eyesCheckWindow('Charts Line - Correct answer view contents');
235
245
  });
236
246
 
237
247
  it('The points alloted to the question should be displayed', () => {