itemengine-cypress-automation 1.0.39 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +0 -669
  2. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsBasic.js +317 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsRowProperties.js +372 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesCategoriesSection.js} +1 -295
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +0 -58
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsSection.js +304 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js → dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js} +3 -30
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
  12. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCell.js +39 -0
  13. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
  14. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
  15. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponse.js +39 -0
  17. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
  18. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
  19. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
  20. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCell.js +57 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +43 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +49 -0
  23. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +43 -0
  24. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponses.js +57 -0
  25. package/package.json +1 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +0 -145
  27. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +0 -141
  28. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +0 -165
  29. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +0 -420
@@ -0,0 +1,304 @@
1
+ import { dragAndDropIntoCategoriesPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+
5
+ describe('Create Item page - Drag and drop into categories: Question instructions, Category, Row', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question Instructions input field - Edit tab', () => {
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.verifyQuestionInstructionsInputFieldEditTab();
18
+ });
19
+
20
+ describe('Question Instructions input field - Preview tab', () => {
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.verifyQuestionInstructionsInputFieldPreviewTab();
28
+ });
29
+
30
+ describe('Row - Basic', () => {
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
+ cy.barsPreLoaderWait();
36
+ });
37
+
38
+ it('\'Row\' label should be displayed', () => {
39
+ dragAndDropIntoCategoriesPage.rowLabel()
40
+ .verifyInnerText('Row')
41
+ .should('be.visible');
42
+ });
43
+
44
+ it('By default, 1 empty \'Row\' input field with \'Enter Row title\' placeholder text, numeration and disabled \'Delete row\' icon button should be displayed', () => {
45
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowInputFields(1);
46
+ dragAndDropIntoCategoriesPage.steps.verifyDefaultStateOfRowInputField(0);
47
+ dragAndDropIntoCategoriesPage.steps.verifyDisabledDeleteRowButton(0);
48
+ });
49
+
50
+ it('The user should be able to enter text in the \'Row\' input field and when the user enters text in the input field, the placeholder should disappear', () => {
51
+ dragAndDropIntoCategoriesPage.steps.verifyPlaceholderTextInRowInputField(0);
52
+ dragAndDropIntoCategoriesPage.steps.enterTextInRowInputField(0, 'Row 1');
53
+ dragAndDropIntoCategoriesPage.steps.verifyPlaceholderTextNotExistInRowInputField(0);
54
+ });
55
+
56
+ it('CSS of \'Row\' section', { tags: 'css' }, () => {
57
+ dragAndDropIntoCategoriesPage.rowLabel()
58
+ .verifyCSS(css.color.sectionHeading, css.fontSize.normal, css.fontWeight.semibold);
59
+ dragAndDropIntoCategoriesPage.rowInputField()
60
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
61
+ .within(() => {
62
+ dragAndDropIntoCategoriesPage.deleteButton()
63
+ .should('have.css', 'opacity', '0.5')
64
+ .verifyPseudoClassBeforeProperty('color', css.color.deleteIcon);
65
+ dragAndDropIntoCategoriesPage.rowInputField()
66
+ .verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
67
+ });
68
+ dragAndDropIntoCategoriesPage.addRowButton()
69
+ .verifyCSS(css.color.secondaryBtnActive, css.fontSize.default, css.fontWeight.medium);
70
+ });
71
+
72
+ it('When the user hovers disabled \'Delete row\' icon button of the row input field, \'Minimum one row is required\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Delete row\' icon button', () => {
73
+ dragAndDropIntoCategoriesPage.steps.verifyDisabledRowInputFieldTooltip();
74
+ });
75
+
76
+ it('CSS of disabled \'Delete row\' tooltip', { tags: 'css' }, () => {
77
+ dragAndDropIntoCategoriesPage.rowInputField()
78
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
79
+ .within(() => {
80
+ dragAndDropIntoCategoriesPage.deleteButton()
81
+ .trigger('mouseover', { force: true });
82
+ });
83
+ dragAndDropIntoCategoriesPage.tooltipText()
84
+ .should('be.visible')
85
+ .verifyCSS(css.color.whiteText, css.fontSize.normal, css.fontWeight.regular);
86
+ dragAndDropIntoCategoriesPage.rowInputField()
87
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
88
+ .within(() => {
89
+ dragAndDropIntoCategoriesPage.deleteButton()
90
+ .trigger('mouseout', { force: true });
91
+ });
92
+ dragAndDropIntoCategoriesPage.tooltipText()
93
+ .should('not.exist');
94
+ });
95
+
96
+ it('Accessibility of disabled \'Delete row\' tooltip', { tags: 'a11y' }, () => {
97
+ dragAndDropIntoCategoriesPage.rowInputField()
98
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
99
+ .within(() => {
100
+ dragAndDropIntoCategoriesPage.deleteButton()
101
+ .trigger('mouseover', { force: true });
102
+ });
103
+ cy.checkAccessibility(dragAndDropIntoCategoriesPage.tooltipText());
104
+ dragAndDropIntoCategoriesPage.rowInputField()
105
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
106
+ .within(() => {
107
+ dragAndDropIntoCategoriesPage.deleteButton()
108
+ .trigger('mouseout', { force: true });
109
+ });
110
+ dragAndDropIntoCategoriesPage.tooltipText()
111
+ .should('not.exist');
112
+ });
113
+
114
+ it('\'Add row\' button should be present', () => {
115
+ dragAndDropIntoCategoriesPage.addRowButton()
116
+ .verifyInnerText('Add row')
117
+ .should('be.visible');
118
+ });
119
+
120
+ it('When user adds a row using the \'Add row\' button then added row input field should be empty and displayed with \'Enter Row title\' placeholder text, option numeration and delete button', () => {
121
+ dragAndDropIntoCategoriesPage.steps.addRow();
122
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowInputFields(2);
123
+ dragAndDropIntoCategoriesPage.steps.verifyDefaultStateOfRowInputField(1);
124
+ dragAndDropIntoCategoriesPage.steps.verifyEnabledDeleteRowButton(1);
125
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfRowInputFields();
126
+ });
127
+
128
+ it('When the user focuses in and out of the \'Row\' input field, no error message should appear', () => {
129
+ dragAndDropIntoCategoriesPage.steps.focusInAndFocusOutOfRowInputField(1)
130
+ dragAndDropIntoCategoriesPage.steps.verifyErrorMessageIsNotDisplayed();
131
+ });
132
+
133
+ it('When more than 1 row input fields are present, the \'Delete row\' icon buttons of the row input field should get enabled', () => {
134
+ dragAndDropIntoCategoriesPage.steps.verifyEnabledDeleteRowButton(0);
135
+ dragAndDropIntoCategoriesPage.steps.verifyEnabledDeleteRowButton(1);
136
+ });
137
+
138
+ it('CSS of enabled \'Delete row\' icon button', { tags: 'css' }, () => {
139
+ dragAndDropIntoCategoriesPage.rowInputField()
140
+ .eq(0)
141
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
142
+ .within(() => {
143
+ dragAndDropIntoCategoriesPage.deleteButton()
144
+ .should('have.css', 'opacity', '1')
145
+ .verifyPseudoClassBeforeProperty('color', css.color.deleteIcon);
146
+ });
147
+ });
148
+
149
+ it('Accessibility of enabled \'Delete row\' icon button', { tags: 'a11y' }, () => {
150
+ cy.checkAccessibility(dragAndDropIntoCategoriesPage.rowInputField().parents('[class*="OptionsComponentstyles__TitleWrapper"]'));
151
+ });
152
+
153
+ it('When the user hovers over the enabled \'Delete row\' icon button, then \'Delete row\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Delete row\' icon button', () => {
154
+ dragAndDropIntoCategoriesPage.steps.verifyEnabledDeleteRowInputFieldTooltip(0);
155
+ });
156
+
157
+ it('CSS of enabled \'Delete row\' tooltip', { tags: 'css' }, () => {
158
+ dragAndDropIntoCategoriesPage.rowInputField()
159
+ .eq(0)
160
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
161
+ .within(() => {
162
+ dragAndDropIntoCategoriesPage.deleteButton()
163
+ .trigger('mouseover');
164
+ });
165
+ dragAndDropIntoCategoriesPage.tooltipText()
166
+ .should('be.visible')
167
+ .verifyCSS(css.color.whiteText, css.fontSize.normal, css.fontWeight.regular);
168
+ dragAndDropIntoCategoriesPage.rowInputField()
169
+ .eq(0)
170
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
171
+ .within(() => {
172
+ dragAndDropIntoCategoriesPage.deleteButton()
173
+ .trigger('mouseout');
174
+ });
175
+ dragAndDropIntoCategoriesPage.tooltipText()
176
+ .should('not.exist');
177
+ });
178
+
179
+ it('Accessibility of enabled \'Delete row\' tooltip', { tags: 'a11y' }, () => {
180
+ dragAndDropIntoCategoriesPage.rowInputField()
181
+ .eq(0)
182
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
183
+ .within(() => {
184
+ dragAndDropIntoCategoriesPage.deleteButton()
185
+ .trigger('mouseover');
186
+ });
187
+ cy.checkAccessibility(dragAndDropIntoCategoriesPage.tooltipText());
188
+ dragAndDropIntoCategoriesPage.rowInputField()
189
+ .eq(0)
190
+ .parents('[class*="OptionsComponentstyles__TitleWrapper"]')
191
+ .within(() => {
192
+ dragAndDropIntoCategoriesPage.deleteButton()
193
+ .trigger('mouseout');
194
+ });
195
+ dragAndDropIntoCategoriesPage.tooltipText()
196
+ .should('not.exist');
197
+ });
198
+
199
+ it('When user clicks on the \'Delete row\' icon button then the respective row input field should get deleted, option numeration should change accordingly', () => {
200
+ dragAndDropIntoCategoriesPage.steps.deleteRowInputField(0);
201
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowInputFields(1);
202
+ dragAndDropIntoCategoriesPage.steps.verifyNumerationOfRowInputFields();
203
+ });
204
+
205
+ it('When only one row input field is present, the \'Delete row\' icon button should get disabled', () => {
206
+ dragAndDropIntoCategoriesPage.steps.verifyDisabledDeleteRowButton(0);
207
+ });
208
+ });
209
+
210
+ describe('Row - Set correct answer section', () => {
211
+ abortEarlySetup();
212
+ before(() => {
213
+ cy.log('Navigating to drag and drop into categories question type');
214
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
215
+ cy.barsPreLoaderWait();
216
+ });
217
+
218
+ it('By default, one row with no row title should be displayed in the \'Set correct answer\' section', () => {
219
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInSetCorrectAnswerSection(1);
220
+ dragAndDropIntoCategoriesPage.setCorrectAnswerSectionRowTitle()
221
+ .should('not.exist');
222
+ });
223
+
224
+ it('When the user adds a row title, a row title should be displayed in the \'Set correct answer\' section', () => {
225
+ dragAndDropIntoCategoriesPage.steps.enterTextInRowInputField(0, 'Row 1');
226
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInSetCorrectAnswerSection(0, 'Row 1');
227
+ });
228
+
229
+ it('CSS of \'Row\' in the \'Set correct answer\' section', { tags: 'css' }, () => {
230
+ dragAndDropIntoCategoriesPage.setCorrectAnswerSectionRowTitle()
231
+ .should('have.css', 'background-color', css.color.titleContainerBg)
232
+ .and('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`)
233
+ .find('.question-text-wrapper')
234
+ .verifyCSS(css.color.text, css.fontSize.normal, css.fontWeight.semibold);
235
+ });
236
+
237
+ it('When user adds a row using the \'Add row\' button then added row should be displayed with a blank row title in the \'Set correct answer\' section', () => {
238
+ dragAndDropIntoCategoriesPage.steps.addRow();
239
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInSetCorrectAnswerSection(2);
240
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowTitlesInSetCorrectAnswerSection(2);
241
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInSetCorrectAnswerSection(1, '');
242
+ });
243
+
244
+ it('When the user deletes a row, the respective row should get removed from the \'Set correct answer\' section and the titles of other rows should not get affected', () => {
245
+ cy.log('Entering text in 2nd row input field')
246
+ dragAndDropIntoCategoriesPage.steps.enterTextInRowInputField(1, 'Row 2');
247
+ dragAndDropIntoCategoriesPage.steps.deleteRowInputField(0);
248
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInSetCorrectAnswerSection(1);
249
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowTitlesInSetCorrectAnswerSection(1);
250
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInSetCorrectAnswerSection(0, 'Row 2');
251
+ });
252
+ });
253
+
254
+ describe('Row - Preview tab', () => {
255
+ abortEarlySetup();
256
+ before(() => {
257
+ cy.log('Navigating to drag and drop into categories question type');
258
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
259
+ cy.barsPreLoaderWait();
260
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
261
+ });
262
+
263
+ it('When the user has not added any row title, no row title should be displayed in the \'Preview\' tab', () => {
264
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInPreviewTab(1);
265
+ dragAndDropIntoCategoriesPage.previewTabRowTitle()
266
+ .should('not.exist');
267
+ });
268
+
269
+ it('When the user adds a row title, a row title should be displayed in the \'Preview\' tab', () => {
270
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
271
+ dragAndDropIntoCategoriesPage.steps.enterTextInRowInputField(0, 'Row 1');
272
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
273
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInPreviewTab(0, 'Row 1');
274
+ });
275
+
276
+ it('CSS of \'Row\' in the \'Preview\' tab', { tags: 'css' }, () => {
277
+ dragAndDropIntoCategoriesPage.previewTabRowTitle()
278
+ .should('have.css', 'background-color', css.color.titleContainerBg)
279
+ .and('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`)
280
+ .find('.question-text-wrapper')
281
+ .verifyCSS(css.color.text, css.fontSize.normal, css.fontWeight.semibold);
282
+ });
283
+
284
+ it('When user adds a row using the \'Add row\' button then added row should be displayed with a blank row title in the \'Preview\' tab', () => {
285
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
286
+ dragAndDropIntoCategoriesPage.steps.addRow();
287
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
288
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInPreviewTab(2);
289
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowTitlesInPreviewTab(2);
290
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInPreviewTab(1, '');
291
+ });
292
+
293
+ it('When the user deletes a row, the respective row should get removed from the \'Preview\' tab and the titles of other rows should not get affected', () => {
294
+ dragAndDropIntoCategoriesPage.steps.switchToEditTab();
295
+ cy.log('Entering text in 2nd row input field')
296
+ dragAndDropIntoCategoriesPage.steps.enterTextInRowInputField(1, 'Row 2');
297
+ dragAndDropIntoCategoriesPage.steps.deleteRowInputField(0);
298
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
299
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowsInPreviewTab(1);
300
+ dragAndDropIntoCategoriesPage.steps.verifyCountOfRowTitlesInPreviewTab(1);
301
+ dragAndDropIntoCategoriesPage.steps.verifyRowTitleInPreviewTab(0, 'Row 2');
302
+ });
303
+ });
304
+ });
@@ -1,6 +1,6 @@
1
- import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
- import { dragAndDropIntoCategoriesPage } from "../../../pages/dragAndDropIntoCategoriesPage";
3
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
4
 
