itemengine-cypress-automation 1.0.294-applitools-09785a6.0 → 1.0.294

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 (114) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -26
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
  3. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  4. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -11
  5. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
  6. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -17
  7. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
  8. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -14
  9. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -17
  10. package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  11. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -15
  12. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
  13. package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  14. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -14
  15. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
  16. package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -15
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +3 -12
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
  21. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
  22. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
  23. package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
  24. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
  25. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -15
  26. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
  27. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -13
  28. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -13
  29. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +3 -12
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -14
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -13
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -13
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
  37. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
  38. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
  39. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
  40. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  41. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
  42. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +5 -15
  43. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
  44. package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
  45. package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
  46. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
  47. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
  48. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
  49. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
  50. package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
  51. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
  52. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
  53. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
  54. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
  55. package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
  56. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
  57. package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
  58. package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
  59. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
  60. package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
  61. package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  62. package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
  63. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  64. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
  65. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
  66. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
  67. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
  68. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
  69. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
  70. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
  71. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
  72. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
  73. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  74. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
  75. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  76. package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
  77. package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
  78. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -12
  79. package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
  80. package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
  81. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
  82. package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
  83. package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
  84. package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
  85. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
  86. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
  87. package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
  88. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
  89. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
  90. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
  91. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
  92. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
  93. package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
  94. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  95. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
  96. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
  97. package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
  98. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
  99. package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
  100. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
  101. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
  102. package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
  103. package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -13
  104. package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
  105. package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
  106. package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
  107. package/cypress/pages/components/optionsWrapperComponent.js +0 -3
  108. package/cypress/pages/createItemPage.js +2 -2
  109. package/cypress/pages/multipleSelectionPage.js +39 -1
  110. package/cypress/pages/singleSelectionPage.js +39 -1
  111. package/cypress/support/commands.js +0 -11
  112. package/cypress/support/e2e.js +0 -1
  113. package/package.json +1 -4
  114. package/cypress/e2e/applitools.config.js +0 -14
@@ -10,14 +10,6 @@ describe('Preview tab contents for all views', () => {
10
10
  cy.loginAs('admin');
11
11
  });
12
12
 
