itemengine-cypress-automation 1.0.32 → 1.0.37
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsAnswerNumerationAndResponseOptionPlacement.js +196 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsBasic.js +210 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsStemAndResponseColumnHeader.js +206 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingAlternateAnswer.js +193 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingClickAndDrop.js +644 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingEditTabScoringTypes.js +105 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsAllOrNothingScoring.js +117 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js +30 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsManualAndNonScoredScoring.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialDifferentScorings.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialEqualWeightsScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +207 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSetCorrectAnswersCheckboxesEditTab.js +139 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSetCorrectAnswersCheckboxesPreviewTab.js +227 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingHeaderSection.js +95 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +246 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingSetCorrectAnswerSectionBasic.js +40 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsAllOrNothingScoring.js +113 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js +30 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsManualAndNonScoredScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialDIfferentScoring.js +49 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js +36 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialEqualScoring.js +48 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js +35 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSection.js +233 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesEditTab.js +113 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +185 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingSwitchingCases.js +47 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsAnswerNumerationAndOptionLabel.js +295 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsBasic.js +300 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsOptionStyleDropdown.js +302 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsSetPointsPopup.js +273 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoring.js +178 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoringWithAlternateAnswer.js +712 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabBasicSection.js +316 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabScoringSection.js +256 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingHeaderSection.js +83 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingManuallyAndNonScoredScoring.js +160 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoring.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoringWithAlternateAnswer.js +895 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoring.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoringWithAlternateAnswer.js +807 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingSetCorrectAnswerCheckboxes.js +208 -0
- package/cypress/e2e/ILC/ListOrdering/listOrderingSetCorrectAnswerSection.js +172 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +820 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsAnswerNumerationAndOptionStyleDropdown.js +319 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsBasic.js +326 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsOptionLabelSection.js +202 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoring.js +188 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoringWithAlternateAnswer.js +759 -0
- package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +936 -0
- package/cypress/e2e/ILC/ListSorting/listSortingClickAndDrop.js +456 -0
- package/cypress/e2e/ILC/ListSorting/listSortingEditTabBasicSection.js +165 -0
- package/cypress/e2e/ILC/ListSorting/listSortingEditTabScoringSection.js +259 -0
- package/cypress/e2e/ILC/ListSorting/listSortingHeaderSection.js +89 -0
- package/cypress/e2e/ILC/ListSorting/listSortingManuallyAndNonScoredScoring.js +171 -0
- package/cypress/e2e/ILC/ListSorting/listSortingOptionsSection.js +287 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoring.js +210 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoringWithAlternateTab.js +952 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoring.js +207 -0
- package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoringWithAlternateAnswer.js +860 -0
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +263 -0
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerSection.js +168 -0
- package/package.json +1 -1
@@ -0,0 +1,287 @@
|
|
1
|
+
import { listSortingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
let options = ['seed', 'sprout', 'plant', 'flower'];
|
7
|
+
let correctAnswerArray = ['flower', 'plant', 'sprout', 'seed'];
|
8
|
+
|
9
|
+
describe('Create Item page - list sorting: Options', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Options section - Edit tab', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
cy.log('Navigating to list sorting question type');
|
18
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
19
|
+
});
|
20
|
+
|
21
|
+
listSortingPage.tests.verifyOptionSectionEditTabFunctionality();
|
22
|
+
});
|
23
|
+
|
24
|
+
describe('Options section - Set correct answer section for correct tab', () => {
|
25
|
+
abortEarlySetup();
|
26
|
+
before(() => {
|
27
|
+
cy.log('Navigating to list sorting question type');
|
28
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
29
|
+
cy.barsPreLoaderWait();
|
30
|
+
});
|
31
|
+
|
32
|
+
it('By default, 4 \'Options\' should be displayed in the source options section with drag handle and 4 empty options should be displayed in the target section in set correct answer section', () => {
|
33
|
+
for (let index = 0; index < 4; index++) {
|
34
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInSetCorrectAnswerSection(index)
|
35
|
+
}
|
36
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionOption(), 4);
|
37
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionSourceOptionWrapper(), 4);
|
38
|
+
utilities.verifyInnerText(listSortingPage.setCorrectAnswerSectionSourceOptionWrapper(), '');
|
39
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionTargetOptionWrapper(), 4);
|
40
|
+
utilities.verifyInnerText(listSortingPage.setCorrectAnswerSectionTargetOptionWrapper(), '');
|
41
|
+
});
|
42
|
+
|
43
|
+
it('When user clicks on the \'Delete\' option button then the source and target option wrapper and the option should get removed from the \'Set correct answer\' section', () => {
|
44
|
+
listSortingPage.steps.deleteOption(0);
|
45
|
+
for (let index = 0; index < 3; index++) {
|
46
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInSetCorrectAnswerSection(index)
|
47
|
+
}
|
48
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionOption(), 3);
|
49
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionSourceOptionWrapper(), 3);
|
50
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionTargetOptionWrapper(), 3);
|
51
|
+
});
|
52
|
+
|
53
|
+
it('When user adds an option using the \'Add option\' button then source and target option wrapper and the option should be added in the \'Set correct answer\' section', () => {
|
54
|
+
listSortingPage.steps.addOption()
|
55
|
+
for (let index = 0; index < 4; index++) {
|
56
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInSetCorrectAnswerSection(index)
|
57
|
+
}
|
58
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionOption(), 4);
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When user adds text to all the options input field, the added text should be displayed in the \'Set correct answer\' section', () => {
|
62
|
+
listSortingPage.steps.addInputToOptionsInputField(options)
|
63
|
+
listSortingPage.steps.verifySourceOptionsTextContentInSetCorrectAnswerSection(options);
|
64
|
+
});
|
65
|
+
|
66
|
+
it('When user edits an option in the \'Options\' section then the correct option should be updated in the source section', () => {
|
67
|
+
listSortingPage.steps.editOptionInputField(0, 'This is an edited option');
|
68
|
+
listSortingPage.steps.verifySourceOptionsTextContentInSetCorrectAnswerSection(['This is an edited option', 'sprout', 'plant', 'flower']);
|
69
|
+
})
|
70
|
+
|
71
|
+
//Need to update once https://redmine.zeuslearning.com/issues/539590 is resolved
|
72
|
+
it('When user sets the order in the target section of the \'Set correct answer\' section and edits an option in the \'Options\' section then the correct option should be updated', () => {
|
73
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('flower', 0);
|
74
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('plant', 1);
|
75
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('sprout', 2);
|
76
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('This is an edited option', 3);
|
77
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInSetCorrectAnswerSection(['flower', 'plant', 'sprout', 'This is an edited option']);
|
78
|
+
listSortingPage.steps.editOptionInputField(0, 'seed');
|
79
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
|
80
|
+
});
|
81
|
+
});
|
82
|
+
|
83
|
+
describe('Option section - Preview tab', () => {
|
84
|
+
abortEarlySetup();
|
85
|
+
before(() => {
|
86
|
+
cy.log('Navigating to list sorting question type');
|
87
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
88
|
+
cy.barsPreLoaderWait();
|
89
|
+
listSortingPage.steps.addQuestionInstructions();
|
90
|
+
listSortingPage.steps.switchToPreviewTab();
|
91
|
+
});
|
92
|
+
|
93
|
+
it('By default, 4 \'Options\' should be displayed in the source options section with drag handle and 4 empty options should be displayed in the target section in \'Preview tab\'', () => {
|
94
|
+
for (let index = 0; index < 4; index++) {
|
95
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInPreviewTab(index)
|
96
|
+
}
|
97
|
+
utilities.verifyElementCount(listSortingPage.previewTabOption(), 4);
|
98
|
+
utilities.verifyElementCount(listSortingPage.previewTabSourceOptionWrapper(), 4);
|
99
|
+
utilities.verifyInnerText(listSortingPage.previewTabSourceOptionWrapper(), '');
|
100
|
+
utilities.verifyElementCount(listSortingPage.previewTabTargetOptionWrapper(), 4);
|
101
|
+
utilities.verifyInnerText(listSortingPage.previewTabTargetOptionWrapper(), '');
|
102
|
+
});
|
103
|
+
|
104
|
+
it('When user clicks on the \'Delete\' option button then the source and target option wrapper and the option should get removed from the \'Preview tab\' section', () => {
|
105
|
+
listSortingPage.steps.switchToEditTab();
|
106
|
+
listSortingPage.steps.deleteOption(0);
|
107
|
+
listSortingPage.steps.switchToPreviewTab();
|
108
|
+
for (let index = 0; index < 3; index++) {
|
109
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInPreviewTab(index)
|
110
|
+
}
|
111
|
+
utilities.verifyElementCount(listSortingPage.previewTabOption(), 3);
|
112
|
+
utilities.verifyElementCount(listSortingPage.previewTabSourceOptionWrapper(), 3);
|
113
|
+
utilities.verifyElementCount(listSortingPage.previewTabTargetOptionWrapper(), 3);
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When user adds an option using the \'Add option\' button then source and target option wrapper and the option should be added in the \'Preview tab\' section', () => {
|
117
|
+
listSortingPage.steps.switchToEditTab();
|
118
|
+
listSortingPage.steps.addOption();
|
119
|
+
listSortingPage.steps.switchToPreviewTab();
|
120
|
+
for (let index = 0; index < 4; index++) {
|
121
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInPreviewTab(index);
|
122
|
+
}
|
123
|
+
utilities.verifyElementCount(listSortingPage.previewTabOption(), 4);
|
124
|
+
utilities.verifyElementCount(listSortingPage.previewTabSourceOptionWrapper(), 4);
|
125
|
+
utilities.verifyElementCount(listSortingPage.previewTabTargetOptionWrapper(), 4);
|
126
|
+
});
|
127
|
+
|
128
|
+
it('When user adds text to all the options input field, the added text should be displayed in the \'Preview tab\' section', () => {
|
129
|
+
listSortingPage.steps.switchToEditTab();
|
130
|
+
listSortingPage.steps.addInputToOptionsInputField(options);
|
131
|
+
listSortingPage.steps.switchToPreviewTab();
|
132
|
+
listSortingPage.steps.verifySourceOptionsTextContentInPreviewTab(options);
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When user sets the order in the target section of the \'Set correct answer\' section and edits an option in the \'Options\' section then the correct option should be updated', () => {
|
136
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 0);
|
137
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
138
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 2);
|
139
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 3);
|
140
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(correctAnswerArray);
|
141
|
+
});
|
142
|
+
});
|
143
|
+
|
144
|
+
describe('Option section contents with Image, Equation, Text and Link - Set correct answer section for correct tab', () => {
|
145
|
+
abortEarlySetup();
|
146
|
+
before(() => {
|
147
|
+
cy.log('Navigating to list sorting question type');
|
148
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
149
|
+
cy.log('Add Image to option input field')
|
150
|
+
listSortingPage.steps.focusInOptionsInputField(0);
|
151
|
+
listSortingPage.steps.selectImageOptionFromCKEditorToolbar()
|
152
|
+
listSortingPage.steps.addImageToInputField();
|
153
|
+
cy.log('Add equation to option input field')
|
154
|
+
listSortingPage.steps.focusInOptionsInputField(1);
|
155
|
+
listSortingPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
156
|
+
listSortingPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
157
|
+
cy.log('Add link to option input field')
|
158
|
+
listSortingPage.steps.focusInOptionsInputField(2);
|
159
|
+
listSortingPage.steps.selectLinkOptionFromCKEditorToolbar();
|
160
|
+
listSortingPage.steps.addLinkToInputField()
|
161
|
+
cy.log('Add bold text to input field')
|
162
|
+
listSortingPage.steps.focusInOptionsInputField(3);
|
163
|
+
listSortingPage.steps.selectBoldOptionFromCKEditorToolbar();
|
164
|
+
listSortingPage.steps.addBoldTextInputToOptionsInputField(3);
|
165
|
+
});
|
166
|
+
|
167
|
+
listSortingPage.tests.verifyImageEquationLinkBoldTextInSetCorrectAnswerSection();
|
168
|
+
});
|
169
|
+
|
170
|
+
describe('Option section contents with Image, Equation, Text and Link - Set correct answer section for alternate tab', () => {
|
171
|
+
abortEarlySetup();
|
172
|
+
before(() => {
|
173
|
+
cy.log('Navigating to list sorting question type');
|
174
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
175
|
+
cy.log('Add Image to option input field')
|
176
|
+
listSortingPage.steps.focusInOptionsInputField(0);
|
177
|
+
listSortingPage.steps.selectImageOptionFromCKEditorToolbar()
|
178
|
+
listSortingPage.steps.addImageToInputField();
|
179
|
+
cy.log('Add equation to option input field')
|
180
|
+
listSortingPage.steps.focusInOptionsInputField(1);
|
181
|
+
listSortingPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
182
|
+
listSortingPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
183
|
+
cy.log('Add link to option input field')
|
184
|
+
listSortingPage.steps.focusInOptionsInputField(2);
|
185
|
+
listSortingPage.steps.selectLinkOptionFromCKEditorToolbar();
|
186
|
+
listSortingPage.steps.addLinkToInputField()
|
187
|
+
cy.log('Add bold text to input field')
|
188
|
+
listSortingPage.steps.focusInOptionsInputField(3);
|
189
|
+
listSortingPage.steps.selectBoldOptionFromCKEditorToolbar();
|
190
|
+
listSortingPage.steps.addBoldTextInputToOptionsInputField(3);
|
191
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInSetCorrectAnswerSection(0, 0);
|
192
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInSetCorrectAnswerSection(1, 1);
|
193
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInSetCorrectAnswerSection(2, 2);
|
194
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInSetCorrectAnswerSection(3, 3);
|
195
|
+
listSortingPage.steps.allotPoints('20');
|
196
|
+
listSortingPage.steps.addAlternateTab(1);
|
197
|
+
});
|
198
|
+
|
199
|
+
listSortingPage.tests.verifyImageEquationLinkBoldTextInSetCorrectAnswerSection()
|
200
|
+
|
201
|
+
it('When user adds an option using \'Add option\' button then source and target option wrapper and the option should be added and on deleting the option, the source and target option wrapper and the option should get removed', () => {
|
202
|
+
listSortingPage.steps.addOption()
|
203
|
+
for (let index = 0; index < 4; index++) {
|
204
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInSetCorrectAnswerSection(index)
|
205
|
+
}
|
206
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionOption(), 5);
|
207
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionSourceOptionWrapper(), 5);
|
208
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionTargetOptionWrapper(), 5);
|
209
|
+
listSortingPage.steps.deleteOption(4);
|
210
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionOption(), 4);
|
211
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionSourceOptionWrapper(), 4);
|
212
|
+
utilities.verifyElementCount(listSortingPage.setCorrectAnswerSectionTargetOptionWrapper(), 4);
|
213
|
+
});
|
214
|
+
});
|
215
|
+
|
216
|
+
describe('Option section contents with Image, Equation, Text and Link - Preview tab', () => {
|
217
|
+
abortEarlySetup();
|
218
|
+
before(() => {
|
219
|
+
cy.log('Navigating to list sorting question type');
|
220
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
221
|
+
cy.log('Add Image to option input field')
|
222
|
+
listSortingPage.steps.focusInOptionsInputField(0);
|
223
|
+
listSortingPage.steps.selectImageOptionFromCKEditorToolbar()
|
224
|
+
listSortingPage.steps.addImageToInputField();
|
225
|
+
cy.log('Add equation to option input field')
|
226
|
+
listSortingPage.steps.focusInOptionsInputField(1);
|
227
|
+
listSortingPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
228
|
+
listSortingPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
229
|
+
cy.log('Add link to option input field')
|
230
|
+
listSortingPage.steps.focusInOptionsInputField(2);
|
231
|
+
listSortingPage.steps.selectLinkOptionFromCKEditorToolbar();
|
232
|
+
listSortingPage.steps.addLinkToInputField()
|
233
|
+
cy.log('Add bold text to input field')
|
234
|
+
listSortingPage.steps.focusInOptionsInputField(3);
|
235
|
+
listSortingPage.steps.selectBoldOptionFromCKEditorToolbar();
|
236
|
+
listSortingPage.steps.addBoldTextInputToOptionsInputField(3);
|
237
|
+
listSortingPage.steps.switchToPreviewTab()
|
238
|
+
});
|
239
|
+
|
240
|
+
it('When user adds an image, equation, text and link to the options input they should be displayed in the \'Preview tab\' along with drag handles', () => {
|
241
|
+
for (let index = 0; index < 4; index++) {
|
242
|
+
listSortingPage.steps.verifyDragHandleButtonOfOptionInPreviewTab(index)
|
243
|
+
}
|
244
|
+
listSortingPage.steps.verifyImageEquationLinkBoldTextInPreviewTabSourceOption()
|
245
|
+
});
|
246
|
+
|
247
|
+
it('When user hovers on the option it should be displayed in active state and on removing the focus the option should return to the default state', () => {
|
248
|
+
listSortingPage.steps.verifyDefaultAndActiveStateOfOptionInPreviewTab();
|
249
|
+
});
|
250
|
+
|
251
|
+
//Failing due to https://redmine.zeuslearning.com/issues/537907
|
252
|
+
it('CSS of \'Preview tab\' when image, equation and link are added', { tags: 'css' }, () => {
|
253
|
+
utilities.verifyCSS(listSortingPage.previewTabOption().eq(0).find('img'), {
|
254
|
+
'color': css.color.text,
|
255
|
+
'font-size': css.fontSize.default,
|
256
|
+
'font-weight': css.fontWeight.regular
|
257
|
+
});
|
258
|
+
utilities.verifyCSS(listSortingPage.previewTabOption().eq(1).find('.question-text-wrapper'), {
|
259
|
+
'color': css.color.text,
|
260
|
+
'font-size': css.fontSize.default,
|
261
|
+
'font-weight': css.fontWeight.regular
|
262
|
+
});
|
263
|
+
utilities.verifyCSS(listSortingPage.previewTabOption().eq(2).find('a'), {
|
264
|
+
'color': css.color.linkText,
|
265
|
+
'font-size': css.fontSize.default,
|
266
|
+
'font-weight': css.fontWeight.regular
|
267
|
+
});
|
268
|
+
utilities.verifyCSS(listSortingPage.previewTabOption().eq(3).find('.question-text-wrapper'), {
|
269
|
+
'color': css.color.text,
|
270
|
+
'font-size': css.fontSize.default,
|
271
|
+
'font-weight': css.fontWeight.regular
|
272
|
+
});
|
273
|
+
});
|
274
|
+
|
275
|
+
it('Accessibility of \'Preview tab\' when image, equation and link are added', { tags: 'a11y' }, () => {
|
276
|
+
cy.checkAccessibility(listSortingPage.previewTabQuestionWrapper());
|
277
|
+
});
|
278
|
+
|
279
|
+
it('When user sets the order in target section then the options should be displayed in the target section of the Set correct answer section', () => {
|
280
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInPreviewTab(0, 0);
|
281
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInPreviewTab(1, 1);
|
282
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInPreviewTab(2, 2);
|
283
|
+
listSortingPage.steps.clickAndDropOptionFromSourceIndexToTargetIndexInPreviewTab(3, 3);
|
284
|
+
listSortingPage.steps.verifyImageEquationLinkBoldTextInPreviewTabTargetOption();
|
285
|
+
});
|
286
|
+
});
|
287
|
+
});
|
@@ -0,0 +1,210 @@
|
|
1
|
+
import { listSortingPage } from "../../../pages/listSortingPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
let options = ['plant', 'sprout', 'flower', 'seed'];
|
6
|
+
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
7
|
+
|
8
|
+
describe('Create item page - List sorting: Partial different weights scoring', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: AutoScored - Partial different weights', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigating to list sorting question type');
|
17
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
18
|
+
cy.log('Adding question instructions, setting correct answer order and adding points for Partial different weights scoring type and switching to Preview tab');
|
19
|
+
cy.barsPreLoaderWait();
|
20
|
+
listSortingPage.steps.addQuestionInstructions();
|
21
|
+
listSortingPage.steps.addInputToOptionsInputField(options);
|
22
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('seed', 0);
|
23
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('sprout', 1);
|
24
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('plant', 2);
|
25
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('flower', 3);
|
26
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
|
27
|
+
listSortingPage.steps.selectPartialDifferentWeightsCheckbox();
|
28
|
+
listSortingPage.steps.allotPartialDifferentWeightsToAllPointsFields([4.2, 1.8, 2.3, 3.7]);
|
29
|
+
listSortingPage.steps.uncheckRoundDownScoreCheckbox();
|
30
|
+
listSortingPage.steps.expandAdditonalSettings();
|
31
|
+
listSortingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
listSortingPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border or icons should not be displayed, a correct answer container with \'Correct answers:\' label and all correct answers with numeration should be displayed below the question preview', () => {
|
36
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox();
|
37
|
+
listSortingPage.steps.verifyPreviewTabScoreText(0, 12);
|
38
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
39
|
+
listSortingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
40
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
|
41
|
+
utilities.verifyInnerText(listSortingPage.correctAnswerContainerCorrectAnswersLabel(), 'Correct answers:');
|
42
|
+
});
|
43
|
+
|
44
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect answer border for the question and label should not be displayed below the question preview and correct answer container should not be displayed', () => {
|
45
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
46
|
+
listSortingPage.steps.uncheckShowCorrectAnswerCheckbox()
|
47
|
+
listSortingPage.steps.checkAnswer();
|
48
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
49
|
+
listSortingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
50
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
51
|
+
});
|
52
|
+
|
53
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all the incorrect options, the correct answer container with all correct answers along with numeration should be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
|
54
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 0);
|
55
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
56
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 2);
|
57
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 3);
|
58
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
|
59
|
+
listSortingPage.steps.verifyPreviewTabScoreText(0, 12);
|
60
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox();
|
61
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
|
62
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
63
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
64
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
|
65
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
|
66
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
67
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
68
|
+
|
69
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
70
|
+
|
71
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed beside all the incorrect options, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
|
72
|
+
listSortingPage.steps.checkAnswer();
|
73
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
|
74
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
75
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
76
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
|
77
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
78
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
79
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
80
|
+
});
|
81
|
+
|
82
|
+
it('When user attempts the question partially correct with some options at the correct position and some at incorrect then on selecting \'Show correct answer\' checkbox, the user should be awarded points of the correctly ordered options, red cross-mark icons should be displayed beside the options at incorrect position, green check-mark icons should be displayed beside the options at the correct position, the correct answer container with all correct answers along with numeration should be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
|
83
|
+
listSortingPage.steps.resetQuestionPreview();
|
84
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 0);
|
85
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
86
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 2);
|
87
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
88
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['plant', 'sprout', 'seed', 'flower']);
|
89
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox()
|
90
|
+
listSortingPage.steps.verifyPreviewTabScoreText(5.5, 12);
|
91
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
92
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
93
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
94
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
95
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '3']);
|
96
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
97
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
98
|
+
|
99
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
100
|
+
|
101
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, red cross-mark icons should be displayed beside the options at incorrect position and green check-mark icons should be displayed beside the options at the correct position, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
|
102
|
+
listSortingPage.steps.checkAnswer()
|
103
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
104
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
105
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
106
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
107
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
108
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
109
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
110
|
+
});
|
111
|
+
|
112
|
+
it('When user attempts the question correct then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed beside all the options, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
|
113
|
+
listSortingPage.steps.resetQuestionPreview();
|
114
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
115
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
116
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
117
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
118
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(correctAnswerArray);
|
119
|
+
listSortingPage.steps.verifyPreviewTabScoreText(12, 12);
|
120
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox()
|
121
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
122
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
|
123
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
|
124
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
125
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
126
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
127
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
128
|
+
|
129
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
130
|
+
|
131
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed beside the options at the correct position, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
|
132
|
+
listSortingPage.steps.checkAnswer();
|
133
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
134
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
|
135
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
|
136
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
137
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
138
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
139
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
140
|
+
});
|
141
|
+
|
142
|
+
listSortingPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(12);
|
143
|
+
|
144
|
+
listSortingPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(6.4, 12);
|
145
|
+
|
146
|
+
listSortingPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 6.4, 6], 6, 12);
|
147
|
+
});
|
148
|
+
|
149
|
+
describe('Partial Different Weights: Round down score', () => {
|
150
|
+
abortEarlySetup();
|
151
|
+
before(() => {
|
152
|
+
cy.log('Navigating to list sorting question type');
|
153
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
154
|
+
cy.log('Adding question instructions, setting correct answer order and adding points for Partial equal weights scoring type and switching to Preview tab');
|
155
|
+
cy.barsPreLoaderWait();
|
156
|
+
listSortingPage.steps.addQuestionInstructions();
|
157
|
+
listSortingPage.steps.addInputToOptionsInputField(options);
|
158
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('seed', 0);
|
159
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('sprout', 1);
|
160
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('plant', 2);
|
161
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('flower', 3);
|
162
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
|
163
|
+
listSortingPage.steps.selectPartialDifferentWeightsCheckbox();
|
164
|
+
listSortingPage.steps.allotPartialDifferentWeightsToAllPointsFields([4.2, 1.8, 3.4, 2.3]);
|
165
|
+
listSortingPage.steps.expandAdditonalSettings();
|
166
|
+
listSortingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
167
|
+
listSortingPage.steps.switchToPreviewTab();
|
168
|
+
});
|
169
|
+
|
170
|
+
it('When the \'Round down score\' checkbox is selected, then in Preview tab when user enters partially or fully correct answers responses the score displayed should be rounded down to the nearest whole number', () => {
|
171
|
+
listSortingPage.steps.verifyCheckedStateOfRoundDownScoreCheckbox();
|
172
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
173
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
174
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 2);
|
175
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
176
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'plant', 'sprout', 'flower']);
|
177
|
+
listSortingPage.steps.verifyPreviewTabScoreText(6, 11.7);
|
178
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
179
|
+
listSortingPage.steps.resetQuestionPreview();
|
180
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
181
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
182
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
183
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
184
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'sprout', 'plant', 'flower']);
|
185
|
+
listSortingPage.steps.verifyPreviewTabScoreText(11, 11.7);
|
186
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('When the \'Round down score\' checkbox is not selected, then in Preview tab when user selects partially or fully correct answers the points should be displayed in decimal points if applicable as per the options selected by the user', () => {
|
190
|
+
listSortingPage.steps.switchToEditTab()
|
191
|
+
listSortingPage.steps.uncheckRoundDownScoreCheckbox()
|
192
|
+
listSortingPage.steps.switchToPreviewTab();
|
193
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
194
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
195
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 2);
|
196
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
197
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'plant', 'sprout', 'flower']);
|
198
|
+
listSortingPage.steps.verifyPreviewTabScoreText(6.5, 11.7);
|
199
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
200
|
+
listSortingPage.steps.resetQuestionPreview();
|
201
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
202
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
203
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
204
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
205
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'sprout', 'plant', 'flower']);
|
206
|
+
listSortingPage.steps.verifyPreviewTabScoreText(11.7, 11.7);
|
207
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
208
|
+
});
|
209
|
+
});
|
210
|
+
});
|