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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +40 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +9 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +15 -3
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +12 -2
  5. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +10 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +2 -1
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +24 -8
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  9. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +18 -5
  10. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +24 -8
  11. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  12. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +19 -6
  13. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +24 -8
  14. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  15. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +18 -5
  16. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +10 -1
  17. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +10 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +20 -6
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +16 -4
  20. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +54 -21
  22. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +20 -6
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +14 -3
  25. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  26. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +13 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +18 -5
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +16 -4
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +16 -4
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +16 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +14 -3
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +16 -4
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +14 -3
  35. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +18 -5
  36. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +16 -4
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +21 -6
  39. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +20 -0
  40. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +19 -5
  41. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +16 -4
  42. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +16 -4
  43. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +16 -4
  44. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +13 -2
  45. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +16 -4
  46. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +17 -5
  47. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +18 -5
  48. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +16 -4
  49. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +17 -4
  50. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +16 -4
  51. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +18 -5
  52. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +18 -5
  53. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +18 -5
  54. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +16 -4
  55. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +22 -10
  56. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +19 -6
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +20 -6
  59. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  60. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  61. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  62. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +18 -5
  63. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  64. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +16 -4
  65. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +18 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  67. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  68. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +18 -5
  69. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  70. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +10 -1
  71. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +10 -1
  72. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +10 -1
  73. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +10 -1
  74. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +14 -3
  75. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +17 -7
  76. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +10 -1
  77. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +14 -3
  78. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +16 -4
  79. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +18 -5
  80. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +16 -4
  81. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +27 -14
  82. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +21 -9
  83. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +14 -3
  84. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +26 -13
  85. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +15 -5
  86. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +16 -4
  87. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +20 -6
  88. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +19 -7
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +14 -3
  90. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +13 -3
  91. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  92. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +18 -5
  93. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +19 -6
  94. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +14 -3
  95. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +16 -4
  96. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +14 -3
  97. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +25 -9
  98. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  99. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +16 -4
  100. package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
  101. package/package.json +1 -1
@@ -11,6 +11,14 @@ describe('Preview tab contents for all views', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -60,11 +68,12 @@ describe('Preview tab contents for all views', () => {
60
68
  }
61
69
  });
62
70
 
63
- it('\'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color', () => {
71
+ it(`${view} - \'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color`, () => {
64
72
  protractorPage.steps.verifyAcuteAngleTypeInPreviewTab();
65
73
  protractorPage.steps.verifyPreviewTabColorAndOpacityOfProtractor(3, 0.3);
66
74
  protractorPage.steps.verifyAlternativeTextInPreviewTab('Measuring tool');
67
75
  protractorPage.steps.verifyRotationButtonVisibleInPreviewTab();
76
+ cy.eyesCheckWindow(`${view} - Protractor visibility`);
68
77
  });
69
78
  });
70
79
  });
@@ -11,6 +11,14 @@ describe('Preview tab contents for all views', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -58,11 +66,12 @@ describe('Preview tab contents for all views', () => {
58
66
  }
59
67
  });
60
68
 
61
- it('\'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color', () => {
69
+ it(`${view} \'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color`, () => {
62
70
  readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
63
71
  readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab('0.3');
64
72
  readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(2);
65
73
  readingRulerPage.steps.verifySizeOfReadingRulerInPreviewTab('Line focus', 5);
74
+ cy.eyesCheckWindow(`${view} - Reading ruler visibility`);
66
75
  });
67
76
  });
68
77
  });
@@ -11,6 +11,14 @@ describe('Preview tab contents for all views', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  views.forEach((view) => {
15
23
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
16
24
  abortEarlySetup();
@@ -59,11 +67,12 @@ describe('Preview tab contents for all views', () => {
59
67
  }
60
68
  });
61
69
 
62
- it('\'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color', () => {
70
+ it(`${view} \'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color`, () => {
63
71
  rulerPage.steps.verifyLengthOfRulerInPreview('6in');
64
72
  rulerPage.steps.verifyRotationButtonVisibleInPreviewTab();
65
73
  rulerPage.steps.verifyColorOfRulerInPreview(3);
66
74
  rulerPage.steps.verifyRulerOpacityInPreview('0.5');
75
+ cy.eyesCheckWindow(`${view} - Ruler visibility`);
67
76
  });
68
77
  });
69
78
  });
