itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295

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 (106) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  3. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
  4. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
  5. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
  7. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
  8. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  9. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
  10. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  11. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
  12. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -12
  13. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
  14. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
  15. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
  16. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  17. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
  18. package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
  19. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
  23. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  24. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -10
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +1 -10
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -12
  34. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  35. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
  36. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -11
  37. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
  38. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +1 -11
  39. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
  40. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
  41. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +1 -10
  42. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +1 -10
  43. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
  44. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
  45. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
  46. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
  47. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
  48. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  49. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
  51. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
  52. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  53. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
  54. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  55. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  56. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
  57. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  58. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
  59. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  60. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  61. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
  62. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
  63. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  64. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  65. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  66. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  67. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  68. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  69. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
  70. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
  71. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  72. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
  73. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
  74. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  75. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
  76. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
  77. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
  78. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
  79. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  80. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
  81. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
  82. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
  83. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  84. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  85. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  86. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
  87. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
  88. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
  89. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  90. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
  91. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
  92. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  93. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  94. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
  95. package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
  96. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
  97. package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
  98. package/cypress/pages/components/optionsWrapperComponent.js +0 -3
  99. package/cypress/pages/createItemPage.js +2 -2
  100. package/cypress/pages/multipleSelectionPage.js +39 -1
  101. package/cypress/pages/singleSelectionPage.js +39 -1
  102. package/cypress/support/commands.js +0 -11
  103. package/cypress/support/e2e.js +0 -1
  104. package/package.json +1 -4
  105. package/scripts/sorry-cypress.mjs +5 -0
  106. package/cypress/e2e/applitools.config.js +0 -14
@@ -12,14 +12,6 @@ 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
-
23
15
  if (!grepTags || !grepTags.includes('smoke')) {
24
16
  describe('Question preview modes: Student view and Grading view', () => {
25
17
  abortEarlySetup();
@@ -126,14 +118,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
126
118
  });
127
119
  };
128
120
 
