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
@@ -0,0 +1,42 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(32, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each cell');
41
+ });
42
+ });
@@ -0,0 +1,49 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each cell');
41
+
42
+ //https://redmine.zeuslearning.com/issues/536492
43
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
44
+
45
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
46
+
47
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 40);
48
+ });
49
+ });
@@ -0,0 +1,42 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each cell with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
28
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
29
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
30
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
31
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
32
+ });
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
35
+
36
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
37
+
38
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(32, 40);
39
+
40
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each cell');
41
+ });
42
+ });
@@ -0,0 +1,38 @@
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
+ });
@@ -0,0 +1,41 @@
1
+ import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
21
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
27
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
28
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
29
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
30
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
31
+ });
32
+
33
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(50);
34
+
35
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(48, 50);
36
+
37
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 50);
38
+
39
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each correct response');
40
+ });
41
+ });
@@ -0,0 +1,47 @@
1
+ import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.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.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
27
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
28
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
29
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
30
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
31
+ });
32
+
33
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
34
+
35
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
36
+
37
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 60);
38
+
39
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each correct response');
40
+
41
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
42
+
43
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
44
+
45
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
46
+ });
47
+ });
@@ -0,0 +1,41 @@
1
+ import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Partial - score for each correct response with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.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.clickOnAddAlternateAnswerButton();
22
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
27
+ dragAndDropIntoCategoriesPage.steps.allotPoints(7);
28
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
29
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
30
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
31
+ });
32
+
33
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
34
+
35
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
36
+
37
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(35, 60);
38
+
39
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each correct response');
40
+ });
41
+ });
@@ -0,0 +1,57 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring 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: Round down score - standard options layout', () => {
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.5);
49
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
52
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
+ });
54
+
55
+ dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([2, 10, 2.63], 10.5)
56
+ });
57
+ });
@@ -0,0 +1,43 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Total score divided between each cell with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.setQuestion();
17
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
18
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
+ dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
+ dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
28
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
29
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
30
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
31
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
32
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
36
+
37
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(8, 10);
38
+
39
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
40
+
41
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Total score divided between each cell');
42
+ });
43
+ });
@@ -0,0 +1,49 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Total score divided between each cell with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.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.clickOnAddAlternateAnswerButton();
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
28
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
29
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
30
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
31
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
32
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
36
+
37
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
38
+
39
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
40
+
41
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Total score divided between each cell');
42
+
43
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
44
+
45
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
46
+
47
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
48
+ });
49
+ });
@@ -0,0 +1,43 @@
1
+ import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+
5
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Question preview: AutoScored - Total score divided between each cell with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ cy.log('Navigating to drag and drop into categories question type');
14
+ dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
15
+ cy.barsPreLoaderWait();
16
+ dragAndDropIntoCategoriesPage.steps.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.clickOnAddAlternateAnswerButton();
23
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
25
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
26
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
27
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
28
+ dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
29
+ dragAndDropIntoCategoriesPage.steps.allotPoints(8);
30
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
31
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
32
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
33
+ });
34
+
35
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
36
+
37
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
38
+
39
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(8, 10);
40
+
41
+ dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Total score divided between each cell');
42
+ });
43
+ });
@@ -0,0 +1,57 @@
1
+ import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
2
+ import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
3
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
4
+ const cellNumerationArray = ['1', '2', '3', '4'];
5
+
6
+ describe('Create Item page - drag and drop into categories: Preview tab Scoring Section', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe('Question preview: AutoScored: Total score divided between each correct response', () => {
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.setQuestion();
18
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
19
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
+ dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
+ dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
24
+ dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
26
+ });
27
+
28
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
29
+
30
+ dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
31
+
32
+ dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Total score divided between each correct response');
33
+
34
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
35
+
36
+ dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(3.67, 10);
37
+
38
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 3.67, 6], 6, 10);
39
+ });
40
+
41
+ describe('Question preview: AutoScored - Total score divided between each correct response: Round down score - standard options layout', () => {
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.5);
49
+ dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
+ dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
+ dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
52
+ dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
+ });
54
+
55
+ dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([1, 10, 1.75], 10.5)
56
+ });
57
+ });