itemengine-cypress-automation 1.0.29 → 1.0.30
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -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 - Grouped options layout: All or nothing scoring', () => {
|
@@ -59,182 +58,4 @@ describe('Create Item page - Fill in the Gaps - Drag and Drop - Grouped options
|
|
59
58
|
|
60
59
|
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingScoring('fill in the gaps - drag and drop');
|
61
60
|
});
|
62
|
-
|
63
|
-
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
64
|
-
abortEarlySetup();
|
65
|
-
before(() => {
|
66
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, fill the necessary details and points and switch to preview tab');
|
67
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
68
|
-
cy.barsPreLoaderWait();
|
69
|
-
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
70
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
71
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
72
|
-
.click();
|
73
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
74
|
-
fillInTheGapsDragAndDropPage.addGroupButton()
|
75
|
-
.click();
|
76
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
77
|
-
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
78
|
-
.eq(1)
|
79
|
-
.within(() => {
|
80
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
81
|
-
.click();
|
82
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
83
|
-
});
|
84
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
85
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
86
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
87
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
88
|
-
.click();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
90
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
91
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
92
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
93
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
94
|
-
.click();
|
95
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
96
|
-
});
|
97
|
-
|
98
|
-
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
99
|
-
});
|
100
|
-
|
101
|
-
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
102
|
-
abortEarlySetup();
|
103
|
-
before(() => {
|
104
|
-
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');
|
105
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
106
|
-
cy.barsPreLoaderWait();
|
107
|
-
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
108
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
109
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
110
|
-
.click();
|
111
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
112
|
-
fillInTheGapsDragAndDropPage.addGroupButton()
|
113
|
-
.click();
|
114
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
115
|
-
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
116
|
-
.eq(1)
|
117
|
-
.within(() => {
|
118
|
-
fillInTheGapsDragAndDropPage.addOptionButton()
|
119
|
-
.click();
|
120
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
121
|
-
});
|
122
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
124
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
125
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
126
|
-
.click();
|
127
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
128
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
129
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
130
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
131
|
-
.click();
|
132
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
133
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
134
|
-
.click();
|
135
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
136
|
-
|
137
|
-
});
|
138
|
-
|
139
|
-
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
140
|
-
});
|
141
|
-
|
142
|
-
describe('Question Preview: AutoScored - All or Nothing with identical draggable response options for grouped options layout in preview tab', () => {
|
143
|
-
abortEarlySetup();
|
144
|
-
before(() => {
|
145
|
-
cy.log('Navigate to Fill in the gaps - drag and drop question type, fill the necessary details and points and switch to preview tab');
|
146
|
-
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
147
|
-
cy.barsPreLoaderWait();
|
148
|
-
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
149
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
150
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Identical correct answer for response 1', 'Incorrect answer']);
|
151
|
-
fillInTheGapsDragAndDropPage.addGroupButton()
|
152
|
-
.click();
|
153
|
-
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
154
|
-
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
155
|
-
.eq(1)
|
156
|
-
.within(() => {
|
157
|
-
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Identical correct answer for response 1', 'Correct answer for response 2']);
|
158
|
-
});
|
159
|
-
fillInTheGapsDragAndDropPage.steps.allotPoints(20);
|
160
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Identical correct answer for response 1', 0);
|
161
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
163
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
164
|
-
.click();
|
165
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
166
|
-
});
|
167
|
-
|
168
|
-
it('Case: When user has identical options to give as input', () => {
|
169
|
-
cy.log('Both the identical options should be visible in the draggable response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer container as the correct answer');
|
170
|
-
fillInTheGapsDragAndDropPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, ['Identical correct answer for response 1', 'Incorrect answer']);
|
171
|
-
fillInTheGapsDragAndDropPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, ['Identical correct answer for response 1', 'Correct answer for response 2']);
|
172
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
173
|
-
.click()
|
174
|
-
.should('be.checked');
|
175
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(['Identical correct answer for response 1', 'Correct answer for response 2'], ['1', '2']);
|
176
|
-
cy.log('Post-step: Unchecking show correct answer checkbox');
|
177
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
178
|
-
.click()
|
179
|
-
.should('not.be.checked');
|
180
|
-
cy.log('When the user gives the correct answer inputs from the correctly mapped group and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, correct answer container should not be displayed and user should be awarded with full points');
|
181
|
-
cy.log('Answering the response 1 with the correct identical option from the correctly mapped group i.e. Group A');
|
182
|
-
fillInTheGapsDragAndDropPage.previewTabDraggableOption()
|
183
|
-
.contains('Identical correct answer for response 1')
|
184
|
-
.click();
|
185
|
-
fillInTheGapsDragAndDropPage.previewTabResponseArea()
|
186
|
-
.eq(0)
|
187
|
-
.click();
|
188
|
-
cy.log('Answering the response 2 with the correct option');
|
189
|
-
fillInTheGapsDragAndDropPage.steps.previewTabClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
190
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
191
|
-
.click()
|
192
|
-
.should('be.checked');
|
193
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
194
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
195
|
-
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
196
|
-
.should('not.exist');
|
197
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
198
|
-
.verifyInnerText('20/20');
|
199
|
-
cy.log('Post-step: Unchecking show correct answer checkbox');
|
200
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
201
|
-
.click()
|
202
|
-
.should('not.be.checked');
|
203
|
-
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides responses and correct answer container should not be displayed');
|
204
|
-
fillInTheGapsDragAndDropPage.checkAnswerButton()
|
205
|
-
.click();
|
206
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
207
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
208
|
-
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
209
|
-
.should('not.exist');
|
210
|
-
cy.log('When the user gives correct input to the response with an identical option but from a different group and user selects the show correct answer checkbox, green check-mark icon should be displayed besides correct response, red cross-mark should be displayed besides the identical response input, correct answer container should be displayed with the correct answer input for user response marked incorrect and user should be awarded with zero points');
|
211
|
-
cy.log('Answering the response 1 with the correct identical option from a different mapped group i.e. Group B');
|
212
|
-
fillInTheGapsDragAndDropPage.previewTabDraggableOption()
|
213
|
-
.contains('Identical correct answer for response 1')
|
214
|
-
.click();
|
215
|
-
fillInTheGapsDragAndDropPage.previewTabResponseArea()
|
216
|
-
.eq(0)
|
217
|
-
.click();
|
218
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
219
|
-
.click()
|
220
|
-
.should('be.checked');
|
221
|
-
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
222
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
223
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(['Identical correct answer for response 1'], ['1']);
|
224
|
-
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
225
|
-
.verifyInnerText('0/20');
|
226
|
-
cy.log('Post-step: Unchecking show correct answer checkbox');
|
227
|
-
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
228
|
-
.click()
|
229
|
-
.should('not.be.checked');
|
230
|
-
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides correct response, red cross-mark should be displayed besides the identical response input, and correct answer container should not be displayed')
|
231
|
-
fillInTheGapsDragAndDropPage.checkAnswerButton()
|
232
|
-
.click();
|
233
|
-
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
234
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
235
|
-
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
236
|
-
.should('not.exist');
|
237
|
-
});
|
238
|
-
});
|
239
|
-
});
|
240
|
-
|
61
|
+
});
|
@@ -0,0 +1,186 @@
|
|
1
|
+
import { fillInTheGapsDragAndDropPage, fillInTheGapsScoring } from "../../../pages";
|
2
|
+
import { previewScoringAndShowCorrectAnswerComponent } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
|
5
|
+
describe('Create Item page - Fill in the Gaps - Drag and Drop - Grouped options layout: All or nothing scoring', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer with \'Match from all responses property - \"false\"\'', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, fill the necessary details and points and switch to preview tab');
|
14
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
17
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
18
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
19
|
+
.click();
|
20
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
21
|
+
fillInTheGapsDragAndDropPage.addGroupButton()
|
22
|
+
.click();
|
23
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
24
|
+
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
25
|
+
.eq(1)
|
26
|
+
.within(() => {
|
27
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
28
|
+
.click();
|
29
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
30
|
+
});
|
31
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
32
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
33
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
34
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
35
|
+
.click();
|
36
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
37
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
38
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
39
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
40
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
41
|
+
.click();
|
42
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
43
|
+
});
|
44
|
+
|
45
|
+
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
46
|
+
});
|
47
|
+
|
48
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer with \'Match from all responses property - \"true\"\'', () => {
|
49
|
+
abortEarlySetup();
|
50
|
+
before(() => {
|
51
|
+
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');
|
52
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
53
|
+
cy.barsPreLoaderWait();
|
54
|
+
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
55
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
56
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
57
|
+
.click();
|
58
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 1', 'Alternate answer for response 1', 'Incorrect answer 1']);
|
59
|
+
fillInTheGapsDragAndDropPage.addGroupButton()
|
60
|
+
.click();
|
61
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
62
|
+
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
63
|
+
.eq(1)
|
64
|
+
.within(() => {
|
65
|
+
fillInTheGapsDragAndDropPage.addOptionButton()
|
66
|
+
.click();
|
67
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Correct answer for response 2', 'Alternate answer for response 2', 'Incorrect answer 2']);
|
68
|
+
});
|
69
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(7);
|
70
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
71
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
72
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
73
|
+
.click();
|
74
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
75
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
76
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(3);
|
77
|
+
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
78
|
+
.click();
|
79
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
80
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
81
|
+
.click();
|
82
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
83
|
+
|
84
|
+
});
|
85
|
+
|
86
|
+
fillInTheGapsScoring.tests.verifyAutoScoredAllOrNothingWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
87
|
+
});
|
88
|
+
|
89
|
+
describe('Question Preview: AutoScored - All or Nothing with identical draggable response options for grouped options layout in preview tab', () => {
|
90
|
+
abortEarlySetup();
|
91
|
+
before(() => {
|
92
|
+
cy.log('Navigate to Fill in the gaps - drag and drop question type, fill the necessary details and points and switch to preview tab');
|
93
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
94
|
+
cy.barsPreLoaderWait();
|
95
|
+
fillInTheGapsDragAndDropPage.steps.selectResponseOptionsLayout('Grouped');
|
96
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(0, 'Group title A');
|
97
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Identical correct answer for response 1', 'Incorrect answer']);
|
98
|
+
fillInTheGapsDragAndDropPage.addGroupButton()
|
99
|
+
.click();
|
100
|
+
fillInTheGapsDragAndDropPage.steps.addGroupTitle(1, 'Group title B');
|
101
|
+
fillInTheGapsDragAndDropPage.groupResponseContainer()
|
102
|
+
.eq(1)
|
103
|
+
.within(() => {
|
104
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsForDragAndDropFields(['Identical correct answer for response 1', 'Correct answer for response 2']);
|
105
|
+
});
|
106
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(20);
|
107
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Identical correct answer for response 1', 0);
|
108
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
109
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
110
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
111
|
+
.click();
|
112
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
113
|
+
});
|
114
|
+
|
115
|
+
it('Case: When user has identical options to give as input', () => {
|
116
|
+
cy.log('Both the identical options should be visible in the draggable response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer container as the correct answer');
|
117
|
+
fillInTheGapsDragAndDropPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(0, ['Identical correct answer for response 1', 'Incorrect answer']);
|
118
|
+
fillInTheGapsDragAndDropPage.steps.verifyGroupedResponseContainerContentsInPreviewTab(1, ['Identical correct answer for response 1', 'Correct answer for response 2']);
|
119
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
120
|
+
.click()
|
121
|
+
.should('be.checked');
|
122
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(['Identical correct answer for response 1', 'Correct answer for response 2'], ['1', '2']);
|
123
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
124
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
125
|
+
.click()
|
126
|
+
.should('not.be.checked');
|
127
|
+
cy.log('When the user gives the correct answer inputs from the correctly mapped group and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, correct answer container should not be displayed and user should be awarded with full points');
|
128
|
+
cy.log('Answering the response 1 with the correct identical option from the correctly mapped group i.e. Group A');
|
129
|
+
fillInTheGapsDragAndDropPage.previewTabDraggableOption()
|
130
|
+
.contains('Identical correct answer for response 1')
|
131
|
+
.click();
|
132
|
+
fillInTheGapsDragAndDropPage.previewTabResponseArea()
|
133
|
+
.eq(0)
|
134
|
+
.click();
|
135
|
+
cy.log('Answering the response 2 with the correct option');
|
136
|
+
fillInTheGapsDragAndDropPage.steps.previewTabClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
137
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
138
|
+
.click()
|
139
|
+
.should('be.checked');
|
140
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
141
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
142
|
+
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
143
|
+
.should('not.exist');
|
144
|
+
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
145
|
+
.verifyInnerText('20/20');
|
146
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
147
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
148
|
+
.click()
|
149
|
+
.should('not.be.checked');
|
150
|
+
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides responses and correct answer container should not be displayed');
|
151
|
+
fillInTheGapsDragAndDropPage.checkAnswerButton()
|
152
|
+
.click();
|
153
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
154
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
155
|
+
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
156
|
+
.should('not.exist');
|
157
|
+
cy.log('When the user gives correct input to the response with an identical option but from a different group and user selects the show correct answer checkbox, green check-mark icon should be displayed besides correct response, red cross-mark should be displayed besides the identical response input, correct answer container should be displayed with the correct answer input for user response marked incorrect and user should be awarded with zero points');
|
158
|
+
cy.log('Answering the response 1 with the correct identical option from a different mapped group i.e. Group B');
|
159
|
+
fillInTheGapsDragAndDropPage.previewTabDraggableOption()
|
160
|
+
.contains('Identical correct answer for response 1')
|
161
|
+
.click();
|
162
|
+
fillInTheGapsDragAndDropPage.previewTabResponseArea()
|
163
|
+
.eq(0)
|
164
|
+
.click();
|
165
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
166
|
+
.click()
|
167
|
+
.should('be.checked');
|
168
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
169
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount(['Identical correct answer for response 1'], ['1']);
|
171
|
+
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|
172
|
+
.verifyInnerText('0/20');
|
173
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
174
|
+
previewScoringAndShowCorrectAnswerComponent.showCorrectAnswerCheckbox()
|
175
|
+
.click()
|
176
|
+
.should('not.be.checked');
|
177
|
+
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides correct response, red cross-mark should be displayed besides the identical response input, and correct answer container should not be displayed')
|
178
|
+
fillInTheGapsDragAndDropPage.checkAnswerButton()
|
179
|
+
.click();
|
180
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
181
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
182
|
+
fillInTheGapsDragAndDropPage.previewTabCorrectAnswerContainer()
|
183
|
+
.should('not.exist');
|
184
|
+
});
|
185
|
+
});
|
186
|
+
});
|
@@ -39,93 +39,6 @@ describe('Create Item page - Fill in the Gaps: Drag and Drop - Grouped options l
|
|
39
39
|
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsScoring('fill in the gaps - drag and drop');
|
40
40
|
});
|
41
41
|
|
42
|
-
describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer with \'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 different 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.partialDifferentWeightsCheckbox()
|
64
|
-
.click();
|
65
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
66
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
67
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
68
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
69
|
-
.click();
|
70
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
71
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
72
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
73
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
74
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
75
|
-
.click();
|
76
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
77
|
-
.click();
|
78
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
79
|
-
});
|
80
|
-
|
81
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
82
|
-
});
|
83
|
-
|
84
|
-
describe('Question Preview: AutoScored - Partial different 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 different 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.partialDifferentWeightsCheckbox()
|
106
|
-
.click();
|
107
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
108
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
109
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
110
|
-
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
111
|
-
.click();
|
112
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
113
|
-
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
114
|
-
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
115
|
-
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
116
|
-
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
117
|
-
.click();
|
118
|
-
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
119
|
-
.click();
|
120
|
-
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
121
|
-
.click();
|
122
|
-
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
123
|
-
|
124
|
-
});
|
125
|
-
|
126
|
-
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
127
|
-
});
|
128
|
-
|
129
42
|
describe('Partial Different Weights: Round down score - grouped options layout', () => {
|
130
43
|
abortEarlySetup();
|
131
44
|
before(() => {
|
@@ -0,0 +1,95 @@
|
|
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 different weights scoring', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped 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.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.partialDifferentWeightsCheckbox()
|
31
|
+
.click();
|
32
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
33
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
34
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
35
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
36
|
+
.click();
|
37
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
38
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
39
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
40
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
41
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
42
|
+
.click();
|
43
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
44
|
+
.click();
|
45
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
46
|
+
});
|
47
|
+
|
48
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesFalse('fill in the gaps - drag and drop')
|
49
|
+
});
|
50
|
+
|
51
|
+
describe('Question Preview: AutoScored - Partial different 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 different 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.partialDifferentWeightsCheckbox()
|
73
|
+
.click();
|
74
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 1', 0);
|
75
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Correct answer for response 2', 1);
|
76
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([5, 7]);
|
77
|
+
fillInTheGapsDragAndDropPage.alternateAnswerButton()
|
78
|
+
.click();
|
79
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 1', 0);
|
80
|
+
fillInTheGapsDragAndDropPage.steps.setCorrectAnswerSectionClickAndDropDraggableOptionInResponseArea('Alternate answer for response 2', 1);
|
81
|
+
fillInTheGapsDragAndDropPage.steps.addPartialDifferentWeightsPoints([3, 6]);
|
82
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditonalSettings();
|
83
|
+
fillInTheGapsDragAndDropPage.allowStudentsToCheckAnswerCheckbox()
|
84
|
+
.click();
|
85
|
+
fillInTheGapsDragAndDropPage.matchFromAllResponsesCheckbox()
|
86
|
+
.click();
|
87
|
+
fillInTheGapsDragAndDropPage.rounddownScoreCheckbox()
|
88
|
+
.click();
|
89
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
90
|
+
|
91
|
+
});
|
92
|
+
|
93
|
+
fillInTheGapsScoring.tests.verifyAutoScoredPartialDifferentWeightsWithAlternateAnswerAndMatchFromAllResponsesTrue('fill in the gaps - drag and drop')
|
94
|
+
});
|
95
|
+
});
|