itemengine-cypress-automation 1.0.40 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesRowsSection.js} +1 -266
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js +116 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCell.js +39 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponse.js +39 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCell.js +57 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponses.js +57 -0
- package/package.json +1 -1
@@ -0,0 +1,68 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
const options = ['Bat', 'Cat']
|
5
|
+
|
6
|
+
describe('Create Item Page: drag and drop into categories: Edit tab scoring types and set correct answer section (Correct answer tab)', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Edit tab \'Scoring\' section for Manually Scored scoring type', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigate to fill in the gaps - dropdown question type');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
});
|
18
|
+
|
19
|
+
it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored');
|
21
|
+
});
|
22
|
+
|
23
|
+
it('When the user has selected \'Manually Scored\' option from the Scoring Type dropdown then the \'Set Correct Answer\' section should not be displayed; \'Scoring subtype\' dropdown should not be displayed; \'Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed; and inside \'Additional settings\' accordion \'Check answer\' section i.e. \'Allow students to check answer\' checkbox should not be displayed', () => {
|
24
|
+
dragAndDropIntoCategoriesPage.setCorrectAnswerLabel()
|
25
|
+
.should('not.exist');
|
26
|
+
dragAndDropIntoCategoriesPage.scoringSubtypeLabel()
|
27
|
+
.should('not.exist');
|
28
|
+
dragAndDropIntoCategoriesPage.scoringSubtypeDropdown()
|
29
|
+
.should('not.exist');
|
30
|
+
dragAndDropIntoCategoriesPage.penaltyPointsInputField()
|
31
|
+
.should('not.exist');
|
32
|
+
dragAndDropIntoCategoriesPage.penaltyPointsLabel()
|
33
|
+
.should('not.exist');
|
34
|
+
dragAndDropIntoCategoriesPage.rounddownScoreCheckbox()
|
35
|
+
.should('not.exist');
|
36
|
+
dragAndDropIntoCategoriesPage.rounddownScoreCheckboxLabel()
|
37
|
+
.should('not.exist');
|
38
|
+
dragAndDropIntoCategoriesPage.steps.verifyDefaultMinimumScoreIfAttemptedLabelAndPointsField();
|
39
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings()
|
40
|
+
dragAndDropIntoCategoriesPage.checkAnswerLabel()
|
41
|
+
.should('not.exist');
|
42
|
+
dragAndDropIntoCategoriesPage.allowStudentsToCheckAnswerLabel()
|
43
|
+
.should('not.exist');
|
44
|
+
});
|
45
|
+
|
46
|
+
dragAndDropIntoCategoriesPage.tests.verifyPointsFieldErrorState(10);
|
47
|
+
|
48
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedFieldErrorState(10, 20, 10);
|
49
|
+
});
|
50
|
+
|
51
|
+
describe('Edit tab \'Scoring\' section for Non Scored scoring type', () => {
|
52
|
+
abortEarlySetup();
|
53
|
+
before(() => {
|
54
|
+
cy.log('Navigate to fill in the gaps - dropdown question type');
|
55
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
56
|
+
cy.barsPreLoaderWait();
|
57
|
+
});
|
58
|
+
|
59
|
+
dragAndDropIntoCategoriesPage.tests.verifyEditTabNonScoredScoringSectionContents();
|
60
|
+
|
61
|
+
it('When the user has switched to \'Non Scored\' scoring type, scoring subtype dropdown should not be displayed', () => {
|
62
|
+
dragAndDropIntoCategoriesPage.scoringSubtypeLabel()
|
63
|
+
.should('not.exist');
|
64
|
+
dragAndDropIntoCategoriesPage.scoringSubtypeDropdown()
|
65
|
+
.should('not.exist');
|
66
|
+
});
|
67
|
+
});
|
68
|
+
});
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { dragAndDropIntoCategoriesPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
const css = Cypress.env('css');
|
4
|
+
|
4
5
|
describe('Create Item page - Drag and drop into categories: Question instructions, Category, Row', () => {
|
5
6
|
before(() => {
|
6
7
|
cy.loginAs('admin');
|
@@ -26,272 +27,6 @@ describe('Create Item page - Drag and drop into categories: Question instruction
|
|
26
27
|
dragAndDropIntoCategoriesPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
27
28
|
});
|
28
29
|
|
29
|
-
describe('Category - Basic', () => {
|
30
|
-
abortEarlySetup();
|
31
|
-
before(() => {
|
32
|
-
cy.log('Navigating to drag and drop into categories question type');
|
33
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
34
|
-
cy.barsPreLoaderWait();
|
35
|
-
});
|
36
|
-
|
37
|
-
it('\'Category\' label should be displayed', () => {
|
38
|
-
dragAndDropIntoCategoriesPage.categoryLabel()
|
39
|
-
.verifyInnerText('Category')
|
40
|
-
.should('be.visible');
|
41
|
-
});
|
42
|
-
|
43
|
-
it('By default, 2 \'Category\' input fields with prefilled text \'Category #\' should be displayed and numeration, \'Delete category\' icon buttons should be displayed besides each input field', () => {
|
44
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryInputFields(2);
|
45
|
-
for (let categoryIndex = 0; categoryIndex < 2; categoryIndex++) {
|
46
|
-
dragAndDropIntoCategoriesPage.categoryInputField()
|
47
|
-
.eq(categoryIndex)
|
48
|
-
.should('have.text', `Category ${categoryIndex + 1}`);
|
49
|
-
};
|
50
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryInputFields();
|
51
|
-
dragAndDropIntoCategoriesPage.steps.verifyDeleteCategoryButton(0);
|
52
|
-
dragAndDropIntoCategoriesPage.steps.verifyDeleteCategoryButton(1);
|
53
|
-
});
|
54
|
-
|
55
|
-
it('When the user clears a \'Category\' input field, \'Enter category title\' placeholder text should be displayed and when the user enters text in the input field, the placeholder should disappear', () => {
|
56
|
-
dragAndDropIntoCategoriesPage.steps.clearTextInCategoryInputField(0);
|
57
|
-
dragAndDropIntoCategoriesPage.steps.verifyPlaceholderTextInCategoryInputField(0);
|
58
|
-
dragAndDropIntoCategoriesPage.steps.enterTextInCategoryInputField(0, 'Category 1');
|
59
|
-
dragAndDropIntoCategoriesPage.steps.verifyPlaceholderTextNotExistInCategoryInputField(0);
|
60
|
-
});
|
61
|
-
|
62
|
-
it('CSS of Category section', { tags: 'css' }, () => {
|
63
|
-
dragAndDropIntoCategoriesPage.categoryLabel()
|
64
|
-
.verifyCSS(css.color.sectionHeading, css.fontSize.normal, css.fontWeight.semibold);
|
65
|
-
dragAndDropIntoCategoriesPage.categoryInputField()
|
66
|
-
.parents('[class*="OptionsComponentstyles__TitleWrapper"]')
|
67
|
-
.eq(0)
|
68
|
-
.within(() => {
|
69
|
-
dragAndDropIntoCategoriesPage.deleteButton()
|
70
|
-
.verifyPseudoClassBeforeProperty('color', css.color.deleteIcon);
|
71
|
-
dragAndDropIntoCategoriesPage.categoryInputField()
|
72
|
-
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
73
|
-
});
|
74
|
-
dragAndDropIntoCategoriesPage.addCategoryButton()
|
75
|
-
.verifyCSS(css.color.secondaryBtnActive, css.fontSize.default, css.fontWeight.medium);
|
76
|
-
});
|
77
|
-
|
78
|
-
it('\'Add category\' button should be present', () => {
|
79
|
-
dragAndDropIntoCategoriesPage.addCategoryButton()
|
80
|
-
.verifyInnerText('Add category')
|
81
|
-
.should('be.visible');
|
82
|
-
});
|
83
|
-
|
84
|
-
it('When user adds a category using the \'Add category\' button then added category input field should be displayed with \'Enter category title\' placeholder text, option numeration and delete button', () => {
|
85
|
-
dragAndDropIntoCategoriesPage.steps.addCategory();
|
86
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryInputFields(3);
|
87
|
-
dragAndDropIntoCategoriesPage.steps.verifyPlaceholderTextInCategoryInputField(2);
|
88
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryInputFields();
|
89
|
-
dragAndDropIntoCategoriesPage.steps.verifyDeleteCategoryButton(2);
|
90
|
-
});
|
91
|
-
|
92
|
-
it('When the user focuses in and out of the \'Category\' input field, no error message should appear', () => {
|
93
|
-
dragAndDropIntoCategoriesPage.steps.focusInAndFocusOutOfCategoryInputField(2);
|
94
|
-
dragAndDropIntoCategoriesPage.steps.verifyErrorMessageIsNotDisplayed();
|
95
|
-
});
|
96
|
-
|
97
|
-
it('When the user hovers the delete button of the category input field, \'Delete category\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Delete\' icon button', () => {
|
98
|
-
dragAndDropIntoCategoriesPage.steps.verifyDeleteCategoryTooltip(0);
|
99
|
-
});
|
100
|
-
|
101
|
-
it('When user clicks on the \'Delete category\' button then the respective options input field should get deleted, option numeration should change accordingly', () => {
|
102
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
103
|
-
dragAndDropIntoCategoriesPage.steps.verifyNumerationOfCategoryInputFields();
|
104
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryInputFields(2);
|
105
|
-
});
|
106
|
-
|
107
|
-
it('The user should be able to delete all category input fields and only \'Category\' label and \'Add category\' button should be present', () => {
|
108
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
109
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
110
|
-
dragAndDropIntoCategoriesPage.categoryInputField()
|
111
|
-
.should('not.exist');
|
112
|
-
dragAndDropIntoCategoriesPage.categoryLabel()
|
113
|
-
.should('be.visible');
|
114
|
-
dragAndDropIntoCategoriesPage.addCategoryButton()
|
115
|
-
.should('be.visible');
|
116
|
-
});
|
117
|
-
});
|
118
|
-
|
119
|
-
describe('Category - Set correct answer section', () => {
|
120
|
-
abortEarlySetup();
|
121
|
-
before(() => {
|
122
|
-
cy.log('Navigating to drag and drop into categories question type');
|
123
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
124
|
-
cy.barsPreLoaderWait();
|
125
|
-
});
|
126
|
-
|
127
|
-
it('By default, two categories should be present with category titles \'Category #\' in the \'Set correct answer\' section', () => {
|
128
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInSetCorrectAnswerSection(2);
|
129
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInSetCorrectAnswerSection(2);
|
130
|
-
for (let categoryIndex = 0; categoryIndex < 2; categoryIndex++) {
|
131
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInSetCorrectAnswerSection(categoryIndex, `Category ${categoryIndex + 1}`);
|
132
|
-
};
|
133
|
-
});
|
134
|
-
|
135
|
-
it('When the user clears a \'Category\' input field, the category title should appear as blank and on entering the text again, the category title should update accordingly in the \'Set correct answer\' section', () => {
|
136
|
-
dragAndDropIntoCategoriesPage.steps.clearTextInCategoryInputField(0);
|
137
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInSetCorrectAnswerSection(0, '');
|
138
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInSetCorrectAnswerSection(2);
|
139
|
-
dragAndDropIntoCategoriesPage.steps.enterTextInCategoryInputField(0, 'Category 1');
|
140
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInSetCorrectAnswerSection(0, 'Category 1');
|
141
|
-
});
|
142
|
-
|
143
|
-
it('CSS of Category in the \'Set correct answer\' section', { tags: 'css' }, () => {
|
144
|
-
dragAndDropIntoCategoriesPage.setCorrectAnswerSectionCategoryTitle()
|
145
|
-
.should('have.css', 'background-color', css.color.titleContainerBg)
|
146
|
-
.and('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`)
|
147
|
-
.find('.question-text-wrapper')
|
148
|
-
.verifyCSS(css.color.text, css.fontSize.normal, css.fontWeight.semibold);
|
149
|
-
});
|
150
|
-
|
151
|
-
it('When the user adds a category using the \'Add category\' button then added category should be displayed with a blank category title in the \'Set correct answer\' section', () => {
|
152
|
-
dragAndDropIntoCategoriesPage.steps.addCategory();
|
153
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInSetCorrectAnswerSection(3);
|
154
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInSetCorrectAnswerSection(3);
|
155
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInSetCorrectAnswerSection(2, '');
|
156
|
-
});
|
157
|
-
|
158
|
-
it('When the user deletes a category, the respective category should get removed from the \'Set correct answer\' section and the titles of other categories should not get affected', () => {
|
159
|
-
cy.log('Pre step: Setting title for newly added category')
|
160
|
-
dragAndDropIntoCategoriesPage.steps.enterTextInCategoryInputField(2, 'Category 3');
|
161
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(2);
|
162
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInSetCorrectAnswerSection(2);
|
163
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInSetCorrectAnswerSection(2);
|
164
|
-
for (let categoryIndex = 0; categoryIndex < 2; categoryIndex++) {
|
165
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInSetCorrectAnswerSection(categoryIndex, `Category ${categoryIndex + 1}`);
|
166
|
-
};
|
167
|
-
});
|
168
|
-
|
169
|
-
it('When the user deletes all categories, all the category titles should get removed and only one empty container should be displayed in the \'Set correct answer\' section', () => {
|
170
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
171
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
172
|
-
dragAndDropIntoCategoriesPage.setCorrectAnswerSectionCategoryTitle()
|
173
|
-
.should('not.exist');
|
174
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInSetCorrectAnswerSection(1);
|
175
|
-
});
|
176
|
-
|
177
|
-
//need to add cases of scroll buttons appearing when more than 5 categories are added after this query gets resolved https://redmine.zeuslearning.com/issues/532267
|
178
|
-
//minimum width 110ox for a category height 100px
|
179
|
-
//TODO: the below case will be different for desktop and mobile view
|
180
|
-
it.skip('When the user adds more than __ categories, the categories should become scrollable and next and previous buttons with label \'Displaying # of #\' should appear in the \'Set correct answer\' section', () => {
|
181
|
-
|
182
|
-
});
|
183
|
-
|
184
|
-
it.skip('CSS of scrollable buttons and label', { tags: 'css' }, () => {
|
185
|
-
|
186
|
-
});
|
187
|
-
|
188
|
-
it.skip('Accessibility of scrollable buttons and label', { tags: 'css' }, () => {
|
189
|
-
|
190
|
-
});
|
191
|
-
|
192
|
-
it.skip('The user should be able to scroll across the categories using next and previous buttons', () => {
|
193
|
-
|
194
|
-
});
|
195
|
-
|
196
|
-
it.skip('When the user deletes some categories, the scroll buttons should disappear and all the categories should be visible in the \'Set correct answer\' section', () => {
|
197
|
-
|
198
|
-
});
|
199
|
-
});
|
200
|
-
|
201
|
-
describe('Category - Preview tab', () => {
|
202
|
-
abortEarlySetup();
|
203
|
-
before(() => {
|
204
|
-
cy.log('Navigating to drag and drop into categories question type');
|
205
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
206
|
-
cy.barsPreLoaderWait();
|
207
|
-
});
|
208
|
-
|
209
|
-
it('By default, two categories should be present with category titles \'Category #\' in the \'Preview\' tab', () => {
|
210
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
211
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInPreviewTab(2);
|
212
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInPreviewTab(2);
|
213
|
-
for (let categoryIndex = 0; categoryIndex < 2; categoryIndex++) {
|
214
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(categoryIndex, `Category ${categoryIndex + 1}`);
|
215
|
-
};
|
216
|
-
});
|
217
|
-
|
218
|
-
it('When the user clears a \'Category\' input field, the category title should appear as blank and on entering the text again, the category title should update accordingly in the \'Preview\' tab', () => {
|
219
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
220
|
-
dragAndDropIntoCategoriesPage.steps.clearTextInCategoryInputField(0);
|
221
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
222
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(0, '');
|
223
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInPreviewTab(2);
|
224
|
-
|
225
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
226
|
-
dragAndDropIntoCategoriesPage.steps.enterTextInCategoryInputField(0, 'Category 1');
|
227
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
228
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(0, 'Category 1');
|
229
|
-
});
|
230
|
-
|
231
|
-
it('CSS of Category in the \'Preview\' tab', { tags: 'css' }, () => {
|
232
|
-
dragAndDropIntoCategoriesPage.previewTabCategoryTitle()
|
233
|
-
.should('have.css', 'background-color', css.color.titleContainerBg)
|
234
|
-
.and('have.css', 'border', `1px solid ${css.color.titleContainerBorder}`)
|
235
|
-
.find('.question-text-wrapper')
|
236
|
-
.verifyCSS(css.color.text, css.fontSize.normal, css.fontWeight.semibold);
|
237
|
-
});
|
238
|
-
|
239
|
-
it('When the user adds a category using the \'Add category\' button then added category should be displayed with a blank category title in the \'Preview\' tab', () => {
|
240
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
241
|
-
dragAndDropIntoCategoriesPage.steps.addCategory();
|
242
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
243
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInPreviewTab(3);
|
244
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInPreviewTab(3);
|
245
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(2, '');
|
246
|
-
});
|
247
|
-
|
248
|
-
it('When the user deletes a category, the category should get removed from the \'Set correct answer\' section and the titles of other categories should not get affected', () => {
|
249
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
250
|
-
cy.log('Pre step: Setting title for newly added category')
|
251
|
-
dragAndDropIntoCategoriesPage.steps.enterTextInCategoryInputField(2, 'Category 3');
|
252
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(2);
|
253
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
254
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoryTitlesInPreviewTab(2);
|
255
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInPreviewTab(2);
|
256
|
-
for (let categoryIndex = 0; categoryIndex < 2; categoryIndex++) {
|
257
|
-
dragAndDropIntoCategoriesPage.steps.verifyCategoryTitleInPreviewTab(categoryIndex, `Category ${categoryIndex + 1}`);
|
258
|
-
};
|
259
|
-
});
|
260
|
-
|
261
|
-
it('When the user deletes all categories, all the category titles should get removed and only one empty container should be displayed in the \'Preview\' tab', () => {
|
262
|
-
dragAndDropIntoCategoriesPage.steps.switchToEditTab();
|
263
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
264
|
-
dragAndDropIntoCategoriesPage.steps.deleteCategoryInputField(0);
|
265
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
266
|
-
dragAndDropIntoCategoriesPage.previewTabCategoryTitle()
|
267
|
-
.should('not.exist');
|
268
|
-
dragAndDropIntoCategoriesPage.steps.verifyCountOfCategoriesInPreviewTab(1);
|
269
|
-
});
|
270
|
-
|
271
|
-
//need to add cases of scroll buttons appearing when more than 5 categories are added after this query gets resolved https://redmine.zeuslearning.com/issues/532267
|
272
|
-
|
273
|
-
//TODO: the below case will be different for desktop and mobile view
|
274
|
-
it('When the user adds more than __ categories, the categories should become scrollable and next and previous buttons with label \'Displaying # of #\' should appear in the \'Preview\' tab', () => {
|
275
|
-
|
276
|
-
});
|
277
|
-
|
278
|
-
it('CSS of scrollable buttons and label', { tags: 'css' }, () => {
|
279
|
-
|
280
|
-
});
|
281
|
-
|
282
|
-
it('Accessibility of scrollable buttons and label', { tags: 'css' }, () => {
|
283
|
-
|
284
|
-
});
|
285
|
-
|
286
|
-
it('The user should be able to scroll across the categories using next and previous buttons', () => {
|
287
|
-
|
288
|
-
});
|
289
|
-
|
290
|
-
it('When the user deletes some categories, the scroll buttons should disappear and all the categories should be visible in the \'Preview\' tab', () => {
|
291
|
-
|
292
|
-
});
|
293
|
-
});
|
294
|
-
|
295
30
|
describe('Row - Basic', () => {
|
296
31
|
abortEarlySetup();
|
297
32
|
before(() => {
|
@@ -0,0 +1,116 @@
|
|
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('Show correct answer - 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
|
+
});
|
18
|
+
|
19
|
+
dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet()
|
20
|
+
|
21
|
+
dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyShowCorrectAnswerBasicFunctionality();
|
22
|
+
});
|
23
|
+
|
24
|
+
describe('Question preview: AutoScored: All or nothing - grouped options layout', () => {
|
25
|
+
abortEarlySetup();
|
26
|
+
before(() => {
|
27
|
+
cy.log('Navigating to drag and drop into categories question type');
|
28
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
29
|
+
cy.barsPreLoaderWait();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
33
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
34
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
35
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
36
|
+
});
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesAllOrNothingScoring.tests.verifyAutoScoredAllOrNothingScoring()
|
39
|
+
|
40
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
41
|
+
});
|
42
|
+
|
43
|
+
describe('Question Preview: AutoScored - All or Nothing - grouped options layout with identical draggable response options in preview tab', () => {
|
44
|
+
let groupedOptions = [['Bat', 'Eagle', 'Whale', 'Platypus'], ['Bat', 'Parrot', 'Ostrich', 'Flying squirrel']];
|
45
|
+
abortEarlySetup();
|
46
|
+
before(() => {
|
47
|
+
cy.log('Navigate to drag and drop into categories question type, fill the necessary details and points and switch to preview tab');
|
48
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
49
|
+
cy.barsPreLoaderWait();
|
50
|
+
dragAndDropIntoCategoriesPage.steps.selectResponseOptionsLayout('Grouped');
|
51
|
+
dragAndDropIntoCategoriesPage.steps.addGroupTitle(0, 'Group A');
|
52
|
+
dragAndDropIntoCategoriesPage.steps.addOption();
|
53
|
+
dragAndDropIntoCategoriesPage.steps.addOption();
|
54
|
+
dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(groupedOptions[0]);
|
55
|
+
dragAndDropIntoCategoriesPage.steps.addGroupWithTitleAndOptionsInResponseOptionsSection(1, 'Group B', groupedOptions[1]);
|
56
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(20);
|
57
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
|
58
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
59
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
60
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
61
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
62
|
+
});
|
63
|
+
|
64
|
+
it('Case: When user has identical options to give as input', () => {
|
65
|
+
cy.log('Both the identical options should be visible in the draggable response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer section');
|
66
|
+
dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, groupedOptions[0]);
|
67
|
+
dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, groupedOptions[1]);
|
68
|
+
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
69
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle']], [1, 2]);
|
70
|
+
|
71
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
72
|
+
dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
|
73
|
+
|
74
|
+
cy.log('When the user gives the correct answer inputs and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, user should be awarded full points and no correct answer section should be displayed');
|
75
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
76
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
77
|
+
cy.log('User should be awarded full points')
|
78
|
+
dragAndDropIntoCategoriesPage.previewScoreText()
|
79
|
+
.verifyInnerText('20/20');
|
80
|
+
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
81
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
82
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
83
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
84
|
+
|
85
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
86
|
+
|
87
|
+
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides correct answer responses and no correct answer section should be displayed');
|
88
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
89
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
90
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
91
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
92
|
+
|
93
|
+
cy.log('When the user attempts the question with the identical option then on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides the original option set as correct responses, red cross-mark icon should be displayed against the identical option and user should be awarded 0 points');
|
94
|
+
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
95
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
96
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
|
97
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfPreviewTab('Bat')
|
98
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
|
99
|
+
cy.log('User should be awarded 0 points')
|
100
|
+
dragAndDropIntoCategoriesPage.previewScoreText()
|
101
|
+
.verifyInnerText('0/20');
|
102
|
+
dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
|
103
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
104
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
105
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat']], [1]);
|
106
|
+
|
107
|
+
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
108
|
+
|
109
|
+
cy.log('When user clicks on \'Check answer\' button, green check-mark icon should be displayed besides the original options set as correct responses, red cross-mark icon should be displayed against the identical option ')
|
110
|
+
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
111
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
112
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
113
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
|
114
|
+
});
|
115
|
+
});
|
116
|
+
});
|
@@ -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
|
+
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
3
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
4
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
5
|
+
|
6
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored: Partial - score for each correct response - grouped options layout', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to drag and drop into categories question type');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
18
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
19
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
21
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
|
22
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
|
+
});
|
26
|
+
|
27
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
28
|
+
|
29
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
30
|
+
|
31
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Partial - score for each correct response');
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
|
38
|
+
});
|
39
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
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 correct response - 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 correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(50);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(48, 50);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 50);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each correct response');
|
40
|
+
});
|
41
|
+
});
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
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 correct response - 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 correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 60);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each correct response');
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
|
42
|
+
|
43
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
|
44
|
+
|
45
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
|
46
|
+
});
|
47
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
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 correct response - 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 correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(7);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(35, 60);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each correct response');
|
40
|
+
});
|
41
|
+
});
|
@@ -0,0 +1,57 @@
|
|
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: Total score divided between 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('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
|
+
});
|
26
|
+
|
27
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
28
|
+
|
29
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
30
|
+
|
31
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCell('Total score divided between each cell');
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
34
|
+
|
35
|
+
//TODO: Need to update penalty points cases after https://redmine.zeuslearning.com/issues/536492
|
36
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout: Round down score', () => {
|
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.setQuestionForGroupedResponseOptions();
|
48
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10.5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
50
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
51
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
52
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
53
|
+
});
|
54
|
+
|
55
|
+
dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([2, 10, 2.63], 10.5)
|
56
|
+
});
|
57
|
+
});
|
@@ -0,0 +1,43 @@
|
|
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 - Total score divided between 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('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(8, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Total score divided between each cell');
|
42
|
+
});
|
43
|
+
});
|
@@ -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 - Total score divided between 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('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Total score divided between each cell');
|
42
|
+
|
43
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
44
|
+
|
45
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
|
46
|
+
|
47
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
|
48
|
+
});
|
49
|
+
});
|
@@ -0,0 +1,43 @@
|
|
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 - Total score divided between 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('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(8, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Total score divided between each cell');
|
42
|
+
});
|
43
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
const cellNumerationArray = ['1', '2', '3', '4'];
|
5
|
+
|
6
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored: Total score divided between each correct response - grouped options layout', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to drag and drop into categories question type');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
18
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
19
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
21
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
|
22
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
29
|
+
|
30
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
31
|
+
|
32
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Total score divided between each correct response');
|
33
|
+
|
34
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
35
|
+
|
36
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(3.67, 10);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 3.67, 6], 6, 10);
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question preview: AutoScored - Total score divided between each correct response - grouped options layout: Round down score', () => {
|
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.setQuestionForGroupedResponseOptions();
|
48
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10.5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
50
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
51
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
|
52
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
53
|
+
});
|
54
|
+
|
55
|
+
dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([1, 10, 1.75], 10.5)
|
56
|
+
});
|
57
|
+
});
|