itemengine-cypress-automation 1.0.209-graphqlStagingUpdate-7ab593a.0 → 1.0.210-1stJulyFixes-e873781.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +22 -22
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +824 -388
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +19 -18
- package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +27 -26
- package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternatePoints.js +27 -26
- package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +10 -9
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +23 -22
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +7 -6
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +29 -28
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +30 -29
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +22 -21
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsScoring.js +7 -6
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +27 -26
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +30 -29
- package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +21 -14
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +17 -15
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -5
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +16 -16
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +7 -9
- package/cypress/pages/components/correctIncorrectAnswerLabelComponent.js +4 -0
- package/cypress/pages/components/createCustomCategoryFlyout.js +4 -3
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/gridFillPage.js +5 -0
- package/cypress/pages/imageHighlightPage.js +2 -2
- package/cypress/pages/videoResponsePage.js +1 -1
- package/package.json +1 -1
@@ -36,6 +36,7 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
36
36
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
|
37
37
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
38
38
|
imageHighlightPage.steps.allotPoints(12);
|
39
|
+
imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
|
39
40
|
//imageHighlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
40
41
|
imageHighlightPage.steps.switchToPreviewTab();
|
41
42
|
});
|
@@ -45,11 +46,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
45
46
|
imageHighlightPage.steps.verifyPreviewScore(0, 20);
|
46
47
|
imageHighlightPage.steps.switchToGradingView();
|
47
48
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
48
|
-
imageHighlightPage.steps.
|
49
|
-
imageHighlightPage.steps.
|
49
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
50
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
50
51
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
51
52
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
52
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
53
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
53
54
|
});
|
54
55
|
|
55
56
|
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct answer section should not be displayed', () => {
|
@@ -59,9 +60,9 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
59
60
|
imageHighlightPage.steps.verifyPreviewScore(20, 20);
|
60
61
|
imageHighlightPage.steps.switchToGradingView();
|
61
62
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
62
|
-
imageHighlightPage.steps.
|
63
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
63
64
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
64
|
-
imageHighlightPage.steps.
|
65
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
65
66
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
66
67
|
utilities.verifyElementVisibilityState(imageHighlightPage.correctIncorrectAnswerTextWrapper(), 'notExist');
|
67
68
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -102,11 +103,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
102
103
|
imageHighlightPage.steps.highlightARegionInPreviewTab(3);
|
103
104
|
imageHighlightPage.steps.verifyPreviewScore(10, 20);
|
104
105
|
imageHighlightPage.steps.switchToGradingView();
|
105
|
-
imageHighlightPage.steps.
|
106
|
-
imageHighlightPage.steps.
|
106
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
107
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
107
108
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
108
|
-
imageHighlightPage.steps.
|
109
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
109
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
110
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
110
111
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
111
112
|
|
112
113
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct answer section should not be displayed')
|
@@ -123,11 +124,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
123
124
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
124
125
|
imageHighlightPage.steps.verifyPreviewScore(6, 20);
|
125
126
|
imageHighlightPage.steps.switchToGradingView();
|
126
|
-
imageHighlightPage.steps.
|
127
|
-
imageHighlightPage.steps.
|
127
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
128
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
128
129
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
129
130
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
130
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
131
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
131
132
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
133
|
|
133
134
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response correct answer section should not be displayed')
|
@@ -145,11 +146,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
145
146
|
imageHighlightPage.steps.highlightARegionInPreviewTab(3);
|
146
147
|
imageHighlightPage.steps.verifyPreviewScore(10, 20);
|
147
148
|
imageHighlightPage.steps.switchToGradingView();
|
148
|
-
imageHighlightPage.steps.
|
149
|
-
imageHighlightPage.steps.
|
150
|
-
imageHighlightPage.steps.
|
151
|
-
imageHighlightPage.steps.
|
152
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
149
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
150
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
151
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
152
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
153
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
153
154
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
154
155
|
|
155
156
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside empty responses correct answer section should not be displayed')
|
@@ -167,10 +168,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
167
168
|
imageHighlightPage.steps.verifyPreviewScore(10, 20);
|
168
169
|
imageHighlightPage.steps.switchToGradingView();
|
169
170
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
170
|
-
imageHighlightPage.steps.
|
171
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
171
172
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
172
173
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
173
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
174
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
174
175
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
175
176
|
|
176
177
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response correct answer section should not be displayed')
|
@@ -190,10 +191,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
190
191
|
imageHighlightPage.steps.verifyPreviewScore(20, 20);
|
191
192
|
imageHighlightPage.steps.switchToGradingView();
|
192
193
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
193
|
-
imageHighlightPage.steps.
|
194
|
-
imageHighlightPage.steps.
|
195
|
-
imageHighlightPage.steps.
|
196
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
194
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
195
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
196
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
197
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
197
198
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
198
199
|
|
199
200
|
/*cy.log('When the user has attempted the question with partially correct with all the response and clicks on \'Check answer\' button, then correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, correct answer section should not be displayed')
|
@@ -210,11 +211,11 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
210
211
|
imageHighlightPage.steps.highlightARegionInPreviewTab(2);
|
211
212
|
imageHighlightPage.steps.verifyPreviewScore(0, 20);
|
212
213
|
imageHighlightPage.steps.switchToGradingView();
|
213
|
-
imageHighlightPage.steps.
|
214
|
-
imageHighlightPage.steps.
|
214
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
215
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
215
216
|
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
216
217
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(3);
|
217
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
218
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
218
219
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
219
220
|
|
220
221
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response correct answer section should not be displayed')
|
@@ -243,10 +244,10 @@ describe('Create Item page - Image highlight: Partial equal weights with alterna
|
|
243
244
|
imageHighlightPage.steps.verifyPreviewScore(25, 50);
|
244
245
|
imageHighlightPage.steps.switchToGradingView();
|
245
246
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
246
|
-
imageHighlightPage.steps.
|
247
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
247
248
|
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
248
|
-
imageHighlightPage.steps.
|
249
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
249
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(3);
|
250
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
250
251
|
imageHighlightPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
251
252
|
|
252
253
|
/*cy.log('Overachiever case: When the user clicks on \'Check answer\' button, green check-mark icons should be displayed for the correct tab option, red crossmark icon should be displayed for the alternate tab options, correct answers container should not be displayed and correct/incorrect answer label and its border should not be displayed')
|
@@ -30,6 +30,7 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
30
30
|
imageHighlightPage.steps.clickOnAddAlternativeAnswerButton();
|
31
31
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
32
32
|
imageHighlightPage.steps.allotPoints(12);
|
33
|
+
imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
|
33
34
|
imageHighlightPage.steps.switchToPreviewTab();
|
34
35
|
});
|
35
36
|
|
@@ -38,7 +39,7 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
38
39
|
imageHighlightPage.steps.switchToGradingView();
|
39
40
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab();
|
40
41
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
41
|
-
imageHighlightPage.steps.
|
42
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
42
43
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
43
44
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
44
45
|
});
|
@@ -100,8 +101,8 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
100
101
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
101
102
|
imageHighlightPage.steps.verifyPreviewScore(12, 20);
|
102
103
|
imageHighlightPage.steps.switchToGradingView();
|
103
|
-
imageHighlightPage.steps.verifyCorrectHighlightRegion(
|
104
|
-
imageHighlightPage.steps.verifyDefaultHighlightRegion(
|
104
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
105
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
105
106
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
106
107
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
107
108
|
});
|
@@ -112,7 +113,9 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
112
113
|
imageHighlightPage.steps.highlightARegionInPreviewTab(2);
|
113
114
|
imageHighlightPage.steps.verifyPreviewScore(0, 20);
|
114
115
|
imageHighlightPage.steps.switchToGradingView();
|
115
|
-
imageHighlightPage.steps.
|
116
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
117
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
|
118
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
116
119
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
117
120
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
118
121
|
});
|
@@ -136,6 +139,7 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
136
139
|
imageHighlightPage.steps.clickOnAddAlternativeAnswerButton();
|
137
140
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
138
141
|
imageHighlightPage.steps.allotPoints(20);
|
142
|
+
imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
|
139
143
|
imageHighlightPage.steps.switchToPreviewTab();
|
140
144
|
});
|
141
145
|
|
@@ -144,9 +148,9 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
144
148
|
imageHighlightPage.steps.switchToGradingView();
|
145
149
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab();
|
146
150
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
147
|
-
imageHighlightPage.steps.
|
151
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
148
152
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
149
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option
|
153
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
150
154
|
});
|
151
155
|
|
152
156
|
it('When the user highlights a correct region with points less than alternative answer, then the user should be awarded with points from correct accordian and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
@@ -165,8 +169,8 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
165
169
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
166
170
|
imageHighlightPage.steps.verifyPreviewScore(20, 20);
|
167
171
|
imageHighlightPage.steps.switchToGradingView();
|
168
|
-
imageHighlightPage.steps.verifyCorrectHighlightRegion(
|
169
|
-
imageHighlightPage.steps.verifyDefaultHighlightRegion(
|
172
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
173
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
170
174
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
171
175
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
172
176
|
});
|
@@ -177,9 +181,10 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
177
181
|
imageHighlightPage.steps.highlightARegionInPreviewTab(2);
|
178
182
|
imageHighlightPage.steps.verifyPreviewScore(0, 20);
|
179
183
|
imageHighlightPage.steps.switchToGradingView();
|
180
|
-
imageHighlightPage.steps.
|
184
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
185
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
|
181
186
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
182
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option
|
187
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
183
188
|
});
|
184
189
|
});
|
185
190
|
|
@@ -201,6 +206,7 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
201
206
|
imageHighlightPage.steps.clickOnAddAlternativeAnswerButton();
|
202
207
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
203
208
|
imageHighlightPage.steps.allotPoints(10);
|
209
|
+
imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
|
204
210
|
imageHighlightPage.steps.switchToPreviewTab();
|
205
211
|
});
|
206
212
|
|
@@ -209,7 +215,7 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
209
215
|
imageHighlightPage.steps.switchToGradingView();
|
210
216
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab();
|
211
217
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
imageHighlightPage.steps.
|
218
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
213
219
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
214
220
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
215
221
|
});
|
@@ -230,8 +236,8 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
230
236
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
231
237
|
imageHighlightPage.steps.verifyPreviewScore(10, 10);
|
232
238
|
imageHighlightPage.steps.switchToGradingView();
|
233
|
-
imageHighlightPage.steps.verifyCorrectHighlightRegion(
|
234
|
-
imageHighlightPage.steps.verifyDefaultHighlightRegion(
|
239
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
240
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(1);
|
235
241
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
236
242
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
237
243
|
});
|
@@ -242,7 +248,8 @@ describe('Create Item page - Image highlight: Alternative answer with single sel
|
|
242
248
|
imageHighlightPage.steps.highlightARegionInPreviewTab(2);
|
243
249
|
imageHighlightPage.steps.verifyPreviewScore(0, 10);
|
244
250
|
imageHighlightPage.steps.switchToGradingView();
|
245
|
-
imageHighlightPage.steps.
|
251
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
252
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(1);
|
246
253
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
247
254
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1'], [1]);
|
248
255
|
});
|
@@ -70,6 +70,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
70
70
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(0);
|
71
71
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(2);
|
72
72
|
imageHighlightPage.steps.allotPoints(20);
|
73
|
+
imageHighlightPage.steps.checkShowAvailableOptionsToStudentsCheckbox();
|
73
74
|
imageHighlightPage.steps.switchToPreviewTab();
|
74
75
|
break;
|
75
76
|
case 'Item preview':
|
@@ -119,11 +120,11 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
119
120
|
imageHighlightPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
120
121
|
};
|
121
122
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
122
|
-
imageHighlightPage.steps.
|
123
|
-
imageHighlightPage.steps.
|
123
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
124
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
124
125
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
125
126
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
126
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
127
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
127
128
|
});
|
128
129
|
|
129
130
|
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
@@ -139,11 +140,11 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
139
140
|
imageHighlightPage.steps.switchToGradingView();
|
140
141
|
};
|
141
142
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
142
|
-
imageHighlightPage.steps.
|
143
|
-
imageHighlightPage.steps.
|
144
|
-
imageHighlightPage.steps.
|
143
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
144
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
145
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
145
146
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
146
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
147
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
147
148
|
});
|
148
149
|
|
149
150
|
it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
@@ -163,10 +164,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
163
164
|
};
|
164
165
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
165
166
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
166
|
-
imageHighlightPage.steps.
|
167
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
167
168
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
168
169
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
169
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
170
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
170
171
|
});
|
171
172
|
|
172
173
|
it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
@@ -186,11 +187,12 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
186
187
|
imageHighlightPage.steps.switchToGradingView();
|
187
188
|
};
|
188
189
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
189
|
-
imageHighlightPage.steps.
|
190
|
-
imageHighlightPage.steps.
|
191
|
-
imageHighlightPage.steps.
|
190
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(0);
|
191
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
192
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegionNotAttemptedGradingView(1);
|
193
|
+
imageHighlightPage.steps.verifyIncorrectHighlightRegion(2);
|
192
194
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
|
-
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option
|
195
|
+
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
194
196
|
});
|
195
197
|
|
196
198
|
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
@@ -212,8 +214,8 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
212
214
|
};
|
213
215
|
imageHighlightPage.steps.verifyHighlightRegionNumerationPreviewTab()
|
214
216
|
imageHighlightPage.steps.verifyCorrectHighlightRegion(0);
|
215
|
-
imageHighlightPage.steps.
|
216
|
-
imageHighlightPage.steps.
|
217
|
+
imageHighlightPage.steps.verifyCorrectHighlightRegion(1);
|
218
|
+
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
217
219
|
imageHighlightPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
218
220
|
imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();
|
219
221
|
});
|
@@ -226,15 +226,15 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
226
226
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24.5, 1: 1.5, 2: 4.5, 3: 1.5, 4: 3.5 });
|
227
227
|
listOrderingPage.steps.switchToPreviewTab();
|
228
228
|
|
229
|
-
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '
|
230
|
-
listOrderingPage.steps.verifyPreviewScore(
|
229
|
+
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '1' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '5' }, { optionIndex: 4, position: '4' }]);
|
230
|
+
listOrderingPage.steps.verifyPreviewScore(14.5, 35.5);
|
231
231
|
listOrderingPage.steps.switchToGradingView();
|
232
232
|
listOrderingPage.steps.verifyCorrectOptionIconDropdownLayout(0);
|
233
233
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(1);
|
234
234
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
235
|
-
listOrderingPage.steps.
|
235
|
+
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
236
236
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
237
|
-
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', '
|
237
|
+
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['1', '2', '3', '5', '4']);
|
238
238
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists()
|
239
239
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
240
240
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the alternative accordion than the correct accordion, correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
@@ -2,8 +2,6 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
5
|
-
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
6
|
-
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
7
5
|
|
8
6
|
describe('Create Item page - List ordering: Partial different weights scoring with alternative answer - When alternative answer points are equal to correct answer points', () => {
|
9
7
|
before(() => {
|
@@ -222,10 +220,9 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
222
220
|
listOrderingPage.steps.switchToEditTab();
|
223
221
|
listOrderingPage.steps.addOption();
|
224
222
|
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
225
|
-
listOrderingPage.steps.
|
223
|
+
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
226
224
|
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }, { optionIndex: 4, position: '5' }]);
|
227
225
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24.5, 1: 1.5, 2: 4.5, 3: 1.5, 4: 3.5 });
|
228
|
-
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
229
226
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
230
227
|
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '5' }, { optionIndex: 4, position: '4' }]);
|
231
228
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 22.5, 1: 6.5, 2: 1.5, 3: 1.5, 4: 3.5 });
|
@@ -239,7 +236,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
239
236
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
240
237
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
241
238
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
242
|
-
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['
|
239
|
+
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['2', '3', '4', '1', '5']);
|
243
240
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
244
241
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
245
242
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
@@ -219,10 +219,9 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
219
219
|
listOrderingPage.steps.switchToEditTab();
|
220
220
|
listOrderingPage.steps.addOption();
|
221
221
|
listOrderingPage.steps.enterTextInOptionInputField(4, 'fruit');
|
222
|
-
listOrderingPage.steps.
|
222
|
+
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
223
223
|
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }, { optionIndex: 4, position: '5' }]);
|
224
224
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 24.5, 1: 1.5, 2: 4.5, 3: 1.5, 4: 3.5 });
|
225
|
-
listOrderingPage.steps.deleteAlternativeAnswerAccordion(0);
|
226
225
|
listOrderingPage.steps.addAlternativeAnswerAccordion(1);
|
227
226
|
listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '5' }, { optionIndex: 4, position: '4' }]);
|
228
227
|
listOrderingPage.steps.allotPartialDifferentWeightsPoints({ 0: 14.5, 1: 2.5, 2: 1.5, 3: 2.5, 4: 3.5 });
|
@@ -236,7 +235,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
236
235
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(3);
|
237
236
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(2);
|
238
237
|
listOrderingPage.steps.verifyIncorrectOptionIconDropdownLayout(4);
|
239
|
-
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['
|
238
|
+
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(['sprout', 'plant', 'flower', 'seed', 'fruit'], ['2', '3', '4', '1', '5']);
|
240
239
|
listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
241
240
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
242
241
|
/*cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
|
package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js
CHANGED
@@ -114,8 +114,10 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
114
114
|
if (view === 'Grading view') {
|
115
115
|
studentViewPage.steps.clearResponses();
|
116
116
|
};
|
117
|
-
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 3);
|
118
117
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('plant', 0);
|
118
|
+
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 1);
|
119
|
+
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('seed', 2);
|
120
|
+
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 3);
|
119
121
|
if (view === 'Grading view') {
|
120
122
|
studentViewPage.steps.submitResponse();
|
121
123
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -140,6 +142,8 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
140
142
|
};
|
141
143
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('seed', 0);
|
142
144
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 1);
|
145
|
+
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('plant', 2);
|
146
|
+
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 3);
|
143
147
|
if (view === 'Grading view') {
|
144
148
|
studentViewPage.steps.submitResponse();
|
145
149
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -1053,7 +1053,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1053
1053
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
1054
1054
|
});
|
1055
1055
|
|
1056
|
-
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using epsilon and parenthesis in preview tab response fields they should be treated as
|
1056
|
+
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using epsilon and parenthesis in preview tab response fields they should be treated as correct', () => {
|
1057
1057
|
textEntryMathPage.steps.resetQuestionPreview();
|
1058
1058
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1059
1059
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
@@ -1062,8 +1062,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1062
1062
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
1063
1063
|
equationEditorFlyout.steps.clickOnOkButton();
|
1064
1064
|
textEntryMathPage.steps.switchToGradingView();
|
1065
|
-
textEntryMathPage.steps.
|
1066
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1065
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
1066
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
1067
1067
|
});
|
1068
1068
|
|
1069
1069
|
//Syntax: Equation
|
@@ -1072,7 +1072,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1072
1072
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
1073
1073
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
1074
1074
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
1075
|
-
textEntryMathPage.steps.selectSyntaxDropdownListOption('
|
1075
|
+
textEntryMathPage.steps.selectSyntaxDropdownListOption('Equation');
|
1076
1076
|
textEntryMathPage.steps.switchToPreviewTab();
|
1077
1077
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1078
1078
|
equationEditorFlyout.steps.enterTextInPreviewInputField('90');
|
@@ -1098,8 +1098,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1098
1098
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-x+2');
|
1099
1099
|
equationEditorFlyout.steps.clickOnOkButton();
|
1100
1100
|
textEntryMathPage.steps.switchToGradingView();
|
1101
|
-
textEntryMathPage.steps.
|
1102
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1101
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
1102
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
1103
1103
|
});
|
1104
1104
|
|
1105
1105
|
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
@@ -1108,8 +1108,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1108
1108
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'intermediate', symbolName: ['x', 'square', 'y', 'square'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }, { categoryName: 'intermediate', symbolName: ['y', 'x'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }]);
|
1109
1109
|
equationEditorFlyout.steps.clickOnOkButton();
|
1110
1110
|
textEntryMathPage.steps.switchToGradingView();
|
1111
|
-
textEntryMathPage.steps.
|
1112
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1111
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
1112
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
1113
1113
|
});
|
1114
1114
|
|
1115
1115
|
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using factors in preview tab response fields they should be treated as incorrect', () => {
|
@@ -1118,26 +1118,26 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1118
1118
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(x-3)(2x+1)(x+5)');
|
1119
1119
|
equationEditorFlyout.steps.clickOnOkButton();
|
1120
1120
|
textEntryMathPage.steps.switchToGradingView();
|
1121
|
-
textEntryMathPage.steps.
|
1122
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1121
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
1122
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
1123
1123
|
});
|
1124
1124
|
|
1125
|
-
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using polynomial quadratic equation with equal to in preview tab response fields they should be treated as
|
1125
|
+
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using polynomial quadratic equation with equal to in preview tab response fields they should be treated as correct', () => {
|
1126
1126
|
textEntryMathPage.steps.resetQuestionPreview();
|
1127
1127
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1128
1128
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'intermediate', symbolName: ['x', 'square', 'y', 'square'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }, { categoryName: 'intermediate', symbolName: ['y', 'x'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }]);
|
1129
1129
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=0')
|
1130
1130
|
equationEditorFlyout.steps.clickOnOkButton();
|
1131
1131
|
textEntryMathPage.steps.switchToGradingView();
|
1132
|
-
textEntryMathPage.steps.
|
1133
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1132
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
1133
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
1134
1134
|
});
|
1135
1135
|
|
1136
1136
|
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using square root of variable in preview tab response fields they should be treated as incorrect', () => {
|
1137
1137
|
textEntryMathPage.steps.resetQuestionPreview();
|
1138
1138
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1139
1139
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['sqrt'] }]);
|
1140
|
-
equationEditorFlyout.steps.
|
1140
|
+
equationEditorFlyout.steps.enterTextAtInputFieldCursor('4x');
|
1141
1141
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['square'] }]);
|
1142
1142
|
equationEditorFlyout.steps.clickOnOkButton();
|
1143
1143
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -1148,8 +1148,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1148
1148
|
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using derivative of variable in preview tab response fields they should be treated as incorrect', () => {
|
1149
1149
|
textEntryMathPage.steps.resetQuestionPreview();
|
1150
1150
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1151
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square', 'equalTo'] }]);
|
1152
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('2x')
|
1151
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }, { categoryName: 'numPad', symbolName: ['equalTo'] }]);
|
1152
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('2x');
|
1153
1153
|
equationEditorFlyout.steps.clickOnOkButton();
|
1154
1154
|
textEntryMathPage.steps.switchToGradingView();
|
1155
1155
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -217,7 +217,8 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
217
217
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
218
218
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
219
219
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
220
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('([1.3]^10)
|
220
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('([1.3]^10)');
|
221
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['upperExponent'] }]);
|
221
222
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
222
223
|
equationEditorFlyout.steps.clickOnOkButton();
|
223
224
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -230,7 +231,8 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
230
231
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
231
232
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
232
233
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
233
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('(1.3)^10')
|
234
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('(1.3)^10');
|
235
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['upperExponent'] }]);
|
234
236
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
235
237
|
equationEditorFlyout.steps.clickOnOkButton();
|
236
238
|
textEntryMathPage.steps.switchToGradingView();
|