itemengine-cypress-automation 1.0.29 → 1.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +963 -0
  2. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesClickAndDrop.js +669 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +205 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js +143 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +145 -0
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +141 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +165 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +420 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedSetCorrectAnswerCheckboxes.js +266 -0
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesHeaderSection.js +83 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScored.js +184 -0
  12. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesResponseOptionsSection.js +112 -0
  13. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsAndCategoriesSection.js +569 -0
  14. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSetCorrectAnswerSection.js +130 -0
  15. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardAllOrNothing.js +186 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachCell.js +145 -0
  17. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachResponse.js +140 -0
  18. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardSetCorrectAnswerCheckboxes.js +234 -0
  19. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenCell.js +165 -0
  20. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenResponse.js +420 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSwitchingCases.js +45 -0
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -292
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
  24. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js +1 -180
  25. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +186 -0
  26. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -87
  27. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +95 -0
  28. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -86
  29. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsWithAlternateAnswer.js +94 -0
  30. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -75
  31. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +83 -0
  32. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAllOrNothingwithAlternateAnswer.js +74 -0
  33. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAutoScoredAllOrNothingScoring.js +0 -67
  34. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -74
  35. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +82 -0
  36. package/package.json +1 -1
@@ -0,0 +1,266 @@
1
+ import { dragAndDropIntoCategoriesPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ let animals = [['Bat', 'Platypus', 'Panda', 'Zebra'],
4
+ ['Peacock', 'Falcon', 'Eagle', 'Tiger'],
5
+ ['Parrot', 'Lion', 'Whale', 'Elephant'],
6
+ ['Giraffe', 'Kangaroo', 'Ostrich', 'Flying squirrel']
7
+ ];
8
+ let groupTitles = ['Group A', 'Group B', 'Group C', 'Group D'];
9
+
10
+ describe('Create Item page - Drag and drop into categories: Randomize options, Reuse options, Hide drag handle functionalities for \'Grouped\' response option layout', () => {
11
+ before(() => {
12
+ cy.loginAs('admin');
13
+ });
14
+
15
+ describe('Randomize options - Functionality : Edit tab', () => {
16
+ abortEarlySetup();
17
+ before(() => {
18
+ cy.log('Navigate to drag and drop into categories question type');
19
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
20
+ cy.barsPreLoaderWait();
21
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
22
+ });
23
+
24
+ it('When the \'Randomize options\' functionality is disabled, then the group container as well as the options inside the group should be displayed in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
25
+ animals.forEach((options, index) => {
26
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(index, options);
27
+ });
28
+ });
29
+
30
+ it('When the user enables the \'Randomize options\' functionality, then the group container as well as the options inside the group should be in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
31
+ dragAndDropIntoCategoriesPage.steps.checkRandomizeOptionsCheckbox();
32
+ animals.forEach((options, index) => {
33
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(index, options);
34
+ });
35
+ });
36
+ });
37
+
38
+ describe('Randomize options - Functionality : Preview tab', () => {
39
+ let optionsArray = [];
40
+ let groupTitleArray = [];
41
+ abortEarlySetup();
42
+ before(() => {
43
+ cy.log('Navigate to drag and drop into categories question type');
44
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
45
+ cy.barsPreLoaderWait();
46
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
47
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
48
+ });
49
+
50
+ it('When the \'Randomize options\' functionality is disabled, then the group container as well as the options inside the group should be displayed in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
51
+ groupTitles.forEach((groupTitle, groupIndex) => {
52
+ dragAndDropIntoCategoriesPage.steps.verifyGroupTitleInPreviewTab(groupIndex, groupTitle);
53
+ })
54
+ animals.forEach((options, index) => {
55
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(index, options);
56
+ });
57
+ });
58
+
59
+ //https://redmine.zeuslearning.com/issues/536969
60
+ it('When the user enables the \'Randomize options\' functionality, then the group container as well as the options inside the group should be displayed in a random order', () => {
61
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
62
+ dragAndDropIntoCategoriesPage.steps.checkRandomizeOptionsCheckbox();
63
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
64
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizationOfGroupsInPreviewTab(groupTitles);
65
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[0], animals[0]);
66
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[1], animals[1]);
67
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[2], animals[2]);
68
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[3], animals[3]);
69
+ optionsArray = dragAndDropIntoCategoriesPage.steps.getOptionsArray('drag and drop into categories');
70
+ groupTitleArray = dragAndDropIntoCategoriesPage.steps.getGroupTitleArray();
71
+ });
72
+
73
+ it('When the user switches to \'Edit tab\' and does not modify any question properties, then the order of group containers as well as the options inside the group should not change', () => {
74
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
75
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
76
+ groupTitleArray.forEach((groupTitle, groupIndex) => {
77
+ dragAndDropIntoCategoriesPage.steps.verifyGroupTitleInPreviewTab(groupIndex, groupTitle);
78
+ });
79
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableResponsesPreviewTab('drag and drop into categories', optionsArray);
80
+ });
81
+
82
+ it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of group containers as well as the options inside the group should change', () => {
83
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
84
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
85
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
86
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizationOfGroupsInPreviewTab(groupTitles);
87
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[0], animals[0]);
88
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[1], animals[1]);
89
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[2], animals[2]);
90
+ dragAndDropIntoCategoriesPage.steps.verifyRandomizeOptionOrderInGroup(groupTitles[3], animals[3]);
91
+ dragAndDropIntoCategoriesPage.steps.verifyRerandomizedOptionsOrder(optionsArray, 'drag and drop into categories');
92
+ dragAndDropIntoCategoriesPage.steps.verifyRerandomizedGroupOrder(groupTitleArray);
93
+ });
94
+
95
+ it('When the user disables the \'Randomize options\' functionality, then the order of group containers as well as the options inside the group should be displayed in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
96
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
97
+ dragAndDropIntoCategoriesPage.steps.uncheckRandomizeOptionsCheckbox();
98
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
99
+ animals.forEach((options, index) => {
100
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(index, options);
101
+ });
102
+ });
103
+ });
104
+
105
+ describe('Reuse options - Functionality : Edit tab', () => {
106
+ abortEarlySetup();
107
+ before(() => {
108
+ cy.log('Navigate to drag and drop into categories question type');
109
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
110
+ cy.barsPreLoaderWait();
111
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
112
+ });
113
+
114
+ it('When the \'Reuse options\' functionality is disabled, then on setting correct answer in the category cell, the draggable options should get removed from the respective group of the response container', () => {
115
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
116
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, ['Platypus', 'Panda', 'Zebra'])
117
+ });
118
+
119
+ it('When the user enables the \'Reuse options\' functionality, then on setting correct answer in the category cell, the draggable options should persist in respective group of the response container', () => {
120
+ cy.log('Pre step: Removing the set correct answer option from the category cell')
121
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfSetCorrectAnswerSection('Bat');
122
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, animals[0]);
123
+ cy.log('Checking the reuse option checkbox and setting the correct answer option')
124
+ dragAndDropIntoCategoriesPage.steps.checkReuseOptionsCheckbox();
125
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
126
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfSetCorrectAnswerSection(0, ['Bat']);
127
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, animals[0]);
128
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(1, animals[1]);
129
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(2, animals[2]);
130
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(3, animals[3]);
131
+ });
132
+
133
+ it('The user should be able to use the same draggable option for multiple category cells', () => {
134
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 1);
135
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfSetCorrectAnswerSection(0, ['Bat']);
136
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfSetCorrectAnswerSection(1, ['Bat']);
137
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, animals[0]);
138
+ });
139
+
140
+ it('When the user removes the draggable option and moves it into the response container, only one option should be displayed in the respective group', () => {
141
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfSetCorrectAnswerSection('Bat');
142
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfSetCorrectAnswerSection('Bat');
143
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, animals[0]);
144
+ });
145
+
146
+ it('When the user disables the \'Reuse options\' functionality, the duplicate answer set as correct answer should get removed from the category cell and the draggable option should also not exist in the response container of the \'Set correct answer\' section', () => {
147
+ cy.log('Pre step: Setting identical options as correct responses')
148
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
149
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 1);
150
+ dragAndDropIntoCategoriesPage.steps.uncheckReuseOptionsCheckbox();
151
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfSetCorrectAnswerSection(0, ['Bat']);
152
+ dragAndDropIntoCategoriesPage.steps.verifyEmptyStateOfCategoryCellInSetCorrectAnswerSection(1);
153
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInSetCorrectAnswerSection(0, ['Platypus', 'Panda', 'Zebra'])
154
+ });
155
+ });
156
+
157
+ describe('Reuse options - Functionality: Preview tab', () => {
158
+ abortEarlySetup();
159
+ before(() => {
160
+ cy.log('Navigate to drag and drop into categories question type');
161
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
162
+ cy.barsPreLoaderWait();
163
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
164
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
165
+ });
166
+
167
+ it('When the \'Reuse options\' functionality is disabled, then on attempting the question, the draggable options should get removed from the response container', () => {
168
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
169
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, ['Platypus', 'Panda', 'Zebra'])
170
+ });
171
+
172
+ it('When the \'Reuse options\' functionality is enabled, then on attempting the question, the draggable options should persist in the response container', () => {
173
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
174
+ dragAndDropIntoCategoriesPage.steps.checkReuseOptionsCheckbox();
175
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
176
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
177
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfPreviewTab(0, ['Bat']);
178
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, animals[0]);
179
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, animals[1]);
180
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(2, animals[2]);
181
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(3, animals[3]);
182
+ });
183
+
184
+ it('The user should be able to use the same draggable option for multiple category cells', () => {
185
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 1);
186
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfPreviewTab(0, ['Bat']);
187
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfPreviewTab(1, ['Bat']);
188
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, animals[0]);
189
+ });
190
+
191
+ it('When the user removes the draggable option and moves it into the response container, only one option should be displayed in the respective group', () => {
192
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfPreviewTab('Bat');
193
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfPreviewTab('Bat');
194
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, animals[0]);
195
+ });
196
+
197
+ it('When the user disables the \'Reuse options\' functionality, then on attempting the question, the draggable options should get removed from the response container', () => {
198
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
199
+ dragAndDropIntoCategoriesPage.steps.uncheckReuseOptionsCheckbox();
200
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
201
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
202
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInCategoryCellOfPreviewTab(0, ['Bat']);
203
+ dragAndDropIntoCategoriesPage.steps.verifyEmptyStateOfCategoryCellInPreviewTab(1);
204
+ dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, ['Platypus', 'Panda', 'Zebra'])
205
+ });
206
+ });
207
+
208
+ describe('Reuse options - Scoring', () => {
209
+ before(() => {
210
+ cy.log('Navigate to drag and drop into categories question type');
211
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
212
+ cy.barsPreLoaderWait();
213
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
214
+ dragAndDropIntoCategoriesPage.steps.checkReuseOptionsCheckbox();
215
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
216
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 1);
217
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
218
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
219
+ });
220
+
221
+ dragAndDropIntoCategoriesPage.tests.verifyReuseOptionScoring();
222
+ });
223
+
224
+ describe('Hide drag handle - Functionality: Edit tab', () => {
225
+ before(() => {
226
+ cy.log('Navigate to drag and drop into categories question type');
227
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
228
+ dragAndDropIntoCategoriesPage.steps.selectResponseOptionsLayout('Grouped');
229
+ cy.barsPreLoaderWait();
230
+ });
231
+
232
+ it('When the \'Hide drag handle\' functionality is disabled, then the draggable options displayed in response container of the \'Set correct answer\' section should have a drag handle', () => {
233
+ dragAndDropIntoCategoriesPage.steps.verifyDragIconVisibleInOptionsInSetCorrectAnswerSection('drag and drop into categories');
234
+ });
235
+
236
+ it('When the user enables the \'Hide drag handle\' functionality, then the draggable options displayed in response container of the \'Set correct answer\' section should not have a drag handle', () => {
237
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
238
+ dragAndDropIntoCategoriesPage.steps.checkHideDragHandleCheckbox();
239
+ dragAndDropIntoCategoriesPage.steps.verifyDragIconNotVisibleInOptionsInSetCorrectAnswerSection('drag and drop into categories');
240
+ });
241
+
242
+ dragAndDropIntoCategoriesPage.tests.verifyCSSAndA11yOfCheckedStateOfHideDragHandleCheckbox();
243
+ });
244
+
245
+ describe('Hide drag handle - Functionality: Preview tab', () => {
246
+ before(() => {
247
+ cy.log('Navigate to drag and drop into categories question type');
248
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
249
+ dragAndDropIntoCategoriesPage.steps.selectResponseOptionsLayout('Grouped');
250
+ cy.barsPreLoaderWait();
251
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
252
+ });
253
+
254
+ it('When the \'Hide drag handle\' functionality is disabled, then the draggable options displayed in response container of the preview tab should have a drag handle', () => {
255
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
256
+ dragAndDropIntoCategoriesPage.steps.verifyDragIconVisibleInOptionsInPreviewTab('drag and drop into categories');
257
+ });
258
+
259
+ it('When the \'Hide drag handle\' functionality is enabled, then the draggable options displayed in response container of the preview tab should not have a drag handle', () => {
260
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
261
+ dragAndDropIntoCategoriesPage.steps.checkHideDragHandleCheckbox();
262
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
263
+ dragAndDropIntoCategoriesPage.steps.verifyDragIconNotVisibleInOptionsInPreviewTab('drag and drop into categories');
264
+ });
265
+ });
266
+ });
@@ -0,0 +1,83 @@
1
+ import { dialogBoxBase, dragAndDropIntoCategoriesPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const options = ['Bat', 'Cat'];
4
+
5
+ describe('Create question page - drag and drop into categories: Header section and Saving question', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Header section contents', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories')
15
+ });
16
+
17
+ dragAndDropIntoCategoriesPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Drag and drop into categories');
18
+ });
19
+
20
+ describe('Tabs section', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ cy.log('Navigating to drag and drop into categories question type');
24
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories')
25
+ });
26
+
27
+ dragAndDropIntoCategoriesPage.tests.verifyTabsSection();
28
+ });
29
+
30
+ describe('Cancel button', () => {
31
+ abortEarlySetup();
32
+ before(() => {
33
+ cy.log('Navigating to drag and drop into categories question type');
34
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories')
35
+ });
36
+
37
+ dragAndDropIntoCategoriesPage.tests.verifyCancelButton('drag and drop into categories');
38
+ });
39
+
40
+ describe('Save Question button', () => {
41
+ abortEarlySetup();
42
+ before(() => {
43
+ cy.log('Navigating to drag and drop into categories question type');
44
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories')
45
+ cy.barsPreLoaderWait();
46
+ });
47
+
48
+ describe('Validation error messages', () => {
49
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
50
+
51
+ it('Validation error messages should be displayed below required input fields', () => {
52
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessage()
53
+ for (let index = 0; index < 2; index++) {
54
+ dragAndDropIntoCategoriesPage.steps.verifyOptionsErrorMessageIsDisplayed(index)
55
+ }
56
+ dragAndDropIntoCategoriesPage.steps.verifyPointsFieldErrorMessage();
57
+ dragAndDropIntoCategoriesPage.steps.verifySetCorrectAnswerErrorIconIsDisplayed();
58
+ dragAndDropIntoCategoriesPage.steps.verifySetCorrectAnswerSectionErrorMessage();
59
+ });
60
+
61
+ it('Validation error messages should disappear when required input fields are filled', () => {
62
+ dragAndDropIntoCategoriesPage.steps.addQuestionInstructions();
63
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
64
+ dragAndDropIntoCategoriesPage.steps.allotPoints(20);
65
+ dragAndDropIntoCategoriesPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
66
+ dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(options);
67
+ dragAndDropIntoCategoriesPage.steps.verifyOptionsErrorMessageIsNotDisplayed(1);
68
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
69
+ dragAndDropIntoCategoriesPage.steps.verifyErrorMessageIsNotDisplayed();
70
+ dragAndDropIntoCategoriesPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
71
+ });
72
+
73
+ dragAndDropIntoCategoriesPage.tests.verifya11yOfCreateItemWrapperContents();
74
+ });
75
+
76
+ describe('Saving a question', () => {
77
+ it('When user has filled all the mandatory fields then on clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
78
+ dragAndDropIntoCategoriesPage.steps.saveAQuestionAndVerifySnackbar();
79
+ });
80
+ dragAndDropIntoCategoriesPage.tests.verifySavedSuccessfullySnackbarCSSanda11y();
81
+ });
82
+ });
83
+ });
@@ -0,0 +1,184 @@
1
+ import { dragAndDropIntoCategoriesPage } from "../../../pages/dragAndDropIntoCategoriesPage";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+ const answerResponseOptions = ['Bat', 'Eagle', 'Platypus', 'Ostrich', 'Whale', 'Parrot', 'Flying squirrel', 'Peacock', 'Falcon'];
5
+ const correctTabAnswerArray = [['Bat'], ['Eagle', 'Parrot'], ['Platypus', 'Whale'], ['Ostrich']];
6
+ const cellNumerationArray = ['1', '2', '3', '4'];
7
+
8
+ describe('Create item page - drag and drop into categories: Preview tab scoring section', () => {
9
+ before(() => {
10
+ cy.loginAs('admin');
11
+ });
12
+
13
+ describe('Question Preview: Manually scored', () => {
14
+ abortEarlySetup();
15
+ before(() => {
16
+ cy.log('Navigating to drag and drop into categories question type');
17
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
18
+ cy.barsPreLoaderWait();
19
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
20
+ dragAndDropIntoCategoriesPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored');
21
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
22
+ });
23
+
24
+ it('When the user switches to the preview tab, the question instruction, the question preview and draggable options should be displayed in the preview tab', () => {
25
+ dragAndDropIntoCategoriesPage.questionInstructionsText()
26
+ .should('have.text', 'Fill the categories with the right answer.');
27
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInPreviewTab(2);
28
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInPreviewTab(4);
29
+ dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(0, 'Mammal');
30
+ dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(1, 'Not mammal');
31
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowTitlesInPreviewTab(2);
32
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInPreviewTab(2);
33
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInPreviewTab(0, 'Can fly');
34
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInPreviewTab(1, 'Cannot fly');
35
+ dragAndDropIntoCategoriesPage.steps.verifyDraggableResponsesPreviewTab('drag and drop into categories', answerResponseOptions);
36
+ });
37
+
38
+ dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
39
+ });
40
+
41
+ describe('Question Preview: Non scored', () => {
42
+ abortEarlySetup();
43
+ before(() => {
44
+ cy.log('Navigating to drag and drop into categories question type');
45
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
46
+ cy.barsPreLoaderWait();
47
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
48
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
49
+ dragAndDropIntoCategoriesPage.steps.selectAScoringTypeFromScoringTypeDropdown('Non scored');
50
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
51
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
52
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
+ });
54
+
55
+ dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerLabelAndCheckboxExistAndPreviewScoreNotExistInPreviewTab();
56
+
57
+ it('When the user selects \'Show correct answer\' checkbox without attempting the question, numeration should appear in each category cell, correct/incorrect cell border or icons should not be displayed, a correct answer section with \'Correct answers:\' label and all correct answers should be displayed below the question preview', () => {
58
+ dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
59
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
60
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
61
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
62
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswersLabel();
63
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctTabAnswerArray, [1, 2, 3, 4]);
64
+ });
65
+
66
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
67
+
68
+ it('When the user attempts the question incorrectly and selects \'Show correct answer\' checkbox, red cross-mark icon should be displayed besides the incorrect answer responses, correct/incorrect border and icon for cell should not be displayed, incorrect answer border and label for the question should not appear and the correct answer section with all correct answers along with category cell numeration should be displayed', () => {
69
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 2);
70
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 3);
71
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 1);
72
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 0);
73
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 2);
74
+
75
+ dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
76
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
77
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
78
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
79
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
80
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
81
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
82
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctTabAnswerArray, [1, 2, 3, 4]);
83
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
84
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
85
+ .should('not.exist');
86
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
87
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
88
+
89
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
90
+
91
+ cy.log('When the user clicks on \'Check answer\' button, red cross-mark icon should be displayed besides the incorrect answer responses, correct/incorrect border and icon for cell should not be displayed, incorrect answer border and label for the question should not appear and no correct answer section should be displayed')
92
+ dragAndDropIntoCategoriesPage.steps.checkAnswer();
93
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
94
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
95
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
96
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(3);
97
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(4);
98
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
99
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
100
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
101
+ .should('not.exist');
102
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
103
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
104
+ });
105
+
106
+ it('When the user attempts the question partially correct and selects \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer response, correct/incorrect border and icon for cell should not be displayed, incorrect answer border and label for the question should not appear and the correct answer section should display the incorrect/not attempted options from the correct tab along with category cell numeration', () => {
107
+ dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
108
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
109
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
110
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 2);
111
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
112
+
113
+ dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
114
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
115
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
116
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
117
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
118
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
119
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Parrot'], ['Platypus'], ['Ostrich']], [2, 3, 4]);
120
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
121
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
122
+ .should('not.exist');
123
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
124
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
125
+
126
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
127
+
128
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer response, correct/incorrect border and icon for cell should not be displayed, incorrect answer border and label for the question should not appear and no correct answer section should be displayed')
129
+ dragAndDropIntoCategoriesPage.steps.checkAnswer();
130
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
131
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
132
+ dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
133
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
134
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
135
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
136
+ .should('not.exist');
137
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
138
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
139
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
140
+ });
141
+
142
+ it('When the user attempts the question fully correct and selects \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the correct answer responses, correct/incorrect border and icon for cell should not be displayed, correct answer border and label for the question should not appear and no correct answer section should be displayed', () => {
143
+ dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
144
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
145
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
146
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Parrot', 1);
147
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Whale', 2);
148
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Platypus', 2);
149
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Ostrich', 3);
150
+
151
+ dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
152
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryCellsInQuestionPreview(cellNumerationArray);
153
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
154
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
155
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
156
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
157
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
158
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
159
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
160
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
161
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
162
+ .should('not.exist');
163
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
164
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
165
+
166
+ dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
167
+
168
+ cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the correct answer responses, correct/incorrect border and icon for cell should not be displayed, correct answer border and label for the question should not appear and no correct answer section should be displayed')
169
+ dragAndDropIntoCategoriesPage.steps.checkAnswer();
170
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
171
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
172
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(2);
173
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(3);
174
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(4);
175
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(5);
176
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
177
+ cy.log('Correct/Incorrect border and icon for cell should not be displayed, incorrect answer border for the question and label should not be displayed below the question preview')
178
+ dragAndDropIntoCategoriesPage.correctIncorrectAnswerLabel()
179
+ .should('not.exist');
180
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectCellBorderNotExists();
181
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectBorderNotVisible();
182
+ });
183
+ });
184
+ });