itemengine-cypress-automation 1.0.306 → 1.0.308

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  3. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +10 -1
  4. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +10 -1
  7. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  8. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +10 -1
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +12 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +79 -2
  11. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
  13. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -1
  15. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +10 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +10 -1
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
  19. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +12 -3
  20. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  21. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
  22. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +11 -1
  23. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +10 -2
  24. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +11 -1
  25. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
  26. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
  27. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +10 -1
  28. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
  29. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +13 -4
  30. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +12 -3
  31. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
  32. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +18 -9
  33. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +12 -3
  34. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +11 -1
  36. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
  37. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +10 -1
  38. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
  39. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
  40. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +10 -1
  41. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +10 -1
  42. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
  43. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +10 -1
  44. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
  45. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
  46. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +11 -2
  47. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -13
  48. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
  49. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +12 -2
  50. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
  51. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +13 -4
  52. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
  53. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
  54. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
  55. package/cypress/e2e/applitools.config.js +12 -0
  56. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -0
  57. package/cypress/support/commands.js +14 -1
  58. package/cypress.config.js +2 -0
  59. package/package.json +4 -1
@@ -13,6 +13,14 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
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();
@@ -67,6 +75,7 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
67
75
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
68
76
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
69
77
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
78
+ cy.eyesCheckWindow(`Number line label Horizontal - Grading view contents`);
70
79
  });
71
80
 
72
81
  it('The unattempted labels should be displayed in disabled state', () => {
@@ -142,6 +151,7 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
142
151
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
143
152
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
144
153
  numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
154
+ cy.eyesCheckWindow(`Number line label Horizontal - Correct answer view contents`);
145
155
  });
146
156
 
147
157
  it('The points alloted to the question should be displayed', () => {
@@ -12,6 +12,14 @@ describe('Create item page: Number line label - Preview contents in all views',
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();
@@ -98,10 +106,11 @@ describe('Create item page: Number line label - Preview contents in all views',
98
106
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
99
107
  });
100
108
 
101
- it('The user should be able to change the plotted label on the number line', () => {
109
+ it(`${view} view - Number line label Horizontal: The user should be able to change the plotted label on the number line`, () => {
102
110
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'horizontal', range, -8);
103
111
  numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-8]);
104
112
  numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [-9]);
113
+ cy.eyesCheckWindow(`${view} view - Number line label Horizontal: Preview contents`);
105
114
  });
106
115
 
107
116
  it('CSS of number line label', { tags: 'css' }, () => {
@@ -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();
@@ -122,7 +130,7 @@ describe('Create item page - Short text response: All or nothing', () => {
122
130
  shortTextResponsePage.steps.verifyIncorrectIcon();
123
131
  });
124
132
 
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', () => {
133
+ 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
134
  if (view === 'Grading view') {
127
135
  studentViewPage.steps.clearResponses();
128
136
  };
@@ -139,6 +147,7 @@ describe('Create item page - Short text response: All or nothing', () => {
139
147
  }
140
148
  shortTextResponsePage.steps.verifyCorrectAttemptBorder();
141
149
  shortTextResponsePage.steps.verifyCorrectIcon();
150
+ cy.eyesCheckWindow(`Short text response - ${view} - Correct attempt`);
142
151
  });
143
152
  });
144
153
  });
@@ -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();
@@ -136,7 +144,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
136
144
  singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
137
145
  });
138
146
 
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', () => {
147
+ 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
148
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
141
149
  if (view === 'Grading view') {
142
150
  studentViewPage.steps.submitResponse();
@@ -155,6 +163,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
155
163
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
156
164
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
157
165
  singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
166
+ cy.eyesCheckWindow(`Single selection ${view} - Correct attempt`);
158
167
  });
159
168
  });
160
169
  });
@@ -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,11 +87,12 @@ 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') {
@@ -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();
@@ -174,7 +182,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
174
182
  singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
175
183
  });
176
184
 
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', () => {
185
+ 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
186
  if (view === 'Grading view') {
179
187
  studentViewPage.steps.clearResponses();
180
188
  };
@@ -196,6 +204,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
196
204
  singleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
197
205
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
198
206
  singleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
207
+ cy.eyesCheckWindow(`Single selection - grid ${view} - Correct responses displayed`);
199
208
  });
200
209
  });
201
210
  });
