itemengine-cypress-automation 1.0.39 → 1.0.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +0 -669
  2. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsBasic.js +317 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsRowProperties.js +372 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesCategoriesSection.js} +1 -295
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +0 -58
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsSection.js +304 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js → dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js} +3 -30
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
  12. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCell.js +39 -0
  13. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
  14. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
  15. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponse.js +39 -0
  17. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
  18. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
  19. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
  20. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCell.js +57 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +43 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +49 -0
  23. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +43 -0
  24. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponses.js +57 -0
  25. package/package.json +1 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +0 -145
  27. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +0 -141
  28. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +0 -165
  29. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +0 -420
@@ -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
- });