@@ -13,6 +13,14 @@ describe('Create item page - Short text response: All or nothing', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
+ beforeEach(() => {
17
+ cy.startApplitools();
18
+ });
19
+
20
+ afterEach(() => {
21
+ cy.eyesClose();
22
+ });
23
+
16
24
  if (!grepTags || !grepTags.includes('smoke')) {
17
25
  describe('Question preview modes: Student view and Grading view', () => {
18
26
  abortEarlySetup();
@@ -89,7 +97,7 @@ describe('Create item page - Short text response: All or nothing', () => {
89
97
  });
90
98
  };
91
99
 
92
- it('When the user selects \'Grading\' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field', () => {
100
+ it(`Short text response - ${view} - When the user selects 'Grading' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field`, () => {
93
101
  if (view === 'Grading view') {
94
102
  studentViewPage.steps.submitResponse();
95
103
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -103,9 +111,10 @@ describe('Create item page - Short text response: All or nothing', () => {
103
111
  //Need to remove comment once https://redmine.zeuslearning.com/issues/576511 is resolved
104
112
  // shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
105
113
  shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
114
+ cy.eyesCheckWindow(`Short text response - ${view} - Grading view without attempting`);
106
115
  });
107
116
 
108
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview', () => {
117
+ it(`Short text response - ${view} - 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 besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview`, () => {
109
118
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Text');
110
119
  if (view === 'Grading view') {
111
120
  studentViewPage.steps.submitResponse();
@@ -120,9 +129,10 @@ describe('Create item page - Short text response: All or nothing', () => {
120
129
  }
121
130
  shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
122
131
  shortTextResponsePage.steps.verifyIncorrectIcon();
132
+ cy.eyesCheckWindow(`Short text response - ${view} - Incorrect attempt`);
123
133
  });
124
134
 
125
- 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 beside the correct response, correct answer border around response field should be displayed the question preview', () => {
135
+ it(`Short text response - ${view} - 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 beside the correct response, correct answer border around response field should be displayed the question preview`, () => {
126
136
  if (view === 'Grading view') {
127
137
  studentViewPage.steps.clearResponses();
128
138
  };
@@ -139,6 +149,7 @@ describe('Create item page - Short text response: All or nothing', () => {
139
149
  }
140
150
  shortTextResponsePage.steps.verifyCorrectAttemptBorder();
141
151
  shortTextResponsePage.steps.verifyCorrectIcon();
152
+ cy.eyesCheckWindow(`Short text response - ${view} - Correct attempt`);
142
153
  });
143
154
  });
144
155
  });
@@ -11,6 +11,14 @@ describe('Create item page - Short text response : 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();
@@ -57,26 +65,28 @@ describe('Create item page - Short text response : Preview contents', () => {
57
65
  }
58
66
  });
59
67
 
60
- it('Question instructions should be visible', () => {
68
+ it(`${view} - Question instructions should be visible`, () => {
61
69
  utilities.verifyInnerText(shortTextResponsePage.questionInstructionsText(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
62
70
  utilities.verifyElementVisibilityState(shortTextResponsePage.questionInstructionsText(), 'visible');
63
71
  });
64
72
 
65
73
  if (view !== 'Grading view' && view !== 'Correct answer view') {
66
- it('Answer input field should be visible and by default it should be empty', () => {
74
+ it(`Short text response - ${view} - Answer input field should be visible and by default it should be empty`, () => {
67
75
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('');
68
- utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible')
76
+ utilities.verifyElementVisibilityState(shortTextResponsePage.previewTabResponseField(), 'visible');
77
+ cy.eyesCheckWindow(`Short text response - ${view} - Answer input field visible and empty`);
69
78
  });
70
79
 
71
- it('User should be able to enter text in answer input field', () => {
80
+ it(`Short text response - ${view} - User should be able to enter text in answer input field`, () => {
72
81
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('The quick brown fox');
73
82
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
83
+ cy.eyesCheckWindow(`Short text response - ${view} - Text entered in answer input field`);
74
84
  });
75
- }
76
- else {
77
- it(`The response field should be displayed filled with correct answer`, () => {
85
+ } else {
86
+ it(`Short text response - ${view} - The response field should be displayed filled with correct answer`, () => {
78
87
  shortTextResponsePage.steps.verifyTextInAnswerInputFieldPreviewTab('The quick brown fox');
79
88
  utilities.verifyElementDisabled(shortTextResponsePage.previewTabResponseField());
89
+ cy.eyesCheckWindow(`Short text response - ${view} - Response field filled with correct answer`);
80
90
  });
81
91
  }
82
92
 
@@ -12,6 +12,14 @@ describe('Preview tab contents for all views for Simple calculator', () => {
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
+ beforeEach(() => {
16
+ cy.startApplitools();
17
+ });
18
+
19
+ afterEach(() => {
20
+ cy.eyesClose();
21
+ });
22
+
15
23
  views.forEach((view) => {
16
24
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -83,7 +91,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
83
91
  utilities.verifyElementVisibilityState(simpleCalculatorPage.nineButton(), 'visible');
84
92
  });
85
93
 
86
- it('The user should be able to perform basic mathematical operations', () => {
94
+ it(`${view} The user should be able to perform basic mathematical operations`, () => {
87
95
  simpleCalculatorPage.steps.clickOnACalculatorButton('one');
88
96
  simpleCalculatorPage.steps.clickOnACalculatorButton('addition');
89
97
  simpleCalculatorPage.steps.clickOnACalculatorButton('two');
@@ -91,6 +99,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
91
99
  simpleCalculatorPage.steps.clickOnACalculatorButton('equal to');
92
100
  simpleCalculatorPage.steps.verifyCalculatorDisplayInputEquationValue('1+2 =');
93
101
  simpleCalculatorPage.steps.verifyCalculatorDisplayResultValue('3');
102
+ cy.eyesCheckWindow(`${view} - Compass visibility`);
94
103
  });
95
104
 
96
105
  it('CSS of preview contents', { tags: 'css' }, () => {
@@ -14,6 +14,14 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
+ beforeEach(() => {
18
+ cy.startApplitools();
19
+ });
20
+
21
+ afterEach(() => {
22
+ cy.eyesClose();
23
+ });
24
+
17
25
  if (!grepTags || !grepTags.includes('smoke')) {
18
26
  describe('Question preview modes: Student view and Grading view', () => {
19
27
  abortEarlySetup();
@@ -93,7 +101,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
93
101
  });
94
102
  };
95
103
 
96
- it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
104
+ it(`Single selection ${view} - When the user selects 'Grading' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section`, () => {
97
105
  if (view === 'Grading view') {
98
106
  studentViewPage.steps.submitResponse();
99
107
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -112,9 +120,10 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
112
120
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
113
121
  //correct answer section
114
122
  singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
123
+ cy.eyesCheckWindow(`Single selection ${view} - Grading view without attempting the question`);
115
124
  });
116
125
 
117
- 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 incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
126
+ it(`Single selection ${view} - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section`, () => {
118
127
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
119
128
  if (view === 'Grading view') {
120
129
  studentViewPage.steps.submitResponse();
@@ -134,9 +143,10 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
134
143
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
135
144
  //correct answer section
136
145
  singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
146
+ cy.eyesCheckWindow(`Single selection ${view} - Incorrect attempt`);
137
147
  });
138
148
 
139
- 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 answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
149
+ it(`Single selection ${view} - When user attempts the question correctly, the user should be awarded full points and on switching to 'Grading' view, then correct icons should be displayed beside all the correct responses, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed`, () => {
140
150
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
141
151
  if (view === 'Grading view') {
142
152
  studentViewPage.steps.submitResponse();
@@ -155,6 +165,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
155
165
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
156
166
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
157
167
  singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
168
+ cy.eyesCheckWindow(`Single selection ${view} - Correct attempt`);
158
169
  });
159
170
  });
160
171
  });
@@ -12,6 +12,14 @@ describe('Create item page - Single selection: Preview contents', () => {
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
+ beforeEach(() => {
16
+ cy.startApplitools();
17
+ });
18
+
19
+ afterEach(() => {
20
+ cy.eyesClose();
21
+ });
22
+
15
23
  views.forEach((view) => {
16
24
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -79,18 +87,20 @@ describe('Create item page - Single selection: Preview contents', () => {
79
87
  utilities.verifyElementVisibilityState(singleSelectionPage.questionInstructionsText(), 'visible');
80
88
  });
81
89
 
82
- it(`When the user has added image, equation, bold text and link to the options input they should be displayed in the ${view}`, () => {
90
+ it(`Single selection - ${view} - When the user has added image, equation, bold text and link to the options input they should be displayed in the ${view}`, () => {
83
91
  singleSelectionPage.steps.verifyImageInPreviewTab(0);
84
92
  singleSelectionPage.steps.verifyLinkTextInPreviewTab(1);
85
93
  singleSelectionPage.steps.verifyBoldTextInPreviewTab(2);
86
94
  singleSelectionPage.steps.verifyEquationTextInPreviewTab(3);
95
+ cy.eyesCheckWindow(`Single selection - ${view} - Options with image, equation, bold text, and link`);
87
96
  });
88
97
 
89
98
  if (view !== 'Grading view' && view !== 'Correct answer view') {
90
- it(`All the options should be in unchecked state`, () => {
99
+ it(`Single selection - ${view} - All the options should be in unchecked state`, () => {
91
100
  for (let index = 0; index < 4; index++) {
92
101
  singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(index);
93
102
  };
103
+ cy.eyesCheckWindow(`Single selection - ${view} - Unchecked options`);
94
104
  });
95
105
 
96
106
  it(`User should able to select options in the ${view}`, () => {
@@ -98,7 +108,7 @@ describe('Create item page - Single selection: Preview contents', () => {
98
108
  singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
99
109
  });
100
110
  } else if (view === 'Grading view') {
101
- it(`The submitted/correct options should be in checked state and they should not be editable`, () => {
111
+ it(`Single selection - ${view} - The submitted/correct options should be in checked state and they should not be editable`, () => {
102
112
  singleSelectionPage.steps.verifyOptionInPreviewTabCheckedState(1);
103
113
  singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(0);
104
114
  singleSelectionPage.steps.verifyOptionInPreviewTabUncheckedState(2);
@@ -106,14 +116,16 @@ describe('Create item page - Single selection: Preview contents', () => {
106
116
  options.forEach((options, index) => {
107
117
  singleSelectionPage.steps.verifyOptionRadioButtonIsDisabled(index)
108
118
  });
119
+ cy.eyesCheckWindow(`Single selection - ${view} - Checked and disabled options`);
109
120
  });
110
121
  } else {
111
- it(`The correct options should have correct icons besides them`, () => {
122
+ it(`Single selection - ${view} - The correct options should have correct icons besides them`, () => {
112
123
  // Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
113
124
  // singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
114
125
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
115
126
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
116
127
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
128
+ cy.eyesCheckWindow(`Single selection - ${view} - Correct icons`);
117
129
  });
118
130
  }
119
131
 
@@ -11,6 +11,14 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
+ beforeEach(() => {
15
+ cy.startApplitools();
16
+ });
17
+
18
+ afterEach(() => {
19
+ cy.eyesClose();
20
+ });
21
+
14
22
  if (!grepTags || !grepTags.includes('smoke')) {
15
23
  describe('Question preview modes: Student view and Grading view', () => {
16
24
  abortEarlySetup();
@@ -93,7 +101,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
93
101
  });
94
102
  };
95
103
 
96
- it('When the user selects \'Grading\' view without attempting the question, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed', () => {
104
+ it(`Single selection - grid ${view} - When the user selects 'Grading' view without attempting the question, correct answers section with a label 'Correct answers' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed`, () => {
97
105
  if (view === 'Grading view') {
98
106
  studentViewPage.steps.submitResponse();
99
107
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -107,9 +115,10 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
107
115
  };
108
116
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
109
117
  singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
118
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Correct answers section displayed`);
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 icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
121
+ it(`Single selection - grid ${view} - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, a status message with text 'Your answer is incorrect' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
113
122
  singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
114
123
  if (view === 'Grading view') {
115
124
  studentViewPage.steps.submitResponse();
@@ -125,9 +134,10 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
125
134
  singleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
126
135
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
136
  singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
137
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Incorrect responses displayed`);
128
138
  });
129
139
 
130
- it('When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
140
+ it(`Single selection - grid ${view} - When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text 'Your answer is incorrect' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
131
141
  if (view === 'Grading view') {
132
142
  studentViewPage.steps.clearResponses();
133
143
  };
@@ -148,9 +158,10 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
148
158
  singleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
149
159
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
150
160
  singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
161
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Partially correct responses displayed`);
151
162
  });
152
163
 
153
- it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
164
+ it(`Single selection - grid ${view} - When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text 'Your answer is incorrect' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
154
165
  if (view === 'Grading view') {
155
166
  studentViewPage.steps.clearResponses();
156
167
  };
@@ -172,9 +183,10 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
172
183
  //singleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 1 });
173
184
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
174
185
  singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
186
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Incomplete responses displayed`);
175
187
  });
176
188
 
177
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
189
+ it(`Single selection - grid ${view} - When user attempts the question correctly, the user should be awarded full points and on switching to 'Grading' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text 'Your answer is correct' and correct answer section should not be displayed`, () => {
178
190
  if (view === 'Grading view') {
179
191
  studentViewPage.steps.clearResponses();
180
192
  };
@@ -196,6 +208,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
196
208
  singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
197
209
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
198
210
  singleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
211
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Correct responses displayed`);
199
212
  });
200
213
  });
201
214
  });
@@ -11,6 +11,14 @@ describe('Create item page - Single selection grid: 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();
@@ -82,7 +90,7 @@ describe('Create item page - Single selection grid: Preview contents', () => {
82
90
  utilities.verifyElementVisibilityState(singleSelectionGridPage.questionInstructionsText(), 'visible');
83
91
  });
84
92
 
85
- it(`The question grid as set by the user should be displayed in the ${view}`, () => {
93
+ it(`Single selection - grid ${view} - The question grid as set by the user should be displayed in the ${view}`, () => {
86
94
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
87
95
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
88
96
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
@@ -93,31 +101,34 @@ describe('Create item page - Single selection grid: Preview contents', () => {
93
101
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
94
102
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No radio button');
95
103
  singleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No radio button');
104
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Question grid displayed`);
96
105
  });
97
106
 
98
107
  if (view !== 'Grading view' && view !== 'Correct answer view') {
99
- it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
108
+ it(`Single selection - grid ${view} - When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
100
109
  singleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
101
110
  singleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
102
111
  singleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
112
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Image, equation, bold text displayed`);
103
113
  });
104
114
 
105
115
  it(`User should be able to select options in the ${view}`, () => {
106
116
  singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
107
117
  });
108
118
  } else if (view === 'Grading view') {
109
- it(`The submitted options should be in checked state`, () => {
119
+ it(`Single selection - grid ${view} - The submitted options should be in checked state`, () => {
110
120
  singleSelectionGridPage.steps.verifyOptionWithRadioButtonSelectedState({ row: 1, column: 0 });
111
121
  singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 2, column: 1 });
112
122
  singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 3, column: 0 });
113
123
  singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 4, column: 1 });
124
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Submitted options checked state`);
114
125
  });
115
126
 
116
127
  it('The content in the grid should not be editable', () => {
117
128
  singleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
118
129
  });
119
130
  } else {
120
- it(`The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
131
+ it(`Single selection - grid ${view} - The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
121
132
  singleSelectionGridPage.steps.verifyOptionWithRadioButtonSelectedState({ row: 1, column: 0 });
122
133
  singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 2, column: 1 });
123
134
  singleSelectionGridPage.steps.verifyOptionWithoutRadioButtonSelectedState({ row: 3, column: 0 });
@@ -126,6 +137,7 @@ describe('Create item page - Single selection grid: Preview contents', () => {
126
137
  singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
127
138
  singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
128
139
  singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
140
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Correct options checked state and icons`);
129
141
  });
130
142
  }
131
143