@@ -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,6 +101,7 @@ 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') {
@@ -12,6 +12,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
+ beforeEach(() => {
16
+ cy.startApplitools();
17
+ });
18
+
19
+ afterEach(() => {
20
+ cy.eyesClose();
21
+ });
22
+
15
23
  if (!grepTags || !grepTags.includes('smoke')) {
16
24
  describe('Question preview modes: Student view and Grading view', () => {
17
25
  abortEarlySetup();
@@ -118,14 +126,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
118
126
  });
119
127
  };
120
128
 
121
- it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed', () => {
129
+ it(`When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
122
130
  if (view === 'Grading view') {
123
131
  studentViewPage.steps.submitResponse();
124
132
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
125
133
  studentViewPage.steps.clickOnGoToGradingViewButton();
126
134
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
127
135
  }
128
- if (view === 'Question preview' || view === 'Item preview') {
136
+ if (view === 'Item preview' || view === 'Question preview') {
129
137
  textEntryMathPage.steps.switchToGradingView();
130
138
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
131
139
  }
@@ -139,7 +147,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
139
147
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
140
148
  });
141
149
 
142
- 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, and \'Your answer is incorrect\' label should be displayed', () => {
150
+ 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, and \'Your answer is incorrect\' label should be displayed`, () => {
143
151
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
144
152
  textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
145
153
  equationEditorFlyout.steps.clickOnOkButton();
@@ -155,9 +163,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
155
163
  studentViewPage.steps.clickOnGoToGradingViewButton();
156
164
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
157
165
  }
158
- if (view === 'Question preview' || view === 'Item preview') {
159
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
166
+ if (view === 'Item preview' || view === 'Question preview') {
160
167
  textEntryMathPage.steps.switchToGradingView();
168
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
161
169
  }
162
170
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
163
171
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
@@ -169,7 +177,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
169
177
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
170
178
  });
171
179
 
172
- it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
180
+ it(`When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed`, () => {
173
181
  if (view === 'Grading view') {
174
182
  studentViewPage.steps.clearResponses();
175
183
  }
@@ -187,9 +195,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
187
195
  studentViewPage.steps.clickOnGoToGradingViewButton();
188
196
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
189
197
  }
190
- if (view === 'Question preview' || view === 'Item preview') {
191
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
198
+ if (view === 'Item preview' || view === 'Question preview') {
192
199
  textEntryMathPage.steps.switchToGradingView();
200
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
193
201
  }
194
202
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
195
203
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -201,7 +209,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
201
209
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
202
210
  });
203
211
 
204
- it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
212
+ it(`When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
205
213
  if (view === 'Grading view') {
206
214
  studentViewPage.steps.clearResponses();
207
215
  }
@@ -216,9 +224,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
216
224
  studentViewPage.steps.clickOnGoToGradingViewButton();
217
225
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
218
226
  }
219
- if (view === 'Question preview' || view === 'Item preview') {
220
- textEntryMathPage.steps.verifyPreviewScore(0, 20);
227
+ if (view === 'Item preview' || view === 'Question preview') {
221
228
  textEntryMathPage.steps.switchToGradingView();
229
+ textEntryMathPage.steps.verifyPreviewScore(0, 20);
222
230
  }
223
231
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
224
232
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -230,7 +238,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
230
238
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
231
239
  });
232
240
 
233
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, and \'Your answer is correct\' should be displayed', () => {
241
+ it(`TEM ${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, and \'Your answer is correct\' should be displayed`, () => {
234
242
  if (view === 'Grading view') {
235
243
  studentViewPage.steps.clearResponses();
236
244
  }
@@ -249,15 +257,16 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
249
257
  cy.wait(1000);
250
258
  gradingViewPage.steps.verifyGradingViewScore(20, 20);
251
259
  }
252
- if (view === 'Question preview' || view === 'Item preview') {
253
- textEntryMathPage.steps.verifyPreviewScore(20, 20);
260
+ if (view === 'Item preview' || view === 'Question preview') {
254
261
  textEntryMathPage.steps.switchToGradingView();
262
+ textEntryMathPage.steps.verifyPreviewScore(20, 20);
255
263
  }
256
264
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
257
265
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
258
266
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
259
267
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
260
268
  textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
269
+ cy.eyesCheckWindow(`TEM ${view} - Attempting the question correctly`);
261
270
  });
262
271
  });
263
272
  });
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: 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();
@@ -69,9 +77,10 @@ describe('Create item page - Text entry math: Preview contents', () => {
69
77
  }
70
78
  });
