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.
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesRowsSection.js} +1 -266
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js +116 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCell.js +39 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponse.js +39 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCell.js +57 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponses.js +57 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +114 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +168 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +112 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesStandardAllOrNothing.js → dragAndDropIntoCategoriesScoringFiles/standardAllOrNothing.js} +3 -29
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +35 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCell.js +39 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponse.js +38 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +47 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +41 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCell.js +57 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +49 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +43 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponse.js +57 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +114 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +167 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoringFiles/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +112 -0
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +5 -11
- package/package.json +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachCell.js +0 -145
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachResponse.js +0 -140
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenCell.js +0 -165
- 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 functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
32
|
+
});
|
33
|
+
|
34
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
35
|
+
|
36
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(32, 40);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
|
39
|
+
|
40
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each cell');
|
41
|
+
});
|
42
|
+
});
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
32
|
+
});
|
33
|
+
|
34
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
35
|
+
|
36
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
|
39
|
+
|
40
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each cell');
|
41
|
+
|
42
|
+
//https://redmine.zeuslearning.com/issues/536492
|
43
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
|
44
|
+
|
45
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
|
46
|
+
|
47
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
|
48
|
+
});
|
49
|
+
});
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
32
|
+
});
|
33
|
+
|
34
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
35
|
+
|
36
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(32, 40);
|
39
|
+
|
40
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each cell');
|
41
|
+
});
|
42
|
+
});
|
@@ -0,0 +1,39 @@
|
|
1
|
+
|
2
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
3
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
4
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
5
|
+
|
6
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored: Partial - score for each correct response - grouped options layout', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to drag and drop into categories question type');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
18
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
19
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
21
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
|
22
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
|
+
});
|
26
|
+
|
27
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
28
|
+
|
29
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
30
|
+
|
31
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Partial - score for each correct response');
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
|
38
|
+
});
|
39
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each correct response - grouped options layout with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(50);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(48, 50);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 50);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each correct response');
|
40
|
+
});
|
41
|
+
});
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each correct response - grouped options layout with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(50, 60);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each correct response');
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(60);
|
42
|
+
|
43
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(37, 60);
|
44
|
+
|
45
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 37, 12], 12, 60);
|
46
|
+
});
|
47
|
+
});
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Partial - score for each correct response - grouped options layout with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each correct response');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(7);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(60);
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithCorrectTabAnswerOptions(60, 60);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseFullyCorrectWithAlternateTabAnswerOptions(35, 60);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponseWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each correct response');
|
40
|
+
});
|
41
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored: Total score divided between each cell - grouped options layout ', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
25
|
+
});
|
26
|
+
|
27
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
28
|
+
|
29
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
30
|
+
|
31
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCell('Total score divided between each cell');
|
32
|
+
|
33
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
34
|
+
|
35
|
+
//TODO: Need to update penalty points cases after https://redmine.zeuslearning.com/issues/536492
|
36
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout: Round down score', () => {
|
42
|
+
abortEarlySetup();
|
43
|
+
before(() => {
|
44
|
+
cy.log('Navigating to drag and drop into categories question type');
|
45
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
48
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10.5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
50
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
51
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
52
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
53
|
+
});
|
54
|
+
|
55
|
+
dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([2, 10, 2.63], 10.5)
|
56
|
+
});
|
57
|
+
});
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(8, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Total score divided between each cell');
|
42
|
+
});
|
43
|
+
});
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(10, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Total score divided between each cell');
|
42
|
+
|
43
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
44
|
+
|
45
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(2, 10);
|
46
|
+
|
47
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 1, 6], 6, 10);
|
48
|
+
});
|
49
|
+
});
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCellsScoring } from "../../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question preview: AutoScored - Total score divided between each cell - grouped options layout with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to drag and drop into categories question type');
|
14
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
|
21
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
22
|
+
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
24
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
25
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
26
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
27
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
28
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
29
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
30
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
31
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
36
|
+
|
37
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(10, 10);
|
38
|
+
|
39
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(8, 10);
|
40
|
+
|
41
|
+
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Total score divided between each cell');
|
42
|
+
});
|
43
|
+
});
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { dragAndDropIntoCategoriesCorrectResponseScoring } from "../../../../pages";
|
2
|
+
import { dragAndDropIntoCategoriesPage } from "../../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
const cellNumerationArray = ['1', '2', '3', '4'];
|
5
|
+
|
6
|
+
describe('Create Item page - Drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question preview: AutoScored: Total score divided between each correct response - grouped options layout', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to drag and drop into categories question type');
|
15
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
18
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
19
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
20
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
21
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
|
22
|
+
dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
|
23
|
+
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
24
|
+
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(10);
|
29
|
+
|
30
|
+
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
31
|
+
|
32
|
+
dragAndDropIntoCategoriesCorrectResponseScoring.tests.verifyScoringForEachResponse('Total score divided between each correct response');
|
33
|
+
|
34
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(10);
|
35
|
+
|
36
|
+
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(3.67, 10);
|
37
|
+
|
38
|
+
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 3.67, 6], 6, 10);
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question preview: AutoScored - Total score divided between each correct response - grouped options layout: Round down score', () => {
|
42
|
+
abortEarlySetup();
|
43
|
+
before(() => {
|
44
|
+
cy.log('Navigating to drag and drop into categories question type');
|
45
|
+
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
48
|
+
dragAndDropIntoCategoriesPage.steps.allotPoints(10.5);
|
49
|
+
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
50
|
+
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
51
|
+
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
|
52
|
+
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
53
|
+
});
|
54
|
+
|
55
|
+
dragAndDropIntoCategoriesPage.tests.verifyRoundDownScoreFunctionality([1, 10, 1.75], 10.5)
|
56
|
+
});
|
57
|
+
});
|