13
- beforeEach(() => {
14
- cy.startApplitools();
15
- });
16
-
17
- afterEach(() => {
18
- cy.eyesClose();
19
- });
20
-
21
13
  views.forEach((view) => {
22
14
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
23
15
  abortEarlySetup();
@@ -101,13 +93,12 @@ describe('Preview tab contents for all views', () => {
101
93
  fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
102
94
  });
103
95
 
104
- it(`${view} - Fill in the gaps over image drag and drop - The image uploaded in the \'Background image\' section should be displayed`, () => {
96
+ it('The image uploaded in the \'Background image\' section should be displayed', () => {
105
97
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
106
- cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - default state`);
107
98
  });
108
99
 
109
100
  if (view !== 'Grading view' && view !== 'Correct answer view') {
110
- it(`Fill in the gaps over image drag and drop When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
101
+ it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
111
102
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
112
103
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
113
104
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
@@ -126,7 +117,7 @@ describe('Preview tab contents for all views', () => {
126
117
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
127
118
  });
128
119
  } else if (view === 'Grading view') {
129
- it(`${view} - Fill in the gaps over image drag and drop: The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
120
+ it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
130
121
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
131
122
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
132
123
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
@@ -144,7 +135,7 @@ describe('Preview tab contents for all views', () => {
144
135
  fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewDropzoneOptionDisabled(2);
145
136
  });
146
137
  } else {
147
- it(`${view} - Fill in the gaps over image drag and drop - The dropzone should be displayed filled with answers`, () => {
138
+ it('The dropzone should be displayed filled with answers', () => {
148
139
  utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab(), 3);
149
140
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
150
141
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
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
  if (!grepTags || !grepTags.includes('smoke')) {
28
20
  describe('Question preview modes: Student view and Grading view', () => {
29
21
  abortEarlySetup();
@@ -111,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
111
103
  });
112
104
  };
113
105
 
114
- it(`${view}: FIG over image 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`, () => {
106
+ 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', () => {
115
107
  if (view === 'Grading view') {
116
108
  studentViewPage.steps.submitResponse();
117
109
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -129,7 +121,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
129
121
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
130
122
  });
131
123
 
132
- it(`${view}: FIG over image 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`, () => {
124
+ 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', () => {
133
125
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
134
126
  if (view === 'Grading view') {
135
127
  studentViewPage.steps.submitResponse();
@@ -147,7 +139,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
147
139
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
148
140
  });
149
141
 
150
- it(`${view}: FIG over image Dropdown - When the user attempts the question partially correct, 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
+ it('When the user attempts the question partially correct, 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', () => {
151
143
  if (view === 'Grading view') {
152
144
  studentViewPage.steps.clearResponses();
153
145
  };
@@ -168,7 +160,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
168
160
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
169
161
  });
170
162
 
171
- it(`${view}: FIG over image 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`, () => {
163
+ 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', () => {
172
164
  if (view === 'Grading view') {
173
165
  studentViewPage.steps.clearResponses();
174
166
  };
@@ -188,7 +180,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
188
180
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
189
181
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
190
182
  fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
191
- cy.eyesCheckWindow(`${view} - Attempting the question correctly`);
192
183
  });
193
184
  });
194
185
  });
@@ -14,14 +14,6 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
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
  views.forEach((view) => {
26
18
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
27
19
  abortEarlySetup();
@@ -75,10 +67,9 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
75
67
  }
76
68
  });
77
69
 
78
- it(`${view} - Fill in the gaps over image dropdown Question instructions should be visible`, () => {
70
+ it('Question instructions should be visible', () => {
79
71
  utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
80
72
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
81
- cy.eyesCheckWindow(`${view} - Fill in the gaps over image dropdown - defualt state`);
82
73
  });
83
74
 
84
75
  it('The image uploaded in the \'Background image\' section should be displayed', () => {
@@ -91,7 +82,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
91
82
  fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: '​' }, { dropdownIndex: 1, dropdownText: '​' }]);
92
83
  });
93
84
 
94
- it(`User should be able to select an option from the dropdown`, () => {
85
+ it('User should be select an option from the dropdown', () => {
95
86
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
96
87
  });
97
88
  } else if (view === 'Grading view') {
@@ -105,7 +96,7 @@ describe('Create item page - Fill in the gaps over image - dropdown - Preview co
105
96
  fillInTheGapsOverImageDropdownPage.steps.verifyDropdownIsDisabled(1);
106
97
  });
107
98
  } else {
108
- it(`The dropdowns should be displayed filled with correct answers`, () => {
99
+ it('The dropdowns should be displayed filled with correct answers', () => {
109
100
  utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 2);
110
101
  fillInTheGapsOverImageDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
111
102
  });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps over image - text: 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();
@@ -103,7 +95,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
103
95
  });
104
96
  };
105
97
 
106
- it(`${view}: FIG over image Text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration`, () => {
98
+ 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', () => {
107
99
  if (view === 'Grading view') {
108
100
  studentViewPage.steps.submitResponse();
109
101
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -121,7 +113,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
121
113
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
122
114
  });
123
115
 
124
- it(`${view}: FIG over image Text - 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`, () => {
116
+ 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', () => {
125
117
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
126
118
  if (view === 'Grading view') {
127
119
  studentViewPage.steps.submitResponse();
@@ -140,7 +132,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
140
132
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
141
133
  });
142
134
 
143
- it(`${view}: FIG over image Text - When the user attempts the question partially correct, 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`, () => {
135
+ it('When the user attempts the question partially correct, 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', () => {
144
136
  if (view === 'Grading view') {
145
137
  studentViewPage.steps.clearResponses();
146
138
  };
@@ -162,7 +154,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
162
154
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
163
155
  });
164
156
 
165
- it(`${view}: FIG over image Text - 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`, () => {
157
+ 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', () => {
166
158
  if (view === 'Grading view') {
167
159
  studentViewPage.steps.clearResponses();
168
160
  };
@@ -184,7 +176,6 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
184
176
  fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
185
177
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
186
178
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
187
- cy.eyesCheckWindow(`FIG over image text - ${view} view - Attempting the question correctly`);
188
179
  });
189
180
  });
190
181
  });
@@ -9,14 +9,6 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
9
9
  cy.loginAs('admin');
10
10
  });
11
11
 
12
- beforeEach(() => {
13
- cy.startApplitools();
14
- });
15
-
16
- afterEach(() => {
17
- cy.eyesClose();
18
- });
19
-
20
12
  views.forEach((view) => {
21
13
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
22
14
  abortEarlySetup();
@@ -70,10 +62,9 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
70
62
  }
71
63
  });