129
- it(`TEM ${view}: 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`, () => {
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', () => {
130
122
  if (view === 'Grading view') {
131
123
  studentViewPage.steps.submitResponse();
132
124
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
133
125
  studentViewPage.steps.clickOnGoToGradingViewButton();
134
126
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
135
127
  }
136
- if (view === 'Item preview' || view === 'Question preview') {
128
+ if (view === 'Question preview' || view === 'Item preview') {
137
129
  textEntryMathPage.steps.switchToGradingView();
138
130
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
139
131
  }
@@ -147,7 +139,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
147
139
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
148
140
  });
149
141
 
150
- it(`TEM ${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, and \'Your answer is incorrect\' label should be displayed`, () => {
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', () => {
151
143
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
152
144
  textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
153
145
  equationEditorFlyout.steps.clickOnOkButton();
@@ -163,9 +155,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
163
155
  studentViewPage.steps.clickOnGoToGradingViewButton();
164
156
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
165
157
  }
166
- if (view === 'Item preview' || view === 'Question preview') {
167
- textEntryMathPage.steps.switchToGradingView();
158
+ if (view === 'Question preview' || view === 'Item preview') {
168
159
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
160
+ textEntryMathPage.steps.switchToGradingView();
169
161
  }
170
162
  textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
171
163
  textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
@@ -177,7 +169,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
177
169
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
178
170
  });
179
171
 
180
- it(`TEM ${view}: 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`, () => {
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', () => {
181
173
  if (view === 'Grading view') {
182
174
  studentViewPage.steps.clearResponses();
183
175
  }
@@ -195,9 +187,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
195
187
  studentViewPage.steps.clickOnGoToGradingViewButton();
196
188
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
197
189
  }
198
- if (view === 'Item preview' || view === 'Question preview') {
199
- textEntryMathPage.steps.switchToGradingView();
190
+ if (view === 'Question preview' || view === 'Item preview') {
200
191
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
192
+ textEntryMathPage.steps.switchToGradingView();
201
193
  }
202
194
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
203
195
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -209,7 +201,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
209
201
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
210
202
  });
211
203
 
212
- it(`TEM ${view}: 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`, () => {
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', () => {
213
205
  if (view === 'Grading view') {
214
206
  studentViewPage.steps.clearResponses();
215
207
  }
@@ -224,9 +216,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
224
216
  studentViewPage.steps.clickOnGoToGradingViewButton();
225
217
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
226
218
  }
227
- if (view === 'Item preview' || view === 'Question preview') {
228
- textEntryMathPage.steps.switchToGradingView();
219
+ if (view === 'Question preview' || view === 'Item preview') {
229
220
  textEntryMathPage.steps.verifyPreviewScore(0, 20);
221
+ textEntryMathPage.steps.switchToGradingView();
230
222
  }
231
223
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
232
224
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
@@ -238,7 +230,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
238
230
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
239
231
  });
240
232
 
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`, () => {
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', () => {
242
234
  if (view === 'Grading view') {
243
235
  studentViewPage.steps.clearResponses();
244
236
  }
@@ -257,16 +249,15 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
257
249
  cy.wait(1000);
258
250
  gradingViewPage.steps.verifyGradingViewScore(20, 20);
259
251
  }
260
- if (view === 'Item preview' || view === 'Question preview') {
261
- textEntryMathPage.steps.switchToGradingView();
252
+ if (view === 'Question preview' || view === 'Item preview') {
262
253
  textEntryMathPage.steps.verifyPreviewScore(20, 20);
254
+ textEntryMathPage.steps.switchToGradingView();
263
255
  }
264
256
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
265
257
  textEntryMathPage.steps.verifyCorrectResponseIcon(1);
266
258
  textEntryMathPage.steps.verifyCorrectResponseIcon(2);
267
259
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
268
260
  textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
269
- cy.eyesCheckWindow(`TEM ${view} - Attempting the question correctly`);
270
261
  });
271
262
  });
272
263
  });
@@ -96,7 +96,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
96
96
  });
97
97
  };
98
98
 
99
- it(`${view}: Formula template: 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`, () => {
99
+ 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', () => {
100
100
  if (view === 'Grading view') {
101
101
  studentViewPage.steps.submitResponse();
102
102
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -117,7 +117,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
117
117
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
118
118
  });
119
119
 
120
- it(`${view}: Formula template: 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`, () => {
120
+ 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', () => {
121
121
  textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
122
122
  equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
123
123
  equationEditorFlyout.steps.clickOnOkButton();
@@ -153,7 +153,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
153
153
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
154
154
  });
155
155
 
156
- it(`${view}: Formula template: 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`, () => {
156
+ 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', () => {
157
157
  if (view === 'Grading view') {
158
158
  studentViewPage.steps.clearResponses();
159
159
  }
@@ -192,7 +192,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
192
192
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
193
193
  });
194
194
 
195
- it(`${view}: Formula template: 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`, () => {
195
+ 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', () => {
196
196
  if (view === 'Grading view') {
197
197
  studentViewPage.steps.clearResponses();
198
198
  }
@@ -228,7 +228,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
228
228
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
229
  });
230
230
 
231
- it(`${view}: Formula template: 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`, () => {
231
+ 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', () => {
232
232
  if (view === 'Grading view') {
233
233
  studentViewPage.steps.clearResponses();
234
234
  }
@@ -267,4 +267,5 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
267
267
  });
268
268
  });
269
269
  });
270
+
270
271
  });
@@ -12,14 +12,6 @@ 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
-
23
15
  views.forEach((view) => {
24
16
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
25
17
  abortEarlySetup();
@@ -77,10 +69,9 @@ describe('Create item page - Text entry math: Preview contents', () => {
77
69
  }
78
70
  });
79
71
 
80
- it(`TEM ${view}: Question instructions should be visible`, () => {
72
+ it('Question instructions should be visible', () => {
81
73
  utilities.verifyInnerText(textEntryMathPage.questionInstructionsText(), 'Enter the correct answer in the response field');
82
74
  utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
83
- cy.eyesCheckWindow(`TEM ${view}: Default state`);
84
75
  });
85
76
 
86
77
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -90,7 +81,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
90
81
  utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
91
82
  });
92
83
 
93
- it(`TEM User should able to enter answers in the response fields for ${view}`, () => {
84
+ it(`User should able to enter answers in the response fields for ${view}`, () => {
94
85
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
95
86
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
96
87
  equationEditorFlyout.steps.clickOnOkButton();
@@ -100,14 +91,14 @@ describe('Create item page - Text entry math: Preview contents', () => {
100
91
  textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
101
92
  });
102
93
  } else if (view === 'Grading view') {
103
- it(`TEM The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
94
+ it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
104
95
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
105
96
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
106
97
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
107
98
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
108
99
  });
109
100
  } else {
110
- it(`TEM The response input fields should be displayed filled with correct answers`, () => {
101
+ it(`The response input fields should be displayed filled with correct answers`, () => {
111
102
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
112
103
  textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
113
104
  });
@@ -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();
@@ -120,7 +120,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
120
120
  });
121
121
  };
122
122
 
