itemengine-cypress-automation 1.0.40 → 1.0.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
  2. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesRowsSection.js} +1 -266
  3. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js +116 -0
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCell.js +39 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponse.js +39 -0
  12. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
  13. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
  14. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
  15. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCell.js +57 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +43 -0
  17. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +49 -0
  18. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +43 -0
  19. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponses.js +57 -0
  20. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +114 -0
  21. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +168 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +112 -0
  23. package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesStandardAllOrNothing.js → dragAndDropIntoCategoriesScoringFiles/standardAllOrNothing.js} +3 -29
  24. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
  25. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
  26. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
  27. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCell.js +39 -0
  28. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
  29. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
  30. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
  31. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponse.js +38 -0
  32. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
  33. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
  34. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
  35. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCell.js +57 -0
  36. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +43 -0
  37. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +49 -0
  38. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +43 -0
  39. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponse.js +57 -0
  40. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +114 -0
  41. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +167 -0
  42. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +112 -0
  43. package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +5 -11
  44. package/package.json +1 -1
  45. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachCell.js +0 -145
  46. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachResponse.js +0 -140
  47. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenCell.js +0 -165
  48. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenResponse.js +0 -420
@@ -1,140 +0,0 @@
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 Section', () => {
6
- before(() => {
7
- cy.loginAs('admin');
8
- });
9
-
10
- describe('Question preview: AutoScored: Partial - score for each correct response', () => {
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.setQuestion();
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.expandAdditonalSettings();
22
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
23
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
24
- });
25
-
26
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
27
-
28
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
29
-
30
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Partial - score for each correct response');
31
-
32
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
33
-
34
- dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
35
-
36
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
37
- });
38
-
39
- describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
40
- abortEarlySetup();
41
- before(() => {
42
- cy.log('Navigating to drag and drop into categories question type');
43
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
44
- cy.barsPreLoaderWait();
45
- dragAndDropIntoCategoriesPage.steps.setQuestion();
46
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
47
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
48
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
49
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
50
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
51
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
52
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
53
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
54
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
55
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
56
- dragAndDropIntoCategoriesPage.steps.allotPoints(7);
57
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
58
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
59
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
60
- });
61
-
62
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
63
-
64
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
65
-
66
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(35, 60);
67
-
68
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each correct response');
69
- });
70
-
71
- describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
72
- abortEarlySetup();
73
- before(() => {
74
- cy.log('Navigating to drag and drop into categories question type');
75
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
76
- cy.barsPreLoaderWait();
77
- dragAndDropIntoCategoriesPage.steps.setQuestion();
78
- dragAndDropIntoCategoriesPage.steps.allotPoints(8);
79
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
80
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
81
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
82
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
83
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
84
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
85
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
86
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
87
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
88
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
89
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
90
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
91
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
92
- });
93
-
94
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(50);
95
-
96
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(48, 50);
97
-
98
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 50);
99
-
100
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each correct response');
101
- });
102
-
103
- describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
104
- abortEarlySetup();
105
- before(() => {
106
- cy.log('Navigating to drag and drop into categories question type');
107
- dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
108
- cy.barsPreLoaderWait();
109
- dragAndDropIntoCategoriesPage.steps.setQuestion();
110
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
111
- dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
112
- dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
113
- dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
114
- dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
115
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
116
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
117
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
118
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
119
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
120
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
121
- dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
122
- dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
123
- dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
124
- });
125
-
126
- dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
127
-
128
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
129
-
130
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 60);
131
-
132
- dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each correct response');
133
-
134
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
135
-
136
- dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
137
-
138
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
139
- });
140
- });
@@ -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 Section', () => {
6
- before(() => {
7
- cy.loginAs('admin');
8
- });
9
-
10
- describe('Question preview: AutoScored: Total score divided between each cell', () => {
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.setQuestion();
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 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.setQuestion();
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 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.setQuestion();
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 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.setQuestion();
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: Round down score - standard options layout', () => {
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.setQuestion();
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
- });