5
5
  describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
6
  before(() => {
@@ -40,33 +40,6 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
40
40
  dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
41
41
  });
42
42
 
43
- describe('Question preview: AutoScored - All or nothing - grouped options layout with alternate answer', () => {
44
- abortEarlySetup();
45
- before(() => {
46
- cy.log('Navigating to drag and drop into categories question type');
47
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
48
- cy.barsPreLoaderWait();
49
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
50
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
51
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
52
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
53
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
54
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
55
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
56
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
57
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
58
- dragAndDropIntoCategoriesPage.steps.allotPoints(5);
59
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
60
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
61
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
62
- });
63
-
64
- dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswer();
65
-
66
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
67
- });
68
-
69
-
70
43
  describe('Question Preview: AutoScored - All or Nothing - grouped options layout with identical draggable response options in preview tab', () => {
71
44
  let groupedOptions = [['Bat', 'Eagle', 'Whale', 'Platypus'], ['Bat', 'Parrot', 'Ostrich', 'Flying squirrel']];
72
45
  abortEarlySetup();
@@ -0,0 +1,33 @@
1
+ import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - All or nothing - grouped options layout with alternate answer', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
18
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
19
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
20
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
21
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
26
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
29
+ });
30
+
31
+ dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerWhenCorrectPointsAreLessThanAlternatePoints();
32
+ });
33
+ });
@@ -0,0 +1,35 @@
1
+ import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - All or nothing - grouped options layout with alternate answer', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
18
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
19
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
20
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
21
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
26
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
29
+ });
30
+
31
+ dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
32
+
33
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
34
+ });
35
+ });
@@ -0,0 +1,33 @@
1
+ import { dragAndDropIntoCategoriesAllOrNothingScoring } from "../../../../pages/dragAndDropIntoCategoriesAllOrNothingScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - All or nothing - grouped options layout with alternate answer', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
18
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
19
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
20
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
21
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
26
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
29
+ });
30
+
31
+ dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerWhenCorrectPointsAreGreaterThanAlternatePoints();
32
+ });
33
+ });
@@ -0,0 +1,39 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored: Partial - score for each cell - grouped options layout', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
22
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
24
+ });
25
+
26
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
27
+
28
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
29
+
30
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCell('Partial - score for each cell');
31
+
32
+ //https://redmine.zeuslearning.com/issues/536492
33
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
34
+
35
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
36
+
37
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
38
+ });
39
+ });
@@ -0,0 +1,42 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(32, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each cell');
41
+ });
42
+ });
@@ -0,0 +1,49 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each cell');
41
+
42
+ //https://redmine.zeuslearning.com/issues/536492
43
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
44
+
45
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
46
+
47
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
48
+ });
49
+ });
@@ -0,0 +1,42 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
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
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(32, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each cell');
41
+ });
42
+ });