123
- it(`TEM Image ${view} - 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`, () => {
123
+ 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', () => {
124
124
  if (view === 'Grading view') {
125
125
  studentViewPage.steps.submitResponse();
126
126
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -141,15 +141,15 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
141
141
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
142
142
  });
143
143
 
144
- it(`TEM Image ${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, and 'Your answer is incorrect' label should be displayed`, () => {
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();
@@ -171,17 +171,17 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
171
171
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
172
172
  });
173
173
 
174
- it(`TEM Image ${view} - 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`, () => {
174
+ 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', () => {
175
175
  if (view === 'Grading view') {
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(`TEM Image ${view} - 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`, () => {
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', () => {
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();
@@ -232,12 +232,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
232
232
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
233
233
  });
234
234
 
235
- it(`TEM Image ${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`, () => {
235
+ 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', () => {
236
236
  if (view === 'Grading view') {
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,14 +12,6 @@ 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
-
23
15
  views.forEach((view) => {
24
16
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
25
17
  abortEarlySetup();
@@ -84,6 +76,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
84
76
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.questionInstructionsText(), 'visible');
85
77
  });
86
78
 
79
+
87
80
  it('The text area should be displayed on the image canvas', () => {
88
81
  textEntryMathWithImagePage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
89
82
  });
@@ -93,13 +86,13 @@ describe('Create item page - Text entry math: Preview contents', () => {
93
86
  });
94
87
 
95
88
  if (view !== 'Grading view' && view !== 'Correct answer view') {
96
- it(`Two empty response fields should be disabled ${view}`, () => {
89
+ it(`The two empty response fields should be disabled ${view}`, () => {
97
90
  utilities.verifyTextContent(textEntryMathWithImagePage.responseFieldPreviewTab(), '')
98
91
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseFieldPreviewTab(), 'visible');
99
92
  utilities.verifyElementCount(textEntryMathWithImagePage.responseFieldPreviewTab(), '2');
100
93
  });
101
94
 
102
- it(`TEM Image ${view} User should able to enter answers in the response fields for ${view}`, () => {
95
+ it(`User should able to enter answers in the response fields for ${view}`, () => {
103
96
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
104
97
  textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
105
98
  equationEditorFlyout.steps.clickOnOkButton();
@@ -107,17 +100,16 @@ describe('Create item page - Text entry math: Preview contents', () => {
107
100
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
108
101
  equationEditorFlyout.steps.enterQuadraticEquation();
109
102
  textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
110
- cy.eyesCheckWindow(`TEM Image ${view} Verify response fields with answers`);
111
103
  });
112
104
  } else if (view === 'Grading view') {
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`, () => {
105
+ it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
114
106
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
115
107
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
116
108
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
117
109
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
118
110
  });
119
111
  } else {
120
- it(`TEM Image The responses should be displayed filled with correct answers`, () => {
112
+ it(`The response input fields should be displayed filled with correct answers`, () => {
121
113
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
122
114
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
123
115
  });
@@ -250,7 +250,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
250
250
  textSelectionPage.steps.switchToPreviewTab();
251
251
  });
252
252
 
253
- it('Text selection: When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
253
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
254
254
  textSelectionPage.steps.verifyPreviewScore(0, 20);
255
255
  textSelectionPage.steps.switchToGradingView();
256
256
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
@@ -260,7 +260,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
260
260
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
261
261
  });
262
262
 
263
- it('Text selection: When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
263
+ 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', () => {
264
264
  textSelectionPage.steps.resetQuestionPreview();
265
265
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
266
266
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
@@ -284,7 +284,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
284
284
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
285
285
  });
286
286
 
287
- it('Text selection: When the user attempts the question partially correct with some correct and some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
287
+ it('When the user attempts the question partially correct with some correct and some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
288
288
  textSelectionPage.steps.resetQuestionPreview();
289
289
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
290
290
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
@@ -308,7 +308,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
308
308
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
309
309
  });
310
310
 
311
- it('Text selection: When the user attempts the question correctly 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', () => {
311
+ it('When the user attempts the question correctly 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', () => {
312
312
  textSelectionPage.steps.resetQuestionPreview();
313
313
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
314
314
  textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
@@ -57,15 +57,6 @@ 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
-
69
60
  before(() => {
70
61
  switch (view) {
71
62
  case 'Question preview':
@@ -121,7 +112,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
121
112
  });
122
113
  };
123
114
 
124
- it(`Text selection - ${view} - When the user selects 'Grading' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers`, () => {
115
+ it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
125
116
  if (view === 'Grading view') {
126
117
  studentViewPage.steps.submitResponse();
127
118
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -140,8 +131,8 @@ describe('Create item page - Text selection: All or nothing ', () => {
140
131
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
141
132
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
142
133
  });
143
-
144
- it(`Text 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 all incorrect responses, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
134
+
135
+ 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', () => {
145
136
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
146
137
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
147
138
  if (view === 'Grading view') {
@@ -163,7 +154,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
163
154
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
164
155
  });
165
156
 
166
- it(`Text selection - ${view} - When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
157
+ it('When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
167
158
  if (view === 'Grading view') {
168
159
  studentViewPage.steps.clearResponses();
169
160
  };
@@ -187,7 +178,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
187
178
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
188
179
  });
189
180
 
190
- it(`Text selection - ${view} - When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
181
+ it('When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
191
182
  if (view === 'Grading view') {
192
183
  studentViewPage.steps.clearResponses();
193
184
  };
@@ -212,7 +203,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
212
203
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
213
204
  });
214
205
 
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`, () => {
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', () => {
216
207
  if (view === 'Grading view') {
217
208
  studentViewPage.steps.clearResponses();
218
209
  };
@@ -234,7 +225,6 @@ describe('Create item page - Text selection: All or nothing ', () => {
234
225
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
235
226
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
236
227
  utilities.verifyElementVisibilityState(textSelectionPage.correctAnswerSection(), 'notExist');
237
- cy.eyesCheckWindow(`Text selection - ${view} - Correct attempt`);
238
228
  });
239
229
  });
240
230
  });
@@ -82,12 +82,12 @@ describe('Create item page - Text selection : Preview contents', () => {
82
82
  });
83
83
  });
84
84
 
85
- it(`Text selection - ${view} - The text which is not available as option should not be interactive in preview tab`, () => {
85
+ it('The text which is not available as option should not be interactive in preview tab', () => {
86
86
  textSelectionPage.steps.verifyNonOptionTextIsNotInteractiveInPreviewTab(paragraphTextArray[3]);
87
87
  });
88
88
 
89
89
  if (view !== 'Grading view' && view !== 'Correct answer view') {
90
- it(`The selected options in specify possible options section should be displayed and by default all options should not be selected`, () => {
90
+ it('The selected options in specify possible options section should be displayed and by default all options should not be selected', () => {
91
91
  for (let index = 0; index < 3; index++) {
92
92
  utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), paragraphTextArray[index]);
93
93
  utilities.verifyElementVisibilityState(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), 'visible');
@@ -96,34 +96,34 @@ describe('Create item page - Text selection : Preview contents', () => {
96
96
  utilities.verifyElementCount(textSelectionPage.optionPreviewTab(), 3);
97
97
  });
98
98
 
99
- it(`When user hovers on the available options, then those options should be displayed in hover state highlight`, () => {
99
+ it('When user hovers on the available options, then those options should be displayed in hover state highlight', () => {
100
100
  for (let index = 0; index < 3; index++) {
101
101
  textSelectionPage.steps.verifyHoverStateOfOptionInPreviewTab(paragraphTextArray[index], "blue");
102
102
  };
103
103
  });
104
104
 
105
- it(`When user selects an option, then that option should be displayed in selected state`, () => {
105
+ it('When user selects an option, then that option should be displayed in selected state', () => {
106
106
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
107
107
  textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[0], "blue");
108
108
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
109
109
  textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[1], "blue");
110
110
  });
111
111
 
112
- it(`When user clicks on a selected option, then that option should be deselected`, () => {
112
+ it('When user clicks on a selected option, then that option should be deselected', () => {
113
113
  textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
114
114
  textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
115
115
  });
116
116
  } else if (view === 'Grading view') {
117
- it(`The question text should be displayed with the selected correct options and status message 'Your answer is incorrect' should be displayed`, () => {
117
+ it('The question text should be displayed with the selected correct options and status message \' Your answer is incorrect\' should be displayed', () => {
118
118
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[1]);
119
119
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
120
120
  });
121
121
 
122
- it(`The submitted answer options should not be editable`, () => {
122
+ it('The submitted answer options should not be editable', () => {
123
123
  textSelectionPage.steps.verifyAnswerSectionNotEditableInPreviewTab();
124
124
  });
125
125
  } else {
126
- it(`The question text should be displayed with the selected correct options`, () => {
126
+ it('The question text should be displayed with the selected correct options', () => {
127
127
  for (let index = 0; index < 2; index++) {
128
128
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[index]);
129
129
  };
@@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => {
60
60
  }
61
61
  });
62
62
 
63
- it(`${view} view - Tool audio player: When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed`, () => {
63
+ it('When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed', () => {
64
64
  utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
65
65
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
66
66
  utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
@@ -88,7 +88,7 @@ describe('Preview tab contents for all views', () => {
88
88
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
89
89
  });
90
90
 
91
- it(`${view} view - Tool audio player: When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.`, () => {
91
+ it('When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
92
92
  audioPlayerPage.steps.startPlayback();
93
93
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
94
94
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
@@ -100,7 +100,7 @@ describe('Preview tab contents for all views', () => {
100
100
  audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
101
101
  });
102
102
 
103
- it(`${view} view - Tool audio player: When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button`, () => {
103
+ it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
104
104
  audioPlayerPage.steps.verifyAudioPlaybackTimer('00:45', '00:45');
105
105
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
106
106
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');