itemengine-cypress-automation 1.0.260-26thNovSmokeTestFixes-ecf3ec1.0 → 1.0.261
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +3 -0
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +6 -6
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +2 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/pages/textEntryMathPage.js +44 -2
- package/package.json +2 -2
@@ -17,10 +17,10 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
17
17
|
before(() => {
|
18
18
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
19
19
|
cy.barsPreLoaderWait();
|
20
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
20
21
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
|
21
22
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
|
22
23
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
|
23
|
-
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
24
24
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
|
25
25
|
chartsBarPage.steps.switchToPreviewTab();
|
26
26
|
});
|
@@ -321,7 +321,8 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
|
|
321
321
|
abortEarlySetup();
|
322
322
|
before(() => {
|
323
323
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
324
|
-
cy.barsPreLoaderWait();
|
324
|
+
cy.barsPreLoaderWait();
|
325
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
325
326
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
|
326
327
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
|
327
328
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
|
@@ -13,6 +13,7 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
|
|
13
13
|
before(() => {
|
14
14
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
15
15
|
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
|
16
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
16
17
|
cy.barsPreLoaderWait();
|
17
18
|
});
|
18
19
|
|
@@ -26,6 +27,8 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
|
|
26
27
|
before(() => {
|
27
28
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
28
29
|
cy.barsPreLoaderWait();
|
30
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
|
31
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
29
32
|
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 2, range: 10 });
|
30
33
|
chartsBarPage.steps.lockBar(0);
|
31
34
|
});
|
@@ -20,7 +20,7 @@ describe('Preview tab contents for all views', () => {
|
|
20
20
|
case 'Question preview':
|
21
21
|
cy.log('Navigating to passage resource type');
|
22
22
|
compassPage.steps.navigateToCreateResource('Compass');
|
23
|
-
compassPage.steps.
|
23
|
+
compassPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
24
24
|
compassPage.steps.switchToPreviewTab();
|
25
25
|
break;
|
26
26
|
case 'Item view':
|
@@ -173,9 +173,9 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
173
173
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
174
174
|
});
|
175
175
|
|
176
|
-
it('\'Border color\' icon should be displayed and as user hovers over it then a tooltip \'
|
176
|
+
it('\'Border color\' icon should be displayed and as user hovers over it then a tooltip \'Border color\' should be displayed', () => {
|
177
177
|
utilities.verifyElementVisibilityState(imageHighlightPage.borderColorButton(), 'visible');
|
178
|
-
imageHighlightPage.steps.verifyToolTipText(2, imageHighlightPage.borderColorButton(), '
|
178
|
+
imageHighlightPage.steps.verifyToolTipText(2, imageHighlightPage.borderColorButton(), 'Border color');
|
179
179
|
});
|
180
180
|
|
181
181
|
it('When user clicks on the \'Border color\' icon then a popup should be displayed', () => {
|
@@ -185,7 +185,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
185
185
|
|
186
186
|
it('The popup should contain \'Border color\' label and two color boxes with label \'Default\' and \'Active\'. Both color boxes should have edit color button.Verify defualt color of both \'Default\' and \'Active\' color boxes', () => {
|
187
187
|
utilities.verifyElementVisibilityState(imageHighlightPage.colorPopupMenuLabel(), 'visible');
|
188
|
-
utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), '
|
188
|
+
utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), 'Border color');
|
189
189
|
utilities.verifyElementVisibilityState(imageHighlightPage.defaultStateColorLabel(), 'visible');
|
190
190
|
utilities.verifyInnerText(imageHighlightPage.defaultStateColorLabel(), 'Default');
|
191
191
|
utilities.verifyElementVisibilityState(imageHighlightPage.activeStateColorLabel(), 'visible');
|
@@ -247,7 +247,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
247
247
|
cy.checkAccessibility(imageHighlightPage.colorPopupWrapper());
|
248
248
|
});
|
249
249
|
|
250
|
-
imageHighlightPage.tests.verifyColorPopupContentCSSandAccessibility('
|
250
|
+
imageHighlightPage.tests.verifyColorPopupContentCSSandAccessibility('Border color');
|
251
251
|
|
252
252
|
it('When user updates the default color from the border color popup then the edited border color should be displayed on the default state of all highlight regions for \'Specify correct answer\ section', () => {
|
253
253
|
imageHighlightPage.steps.clickOnCancelButton();
|
@@ -355,11 +355,11 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
355
355
|
utilities.verifyElementVisibilityState(imageHighlightPage.applyToAllOptionsCheckboxLabel(), 'visible');
|
356
356
|
utilities.verifyInnerText(imageHighlightPage.applyToAllOptionsCheckboxLabel(), 'Apply to all options');
|
357
357
|
imageHighlightPage.steps.verifyApplyToAllOptionsCheckboxChecked();
|
358
|
-
cy.log('
|
358
|
+
cy.log('Switching toggle button to active as required for next test cases');
|
359
359
|
imageHighlightPage.steps.selectActiveDefaultToggleButton('active');
|
360
360
|
});
|
361
361
|
|
362
|
-
it('CSS of \'Border style\'
|
362
|
+
it('CSS of \'Border style\' default popup', { tags: 'css' }, () => {
|
363
363
|
utilities.verifyCSS(imageHighlightPage.colorPopupMenuLabel(), {
|
364
364
|
'color': css.color.labels,
|
365
365
|
'font-size': css.fontSize.default,
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
case 'Question preview':
|
20
20
|
cy.log('Navigating to protractor resource type');
|
21
21
|
protractorPage.steps.navigateToCreateResource('protractor');
|
22
|
+
protractorPage.steps.uncheckAddShowHideButtonCheckbox();
|
22
23
|
protractorPage.steps.expandAngleTypeDropdown();
|
23
24
|
protractorPage.steps.selectOptionFromAngleTypeDropdown('Acute');
|
24
25
|
protractorPage.steps.enterAndVerifyAlternativeTextInInputField('Measuring tool');
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views', () => {
|
|
19
19
|
case 'Question preview':
|
20
20
|
cy.log('Navigating to passage resource type');
|
21
21
|
rulerPage.steps.navigateToCreateResource('ruler');
|
22
|
+
rulerPage.steps.uncheckAddShowHideButtonCheckbox();
|
22
23
|
rulerPage.steps.expandUnitOfMeasurementDropdown();
|
23
24
|
rulerPage.steps.selectOptionFromUnitOfMeasurementDropdown('Inch');
|
24
25
|
rulerPage.steps.enterInputToOpacityInputField(50);
|
@@ -19,6 +19,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
19
19
|
switch (view) {
|
20
20
|
case 'Question preview':
|
21
21
|
simpleCalculatorPage.steps.navigateToCreateResource('simple calculator');
|
22
|
+
simpleCalculatorPage.steps.uncheckAddShowHideButtonCheckbox();
|
22
23
|
simpleCalculatorPage.steps.switchToPreviewTab();
|
23
24
|
break;
|
24
25
|
case 'Item view':
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js
CHANGED
@@ -52,7 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
52
52
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
|
53
53
|
textEntryMathPage.steps.switchToGradingView();
|
54
54
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
55
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
55
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
56
56
|
textEntryMathPage.steps.switchToGradingView();
|
57
57
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -113,7 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
114
114
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
115
115
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
116
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
117
117
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
118
118
|
});
|
119
119
|
|
@@ -130,7 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
130
130
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
131
131
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
132
132
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
133
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
134
134
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
135
135
|
});
|
136
136
|
|
@@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
147
147
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
149
149
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
150
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
150
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
151
151
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
152
|
});
|
153
153
|
|
@@ -167,7 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
167
167
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
168
168
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
169
169
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
170
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
171
171
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
172
172
|
});
|
173
173
|
|
@@ -182,7 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
183
183
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
184
184
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
185
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
186
186
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
});
|
188
188
|
|
@@ -203,7 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
203
203
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
204
204
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
205
205
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
206
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
207
207
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
});
|
209
209
|
});
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -52,7 +52,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
52
52
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
53
53
|
textEntryMathPage.steps.switchToGradingView();
|
54
54
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
55
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
55
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
56
56
|
textEntryMathPage.steps.switchToGradingView();
|
57
57
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -113,7 +113,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
114
114
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
115
115
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
116
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
116
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
117
117
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
118
118
|
});
|
119
119
|
|
@@ -130,7 +130,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
130
130
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
131
131
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
132
132
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
133
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
134
134
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
135
135
|
});
|
136
136
|
|
@@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
147
147
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
149
149
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
150
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
150
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
151
151
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
152
|
});
|
153
153
|
|
@@ -167,7 +167,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
167
167
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
168
168
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
169
169
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
170
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
171
171
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
172
172
|
});
|
173
173
|
|
@@ -182,7 +182,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
183
183
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
184
184
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
185
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
186
186
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
});
|
188
188
|
|
@@ -203,7 +203,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
203
203
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
204
204
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
205
205
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
206
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
207
207
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
208
208
|
});
|
209
209
|
});
|
package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js
CHANGED
@@ -53,7 +53,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
53
53
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
54
54
|
textEntryMathPage.steps.switchToGradingView();
|
55
55
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
56
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
56
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
57
57
|
textEntryMathPage.steps.switchToGradingView();
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -146,7 +146,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
146
146
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
147
147
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
148
148
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
149
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
149
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
150
150
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
151
151
|
});
|
152
152
|
|
@@ -163,7 +163,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
163
163
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
165
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
166
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
166
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
167
167
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
});
|
169
169
|
|
@@ -180,7 +180,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
180
180
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
181
181
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
182
182
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
183
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
184
184
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
185
185
|
});
|
186
186
|
|
@@ -200,7 +200,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
200
200
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
201
201
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
202
202
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
203
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
204
204
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
205
|
});
|
206
206
|
|
@@ -215,7 +215,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
215
215
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
216
216
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
217
217
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
218
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
218
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
219
219
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
220
220
|
});
|
221
221
|
|
@@ -236,7 +236,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
236
236
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
237
237
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
238
238
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
239
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
239
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
240
240
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
241
241
|
});
|
242
242
|
|
@@ -53,7 +53,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
53
53
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
|
54
54
|
textEntryMathPage.steps.switchToGradingView();
|
55
55
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
56
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
56
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
57
57
|
textEntryMathPage.steps.switchToGradingView();
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
|
@@ -55,7 +55,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
55
55
|
textEntryMathPage.steps.switchToGradingView();
|
56
56
|
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
57
57
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
58
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
58
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
60
60
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
61
61
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
});
|
@@ -55,7 +55,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
55
55
|
textEntryMathPage.steps.switchToGradingView();
|
56
56
|
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
57
57
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
58
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
58
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
60
60
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
61
61
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
|
@@ -238,7 +238,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
238
238
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
239
239
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
240
240
|
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
241
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
241
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
242
242
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
243
243
|
});
|
244
244
|
});
|
@@ -40,7 +40,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
40
40
|
textEntryMathPage.steps.switchToGradingView();
|
41
41
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
42
42
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
43
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
43
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
44
44
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
45
45
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
46
46
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
@@ -78,7 +78,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
78
78
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
79
79
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
80
80
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
81
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
81
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
82
82
|
});
|
83
83
|
|
84
84
|
it('When the user attempts the question partially correct with all the responses correctly attempted but one response incomplete, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, green check-mark should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer response, a status message should not be displayed and correct answer section with all correct answers along with numeration should be displayed', () => {
|
@@ -93,7 +93,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
93
93
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
94
94
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
95
95
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
96
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
96
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
97
97
|
});
|
98
98
|
|
99
99
|
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, correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -112,7 +112,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
112
112
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
113
113
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
114
114
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
115
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
115
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
116
116
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
117
117
|
});
|
118
118
|
});
|
@@ -53,7 +53,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
53
53
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
|
54
54
|
textEntryMathPage.steps.switchToGradingView();
|
55
55
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
56
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
56
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
57
57
|
textEntryMathPage.steps.switchToGradingView();
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '6×π', '7.07e']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
|
@@ -236,7 +236,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
236
236
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
237
237
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
238
238
|
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
239
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectAnswer', '6
|
239
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectAnswer', '6×π', '7.07e']);
|
240
240
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
241
241
|
});
|
242
242
|
});
|
@@ -53,7 +53,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
53
53
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
54
54
|
textEntryMathPage.steps.switchToGradingView();
|
55
55
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
56
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
56
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
57
57
|
textEntryMathPage.steps.switchToGradingView();
|
58
58
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
});
|
@@ -55,7 +55,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
55
55
|
textEntryMathPage.steps.switchToGradingView();
|
56
56
|
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
57
57
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
58
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
58
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
59
59
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
60
60
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
61
61
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
@@ -111,7 +111,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
111
111
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
112
112
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
113
113
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
114
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
115
115
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
116
116
|
});
|
117
117
|
|
@@ -127,7 +127,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
127
127
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
128
128
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
129
129
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
130
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
131
131
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
132
|
});
|
133
133
|
|
@@ -143,7 +143,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
143
143
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
144
144
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
145
145
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
146
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
146
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
147
147
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
148
148
|
});
|
149
149
|
|
@@ -162,7 +162,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
162
162
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
163
163
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
164
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
165
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
165
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
166
166
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
});
|
168
168
|
|
@@ -176,7 +176,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
176
176
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
177
177
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
178
178
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
179
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
179
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
180
180
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
181
181
|
});
|
182
182
|
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
198
198
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
200
200
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
201
|
});
|
202
202
|
|
@@ -235,7 +235,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
235
235
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
236
236
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
237
237
|
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
238
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
238
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct', '2x2y2+4xy+4', '9000%']);
|
239
239
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
240
240
|
});
|
241
241
|
});
|
@@ -38,7 +38,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
38
38
|
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
39
39
|
textEntryMathPage.steps.switchToGradingView();
|
40
40
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
41
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
41
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
42
42
|
textEntryMathPage.steps.switchToGradingView();
|
43
43
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
44
44
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
@@ -63,7 +63,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
63
63
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
64
64
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
65
65
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
66
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
66
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
67
67
|
});
|
68
68
|
|
69
69
|
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
|
@@ -82,7 +82,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
82
82
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
83
83
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
84
84
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
85
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
85
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
86
86
|
});
|
87
87
|
|
88
88
|
it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
|
@@ -98,7 +98,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
98
98
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
99
99
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
100
100
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
101
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
101
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
102
102
|
});
|
103
103
|
|
104
104
|
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, and \'Your answer is correct\' should be displayed', () => {
|
@@ -138,7 +138,7 @@ describe('Create item page - Text Entry Math: Partial equal weights', () => {
|
|
138
138
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
139
139
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
140
140
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
141
|
-
equationEditorFlyout.steps.enterTextInPreviewInputField('6
|
141
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('6×π');
|
142
142
|
equationEditorFlyout.steps.clickOnOkButton();
|
143
143
|
textEntryMathPage.steps.allotPoints(15);
|
144
144
|
textEntryMathPage.steps.expandAdditionalSettings();
|
@@ -131,7 +131,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
131
131
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
132
132
|
}
|
133
133
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
134
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
134
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
135
135
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
136
136
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
137
137
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
@@ -164,7 +164,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
164
164
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
165
165
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
166
166
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
167
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
167
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
168
168
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
169
169
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
170
170
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -196,7 +196,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
196
196
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
197
197
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
198
198
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
199
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
199
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
200
200
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
201
201
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
202
202
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -225,7 +225,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
225
225
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
226
226
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
227
227
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
228
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
228
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
229
229
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
230
230
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
231
231
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -108,7 +108,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
108
108
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
109
109
|
}
|
110
110
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
111
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
111
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
112
112
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
113
113
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
114
114
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
@@ -147,7 +147,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
147
147
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
148
148
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
149
149
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
150
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
150
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
151
151
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
152
152
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
153
153
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -186,7 +186,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
186
186
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
187
187
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
188
188
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
189
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
189
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
190
190
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
191
191
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
192
192
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -222,7 +222,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
222
222
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
223
223
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
224
224
|
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
225
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6
|
225
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
|
226
226
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
227
227
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
228
228
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -251,14 +251,14 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
251
251
|
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
252
252
|
});
|
253
253
|
|
254
|
-
it('When user has selected \'Decimal\' from the syntax dropdown and user enters input using decimals with parenthesis in preview tab response fields they should be treated as
|
254
|
+
it('When user has selected \'Decimal\' from the syntax dropdown and user enters input using decimals with parenthesis in preview tab response fields they should be treated as correct', () => {
|
255
255
|
textEntryMathPage.steps.resetQuestionPreview();
|
256
256
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
257
257
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(3.14)');
|
258
258
|
equationEditorFlyout.steps.clickOnOkButton();
|
259
259
|
textEntryMathPage.steps.switchToGradingView();
|
260
|
-
textEntryMathPage.steps.
|
261
|
-
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
260
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
261
|
+
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
262
262
|
});
|
263
263
|
|
264
264
|
it('When user has selected \'Decimal\' from the syntax dropdown and user enters input using cube root and comparison in preview tab response fields they should be treated as incorrect', () => {
|
@@ -37,7 +37,8 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
37
37
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
38
38
|
});
|
39
39
|
|
40
|
-
|
40
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-4727
|
41
|
+
it.skip('When the user enters a equation using decimals in \'Specify correct answer\' section and answers the question which yields the same result but using appropriate symbols then it should be treated as correct', () => {
|
41
42
|
textEntryMathPage.steps.resetQuestionPreview();
|
42
43
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
43
44
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'seven', 'multiply'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -40,7 +40,8 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
40
40
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
41
41
|
});
|
42
42
|
|
43
|
-
|
43
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-4727
|
44
|
+
it.skip('When the user enters a equation using decimals in \'Specify correct answer\' section and answers the question which yields the same result but using appropriate symbols then it should be treated as correct', () => {
|
44
45
|
textEntryMathPage.steps.resetQuestionPreview();
|
45
46
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
46
47
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'seven', 'multiply'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -52,14 +52,14 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
52
52
|
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
53
53
|
});
|
54
54
|
|
55
|
-
it('When the user attempts the question using two inequalities then it should be treated as
|
55
|
+
it('When the user attempts the question using two inequalities then it should be treated as correct', () => {
|
56
56
|
textEntryMathPage.steps.resetQuestionPreview();
|
57
57
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
58
58
|
equationEditorFlyout.steps.enterTextInPreviewInputField('4+1>4<6');
|
59
59
|
equationEditorFlyout.steps.clickOnOkButton();
|
60
60
|
textEntryMathPage.steps.switchToGradingView();
|
61
|
-
textEntryMathPage.steps.
|
62
|
-
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
61
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
62
|
+
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
63
63
|
});
|
64
64
|
|
65
65
|
it('When the user attempts the question using incorrect comparison of decimals then it should be treated as incorrect', () => {
|
@@ -194,15 +194,15 @@ describe('Create item page - Text entry math: All or nothing scoring', () => {
|
|
194
194
|
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
195
195
|
});
|
196
196
|
|
197
|
-
it('When the user attempts the question using trigonometric functions then it should be treated as
|
197
|
+
it('When the user attempts the question using trigonometric functions then it should be treated as correct', () => {
|
198
198
|
textEntryMathPage.steps.resetQuestionPreview();
|
199
199
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
200
200
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['square', 'x'] }, { categoryName: 'numPad', symbolName: ['add'] }, { categoryName: 'trig', symbolName: ['cos'] }, { categoryName: 'intermediate', symbolName: ['square', 'x'] }]);
|
201
201
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=1')
|
202
202
|
equationEditorFlyout.steps.clickOnOkButton();
|
203
203
|
textEntryMathPage.steps.switchToGradingView();
|
204
|
-
textEntryMathPage.steps.
|
205
|
-
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
204
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
205
|
+
// textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
206
206
|
});
|
207
207
|
});
|
208
208
|
|
@@ -563,7 +563,7 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
|
|
563
563
|
});
|
564
564
|
|
565
565
|
it('User should be able to select \'Comma\' as \'Decimal separator\'', () => {
|
566
|
-
textEntryMathPage.steps.selectDecimalSeparatorOption(
|
566
|
+
textEntryMathPage.steps.selectDecimalSeparatorOption('Comma');
|
567
567
|
textEntryMathPage.steps.verifyDecimalSeparatorOptionActive(1);
|
568
568
|
textEntryMathPage.steps.verifyDecimalSeparatorOptionInactive(0);
|
569
569
|
});
|
@@ -133,7 +133,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
133
133
|
textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
|
134
134
|
}
|
135
135
|
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
136
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6
|
136
|
+
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
137
137
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
138
138
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
139
139
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
|
@@ -166,7 +166,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
166
166
|
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(1);
|
167
167
|
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
|
168
168
|
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
169
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6
|
169
|
+
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
170
170
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
171
171
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
172
172
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -198,7 +198,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
198
198
|
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
|
199
199
|
textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
|
200
200
|
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
201
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6
|
201
|
+
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
202
202
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
203
203
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
204
204
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -227,7 +227,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
227
227
|
textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
|
228
228
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
|
229
229
|
textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
|
230
|
-
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6
|
230
|
+
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2x2y2+4xy+4', '6×π']);
|
231
231
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
|
232
232
|
textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
|
233
233
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -94,7 +94,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
94
94
|
|
95
95
|
it(`User should able to enter answers in the response fields for ${view}`, () => {
|
96
96
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
97
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
97
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
98
98
|
equationEditorFlyout.steps.clickOnOkButton();
|
99
99
|
textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(0, '12');
|
100
100
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
@@ -31,7 +31,7 @@ describe('Tool settings content for all views', () => {
|
|
31
31
|
multipleSelectionPage.steps.allotPoints(20);
|
32
32
|
toolSettingsComponent.steps.expandToolSettingsAccordion();
|
33
33
|
toolSettingsComponent.steps.clickOnToolEditIcon(0);
|
34
|
-
rulerPage.steps.
|
34
|
+
rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
35
35
|
toolSettingsComponent.steps.clickOnOkButton();
|
36
36
|
createQuestionBasePage.steps.switchToPreviewTab();
|
37
37
|
utilities.verifyElementVisibilityState(commonComponents.previewTabQuestionWrapper(), 'visible');
|
@@ -116,10 +116,10 @@ describe('Tool settings content for all views', () => {
|
|
116
116
|
multipleSelectionPage.steps.allotPoints(20);
|
117
117
|
toolSettingsComponent.steps.expandToolSettingsAccordion();
|
118
118
|
toolSettingsComponent.steps.clickOnToolEditIcon(0);
|
119
|
-
rulerPage.steps.
|
119
|
+
rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
120
120
|
toolSettingsComponent.steps.clickOnOkButton();
|
121
121
|
toolSettingsComponent.steps.clickOnToolEditIcon(1);
|
122
|
-
rulerPage.steps.
|
122
|
+
rulerPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
123
123
|
toolSettingsComponent.steps.clickOnOkButton();
|
124
124
|
createQuestionBasePage.steps.switchToPreviewTab();
|
125
125
|
break;
|
@@ -130,14 +130,21 @@ const selectors = {
|
|
130
130
|
latexInputFieldText: () => cy.get('[class*="TextNotRenderedAsLaTexstyles__TextWrapper"] [role*="button"]'),
|
131
131
|
//Formula Template
|
132
132
|
layoutAccordion: () => cy.get('.custom-settings-option-wrapper .ngie-accordion-summary:visible').eq(0),
|
133
|
+
layoutAccordionExpandIcon: () => cy.get('.ngie-accordion-summary [class*="expandIconWrapper"]').eq(2),
|
133
134
|
inputFieldLayoutAccordion: () => cy.get('.equation-input-component[aria-label*="Math template"]:visible'),
|
134
135
|
addResponseContainerButton: () => cy.get('[type="button"][class*="ResponseContainerButton"]'),
|
135
136
|
responseFieldFormulaTemplatePreviewTab: () => cy.get('.add_response_element .mq-root-block'),
|
136
|
-
|
137
|
+
responseContainerLabel: () => cy.get('[class*="FormulaTemplatestyles__ResponseContainerWrapper"]'),
|
138
|
+
mathTemplateLabel: () => cy.get('[class*="FormulaTemplatestyles__FormulaTemplateWrapper"]'),
|
139
|
+
responseInputFieldMathTemplate: () => cy.get('[class*="EquationEditorstyles__FormulaTemplatePreviewWrapper"] [class*="add_response_element"]'),
|
140
|
+
responseInputFieldMathTemplatePreviewTab: () => cy.get('[class*="FormulaTemplatePreviewstyles__PreviewWrapper"]'),
|
141
|
+
mathTemplateResponseContainerPreviewTab: () => cy.get('.add_response_element'),
|
137
142
|
//Equation Editor section
|
138
143
|
dragHandleIcon: () => cy.get('[class*="MathPopupstyles__DragHandleIconWrapper"]'),
|
139
144
|
cancelButton: () => cy.get('.cancel-btn'),
|
140
145
|
equationEditorInputField: () => cy.get('[class*="EquationEditorstyles__PreviewWrappe"]'),
|
146
|
+
equationEditorInputFieldNew: () => cy.get('.latex-preview-response-wrapper'),
|
147
|
+
dialogBox: () => cy.get('[role="dialog"]'),
|
141
148
|
}
|
142
149
|
|
143
150
|
const steps = {
|
@@ -917,6 +924,21 @@ const steps = {
|
|
917
924
|
.should('have.attr', 'aria-expanded', 'true');
|
918
925
|
},
|
919
926
|
|
927
|
+
collapseLayoutAccordion: () => {
|
928
|
+
textEntryMathPage.layoutAccordion()
|
929
|
+
.click()
|
930
|
+
},
|
931
|
+
|
932
|
+
verifyLayoutAccordionExpanded: () => {
|
933
|
+
textEntryMathPage.layoutAccordion()
|
934
|
+
.should('have.attr', 'aria-expanded', 'true');
|
935
|
+
},
|
936
|
+
|
937
|
+
verifyLayoutAccordionCollapsed: () => {
|
938
|
+
textEntryMathPage.layoutAccordion()
|
939
|
+
.should('have.attr', 'aria-expanded', 'false');
|
940
|
+
},
|
941
|
+
|
920
942
|
focusInLayoutInputField: () => {
|
921
943
|
textEntryMathPage.inputFieldLayoutAccordion()
|
922
944
|
.click();
|
@@ -1027,7 +1049,27 @@ const steps = {
|
|
1027
1049
|
textEntryMathPage.responseFieldPreviewTab()
|
1028
1050
|
.eq(index)
|
1029
1051
|
.type(text);
|
1030
|
-
}
|
1052
|
+
},
|
1053
|
+
|
1054
|
+
/**
|
1055
|
+
* @description type in the equation editor input field
|
1056
|
+
* @param {string} text - text to be entered in the input field
|
1057
|
+
*/
|
1058
|
+
insertTextInEquationEditorTextArea: (text) => {
|
1059
|
+
textEntryMathPage.equationEditorInputFieldNew()
|
1060
|
+
.click()
|
1061
|
+
.type(text);
|
1062
|
+
},
|
1063
|
+
|
1064
|
+
verifyResponseFieldEditable: () => {
|
1065
|
+
textEntryMathPage.responseInputFieldMathTemplatePreviewTab()
|
1066
|
+
.should('have.class', 'mq-editable-field');
|
1067
|
+
},
|
1068
|
+
|
1069
|
+
verifyResponseFieldNotEditable: () => {
|
1070
|
+
textEntryMathPage.responseInputFieldMathTemplatePreviewTab()
|
1071
|
+
.should('not.have.class', 'mq-editable-field');
|
1072
|
+
},
|
1031
1073
|
}
|
1032
1074
|
|
1033
1075
|
const tests = {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.261",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"local:untagged": "node scripts/local.mjs --env fileConfig=ilqa,theme=ilc,grepTags=-css+-a11y",
|
12
12
|
"spinnaker:untagged": "node scripts/spinnaker.mjs --env theme=ilc,grepTags=-css+-a11y",
|
13
13
|
"local:smoke": "node scripts/smokeLocal.mjs --env fileConfig=ilqa,theme=ilc,grepTags=smoke+-css+-a11y",
|
14
|
-
"spinnaker:smoke": "node scripts/smoke.mjs --env theme=ilc,grepTags=smoke
|
14
|
+
"spinnaker:smoke": "node scripts/smoke.mjs --env theme=ilc,grepTags=smoke",
|
15
15
|
"local:migration": "node scripts/migrationLocal.mjs --env theme=ilc",
|
16
16
|
"spinnaker:migration": "node scripts/migration.mjs --env theme=ilc",
|
17
17
|
"cy:ildev": "cypress open --env fileConfig=ildev",
|