itemengine-cypress-automation 1.0.38 → 1.0.40

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,143 +0,0 @@
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 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
- describe('Question Preview: AutoScored - All or Nothing - grouped options layout with identical draggable response options in preview tab', () => {
71
- let groupedOptions = [['Bat', 'Eagle', 'Whale', 'Platypus'], ['Bat', 'Parrot', 'Ostrich', 'Flying squirrel']];
72
- abortEarlySetup();
73
- before(() => {
74
- cy.log('Navigate to drag and drop into categories question type, fill the necessary details and points and switch to preview tab');
75
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
76
- cy.barsPreLoaderWait();
77
- dragAndDropIntoCategoriesPage.steps.selectResponseOptionsLayout('Grouped');
78
- dragAndDropIntoCategoriesPage.steps.addGroupTitle(0, 'Group A');
79
- dragAndDropIntoCategoriesPage.steps.addOption();
80
- dragAndDropIntoCategoriesPage.steps.addOption();
81
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(groupedOptions[0]);
82
- dragAndDropIntoCategoriesPage.steps.addGroupWithTitleAndOptionsInResponseOptionsSection(1, 'Group B', groupedOptions[1]);
83
- dragAndDropIntoCategoriesPage.steps.allotPoints(20);
84
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
85
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
86
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
87
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
88
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
89
- });
90
-
91
- it('Case: When user has identical options to give as input', () => {
92
- 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');
93
- dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, groupedOptions[0]);
94
- dragAndDropIntoCategoriesPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, groupedOptions[1]);
95
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
96
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle']], [1, 2]);
97
-
98
- cy.log('Post-step: Unchecking show correct answer checkbox');
99
- dragAndDropIntoCategoriesPage.steps.uncheckShowCorrectAnswerCheckbox();
100
-
101
- 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');
102
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
103
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
104
- cy.log('User should be awarded full points')
105
- dragAndDropIntoCategoriesPage.previewScoreText()
106
- .verifyInnerText('20/20');
107
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
108
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
109
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
110
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
111
-
112
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
113
-
114
- 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');
115
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
116
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(0);
117
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
118
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
119
-
120
- 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');
121
- dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
122
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
123
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
124
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInGroupedResponseContainerOfPreviewTab('Bat')
125
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Eagle', 1);
126
- cy.log('User should be awarded 0 points')
127
- dragAndDropIntoCategoriesPage.previewScoreText()
128
- .verifyInnerText('0/20');
129
- dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
130
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
131
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
132
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat']], [1]);
133
-
134
- dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
135
-
136
- 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 ')
137
- dragAndDropIntoCategoriesPage.steps.checkAnswer();
138
- dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
139
- dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionCheckmarkIcon(1);
140
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotVisible();
141
- });
142
- });
143
- });
@@ -1,145 +0,0 @@
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
-
40
- 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', () => {
41
- abortEarlySetup();
42
- before(() => {
43
- cy.log('Navigating to drag and drop into categories question type');
44
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
45
- cy.barsPreLoaderWait();
46
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
47
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
48
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
49
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
50
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
51
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
52
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
53
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
54
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
55
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
56
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
57
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
58
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
59
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
60
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
61
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
62
- });
63
-
64
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
65
-
66
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
67
-
68
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(32, 40);
69
-
70
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each cell');
71
- });
72
-
73
- 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', () => {
74
- abortEarlySetup();
75
- before(() => {
76
- cy.log('Navigating to drag and drop into categories question type');
77
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
78
- cy.barsPreLoaderWait();
79
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
80
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
81
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
82
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
83
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
84
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
85
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
86
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
87
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
88
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
89
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
90
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
91
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
92
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
93
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
94
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
95
- });
96
-
97
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
98
-
99
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(32, 40);
100
-
101
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
102
-
103
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each cell');
104
- });
105
-
106
- 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', () => {
107
- abortEarlySetup();
108
- before(() => {
109
- cy.log('Navigating to drag and drop into categories question type');
110
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
111
- cy.barsPreLoaderWait();
112
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
113
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
114
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
115
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
116
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
117
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
118
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
119
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
120
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
121
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
122
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
123
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
124
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
125
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
126
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
127
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
128
- });
129
-
130
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
131
-
132
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
133
-
134
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
135
-
136
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each cell');
137
-
138
- //https://redmine.zeuslearning.com/issues/536492
139
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
140
-
141
- dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
142
-
143
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
144
- });
145
- });
@@ -1,141 +0,0 @@
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
-
40
- 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', () => {
41
- abortEarlySetup();
42
- before(() => {
43
- cy.log('Navigating to drag and drop into categories question type');
44
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
45
- cy.barsPreLoaderWait();
46
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
47
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
48
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
49
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
50
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
51
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
52
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
53
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
54
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
55
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
56
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
57
- dragAndDropIntoCategoriesPage.steps.allotPoints(7);
58
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
59
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
60
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
61
- });
62
-
63
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
64
-
65
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
66
-
67
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(35, 60);
68
-
69
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each correct response');
70
- });
71
-
72
- 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', () => {
73
- abortEarlySetup();
74
- before(() => {
75
- cy.log('Navigating to drag and drop into categories question type');
76
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
77
- cy.barsPreLoaderWait();
78
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
79
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
80
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
81
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
82
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
83
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
84
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
85
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
86
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
87
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
88
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
89
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
90
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
91
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
92
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
93
- });
94
-
95
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(50);
96
-
97
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(48, 50);
98
-
99
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 50);
100
-
101
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each correct response');
102
- });
103
-
104
- 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', () => {
105
- abortEarlySetup();
106
- before(() => {
107
- cy.log('Navigating to drag and drop into categories question type');
108
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
109
- cy.barsPreLoaderWait();
110
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
111
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
112
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
113
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
114
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
115
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
116
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
117
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
118
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
119
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
120
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
121
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
122
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
123
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
124
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
125
- });
126
-
127
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
128
-
129
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
130
-
131
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 60);
132
-
133
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each correct response');
134
-
135
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
136
-
137
- dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
138
-
139
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
140
- });
141
- });
@@ -1,165 +0,0 @@
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 with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
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);
49
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
52
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
53
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
54
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
55
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
56
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
57
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
58
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
59
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
60
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
61
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
62
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
63
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
64
- });
65
-
66
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
67
-
68
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
69
-
70
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(8, 10);
71
-
72
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Total score divided between each cell');
73
- });
74
-
75
- 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', () => {
76
- abortEarlySetup();
77
- before(() => {
78
- cy.log('Navigating to drag and drop into categories question type');
79
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
80
- cy.barsPreLoaderWait();
81
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
82
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
83
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
84
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
85
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
86
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
87
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
88
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
89
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
90
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
91
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
92
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
93
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
94
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
95
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
96
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
97
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
98
- });
99
-
100
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
101
-
102
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(8, 10);
103
-
104
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
105
-
106
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Total score divided between each cell');
107
- });
108
-
109
- 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', () => {
110
- abortEarlySetup();
111
- before(() => {
112
- cy.log('Navigating to drag and drop into categories question type');
113
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
114
- cy.barsPreLoaderWait();
115
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
116
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
117
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
118
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
119
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
120
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
121
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
122
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
123
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
124
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
125
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
126
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
127
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
128
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
129
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
130
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
131
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
132
- });
133
-
134
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
135
-
136
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
137
-
138
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
139
-
140
- dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Total score divided between each cell');
141
-
142
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
143
-
144
- dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
145
-
146
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
147
- });
148
-
149
- describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout: Round down score', () => {
150
- abortEarlySetup();
151
- before(() => {
152
- cy.log('Navigating to drag and drop into categories question type');
153
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
154
- cy.barsPreLoaderWait();
155
- dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
156
- dragAndDropIntoCategoriesPage.steps.allotPoints(10.5);
157
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
158
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
159
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
160
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
161
- });
162
-
163
- dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([2, 10, 2.63], 10.5)
164
- });
165
- });