72
64
 
73
- it(`${view} - Fill in the gaps over image text Question instructions should be visible`, () => {
65
+ it('Question instructions should be visible', () => {
74
66
  utilities.verifyInnerText(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'Fill in the gaps');
75
67
  utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.questionInstructionsText(), 'visible');
76
- cy.eyesCheckWindow(`${view} - Fill in the gaps over image text - Filled answer input fields`);
77
68
  });
78
69
 
79
70
  it('The image uploaded in the \'Background image\' section should be displayed', () => {
@@ -86,12 +77,12 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
86
77
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
87
78
  });
88
79
 
89
- it(`User should be able to enter text in the answer input fields`, () => {
80
+ it('User should be able to enter text in the answer input fields', () => {
90
81
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
91
82
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
92
83
  });
93
84
  } else if (view === 'Grading view') {
94
- it(`The answer input fields should be displayed filled with answers`, () => {
85
+ it('The answer input fields should be displayed filled with answers', () => {
95
86
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
96
87
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
97
88
  });
@@ -102,7 +93,7 @@ describe('Create item page - Fill in the gaps over image - text - Preview conten
102
93
  fillInTheGapsOverImageTextPage.steps.verifyAnswerInputFieldDisabled(2);
103
94
  });
104
95
  } else {
105
- it(`The answer input fields should be displayed filled with correct answers`, () => {
96
+ it('The answer input fields should be displayed filled with correct answers', () => {
106
97
  utilities.verifyElementCount(fillInTheGapsOverImageTextPage.answerInputFieldPreviewTab(), 3);
107
98
  fillInTheGapsOverImageTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
108
99
  });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text: 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();
@@ -95,7 +87,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
95
87
  });
96
88
  };
97
89
 
98
- it(`${view}: FIG text - When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration and correct/incorrect status message should not be displayed`, () => {
90
+ 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', () => {
99
91
  if (view === 'Grading view') {
100
92
  studentViewPage.steps.submitResponse();
101
93
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -113,7 +105,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
113
105
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
114
106
  });
115
107
 
116
- it(`${view}: FIG text - 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`, () => {
108
+ 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', () => {
117
109
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
118
110
  if (view === 'Grading view') {
119
111
  studentViewPage.steps.submitResponse();
@@ -132,7 +124,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
132
124
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
133
125
  });
134
126
 
135
- it(`${view}: FIG text - When the user attempts the question partially correct, 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`, () => {
127
+ it('When the user attempts the question partially correct, 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', () => {
136
128
  if (view === 'Grading view') {
137
129
  studentViewPage.steps.clearResponses();
138
130
  };
@@ -154,7 +146,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
154
146
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
155
147
  });
156
148
 
157
- it(`${view}: FIG text - 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`, () => {
149
+ 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', () => {
158
150
  if (view === 'Grading view') {
159
151
  studentViewPage.steps.clearResponses();
160
152
  };
@@ -175,7 +167,6 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
175
167
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
176
168
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
177
169
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
178
- cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Attempting the question correctly`);
179
170
  });
180
171
  });
181
172
  });
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
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();
@@ -68,10 +60,9 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
68
60
  }
69
61
  });
70
62
 
71
- it(`Fill in the gaps text - ${view} Question instructions should be visible`, () => {
63
+ it('Question instructions should be visible', () => {
72
64
  utilities.verifyInnerText(fillInTheGapsTextPage.questionInstructionsText(), 'Fill in the gaps');
73
65
  utilities.verifyElementVisibilityState(fillInTheGapsTextPage.questionInstructionsText(), 'visible');
74
- cy.eyesCheckWindow(`Fill in the gaps text - ${view} - Default question state`);
75
66
  });
76
67
 
77
68
  if (view !== 'Grading view' && view !== 'Correct answer view') {
@@ -81,12 +72,12 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
81
72
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
82
73
  });
83
74
 
84
- it(`Fill in the gaps text - ${view} User should be able to enter text in the answer input fields`, () => {
75
+ it('User should be able to enter text in the answer input fields', () => {
85
76
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
86
77
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
87
78
  });
88
79
  } else if (view === 'Grading view') {
89
- it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with answers`, () => {
80
+ it('The answer input fields should be displayed filled with answers', () => {
90
81
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
91
82
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
92
83
  });
@@ -97,7 +88,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
97
88
  fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
98
89
  });
99
90
  } else {
100
- it(`Fill in the gaps text - ${view} The answer input fields should be displayed filled with correct answers`, () => {
91
+ it('The answer input fields should be displayed filled with correct answers', () => {
101
92
  utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
102
93
  fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
103
94
  });
@@ -116,7 +116,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
116
116
  });
117
117
  };
118
118
 
119
- it(`Graphing: ${view} - 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`, () => {
119
+ 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', () => {
120
120
  if (view === 'Grading view') {
121
121
  studentViewPage.steps.submitResponse();
122
122
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -148,7 +148,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
148
148
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
149
149
  });
150
150
 
151
- it(`Graphing: ${view} - 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`, () => {
151
+ 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', () => {
152
152
  graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
153
153
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
154
154
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
@@ -184,7 +184,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
184
184
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
185
185
  });
186
186
 
187
- it(`Graphing: ${view} - 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`, () => {
187
+ 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', () => {
188
188
  if (view === 'Grading view') {
189
189
  studentViewPage.steps.clearResponses();
190
190
  }
@@ -223,7 +223,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
223
223
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
224
224
  });
225
225
 
226
- it(`Graphing: ${view} - 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`, () => {
226
+ 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', () => {
227
227
  if (view === 'Grading view') {
228
228
  studentViewPage.steps.clearResponses();
229
229
  }
@@ -266,7 +266,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
266
266
  graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
267
267
  });
268
268
 
269
- it(`Graphing: ${view} - 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`, () => {
269
+ 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', () => {
270
270
  if (view === 'Grading view') {
271
271
  studentViewPage.steps.clearResponses();
272
272
  }
@@ -14,14 +14,6 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
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 (views.includes('Grading view')) {
26
18
  describe('Grading view contents', { tags: 'smoke' }, () => {
27
19
  abortEarlySetup();
@@ -67,14 +59,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
67
59
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
68
60
  });
69
61
 
70
- it('Graphing: The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
62
+ it('The graph plotted by the author in the edit tab should be displayed in the grading view', () => {
71
63
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionSineWave(), 'visible');
72
64
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 7, yRange: 20 }, { x: 1, xRange: 20, y: 8, yRange: 20 }]);
73
65
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionCircle(), 'visible');
74
66
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }]);
75
67
  utilities.verifyElementVisibilityState(graphingPage.gradingViewQuestionLine(), 'visible');
76
68
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
77
- cy.eyesCheckWindow('Graphing - The graph plotted by the author in the edit tab should be displayed in the grading view');
78
69
  });
79
70
 
80
71
  it('Correct answer label should be displayed', () => {
@@ -173,14 +164,13 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
173
164
  utilities.verifyElementVisibilityState(graphingPage.graphControlOptionPreviewTab(), 'notExist');
174
165
  });
175
166
 
176
- it('Graphing: The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
167
+ it('The graph plotted by the author along with the correct answer should be displayed in the correct answer view', () => {
177
168
  utilities.verifyElementVisibilityState(graphingPage.graphLine(), 'visible');
178
169
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }])
179
170
  utilities.verifyElementVisibilityState(graphingPage.graphPolygon(), 'visible');
180
171
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }])
181
172
  utilities.verifyElementVisibilityState(graphingPage.graphCircle(), 'visible');
182
173
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 0, xRange: 20, y: 0, yRange: 20 }, { x: 0, xRange: 20, y: 5, yRange: 20 }])
183
- cy.eyesCheckWindow('Graphing - The graph plotted by the author should be displayed in the correct answer view');
184
174
  });
