itemengine-cypress-automation 1.0.29 → 1.0.31
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettings.js +963 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesClickAndDrop.js +669 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesEditTabScoringTypes.js +205 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsAllOrNothing.js +143 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachCell.js +145 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsPartialScoreForEachResponse.js +141 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenCell.js +165 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedOptionsTotalScoreDividedBetweenResponses.js +420 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesGroupedSetCorrectAnswerCheckboxes.js +266 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesHeaderSection.js +83 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScored.js +184 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesResponseOptionsSection.js +112 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesRowsAndCategoriesSection.js +569 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSetCorrectAnswerSection.js +130 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardAllOrNothing.js +186 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachCell.js +145 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardPartialScoreForEachResponse.js +140 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardSetCorrectAnswerCheckboxes.js +234 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenCell.js +165 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesStandardTotalScoreDividedBetweenResponse.js +420 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSwitchingCases.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +0 -292
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js +1 -180
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +186 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -87
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +95 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -86
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsWithAlternateAnswer.js +94 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -75
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +83 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAllOrNothingwithAlternateAnswer.js +74 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsAutoScoredAllOrNothingScoring.js +0 -67
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -74
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +82 -0
- package/package.json +1 -1
@@ -39,92 +39,6 @@ describe('Create Item page - Fill in the Gaps: Drag and Drop - Grouped options l
|
|
39
39
|
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsScoring('fill in the gaps - drag and drop');
|
40
40
|
});
|
41
41
|
|
42
|
-
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer and \'Match from all responses property - \"false\"\'', () => {
|
43
|
-
abortEarlySetup();
|
44
|
-
before(() => {
|
45
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points and switch to preview tab');
|
46
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
47
|
-
cy.barsPreLoaderWait();
|
48
|
-
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
49
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
50
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
51
|
-
.click();
|
52
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
53
|
-
fillInTheGapsDragAndDropPage.addGroupButton()
|
54
|
-
.click();
|
55
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
56
|
-
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
57
|
-
.eq(1)
|
58
|
-
.within(() => {
|
59
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
60
|
-
.click();
|
61
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
62
|
-
});
|
63
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
64
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
65
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
66
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
67
|
-
.click();
|
68
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
69
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
70
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
71
|
-
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
72
|
-
.click();
|
73
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
74
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
75
|
-
.click();
|
76
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
77
|
-
.click();
|
78
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
79
|
-
});
|
80
|
-
|
81
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
82
|
-
});
|
83
|
-
|
84
|
-
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
85
|
-
abortEarlySetup();
|
86
|
-
before(() => {
|
87
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
88
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
89
|
-
cy.barsPreLoaderWait();
|
90
|
-
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
91
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
92
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
93
|
-
.click();
|
94
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
95
|
-
fillInTheGapsDragAndDropPage.addGroupButton()
|
96
|
-
.click();
|
97
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
98
|
-
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
99
|
-
.eq(1)
|
100
|
-
.within(() => {
|
101
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
102
|
-
.click();
|
103
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
104
|
-
});
|
105
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
106
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
107
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
108
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
109
|
-
.click();
|
110
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
111
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
112
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
113
|
-
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
114
|
-
.click();
|
115
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
116
|
-
.click();
|
117
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
118
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
119
|
-
.click();
|
120
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
121
|
-
.click();
|
122
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
123
|
-
});
|
124
|
-
|
125
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
126
|
-
});
|
127
|
-
|
128
42
|
describe('Partial Equal Weights: Round down score - grouped options layout', () => {
|
129
43
|
abortEarlySetup();
|
130
44
|
before(() => {
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Fill in the Gaps: Drag and Drop - Grouped options layout - Partial equal weights scoring', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer and \'Match from all responses property - \"false\"\'', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points and switch to preview tab');
|
13
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
16
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
17
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
18
|
+
.click();
|
19
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
20
|
+
fillInTheGapsDragAndDropPage.addGroupButton()
|
21
|
+
.click();
|
22
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
23
|
+
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
24
|
+
.eq(1)
|
25
|
+
.within(() => {
|
26
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
27
|
+
.click();
|
28
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
29
|
+
});
|
30
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
31
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
32
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
33
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
34
|
+
.click();
|
35
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
36
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
37
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
38
|
+
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
39
|
+
.click();
|
40
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
41
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
42
|
+
.click();
|
43
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
44
|
+
.click();
|
45
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
46
|
+
});
|
47
|
+
|
48
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
49
|
+
});
|
50
|
+
|
51
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
52
|
+
abortEarlySetup();
|
53
|
+
before(() => {
|
54
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
55
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
56
|
+
cy.barsPreLoaderWait();
|
57
|
+
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
58
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
59
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
60
|
+
.click();
|
61
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
62
|
+
fillInTheGapsDragAndDropPage.addGroupButton()
|
63
|
+
.click();
|
64
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
65
|
+
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
66
|
+
.eq(1)
|
67
|
+
.within(() => {
|
68
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
69
|
+
.click();
|
70
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
71
|
+
});
|
72
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
73
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
74
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
75
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
76
|
+
.click();
|
77
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
78
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
79
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
80
|
+
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
81
|
+
.click();
|
82
|
+
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
83
|
+
.click();
|
84
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
85
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
86
|
+
.click();
|
87
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
88
|
+
.click();
|
89
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
90
|
+
});
|
91
|
+
|
92
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
93
|
+
});
|
94
|
+
});
|
@@ -33,81 +33,6 @@ describe('Create Item page - Fill in the Gaps: Drag and Drop - standard options
|
|
33
33
|
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsScoring('fill in the gaps - drag and drop');
|
34
34
|
});
|
35
35
|
|
36
|
-
describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
37
|
-
abortEarlySetup();
|
38
|
-
before(() => {
|
39
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial different weights scoring, adding points and switch to preview tab');
|
40
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
41
|
-
cy.barsPreLoaderWait();
|
42
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
43
|
-
.click();
|
44
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
45
|
-
.click();
|
46
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
47
|
-
.click();
|
48
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
49
|
-
.click();
|
50
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
51
|
-
fillInTheGapsDragAndDropPage.partialDifferentWeightsCheckbox()
|
52
|
-
.click();
|
53
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
54
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
55
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
56
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
57
|
-
.click();
|
58
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
59
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
60
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
61
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
62
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
63
|
-
.click();
|
64
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
65
|
-
.click();
|
66
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
67
|
-
});
|
68
|
-
|
69
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
70
|
-
});
|
71
|
-
|
72
|
-
describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
73
|
-
abortEarlySetup();
|
74
|
-
before(() => {
|
75
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial different weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
76
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
77
|
-
cy.barsPreLoaderWait();
|
78
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
79
|
-
.click();
|
80
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
81
|
-
.click();
|
82
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
83
|
-
.click();
|
84
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
85
|
-
.click();
|
86
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
87
|
-
fillInTheGapsDragAndDropPage.partialDifferentWeightsCheckbox()
|
88
|
-
.click();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
90
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
91
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
92
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
93
|
-
.click();
|
94
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
95
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
96
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
97
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
98
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
99
|
-
.click();
|
100
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
101
|
-
.click();
|
102
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
103
|
-
.click();
|
104
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
105
|
-
|
106
|
-
});
|
107
|
-
|
108
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
109
|
-
});
|
110
|
-
|
111
36
|
describe('Partial Different Weights: Round down score - standard options layout', () => {
|
112
37
|
abortEarlySetup();
|
113
38
|
before(() => {
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Fill in the Gaps: Drag and Drop - standard options layout - Partial different weights scoring', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial different weights scoring, adding points and switch to preview tab');
|
13
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
16
|
+
.click();
|
17
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
18
|
+
.click();
|
19
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
20
|
+
.click();
|
21
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
22
|
+
.click();
|
23
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
24
|
+
fillInTheGapsDragAndDropPage.partialDifferentWeightsCheckbox()
|
25
|
+
.click();
|
26
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
27
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
28
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
29
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
30
|
+
.click();
|
31
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
32
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
33
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
34
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
35
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
36
|
+
.click();
|
37
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
38
|
+
.click();
|
39
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
40
|
+
});
|
41
|
+
|
42
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
43
|
+
});
|
44
|
+
|
45
|
+
describe('Question Preview: AutoScored - Partial different weights standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
46
|
+
abortEarlySetup();
|
47
|
+
before(() => {
|
48
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial different weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
49
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
50
|
+
cy.barsPreLoaderWait();
|
51
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
52
|
+
.click();
|
53
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
54
|
+
.click();
|
55
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
56
|
+
.click();
|
57
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
58
|
+
.click();
|
59
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
60
|
+
fillInTheGapsDragAndDropPage.partialDifferentWeightsCheckbox()
|
61
|
+
.click();
|
62
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
63
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
64
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
65
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
66
|
+
.click();
|
67
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
68
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
69
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
70
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
71
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
72
|
+
.click();
|
73
|
+
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
74
|
+
.click();
|
75
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
76
|
+
.click();
|
77
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
78
|
+
|
79
|
+
});
|
80
|
+
|
81
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
82
|
+
});
|
83
|
+
});
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Fill in the Gaps: Drag and Drop - standard options layout - All or nothing scoring', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
|
13
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
16
|
+
.click();
|
17
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
18
|
+
.click();
|
19
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
20
|
+
.click();
|
21
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
22
|
+
.click();
|
23
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
24
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
25
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
26
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
27
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
28
|
+
.click();
|
29
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
30
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
31
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
32
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
33
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
34
|
+
.click();
|
35
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
36
|
+
});
|
37
|
+
|
38
|
+
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
39
|
+
});
|
40
|
+
|
41
|
+
describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
42
|
+
abortEarlySetup();
|
43
|
+
before(() => {
|
44
|
+
cy.log('Navigate to fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
45
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
46
|
+
cy.barsPreLoaderWait();
|
47
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
48
|
+
.click();
|
49
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
50
|
+
.click();
|
51
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
52
|
+
.click();
|
53
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
54
|
+
.click();
|
55
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
56
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
57
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
58
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
59
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
60
|
+
.click();
|
61
|
+
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
62
|
+
.click();
|
63
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
64
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
65
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
66
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
67
|
+
.click();
|
68
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
69
|
+
|
70
|
+
});
|
71
|
+
|
72
|
+
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
73
|
+
});
|
74
|
+
});
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
-
import { previewScoringAndShowCorrectAnswerComponent } from "../../../pages/components";
|
3
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
3
|
|
5
4
|
describe('Create Item page - Fill in the Gaps: Drag and Drop - standard options layout - All or nothing scoring', () => {
|
@@ -48,72 +47,6 @@ describe('Create Item page - Fill in the Gaps: Drag and Drop - standard options
|
|
48
47
|
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingScoring('fill in the gaps - drag and drop');
|
49
48
|
});
|
50
49
|
|
51
|
-
describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
52
|
-
abortEarlySetup();
|
53
|
-
before(() => {
|
54
|
-
cy.log('Navigate to fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
|
55
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
56
|
-
cy.barsPreLoaderWait();
|
57
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
58
|
-
.click();
|
59
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
60
|
-
.click();
|
61
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
62
|
-
.click();
|
63
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
64
|
-
.click();
|
65
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
66
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
67
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
68
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
69
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
70
|
-
.click();
|
71
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
72
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
73
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
74
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
75
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
76
|
-
.click();
|
77
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
78
|
-
});
|
79
|
-
|
80
|
-
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
81
|
-
});
|
82
|
-
|
83
|
-
describe('Question Preview: AutoScored - All or Nothing standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
84
|
-
abortEarlySetup();
|
85
|
-
before(() => {
|
86
|
-
cy.log('Navigate to fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
87
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
88
|
-
cy.barsPreLoaderWait();
|
89
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
90
|
-
.click();
|
91
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
92
|
-
.click();
|
93
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
94
|
-
.click();
|
95
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
96
|
-
.click();
|
97
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
98
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
99
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
100
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
101
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
102
|
-
.click();
|
103
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
104
|
-
.click();
|
105
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
106
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
107
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
108
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
109
|
-
.click();
|
110
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
111
|
-
|
112
|
-
});
|
113
|
-
|
114
|
-
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
115
|
-
});
|
116
|
-
|
117
50
|
describe('Question Preview: AutoScored - All or Nothing standard options layout with identical draggable response options in preview tab', () => {
|
118
51
|
abortEarlySetup();
|
119
52
|
before(() => {
|
@@ -33,80 +33,6 @@ describe('Create Item page - Fill in the Gaps: Drag and Drop - Standard options
|
|
33
33
|
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsScoring('fill in the gaps - drag and drop');
|
34
34
|
});
|
35
35
|
|
36
|
-
describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer and \'Match from all responses property - \"false\"\'', () => {
|
37
|
-
abortEarlySetup();
|
38
|
-
before(() => {
|
39
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points and switch to preview tab');
|
40
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
41
|
-
cy.barsPreLoaderWait();
|
42
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
43
|
-
.click();
|
44
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
45
|
-
.click();
|
46
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
47
|
-
.click();
|
48
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
49
|
-
.click();
|
50
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
51
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
52
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
53
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
54
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
55
|
-
.click();
|
56
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
57
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
58
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
59
|
-
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
60
|
-
.click();
|
61
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
62
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
63
|
-
.click();
|
64
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
65
|
-
.click();
|
66
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
67
|
-
});
|
68
|
-
|
69
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
70
|
-
});
|
71
|
-
|
72
|
-
describe('Question Preview: AutoScored - Partial equal weights standard options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
73
|
-
abortEarlySetup();
|
74
|
-
before(() => {
|
75
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, adding correct answer responses and alternate answer responses for autoscored - partial equal weights scoring, adding points, check match for all responses checkbox and switch to preview tab');
|
76
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
77
|
-
cy.barsPreLoaderWait();
|
78
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
79
|
-
.click();
|
80
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
81
|
-
.click();
|
82
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
83
|
-
.click();
|
84
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
85
|
-
.click();
|
86
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1', 'Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
87
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
88
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
89
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('10');
|
90
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
91
|
-
.click();
|
92
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
93
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
94
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints('6');
|
95
|
-
fillInTheGapsDragAndDropPage.partialEqualWeightsCheckbox()
|
96
|
-
.click();
|
97
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
98
|
-
.click();
|
99
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
100
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
101
|
-
.click();
|
102
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
103
|
-
.click();
|
104
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
105
|
-
});
|
106
|
-
|
107
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialEqualWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
108
|
-
});
|
109
|
-
|
110
36
|
describe('Partial Equal Weights: Round down score - standard options layout', () => {
|
111
37
|
abortEarlySetup();
|
112
38
|
before(() => {
|