itemengine-cypress-automation 1.0.295-applitools-219e3f5.0 → 1.0.295-e2e6thFebFixes-348b431.0

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 (105) 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/cypress/e2e/applitools.config.js +0 -14
@@ -14,14 +14,6 @@ describe('Create item page - Matching: All or nothing ', () => {
14
14
  cy.loginAs('admin');
15
15
  });
16
16
 
17
- beforeEach(() => {
18
- cy.startApplitools();
19
- });
20
-
21
- afterEach(() => {
22
- cy.eyesClose();
23
- });
24
-
25
17
  if (!grepTags || !grepTags.includes('smoke')) {
26
18
  describe('Question preview modes: Student view and Grading view', () => {
27
19
  abortEarlySetup();
@@ -105,7 +97,7 @@ describe('Create item page - Matching: All or nothing ', () => {
105
97
  });
106
98
  };
107
99
 
108
- it(`${view}: Matching - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, then correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
100
+ it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
109
101
  if (view === 'Grading view') {
110
102
  studentViewPage.steps.submitResponse();
111
103
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -124,7 +116,7 @@ describe('Create item page - Matching: All or nothing ', () => {
124
116
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
125
117
  });
126
118
 
127
- it(`${view}:Matching - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
119
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
128
120
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Bear', dropzoneIndex: 0 }, { optionText: 'Eagle', dropzoneIndex: 1 }, { optionText: 'Fish', dropzoneIndex: 2 }]);
129
121
  if (view === 'Grading view') {
130
122
  studentViewPage.steps.submitResponse();
@@ -143,7 +135,7 @@ describe('Create item page - Matching: All or nothing ', () => {
143
135
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
144
136
  });
145
137
 
146
- it(`${view}: Matching - When the user attempts the question partially correct with some correct, some incomplete, 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 responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
138
+ it('When the user attempts the question partially correct with some correct, some incomplete, 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 responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
147
139
  if (view === 'Grading view') {
148
140
  studentViewPage.steps.clearResponses();
149
141
  };
@@ -165,7 +157,7 @@ describe('Create item page - Matching: All or nothing ', () => {
165
157
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
166
158
  });
167
159
 
168
- it(`${view}: Matching - When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
160
+ it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
169
161
  if (view === 'Grading view') {
170
162
  studentViewPage.steps.clearResponses();
171
163
  };
@@ -187,7 +179,7 @@ describe('Create item page - Matching: All or nothing ', () => {
187
179
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
188
180
  });
189
181
 
190
- it(`${view}: Matching - 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`, () => {
182
+ 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', () => {
191
183
  if (view === 'Grading view') {
192
184
  studentViewPage.steps.clearResponses();
193
185
  };
@@ -208,7 +200,6 @@ describe('Create item page - Matching: All or nothing ', () => {
208
200
  matchingPage.steps.verifyCorrectOptionIcon(2);
209
201
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
210
202
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
211
- cy.eyesCheckWindow(`Matching ${view} - Attempting the question correctly`);
212
203
  });
213
204
  });
214
205
  });
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  views.forEach((view) => {
23
15
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
24
16
  abortEarlySetup();
@@ -99,16 +91,15 @@ describe('Create item page - Matching - Preview contents in all views', () => {
99
91
  }
100
92
  });
101
93
 
102
- it(`Question instructions should be visible`, () => {
94
+ it('Question instructions should be visible', () => {
103
95
  utilities.verifyInnerText(matchingPage.questionInstructionsText(), 'Fill the categories with the right answer.');
104
96
  utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
105
97
  });
106
98
 
107
- it(`Matching - ${view} - The prompt should have image, equation, bold text displayed`, () => {
99
+ it('The prompt should have image, equation, bold text displayed', () => {
108
100
  matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
109
101
  matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
110
102
  matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
111
- cy.eyesCheckWindow(`Matching - ${view} - Prompt with image, equation, bold text`);
112
103
  });
113
104
 
114
105
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -121,7 +112,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
121
112
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(2, '');
122
113
  });
123
114
 
124
- it(`User should be able to drag and drop image, bold text and equation options in the dropzone`, () => {
115
+ it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
125
116
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
126
117
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
127
118
  matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
@@ -98,7 +98,7 @@ describe('Create item page - Matching: All or nothing ', () => {
98
98
  });
99
99
  };
100
100
 
101
- it(`${view}: Matching dropdown - When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
101
+ it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
102
102
  if (view === 'Grading view') {
103
103
  studentViewPage.steps.submitResponse();
104
104
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -119,7 +119,7 @@ describe('Create item page - Matching: All or nothing ', () => {
119
119
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
120
120
  });
121
121
 
122
- it(`${view}: Matching dropdown - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
122
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
123
123
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
124
124
  if (view === 'Grading view') {
125
125
  studentViewPage.steps.submitResponse();
@@ -138,7 +138,7 @@ describe('Create item page - Matching: All or nothing ', () => {
138
138
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
139
139
  });
140
140
 
141
- it(`${view}: Matching dropdown - When the user attempts the question partially correct with some correct, some incomplete 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 responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
141
+ it('When the user attempts the question partially correct with some correct, some incomplete, 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 responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
142
142
  if (view === 'Grading view') {
143
143
  studentViewPage.steps.clearResponses();
144
144
  };
@@ -160,7 +160,7 @@ describe('Create item page - Matching: All or nothing ', () => {
160
160
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
161
161
  });
162
162
 
163
- it(`${view}: Matching dropdown - When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed`, () => {
163
+ it('When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
164
164
  if (view === 'Grading view') {
165
165
  studentViewPage.steps.clearResponses();
166
166
  };
@@ -182,7 +182,7 @@ describe('Create item page - Matching: All or nothing ', () => {
182
182
  matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
183
183
  });
184
184
 
185
- it(`${view}: Matching dropdown - 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('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', () => {
186
186
  if (view === 'Grading view') {
187
187
  studentViewPage.steps.clearResponses();
188
188
  };
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
11
11
  cy.loginAs('admin');
12
12
  });
13
13
 
14
- beforeEach(() => {
15
- cy.startApplitools();
16
- });
17
-
18
- afterEach(() => {
19
- cy.eyesClose();
20
- });
21
-
22
14
  views.forEach((view) => {
23
15
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
24
16
  abortEarlySetup();
@@ -88,19 +80,18 @@ describe('Create item page - Matching - Preview contents in all views', () => {
88
80
  utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
89
81
  });
90
82
 
91
- it(`Matching dropdown - ${view} - The prompt should have image, equation, bold text displayed`, () => {
83
+ it('The prompt should have image, equation, bold text displayed', () => {
92
84
  matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
93
85
  matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
94
86
  matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
95
- cy.eyesCheckWindow(`Matching dropdown - ${view} - Prompt with image, equation, bold text`);
96
87
  });
97
88
 
98
89
  if (view !== 'Grading view' && view !== 'Correct answer view') {
99
- it(`User should be able to attempt the question by selecting option from the dropdowns`, () => {
90
+ it('User should be able to attempt the question by selecting option from the dropdowns', () => {
100
91
  matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
101
92
  });
102
93
  } else if (view === 'Grading view') {
103
- it(`The dropdowns should be displayed filled with answers`, () => {
94
+ it('The dropdowns should be displayed filled with answers', () => {
104
95
  utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
105
96
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
106
97
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
@@ -118,7 +109,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
118
109
  matchingPage.steps.verifyDropdownIsDisabled(2);
119
110
  });
120
111
  } else {
121
- it(`The dropdowns should be displayed filled with answers`, () => {
112
+ it('The dropdowns should be displayed filled with answers', () => {
122
113
  utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
123
114
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
124
115
  matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
@@ -12,14 +12,6 @@ describe('Create Item page - Multiple selection: 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();
@@ -101,7 +93,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
101
93
  });
102
94
  };
103
95
 
104
- it(`${view}: Multiple selection - When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section`, () => {
96
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
105
97
  if (view === 'Grading view') {
106
98
  studentViewPage.steps.submitResponse();
107
99
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -124,7 +116,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
124
116
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
125
117
  });
126
118
 
127
- it(`${view}: Multiple 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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section`, () => {
119
+ 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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
128
120
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
129
121
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
130
122
  if (view === 'Grading view') {
@@ -148,7 +140,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
148
140
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
149
141
  });
150
142
 
151
- it(`${view}: Multiple selection - 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 no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section`, () => {
143
+ 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 no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\'should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
152
144
  if (view === 'Grading view') {
153
145
  studentViewPage.steps.clearResponses();
154
146
  }
@@ -168,14 +160,14 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
168
160
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
169
161
  multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
170
162
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
171
- //correct answer section
172
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
173
- multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
174
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
175
- multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
163
+ //correct answer section
164
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
165
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
166
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
167
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
176
168
  });
177
169
 
178
- it(`${view}: Multiple selection - 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 status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed`, () => {
170
+ 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 status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed', () => {
179
171
  if (view === 'Grading view') {
180
172
  studentViewPage.steps.clearResponses();
181
173
  }
@@ -195,8 +187,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
195
187
  multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
196
188
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
197
189
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
198
- multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
199
- cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question correctly`);
190
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist()
200
191
  });
201
192
  });
202
193
  });
@@ -12,14 +12,6 @@ describe('Create item page - Multiple 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
-
23
15
  views.forEach((view) => {
24
16
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
25
17
  abortEarlySetup();
@@ -85,18 +77,17 @@ describe('Create item page - Multiple selection: Preview contents', () => {
85
77
  utilities.verifyElementVisibilityState(multipleSelectionPage.questionInstructionsText(), 'visible');
86
78
  });
87
79
 
88
- it(`Multiple selection - ${view} - When the user has added image, bold text and equation to the options input they should be displayed in the ${view}`, () => {
80
+ it(`When the user has added image, bold text and equation to the options input they should be displayed in the ${view}`, () => {
89
81
  multipleSelectionPage.steps.verifyImageInPreviewTab(0);
90
82
  multipleSelectionPage.steps.verifyBoldTextInPreviewTab(1);
91
83
  multipleSelectionPage.steps.verifyEquationTextInPreviewTab(2);
92
- cy.eyesCheckWindow(`Multiple selection - ${view} - Image, Bold Text, and Equation Display`);
93
84
  });
94
85
 
95
86
  if (view !== 'Grading view' && view !== 'Correct answer view') {
96
87
  it(`All the options should be in unchecked state`, () => {
97
88
  for (let index = 0; index < 4; index++) {
98
89
  multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabUncheckedState(index);
99
- }
90
+ };
100
91
  });
101
92
 
102
93
  it(`User should able to select options in the ${view}`, () => {
@@ -11,14 +11,6 @@ describe('Create item page - Multiple 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
-
22
14
  if (!grepTags || !grepTags.includes('smoke')) {
23
15
  describe('Question preview modes: Student view and Grading view', () => {
24
16
  abortEarlySetup();
@@ -101,7 +93,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
101
93
  });
102
94
  };
103
95
 
104
- it(`${view}: Multiple selection grid - When the user selects \'Grading\' view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers`, () => {
96
+ it('When the user selects \'Grading\' view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers', () => {
105
97
  if (view === 'Grading view') {
106
98
  studentViewPage.steps.submitResponse();
107
99
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -118,7 +110,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
118
110
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
119
111
  });
120
112
 
121
- it(`${view}: Multiple selection grid - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
113
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
122
114
  multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
123
115
  if (view === 'Grading view') {
124
116
  studentViewPage.steps.submitResponse();
@@ -136,7 +128,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
136
128
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
137
129
  });
138
130
 
139
- it(`${view}: Multiple selection grid - When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
131
+ it('When the user attempts the question partially correct with incorrect responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
140
132
  if (view === 'Grading view') {
141
133
  studentViewPage.steps.clearResponses();
142
134
  };
@@ -159,7 +151,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
159
151
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
160
152
  });
161
153
 
162
- it(`${view}: Multiple selection grid - When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed`, () => {
154
+ it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
163
155
  if (view === 'Grading view') {
164
156
  studentViewPage.steps.clearResponses();
165
157
  };
@@ -182,7 +174,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
182
174
  multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
183
175
  });
184
176
 
185
- it(`${view}: Multiple selection grid - 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`, () => {
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', () => {
186
178
  if (view === 'Grading view') {
187
179
  studentViewPage.steps.clearResponses();
188
180
  };
@@ -204,7 +196,6 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
204
196
  multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
205
197
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
206
198
  multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
207
- cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question correctly`);
208
199
  });
209
200
  });
210
201
  });
@@ -6,20 +6,11 @@ const css = Cypress.env('css');
6
6
  let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
7
7
  const views = utilities.getViews(previewContentViews);
8
8
  var itemReferenceID = "";
9
-
10
9
  describe('Create item page - Multiple selection grid: Preview contents', () => {
11
10
  before(() => {
12
11
  cy.loginAs('admin');
13
12
  });
14
13
 
15
- beforeEach(() => {
16
- cy.startApplitools();
17
- });
18
-
19
- afterEach(() => {
20
- cy.eyesClose();
21
- });
22
-
23
14
  views.forEach((view) => {
24
15
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
25
16
  abortEarlySetup();
@@ -91,7 +82,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
91
82
  utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsText(), 'visible');
92
83
  });
93
84
 
94
- it(`Multiple selection grid - The question grid as set by the user should be displayed in the ${view}`, () => {
85
+ it(`The question grid as set by the user should be displayed in the ${view}`, () => {
95
86
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
96
87
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
97
88
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
@@ -102,17 +93,16 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
102
93
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
103
94
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No checkbox');
104
95
  multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No checkbox');
105
- cy.eyesCheckWindow(`Multiple selection grid - ${view} - Question grid displayed`);
106
96
  });
107
97
 
108
98
  if (view !== 'Grading view' && view !== 'Correct answer view') {
109
- it(`Multiple selection grid - When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
99
+ it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
110
100
  multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
111
101
  multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
112
102
  multipleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
113
103
  });
114
104
 
115
- it(`Multiple selection grid - User should be able to select options in the ${view}`, () => {
105
+ it(`User should be able to select options in the ${view}`, () => {
116
106
  multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
117
107
  });
118
108
  } else if (view === 'Grading view') {
@@ -123,7 +113,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
123
113
  multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 4, column: 1 });
124
114
  });
125
115
 
126
- it('Multiple selection grid - The content in the grid should not be editable', () => {
116
+ it('The content in the grid should not be editable', () => {
127
117
  multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
128
118
  });
129
119
  } else {
@@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
107
107
  });
108
108
  };
109
109
 
110
- it(`${view}: Number line Horizontal - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed`, () => {
110
+ it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
111
111
  if (view === 'Grading view') {
112
112
  studentViewPage.steps.submitResponse();
113
113
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -128,7 +128,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
128
128
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
129
129
  });
130
130
 
131
- it(`${view}: Number line Horizontal - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph`, () => {
131
+ it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
132
132
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
133
133
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
134
134
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
@@ -152,7 +152,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
152
152
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
153
153
  });
154
154
 
155
- it(`${view}: Number line Horizontal - When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph`, () => {
155
+ it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
156
156
  if (view === 'Grading view') {
157
157
  studentViewPage.steps.clearResponses();
158
158
  }
@@ -177,7 +177,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
177
177
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
178
178
  });
179
179
 
180
- it(`${view}: Number line Horizontal - When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph`, () => {
180
+ it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
181
181
  if (view === 'Grading view') {
182
182
  studentViewPage.steps.clearResponses();
183
183
  }
@@ -210,7 +210,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
210
210
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
211
211
  });
212
212
 
213
- it(`${view}: Number line Horizontal - When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed`, () => {
213
+ it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
214
214
  if (view === 'Grading view') {
215
215
  studentViewPage.steps.clearResponses();
216
216
  }
@@ -17,14 +17,6 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
17
17
  cy.loginAs('admin');
18
18
  });
19
19
 
20
- beforeEach(() => {
21
- cy.startApplitools();
22
- });
23
-
24
- afterEach(() => {
25
- cy.eyesClose();
26
- });
27
-
28
20
  if (views.includes('Grading view')) {
29
21
  describe('Grading view contents', { tags: 'smoke' }, () => {
30
22
  abortEarlySetup();
@@ -77,14 +69,13 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
77
69
  utilities.verifyElementVisibilityState(numberLinePage.correctAnswersLabel(), 'visible');
78
70
  });
79
71
 
80
- it('Number line Horizontal - Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
72
+ it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
81
73
  numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5]);
82
74
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
83
75
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
84
76
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -5]);
85
77
  numberLinePage.steps.verifyCorrectRayOnNumberLineCorrectAnswerSection('left', range, -7);
86
78
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
87
- cy.eyesCheckWindow(`Number line Horizontal - Grading view contents`);
88
79
  });
89
80
 
90
81
  it('Points and the total score should be displayed', () => {
@@ -156,11 +147,10 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
156
147
  });
157
148
  });
158
149
 
159
- it('Number line Horizontal - The correct answer set by user should be displayed in the correct answer view', () => {
150
+ it('The correct answer set by user should be displayed in the correct answer view', () => {
160
151
  numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5, 2]);
161
152
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
162
153
  numberLinePage.steps.verifyCorrectRayOnNumberLinePreviewTab('left', range, -7);
163
- cy.eyesCheckWindow(`Number line Horizontal - Correct answer view contents`);
164
154
  });
165
155
 
166
156
  it('The points alloted to the question should be displayed', () => {
@@ -16,14 +16,6 @@ describe('Create item page: Number line - Preview contents in all views', () =>
16
16
  cy.loginAs('admin');
17
17
  });
18
18
 
19
- beforeEach(() => {
20
- cy.startApplitools();
21
- });
22
-
23
- afterEach(() => {
24
- cy.eyesClose();
25
- });
26
-
27
19
  views.forEach((view) => {
28
20
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
29
21
  abortEarlySetup();
@@ -92,11 +84,10 @@ describe('Create item page: Number line - Preview contents in all views', () =>
92
84
  numberLinePage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
93
85
  });
94
86
 
95
- it(`${view} view - Number line Horizontal: By default, all controls should be in disabled state`, () => {
87
+ it('By default, all controls should be in disabled state', () => {
96
88
  controlOptions.forEach((controlOption) => {
97
89
  utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab(controlOption));
98
90
  });
99
- cy.eyesCheckWindow(`${view} view - Number line Horizontal: Preview contents`);
100
91
  });
101
92
 
102
93
  it('Accessibility of preview content', { tags: 'a11y' }, () => {
@@ -143,7 +134,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
143
134
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -8);
144
135
  });
145
136
 
146
- it(`${view} view - Number line Horizontal: User should be able to draw a ray wave using the \'Open right ray\' tool option`, () => {
137
+ it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
147
138
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
148
139
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 7);
149
140
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [7]);
@@ -185,7 +176,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
185
176
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 7);
186
177
  });
187
178
 
188
- it(`${view} view - Number line Horizontal:When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
179
+ it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
189
180
  numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
190
181
  numberLinePage.steps.confirmReset();
191
182
  utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
@@ -201,7 +192,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
201
192
  numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -5);
202
193
  });
203
194
 
204
- it(`${view} view - Number line Horizontal: User should be able to draw a ray using the \'Right ray\' tool option`, () => {
195
+ it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
205
196
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
206
197
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 6);
207
198
  numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);