71
79
 
72
- it('Question instructions should be visible', () => {
80
+ it(`TEM ${view}: Question instructions should be visible`, () => {
73
81
  utilities.verifyInnerText(textEntryMathPage.questionInstructionsText(), 'Enter the correct answer in the response field');
74
82
  utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
83
+ cy.eyesCheckWindow(`TEM ${view}: Default state`);
75
84
  });
76
85
 
77
86
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -81,7 +90,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
81
90
  utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
82
91
  });
83
92
 
84
- it(`User should able to enter answers in the response fields for ${view}`, () => {
93
+ it(`User should able to enter answers in the response fields for ${view}`, () => {
85
94
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
86
95
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
87
96
  equationEditorFlyout.steps.clickOnOkButton();
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
46
46
 
47
47
  it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
48
48
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
49
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
49
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
50
50
  equationEditorFlyout.steps.clickOnOkButton();
51
51
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
52
52
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -143,13 +143,13 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
143
143
 
144
144
  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, and \'Your answer is incorrect\' label should be displayed', () => {
145
145
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
146
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
146
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
147
147
  equationEditorFlyout.steps.clickOnOkButton();
148
148
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
149
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
149
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
150
150
  equationEditorFlyout.steps.clickOnOkButton();
151
151
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
152
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '15');
152
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
153
153
  equationEditorFlyout.steps.clickOnOkButton();
154
154
  if (view === 'Grading view') {
155
155
  studentViewPage.steps.submitResponse();
@@ -176,12 +176,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
176
176
  studentViewPage.steps.clearResponses();
177
177
  }
178
178
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
179
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
179
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
180
180
  equationEditorFlyout.steps.clickOnOkButton();
181
181
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
182
182
  equationEditorFlyout.steps.enterQuadraticEquation();
183
183
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
184
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '13');
184
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '13');
185
185
  equationEditorFlyout.steps.clickOnOkButton();
186
186
  if (view === 'Grading view') {
187
187
  studentViewPage.steps.submitResponse();
@@ -203,12 +203,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
203
203
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
204
204
  });
205
205
 
206
- it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
206
+ it('When the user attempts the question partially correct with an incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
207
207
  if (view === 'Grading view') {
208
208
  studentViewPage.steps.clearResponses();
209
209
  }
210
210
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
211
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
211
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
212
212
  equationEditorFlyout.steps.clickOnOkButton();
213
213
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
214
214
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -237,7 +237,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
237
237
  studentViewPage.steps.clearResponses();
238
238
  }
239
239
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
240
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
240
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
241
241
  equationEditorFlyout.steps.clickOnOkButton();
242
242
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
243
243
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -302,10 +302,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
302
302
  it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
303
303
  textEntryMathWithImagePage.steps.resetQuestionPreview();
304
304
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
305
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
305
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
306
306
  equationEditorFlyout.steps.clickOnOkButton();
307
307
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
308
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '13');
308
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '13');
309
309
  equationEditorFlyout.steps.clickOnOkButton();
310
310
  textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
311
311
  textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -325,10 +325,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
325
325
  it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
326
326
  textEntryMathWithImagePage.steps.resetQuestionPreview();
327
327
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
328
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
328
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
329
329
  equationEditorFlyout.steps.clickOnOkButton();
330
330
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
331
- textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
331
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
332
332
  equationEditorFlyout.steps.clickOnOkButton();
333
333
  textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
334
334
  });
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: 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();
@@ -76,7 +84,6 @@ describe('Create item page - Text entry math: Preview contents', () => {
76
84
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.questionInstructionsText(), 'visible');
77
85
  });
78
86
 
79
-
80
87
  it('The text area should be displayed on the image canvas', () => {
81
88
  textEntryMathWithImagePage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
82
89
  });
@@ -86,13 +93,13 @@ describe('Create item page - Text entry math: Preview contents', () => {
86
93
  });
87
94
 