185
175
 
186
176
  it('The points alloted to the question should be displayed', () => {
@@ -15,14 +15,6 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
15
15
  cy.loginAs('admin');
16
16
  });
17
17
 
18
- beforeEach(() => {
19
- cy.startApplitools();
20
- });
21
-
22
- afterEach(() => {
23
- cy.eyesClose();
24
- });
25
-
26
18
  views.forEach((view) => {
27
19
  describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
28
20
  abortEarlySetup();
@@ -94,14 +86,14 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
94
86
  graphingPage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
95
87
  });
96
88
 
97
- it(`By default, the move control should be in enabled state and all other controls should be disabled`, () => {
89
+ it('By default, the move control should be in enabled state and all other controls should be disabled', () => {
98
90
  utilities.verifyElementNotDisabled(graphingPage.graphControlOptionPreviewTab('Move'));
99
91
  controlOptions.splice(1, controlOptions.length).forEach((controlOption) => {
100
92
  utilities.verifyElementDisabled(graphingPage.graphControlOptionPreviewTab(controlOption));
101
93
  });
102
94
  });
103
95
 
104
- it(`User should be able to plot points using the \'Point\' tool options`, () => {
96
+ it('User should be able to plot points using the \'Point\' tool options', () => {
105
97
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
106
98
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -4, xRange: 20, y: -4, yRange: 20 }]);
107
99
  });
@@ -170,12 +162,11 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
170
162
  utilities.verifyElementCount(graphingPage.graphSineAndParabolaPreviewTab(), 2);
171
163
  });
