itemengine-cypress-automation 1.0.39 → 1.0.42
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +0 -669
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsBasic.js +317 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsRowProperties.js +372 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesRowsAndCategoriesSection.js → dragAndDropIntoCategoriesCategoriesSection.js} +1 -295
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +0 -58
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +68 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsSection.js +304 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js → dragAndDropIntoCategoriesScoringFiles/groupedOptionsAllOrNothing.js} +3 -30
- 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/package.json +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +0 -145
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +0 -141
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +0 -165
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +0 -420
@@ -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
|
+
});
|
package/package.json
CHANGED
@@ -1,145 +0,0 @@
|
|
1
|
-
import { dragAndDropIntoCategoriesCellsScoring } from "../../../pages/dragAndDropIntoCategoriesCellsScoring";
|
2
|
-
import { dragAndDropIntoCategoriesPage } from "../../../pages/dragAndDropIntoCategoriesPage";
|
3
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
-
|
5
|
-
describe('Create Item page - drag and drop into categories: Preview tab scoring functionality - grouped options layout', () => {
|
6
|
-
before(() => {
|
7
|
-
cy.loginAs('admin');
|
8
|
-
});
|
9
|
-
|
10
|
-
describe('Question preview: AutoScored: Partial - score for each cell - grouped options layout', () => {
|
11
|
-
abortEarlySetup();
|
12
|
-
before(() => {
|
13
|
-
cy.log('Navigating to drag and drop into categories question type');
|
14
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
|
-
cy.barsPreLoaderWait();
|
16
|
-
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
17
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
18
|
-
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
19
|
-
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
20
|
-
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
21
|
-
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
22
|
-
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
23
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
24
|
-
});
|
25
|
-
|
26
|
-
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
27
|
-
|
28
|
-
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnClickingCheckAnswerWithoutAttempting();
|
29
|
-
|
30
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCell('Partial - score for each cell');
|
31
|
-
|
32
|
-
//https://redmine.zeuslearning.com/issues/536492
|
33
|
-
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
|
34
|
-
|
35
|
-
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
|
36
|
-
|
37
|
-
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
|
38
|
-
});
|
39
|
-
|
40
|
-
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
41
|
-
abortEarlySetup();
|
42
|
-
before(() => {
|
43
|
-
cy.log('Navigating to drag and drop into categories question type');
|
44
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
45
|
-
cy.barsPreLoaderWait();
|
46
|
-
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
47
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
48
|
-
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
49
|
-
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
50
|
-
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
51
|
-
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
52
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
53
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
54
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
55
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
56
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
57
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
58
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
59
|
-
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
60
|
-
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
61
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
62
|
-
});
|
63
|
-
|
64
|
-
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
65
|
-
|
66
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
|
67
|
-
|
68
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(32, 40);
|
69
|
-
|
70
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithCorrectAnswerPointsMoreThanAlternateAnswerPoints('Partial - score for each cell');
|
71
|
-
});
|
72
|
-
|
73
|
-
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
74
|
-
abortEarlySetup();
|
75
|
-
before(() => {
|
76
|
-
cy.log('Navigating to drag and drop into categories question type');
|
77
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
78
|
-
cy.barsPreLoaderWait();
|
79
|
-
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
80
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(8);
|
81
|
-
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
82
|
-
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
83
|
-
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
84
|
-
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
85
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
86
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
87
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
88
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
89
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
90
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
91
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
92
|
-
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
93
|
-
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
94
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
95
|
-
});
|
96
|
-
|
97
|
-
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
98
|
-
|
99
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(32, 40);
|
100
|
-
|
101
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
|
102
|
-
|
103
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsMoreThanCorrectAnswerPoints('Partial - score for each cell');
|
104
|
-
});
|
105
|
-
|
106
|
-
describe('Question preview: AutoScored - Partial - score for each cell - grouped options layout with alternate answer: When \'Alternate answer\' points is equal to \'Correct answer\' points', () => {
|
107
|
-
abortEarlySetup();
|
108
|
-
before(() => {
|
109
|
-
cy.log('Navigating to drag and drop into categories question type');
|
110
|
-
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
111
|
-
cy.barsPreLoaderWait();
|
112
|
-
dragAndDropIntoCategoriesPage.steps.setQuestionForGroupedResponseOptions();
|
113
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
114
|
-
dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
|
115
|
-
dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
|
116
|
-
dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Partial - score for each cell');
|
117
|
-
dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
|
118
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
|
119
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
|
120
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Falcon', 1);
|
121
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 2);
|
122
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
|
123
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
|
124
|
-
dragAndDropIntoCategoriesPage.steps.allotPoints(10);
|
125
|
-
dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
|
126
|
-
dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
127
|
-
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
128
|
-
});
|
129
|
-
|
130
|
-
dragAndDropIntoCategoriesPage.tests.verifyQuestionPreviewOnSelectingShowCorrectAnswerWithoutAttempting(40);
|
131
|
-
|
132
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithCorrectTabAnswerOptions(40, 40);
|
133
|
-
|
134
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellFullyCorrectWithAlternateTabAnswerOptions(40, 40);
|
135
|
-
|
136
|
-
dragAndDropIntoCategoriesCellsScoring.tests.verifyScoringForEachCellWithAlternateAnswerPointsEqualToCorrectAnswerPoints('Partial - score for each cell');
|
137
|
-
|
138
|
-
//https://redmine.zeuslearning.com/issues/536492
|
139
|
-
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(40);
|
140
|
-
|
141
|
-
dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
|
142
|
-
|
143
|
-
dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
|
144
|
-
});
|
145
|
-
});
|