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,207 @@
|
|
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 equal weights scoring', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Question Preview: AutoScored - Partial equal 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 equal 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.selectPartialEqualWeightsCheckbox();
|
28
|
+
listSortingPage.steps.allotPoints('20');
|
29
|
+
listSortingPage.steps.expandAdditonalSettings();
|
30
|
+
listSortingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
31
|
+
listSortingPage.steps.switchToPreviewTab();
|
32
|
+
});
|
33
|
+
|
34
|
+
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', () => {
|
35
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox();
|
36
|
+
listSortingPage.steps.verifyPreviewTabScoreText(0, 20);
|
37
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
38
|
+
listSortingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
39
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
|
40
|
+
utilities.verifyInnerText(listSortingPage.correctAnswerContainerCorrectAnswersLabel(), 'Correct answers:');
|
41
|
+
});
|
42
|
+
|
43
|
+
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', () => {
|
44
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
45
|
+
listSortingPage.steps.uncheckShowCorrectAnswerCheckbox()
|
46
|
+
listSortingPage.steps.checkAnswer();
|
47
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
48
|
+
listSortingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
49
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
50
|
+
});
|
51
|
+
|
52
|
+
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', () => {
|
53
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 0);
|
54
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
55
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 2);
|
56
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 3);
|
57
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
|
58
|
+
listSortingPage.steps.verifyPreviewTabScoreText(0, 20);
|
59
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox();
|
60
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
|
61
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
62
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
63
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
|
64
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
65
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
66
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
|
67
|
+
|
68
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
69
|
+
|
70
|
+
cy.log('When user attempts the question incorrectly and on selecting on the \'Check Answer\' button, 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')
|
71
|
+
listSortingPage.steps.checkAnswer();
|
72
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
|
73
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
74
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
75
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
|
76
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
77
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
78
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
79
|
+
});
|
80
|
+
|
81
|
+
it('When user attempts the question partially correct with some options at the correct position and some at incorrect and 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', () => {
|
82
|
+
listSortingPage.steps.resetQuestionPreview();
|
83
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 0);
|
84
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
85
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 2);
|
86
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
87
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['plant', 'sprout', 'seed', 'flower']);
|
88
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox()
|
89
|
+
listSortingPage.steps.verifyPreviewTabScoreText(10, 20);
|
90
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
91
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
92
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
93
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
94
|
+
listSortingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '3']);
|
95
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
96
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
97
|
+
|
98
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
99
|
+
|
100
|
+
cy.log('When user attempts the question partially correct and on selecting 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')
|
101
|
+
listSortingPage.steps.checkAnswer()
|
102
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
103
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
104
|
+
listSortingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
|
105
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
106
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
107
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
108
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
109
|
+
});
|
110
|
+
|
111
|
+
it('When user attempts the question correct then user should be awarded full points and on selecting \'Show correct answer\' checkbox, 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', () => {
|
112
|
+
listSortingPage.steps.resetQuestionPreview();
|
113
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
114
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
115
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
116
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
117
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(correctAnswerArray);
|
118
|
+
listSortingPage.steps.verifyPreviewTabScoreText(20, 20);
|
119
|
+
listSortingPage.steps.checkShowCorrectAnswerCheckbox()
|
120
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
121
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
|
122
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
|
123
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
124
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
125
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
126
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
127
|
+
|
128
|
+
listSortingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
129
|
+
|
130
|
+
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')
|
131
|
+
listSortingPage.steps.checkAnswer();
|
132
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
|
133
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
|
134
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
|
135
|
+
listSortingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
|
136
|
+
listSortingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
137
|
+
listSortingPage.steps.verifyCorrectIncorrectBorderNotExists();
|
138
|
+
listSortingPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
139
|
+
});
|
140
|
+
|
141
|
+
listSortingPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(20);
|
142
|
+
|
143
|
+
listSortingPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(8, 20);
|
144
|
+
|
145
|
+
listSortingPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 8, 6], 6, 20);
|
146
|
+
});
|
147
|
+
|
148
|
+
describe('Partial Equal Weights: Round down score', () => {
|
149
|
+
abortEarlySetup();
|
150
|
+
before(() => {
|
151
|
+
cy.log('Navigating to list sorting question type');
|
152
|
+
listSortingPage.steps.navigateToCreateQuestion('list sorting');
|
153
|
+
cy.log('Adding question instructions, setting correct answer order and adding points for Partial equal weights scoring type and switching to Preview tab');
|
154
|
+
cy.barsPreLoaderWait();
|
155
|
+
listSortingPage.steps.addQuestionInstructions();
|
156
|
+
listSortingPage.steps.addInputToOptionsInputField(options);
|
157
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('seed', 0);
|
158
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('sprout', 1);
|
159
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('plant', 2);
|
160
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInSetCorrectAnswerSection('flower', 3);
|
161
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
|
162
|
+
listSortingPage.steps.selectPartialEqualWeightsCheckbox();
|
163
|
+
listSortingPage.steps.allotPoints('14.5');
|
164
|
+
listSortingPage.steps.switchToPreviewTab();
|
165
|
+
});
|
166
|
+
|
167
|
+
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', () => {
|
168
|
+
listSortingPage.steps.verifyCheckedStateOfRoundDownScoreCheckbox();
|
169
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
170
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
171
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 2);
|
172
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
173
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'plant', 'sprout', 'flower']);
|
174
|
+
listSortingPage.steps.verifyPreviewTabScoreText(7, 14.5);
|
175
|
+
listSortingPage.steps.resetQuestionPreview();
|
176
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
177
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
178
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
179
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
180
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
181
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'sprout', 'plant', 'flower']);
|
182
|
+
listSortingPage.steps.verifyPreviewTabScoreText(14, 14.5);
|
183
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
184
|
+
});
|
185
|
+
|
186
|
+
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', () => {
|
187
|
+
listSortingPage.steps.switchToEditTab()
|
188
|
+
listSortingPage.steps.uncheckRoundDownScoreCheckbox()
|
189
|
+
listSortingPage.steps.switchToPreviewTab();
|
190
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
191
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 1);
|
192
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 2);
|
193
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
194
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'plant', 'sprout', 'flower']);
|
195
|
+
listSortingPage.steps.verifyPreviewTabScoreText(7.26, 14.5);
|
196
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
197
|
+
listSortingPage.steps.resetQuestionPreview();
|
198
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('seed', 0);
|
199
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('sprout', 1);
|
200
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('plant', 2);
|
201
|
+
listSortingPage.steps.clickAndDropOptionFromSourceToTargetInPreviewTab('flower', 3);
|
202
|
+
listSortingPage.steps.verifyTargetOptionsTextContentInPreviewTab(['seed', 'sprout', 'plant', 'flower']);
|
203
|
+
listSortingPage.steps.verifyPreviewTabScoreText(14.5, 14.5);
|
204
|
+
listSortingPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
205
|
+
});
|
206
|
+
});
|
207
|
+
});
|