88
95
  if (view !== 'Grading view' && view !== 'Correct answer view') {
89
- it(`The two empty response fields should be disabled ${view}`, () => {
96
+ it(`Two empty response fields should be disabled ${view}`, () => {
90
97
  utilities.verifyTextContent(textEntryMathWithImagePage.responseFieldPreviewTab(), '')
91
98
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseFieldPreviewTab(), 'visible');
92
99
  utilities.verifyElementCount(textEntryMathWithImagePage.responseFieldPreviewTab(), '2');
93
100
  });
94
101
 
95
- it(`User should able to enter answers in the response fields for ${view}`, () => {
102
+ it(`TEM Image ${view} User should able to enter answers in the response fields for ${view}`, () => {
96
103
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
97
104
  textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
98
105
  equationEditorFlyout.steps.clickOnOkButton();
@@ -100,16 +107,17 @@ describe('Create item page - Text entry math: Preview contents', () => {
100
107
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
101
108
  equationEditorFlyout.steps.enterQuadraticEquation();
102
109
  textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
110
+ cy.eyesCheckWindow(`TEM Image ${view} Verify response fields with answers`);
103
111
  });
104
112
  } else if (view === 'Grading view') {
105
- it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
113
+ it(`TEM Image The response fields should be filled with the submitted responses and user should not be able to edit them in the grading view`, () => {
106
114
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
107
115
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
108
116
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
109
117
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
110
118
  });
111
119
  } else {
112
- it(`The response input fields should be displayed filled with correct answers`, () => {
120
+ it(`TEM Image The responses should be displayed filled with correct answers`, () => {
113
121
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
114
122
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
115
123
  });
@@ -57,6 +57,15 @@ describe('Create item page - Text selection: All or nothing ', () => {
57
57
  views.forEach((view) => {
58
58
  describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
59
59
  abortEarlySetup();
60
+
61
+ beforeEach(() => {
62
+ cy.startApplitools();
63
+ });
64
+
65
+ afterEach(() => {
66
+ cy.eyesClose();
67
+ });
68
+
60
69
  before(() => {
61
70
  switch (view) {
62
71
  case 'Question preview':
@@ -131,7 +140,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
131
140
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
132
141
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
133
142
  });
134
-
143
+
135
144
  it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
136
145
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
137
146
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
@@ -203,7 +212,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
203
212
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
204
213
  });
205
214
 
206
- it('When the user attempts the question correct then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
215
+ it(`Text selection - ${view} - When the user attempts the question correct then the user should be awarded full points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, a status message with text 'Your answer is correct' should be displayed and correct answer section should not be displayed`, () => {
207
216
  if (view === 'Grading view') {
208
217
  studentViewPage.steps.clearResponses();
209
218
  };
@@ -225,6 +234,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
225
234
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
226
235
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
227
236
  utilities.verifyElementVisibilityState(textSelectionPage.correctAnswerSection(), 'notExist');
237
+ cy.eyesCheckWindow(`Text selection - ${view} - Correct attempt`);
228
238
  });
229
239
  });
230
240
  });
@@ -12,6 +12,14 @@ describe('Create item page - Upload response: Grading view, Correct answer view
12
12
  cy.loginAs('admin');
13
13
  });
14
14
 
15
+ beforeEach(() => {
16
+ cy.startApplitools();
17
+ });
18
+
19
+ afterEach(() => {
20
+ cy.eyesClose();
21
+ });
22
+
15
23
  if (views.includes('Grading view')) {
16
24
  describe('Grading view contents', { tags: 'smoke' }, () => {
17
25
  abortEarlySetup();
@@ -50,6 +58,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
50
58
 
51
59
  it('Empty score input field and total score should be displayed', () => {
52
60
  gradingViewPage.steps.verifyGradingViewScore('', 10);
61
+ cy.eyesCheckWindow('Grading view - Uploaded file and score');
53
62
  });
54
63
 
55
64
  it('Accessibility of uploaded file', { tags: 'a11y' }, () => {
@@ -58,7 +67,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
58
67
 
59
68
  //Adding skip as this does not work on spinnaker
60
69
  it.skip('On clicking on the file name, user should be able to download the file', () => {
61
- cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
70
+ cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
62
71
  });
63
72
  });
64
73
  }
@@ -90,6 +99,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
90
99
  it('\'This is a manual scored question\' help text should be displayed in the correct answer view', () => {
91
100
  utilities.verifyTextContent(correctAnswerViewPage.manualScoredQuestionHelpText(), 'This is a manual scored question.');
92
101
  utilities.verifyElementVisibilityState(correctAnswerViewPage.manualScoredQuestionHelpText(), 'visible');
102
+ cy.eyesCheckWindow('Grading view - question instructions and help text');
93
103
  });
94
104
 
95
105
  it('The points alloted to the question should be displayed', () => {