172
164
 
173
- it(`${view} - Graphing - User should be able to draw a polygon using the \'Polygon\' tool option`, () => {
165
+ it('User should be able to draw a polygon using the \'Polygon\' tool option', () => {
174
166
  graphingPage.steps.selectGraphToolOptionPreviewTab('Polygon');
175
167
  graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
176
168
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }]);
177
169
  utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
178
- cy.eyesCheckWindow(`${view} - Graphing - Plotted points using all tools`);
179
170
  });
180
171
 
181
172
  it('When the user clicks on the \'Undo\' control option then the latest action should be reversed', () => {
@@ -188,7 +179,7 @@ describe('Create item page - Graphing - Preview contents in all views', () => {
188
179
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'visible');
189
180
  });
190
181
 
191
- it(`When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset`, () => {
182
+ it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
192
183
  graphingPage.steps.selectGraphControlOptionPreviewTab('Reset');
193
184
  graphingPage.steps.confirmReset();
194
185
  utilities.verifyElementVisibilityState(graphingPage.graphPolygonPreviewTab(), 'notExist');
@@ -13,15 +13,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
13
13
  cy.loginAs('admin');
14
14
  });
15
15
 
16
- beforeEach(() => {
17
- cy.startApplitools();
18
- });
19
-
20
- afterEach(() => {
21
- cy.eyesClose();
22
- });
23
-
24
-
25
16
  if (!grepTags || !grepTags.includes('smoke')) {
26
17
  describe('Question preview modes: Student view and Grading view', () => {
27
18
  abortEarlySetup();
@@ -118,7 +109,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
118
109
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
119
110
  });
120
111
 
121
- it(`${view}: Grid fill - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview`, () => {
112
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
122
113
  gridFillPage.steps.selectCellPreviewTab(0, 3);
123
114
  if (view === 'Grading view') {
124
115
  studentViewPage.steps.submitResponse();
@@ -137,7 +128,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
137
128
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
138
129
  });
139
130
 
140
- it(`${view}: Grid fill - When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
131
+ it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
141
132
  if (view === 'Grading view') {
142
133
  studentViewPage.steps.clearResponses();
143
134
  };
@@ -159,7 +150,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
159
150
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
160
151
  });
161
152
 
162
- it(`${view}: Grid fill - When the user attempts the question partially correct with one correct and one incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
153
+ it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
163
154
  if (view === 'Grading view') {
164
155
  studentViewPage.steps.clearResponses();
165
156
  };
@@ -182,7 +173,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
182
173
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
183
174
  });
184
175
 
185
- it(`${view}: Grid fill - When the user attempts the question partially correct by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed`, () => {
176
+ it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
186
177
  if (view === 'Grading view') {
187
178
  studentViewPage.steps.clearResponses();
188
179
  };
@@ -207,7 +198,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
207
198
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
208
199
  });
209
200
 
210
- it(`${view}: Grid fill - When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview`, () => {
201
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is correct\' should be displayed in the question preview', () => {
211
202
  if (view === 'Grading view') {
212
203
  studentViewPage.steps.clearResponses();
213
204
  };
@@ -226,7 +217,6 @@ describe('Create item page - Grid fill: All or nothing', () => {
226
217
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
227
218
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
228
219
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
229
- cy.eyesCheckWindow(`Grid fill - ${view} view - Attempting the question correctly`);
230
220
  });
231
221
  });
232
222
  });