itemengine-cypress-automation 1.0.143-migrationScripts-d059d60.0 → 1.0.144-21MatchRepoUpdate-0ab2c79.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +104 -0
- package/cypress/e2e/ILC/ContentBlocks/additionalSection.js +92 -0
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +11 -1
- package/cypress/e2e/ILC/ContentBlocks/previewTab.js +91 -0
- package/cypress/e2e/ILC/ContentBlocks/styleAndLayoutCustomizationSection.js +3 -3
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorEditTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGeometryToolPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorEditTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorEditTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorEditTabBasicSection.js +3 -2
- package/cypress/e2e/ILC/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +2 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +0 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +124 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +0 -9
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +17 -17
- package/cypress/e2e/ILC/EssayResponse/additionalSettingsBasic.js +83 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +32 -30
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +25 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +40 -41
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +249 -99
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +118 -187
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsBasic.js +138 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/additionalSettingsForDropdowns.js +309 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +181 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettingsBasic.js +132 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +143 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +345 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +25 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsForAnswerInputFields.js +251 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +49 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsBasic.js +93 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +215 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/textContainerSettings.js +219 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/3DGraphingCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/casCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/geometryCalculatorPreviewTabContents.smoke.js +76 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/graphingCalculatorPreviewTabContents.smoke.js +73 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/probablityCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorEditTabBasicSection.js +96 -0
- package/cypress/e2e/ILC/GeoGebraTools/scientificCalculatorPreviewTabContents.smoke.js +75 -0
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +10 -8
- package/cypress/e2e/ILC/GeogebraActivity/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -2
- package/cypress/e2e/ILC/GeogebraActivity/headerSection.js +2 -1
- package/cypress/e2e/ILC/GeogebraActivity/insertResourceLink.js +318 -0
- package/cypress/e2e/ILC/GeogebraActivity/previewTabContent.smoke.js +2 -1
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +15 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +280 -0
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +136 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +205 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +106 -0
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +79 -0
- package/cypress/e2e/ILC/MultipleSelection/additionalSettingsBasic.js +108 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/additionalSettings.js +48 -56
- package/cypress/e2e/ILC/SingleSelection/additionalSettingsBasic.js +107 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +251 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +180 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.smoke.js +4 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +93 -68
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +59 -52
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +61 -50
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +65 -51
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +55 -46
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +6 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +11 -9
- package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +4 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +4 -2
- package/cypress/e2e/ILC/UploadResponse/additionalSettingsBasic.js +85 -0
- package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +12 -12
- package/cypress/e2e/ILC/UploadResponse/uploadResponseEditTabBasicSections.js +1 -1
- package/cypress/fixtures/constants.js +2 -0
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +1114 -1511
- package/cypress/fixtures/theme/ilc.json +7 -1
- package/cypress/pages/audioResponsePage.js +26 -2
- package/cypress/pages/components/additionalSettingsAccessibilitySectionComponent.js +1 -0
- package/cypress/pages/components/additionalSettingsPanel.js +3 -10
- package/cypress/pages/components/ariaLabelSectionComponent.js +84 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -2
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/createCustomCategoryFlyout.js +2 -2
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -0
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/editCategoryFlyout.js +9 -10
- package/cypress/pages/components/equationEditorFlyout.js +20 -11
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +167 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +149 -6
- package/cypress/pages/components/gradingViewEnumerationComponent.js +151 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +390 -0
- package/cypress/pages/components/imageCanvasComponent.js +25 -1
- package/cypress/pages/components/index.js +5 -1
- package/cypress/pages/components/placeholderTextSectionComponent.js +110 -0
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +2 -2
- package/cypress/pages/contentBlocksPage.js +60 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +4 -17
- package/cypress/pages/essayResponsePage.js +14 -11
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +15 -0
- package/cypress/pages/fillInTheGapsDropdownPage.js +121 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +70 -3
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +33 -3
- package/cypress/pages/fillInTheGapsTextPage.js +81 -4
- package/cypress/pages/geoGebraActivityPage.js +75 -11
- package/cypress/pages/geoGebraToolsPage.js +292 -0
- package/cypress/pages/graphingPage.js +2 -1
- package/cypress/pages/gridFillPage.js +713 -0
- package/cypress/pages/index.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +71 -317
- package/cypress/pages/multipleSelectionPage.js +2 -1
- package/cypress/pages/selectQuestionResourceToolPage.js +13 -2
- package/cypress/pages/singleSelectionGridPage.js +78 -329
- package/cypress/pages/singleSelectionPage.js +2 -1
- package/cypress/pages/textEntryMathPage.js +24 -6
- package/cypress/pages/textEntryMathWithImagePage.js +1 -1
- package/cypress/pages/uploadResponsePage.js +4 -3
- package/package.json +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +0 -43
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -642
@@ -1,3 +1,4 @@
|
|
1
|
+
import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
|
1
2
|
import { textEntryMathPage } from "../../../pages";
|
2
3
|
import { equationEditorFlyout } from "../../../pages/components";
|
3
4
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
@@ -22,6 +23,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
22
23
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
23
24
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
24
25
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Number');
|
26
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
27
|
+
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
25
28
|
textEntryMathPage.steps.switchToPreviewTab();
|
26
29
|
});
|
27
30
|
|
@@ -48,7 +51,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
48
51
|
it('When user has selected \'Number\' from the syntax dropdown and user enters input using symbols in preview tab response fields they should be treated as incorrect', () => {
|
49
52
|
textEntryMathPage.steps.resetQuestionPreview();
|
50
53
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
51
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
54
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['pi'] }]);
|
52
55
|
equationEditorFlyout.steps.clickOnOkButton();
|
53
56
|
textEntryMathPage.steps.switchToGradingView();
|
54
57
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -56,8 +59,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
56
59
|
});
|
57
60
|
|
58
61
|
it('When user has selected \'Number\' from the syntax dropdown and user enters input using cube root and comparison in preview tab response fields they should be treated as incorrect', () => {
|
62
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
59
63
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
60
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
64
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['cubeRoot'] }, { categoryName: 'numPad', symbolName: ['two', 'seven'] }]);
|
61
65
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=3');
|
62
66
|
equationEditorFlyout.steps.clickOnOkButton();
|
63
67
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -79,9 +83,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
79
83
|
textEntryMathPage.steps.resetQuestionPreview();
|
80
84
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
81
85
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100,000')
|
82
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
86
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['dotMultiplier'] }]);
|
83
87
|
equationEditorFlyout.steps.enterTextInPreviewInputField('((1.3)^10)^')
|
84
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
88
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
85
89
|
equationEditorFlyout.steps.clickOnOkButton();
|
86
90
|
textEntryMathPage.steps.switchToGradingView();
|
87
91
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -91,7 +95,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
91
95
|
it('When user has selected \'Number\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
92
96
|
textEntryMathPage.steps.resetQuestionPreview();
|
93
97
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
94
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
98
|
+
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'] }]);
|
95
99
|
equationEditorFlyout.steps.clickOnOkButton();
|
96
100
|
textEntryMathPage.steps.switchToGradingView();
|
97
101
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -102,7 +106,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
102
106
|
textEntryMathPage.steps.resetQuestionPreview();
|
103
107
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
104
108
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
105
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
109
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
106
110
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
|
107
111
|
equationEditorFlyout.steps.clickOnOkButton();
|
108
112
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -124,6 +128,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
124
128
|
//Syntax: Integer
|
125
129
|
it('When user has selected \'Integer\' from the syntax dropdown and user enters numerical input in preview tab response fields they should be treated as correct', () => {
|
126
130
|
textEntryMathPage.steps.switchToEditTab();
|
131
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
132
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
127
133
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
128
134
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Integer');
|
129
135
|
textEntryMathPage.steps.switchToPreviewTab();
|
@@ -157,7 +163,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
157
163
|
|
158
164
|
it('When user has selected \'Integer\' from the syntax dropdown and user enters input using cube root and comparison in preview tab response fields they should be treated as incorrect', () => {
|
159
165
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
160
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
166
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['cubeRoot'] }, { categoryName: 'numPad', symbolName: ['six', 'two', 'five'] }]);
|
161
167
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=5');
|
162
168
|
equationEditorFlyout.steps.clickOnOkButton();
|
163
169
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -188,7 +194,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
188
194
|
it('When user has selected \'Integer\' from the syntax dropdown and user enters input using quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
189
195
|
textEntryMathPage.steps.resetQuestionPreview();
|
190
196
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
191
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
197
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'intermediate', symbolName: ['y', 'square'] }, { categoryName: 'numPad', symbolName: ['add', 'three'] }, { categoryName: 'intermediate', symbolName: ['y'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }]);
|
192
198
|
equationEditorFlyout.steps.clickOnOkButton();
|
193
199
|
textEntryMathPage.steps.switchToGradingView();
|
194
200
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -198,7 +204,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
198
204
|
it('When user has selected \'Integer\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as incorrect', () => {
|
199
205
|
textEntryMathPage.steps.resetQuestionPreview();
|
200
206
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
201
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
207
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
202
208
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['8']);
|
203
209
|
equationEditorFlyout.steps.clickOnOkButton();
|
204
210
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -220,11 +226,13 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
220
226
|
//Syntax: Decimal
|
221
227
|
it('When user has selected \'Decimal\' from the syntax dropdown and user enters numerical input in preview tab response fields they should be treated as correct', () => {
|
222
228
|
textEntryMathPage.steps.switchToEditTab();
|
229
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
230
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
223
231
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
224
232
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Decimal');
|
225
233
|
textEntryMathPage.steps.switchToPreviewTab();
|
226
234
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
227
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
235
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'common', symbolName: ['plusMinus'] }, { categoryName: 'numPad', symbolName: ['two', 'five'] }]);
|
228
236
|
equationEditorFlyout.steps.clickOnOkButton();
|
229
237
|
textEntryMathPage.steps.switchToGradingView();
|
230
238
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -253,7 +261,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
253
261
|
|
254
262
|
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', () => {
|
255
263
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
256
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
264
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['cubeRoot'] }, { categoryName: 'numPad', symbolName: ['two', 'five'] }]);
|
257
265
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=5');
|
258
266
|
equationEditorFlyout.steps.clickOnOkButton();
|
259
267
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -264,7 +272,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
264
272
|
it('When user has selected \'Decimal\' from the syntax dropdown and user enters input using integration in preview tab response fields they should be treated as incorrect', () => {
|
265
273
|
textEntryMathPage.steps.resetQuestionPreview();
|
266
274
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
267
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: '
|
275
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
268
276
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
269
277
|
equationEditorFlyout.steps.clickOnOkButton();
|
270
278
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -295,7 +303,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
295
303
|
it('When user has selected \'Decimal\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as incorrect', () => {
|
296
304
|
textEntryMathPage.steps.resetQuestionPreview();
|
297
305
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
298
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
306
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
299
307
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['9.2']);
|
300
308
|
equationEditorFlyout.steps.clickOnOkButton();
|
301
309
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -330,6 +338,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
330
338
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
331
339
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
332
340
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Fraction');
|
341
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
342
|
+
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
333
343
|
textEntryMathPage.steps.switchToPreviewTab();
|
334
344
|
});
|
335
345
|
|
@@ -337,7 +347,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
337
347
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as correct', () => {
|
338
348
|
textEntryMathPage.steps.resetQuestionPreview();
|
339
349
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
340
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
350
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
341
351
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['10']);
|
342
352
|
equationEditorFlyout.steps.clickOnOkButton();
|
343
353
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -349,7 +359,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
349
359
|
textEntryMathPage.steps.resetQuestionPreview();
|
350
360
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
351
361
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
352
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
362
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
353
363
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
|
354
364
|
equationEditorFlyout.steps.clickOnOkButton();
|
355
365
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -360,7 +370,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
360
370
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using decimal fractions in preview tab response fields they should be treated as incorrect', () => {
|
361
371
|
textEntryMathPage.steps.resetQuestionPreview();
|
362
372
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
363
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
373
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
364
374
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['9.2']);
|
365
375
|
equationEditorFlyout.steps.clickOnOkButton();
|
366
376
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -371,7 +381,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
371
381
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using symbols in the form of fractions in preview tab response fields they should be treated as incorrect', () => {
|
372
382
|
textEntryMathPage.steps.resetQuestionPreview();
|
373
383
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
374
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
384
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['theta'] }]);
|
375
385
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2']);
|
376
386
|
equationEditorFlyout.steps.clickOnOkButton();
|
377
387
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -392,7 +402,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
392
402
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using operators with pi in preview tab response fields they should be treated as incorrect', () => {
|
393
403
|
textEntryMathPage.steps.resetQuestionPreview();
|
394
404
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
395
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
405
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['pi'] }]);
|
396
406
|
equationEditorFlyout.steps.clickOnOkButton();
|
397
407
|
textEntryMathPage.steps.switchToGradingView();
|
398
408
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -413,9 +423,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
413
423
|
textEntryMathPage.steps.resetQuestionPreview();
|
414
424
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
415
425
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100,000');
|
416
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
426
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['dotMultiplier'] }]);
|
417
427
|
equationEditorFlyout.steps.enterTextInPreviewInputField('((1.3)^10)^')
|
418
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
428
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
419
429
|
equationEditorFlyout.steps.clickOnOkButton();
|
420
430
|
textEntryMathPage.steps.switchToGradingView();
|
421
431
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -425,7 +435,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
425
435
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
426
436
|
textEntryMathPage.steps.resetQuestionPreview();
|
427
437
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
428
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
438
|
+
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'] }]);
|
429
439
|
equationEditorFlyout.steps.clickOnOkButton();
|
430
440
|
textEntryMathPage.steps.switchToGradingView();
|
431
441
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -445,7 +455,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
445
455
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
446
456
|
textEntryMathPage.steps.resetQuestionPreview();
|
447
457
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
448
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
458
|
+
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'] }]);
|
449
459
|
equationEditorFlyout.steps.clickOnOkButton();
|
450
460
|
textEntryMathPage.steps.switchToGradingView();
|
451
461
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -455,12 +465,14 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
455
465
|
//Syntax: Mixed fraction
|
456
466
|
it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using mixed fractions in preview tab response fields they should be treated as correct', () => {
|
457
467
|
textEntryMathPage.steps.switchToEditTab();
|
468
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
469
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
458
470
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
459
471
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Mixed fraction');
|
460
472
|
textEntryMathPage.steps.switchToPreviewTab();
|
461
473
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
462
474
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
463
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
475
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
464
476
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
|
465
477
|
equationEditorFlyout.steps.clickOnOkButton();
|
466
478
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -472,7 +484,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
472
484
|
textEntryMathPage.steps.resetQuestionPreview();
|
473
485
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
474
486
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1.3');
|
475
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
487
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
476
488
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2.4', '8.6']);
|
477
489
|
equationEditorFlyout.steps.clickOnOkButton();
|
478
490
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -483,7 +495,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
483
495
|
it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using symbols in the symbols and fractions in preview tab response fields they should be treated as incorrect', () => {
|
484
496
|
textEntryMathPage.steps.resetQuestionPreview();
|
485
497
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
486
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
498
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['theta'] }]);
|
487
499
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2']);
|
488
500
|
equationEditorFlyout.steps.clickOnOkButton();
|
489
501
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -494,7 +506,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
494
506
|
it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as incorrect', () => {
|
495
507
|
textEntryMathPage.steps.resetQuestionPreview();
|
496
508
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
497
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
509
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
498
510
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['8']);
|
499
511
|
equationEditorFlyout.steps.clickOnOkButton();
|
500
512
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -515,7 +527,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
515
527
|
it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using cube root in preview tab response fields they should be treated as incorrect', () => {
|
516
528
|
textEntryMathPage.steps.resetQuestionPreview();
|
517
529
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
518
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
530
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['cubeRoot'] }, { categoryName: 'numPad', symbolName: ['two', 'seven'] }]);
|
519
531
|
equationEditorFlyout.steps.clickOnOkButton();
|
520
532
|
textEntryMathPage.steps.switchToGradingView();
|
521
533
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -546,7 +558,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
546
558
|
it('When user has selected \'Mixed fraction\' from the syntax dropdown and user enters input using integration in preview tab response fields they should be treated as incorrect', () => {
|
547
559
|
textEntryMathPage.steps.resetQuestionPreview();
|
548
560
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
549
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: '
|
561
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
550
562
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
551
563
|
equationEditorFlyout.steps.clickOnOkButton();
|
552
564
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -557,22 +569,24 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
557
569
|
//Syntax: Simple fraction
|
558
570
|
it('When user has selected \'Simple fraction\' from the syntax dropdown and user enters input using decimal fractions in preview tab response fields they should be treated as correct', () => {
|
559
571
|
textEntryMathPage.steps.switchToEditTab();
|
572
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
573
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
560
574
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
561
575
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Simple fraction');
|
562
576
|
textEntryMathPage.steps.switchToPreviewTab();
|
563
577
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
564
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
578
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
565
579
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['9.2']);
|
566
580
|
equationEditorFlyout.steps.clickOnOkButton();
|
567
581
|
textEntryMathPage.steps.switchToGradingView();
|
568
|
-
textEntryMathPage.steps.
|
569
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
582
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
583
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
570
584
|
});
|
571
585
|
|
572
586
|
it('When user has selected \'Simple fraction\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as correct', () => {
|
573
587
|
textEntryMathPage.steps.resetQuestionPreview();
|
574
588
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
575
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
589
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
576
590
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['10']);
|
577
591
|
equationEditorFlyout.steps.clickOnOkButton();
|
578
592
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -584,7 +598,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
584
598
|
textEntryMathPage.steps.resetQuestionPreview();
|
585
599
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
586
600
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
587
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
601
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
588
602
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
|
589
603
|
equationEditorFlyout.steps.clickOnOkButton();
|
590
604
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -595,7 +609,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
595
609
|
it('When user has selected \'Fraction\' from the syntax dropdown and user enters input using symbols in the form of fractions in preview tab response fields they should be treated as incorrect', () => {
|
596
610
|
textEntryMathPage.steps.resetQuestionPreview();
|
597
611
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
598
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
612
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
599
613
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['10']);
|
600
614
|
equationEditorFlyout.steps.clickOnOkButton();
|
601
615
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -616,7 +630,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
616
630
|
it('When user has selected \'Simple fraction\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
617
631
|
textEntryMathPage.steps.resetQuestionPreview();
|
618
632
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
619
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
633
|
+
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'] }]);
|
620
634
|
equationEditorFlyout.steps.clickOnOkButton();
|
621
635
|
textEntryMathPage.steps.switchToGradingView();
|
622
636
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -626,7 +640,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
626
640
|
it('When user has selected \'Simple fraction\' from the syntax dropdown and user enters input using derivative equation in preview tab response fields they should be treated as incorrect', () => {
|
627
641
|
textEntryMathPage.steps.resetQuestionPreview();
|
628
642
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
629
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['
|
643
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
630
644
|
equationEditorFlyout.steps.clickOnOkButton();
|
631
645
|
textEntryMathPage.steps.switchToGradingView();
|
632
646
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -646,11 +660,13 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
646
660
|
//Syntax: Fraction or decimal
|
647
661
|
it('When user has selected \'Fraction or decimal\' from the syntax dropdown and user enters input using fractions in preview tab response fields they should be treated as correct', () => {
|
648
662
|
textEntryMathPage.steps.switchToEditTab();
|
663
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
664
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
649
665
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
650
666
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Fraction or decimal');
|
651
667
|
textEntryMathPage.steps.switchToPreviewTab();
|
652
668
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
653
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
669
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
654
670
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['10']);
|
655
671
|
equationEditorFlyout.steps.clickOnOkButton();
|
656
672
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -662,7 +678,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
662
678
|
textEntryMathPage.steps.resetQuestionPreview();
|
663
679
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
664
680
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1');
|
665
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
681
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['mixedFraction'] }]);
|
666
682
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '3']);
|
667
683
|
equationEditorFlyout.steps.clickOnOkButton();
|
668
684
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -673,18 +689,18 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
673
689
|
it('When user has selected \'Fraction or decimal\' from the syntax dropdown and user enters input using decimal fractions in preview tab response fields they should be treated as correct', () => {
|
674
690
|
textEntryMathPage.steps.resetQuestionPreview();
|
675
691
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
676
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
692
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
677
693
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['9.2']);
|
678
694
|
equationEditorFlyout.steps.clickOnOkButton();
|
679
695
|
textEntryMathPage.steps.switchToGradingView();
|
680
|
-
textEntryMathPage.steps.
|
681
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
696
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
697
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
682
698
|
});
|
683
699
|
|
684
700
|
it('When user has selected \'Fraction or decimal\' from the syntax dropdown and user enters input using symbols in the form of fractions in preview tab response fields they should be treated as incorrect', () => {
|
685
701
|
textEntryMathPage.steps.resetQuestionPreview();
|
686
702
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
687
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
703
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction', 'x'] }]);
|
688
704
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['10']);
|
689
705
|
equationEditorFlyout.steps.clickOnOkButton();
|
690
706
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -705,7 +721,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
705
721
|
it('When user has selected \'Fraction or decimal\' from the syntax dropdown and user enters input using operators in preview tab response fields they should be treated as incorrect', () => {
|
706
722
|
textEntryMathPage.steps.resetQuestionPreview();
|
707
723
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
708
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
724
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['pi'] }]);
|
709
725
|
equationEditorFlyout.steps.clickOnOkButton();
|
710
726
|
textEntryMathPage.steps.switchToGradingView();
|
711
727
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -759,6 +775,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
759
775
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
760
776
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
761
777
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Variable');
|
778
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
779
|
+
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
762
780
|
textEntryMathPage.steps.switchToPreviewTab();
|
763
781
|
});
|
764
782
|
|
@@ -824,6 +842,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
824
842
|
});
|
825
843
|
|
826
844
|
it('When user has selected \'Variable\' from the syntax dropdown and user enters numerical input in preview tab response fields they should be treated as correct', () => {
|
845
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
827
846
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
828
847
|
equationEditorFlyout.steps.enterTextInPreviewInputField('4');
|
829
848
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -845,7 +864,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
845
864
|
it('When user has selected \'Variable\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
846
865
|
textEntryMathPage.steps.resetQuestionPreview();
|
847
866
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
848
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
867
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }, { categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'four'] }]);
|
849
868
|
equationEditorFlyout.steps.clickOnOkButton();
|
850
869
|
textEntryMathPage.steps.switchToGradingView();
|
851
870
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -856,7 +875,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
856
875
|
it('When user has selected \'Variable\' from the syntax dropdown and user enters input using integration in preview tab response fields they should be treated as incorrect', () => {
|
857
876
|
textEntryMathPage.steps.resetQuestionPreview();
|
858
877
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
859
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: '
|
878
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
860
879
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
861
880
|
equationEditorFlyout.steps.clickOnOkButton();
|
862
881
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -867,9 +886,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
867
886
|
it('When user has selected \'Variable\' from the syntax dropdown and user enters input using square root of variable in preview tab response fields they should be treated as incorrect', () => {
|
868
887
|
textEntryMathPage.steps.resetQuestionPreview();
|
869
888
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
870
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
889
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['sqrt'] }]);
|
871
890
|
equationEditorFlyout.steps.enterTextAtInputFieldCursor('4x');
|
872
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
891
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['square'] }]);
|
873
892
|
equationEditorFlyout.steps.clickOnOkButton();
|
874
893
|
textEntryMathPage.steps.switchToGradingView();
|
875
894
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -903,6 +922,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
903
922
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
904
923
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
905
924
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Expression');
|
925
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
926
|
+
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
906
927
|
textEntryMathPage.steps.switchToPreviewTab();
|
907
928
|
});
|
908
929
|
|
@@ -940,7 +961,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
940
961
|
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using polynomial quadratic equation in preview tab response fields they should be treated as incorrect', () => {
|
941
962
|
textEntryMathPage.steps.resetQuestionPreview();
|
942
963
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
943
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
964
|
+
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'] }]);
|
944
965
|
equationEditorFlyout.steps.clickOnOkButton();
|
945
966
|
textEntryMathPage.steps.switchToGradingView();
|
946
967
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -960,7 +981,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
960
981
|
it('When user has selected \'Expression\' 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 incorrect', () => {
|
961
982
|
textEntryMathPage.steps.resetQuestionPreview();
|
962
983
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
963
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
984
|
+
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'] }]);
|
964
985
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=0')
|
965
986
|
equationEditorFlyout.steps.clickOnOkButton();
|
966
987
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -971,9 +992,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
971
992
|
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using square root of variable in preview tab response fields they should be treated as incorrect', () => {
|
972
993
|
textEntryMathPage.steps.resetQuestionPreview();
|
973
994
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
974
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
995
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['sqrt'] }]);
|
975
996
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['4x']);
|
976
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
997
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['square'] }]);
|
977
998
|
equationEditorFlyout.steps.clickOnOkButton();
|
978
999
|
textEntryMathPage.steps.switchToGradingView();
|
979
1000
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -983,7 +1004,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
983
1004
|
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using derivative in preview tab response fields they should be treated as incorrect', () => {
|
984
1005
|
textEntryMathPage.steps.resetQuestionPreview();
|
985
1006
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
986
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['
|
1007
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
987
1008
|
equationEditorFlyout.steps.clickOnOkButton();
|
988
1009
|
textEntryMathPage.steps.switchToGradingView();
|
989
1010
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -994,7 +1015,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
994
1015
|
textEntryMathPage.steps.resetQuestionPreview();
|
995
1016
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
996
1017
|
equationEditorFlyout.steps.enterTextInPreviewInputField('2*3.14');
|
997
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1018
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['lessThan'] }, { categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
998
1019
|
equationEditorFlyout.steps.clickOnOkButton();
|
999
1020
|
textEntryMathPage.steps.switchToGradingView();
|
1000
1021
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -1034,9 +1055,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1034
1055
|
textEntryMathPage.steps.resetQuestionPreview();
|
1035
1056
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1036
1057
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100,000')
|
1037
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1058
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['dotMultiplier'] }]);
|
1038
1059
|
equationEditorFlyout.steps.enterTextInPreviewInputField('((1.3)^10)^')
|
1039
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1060
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
1040
1061
|
equationEditorFlyout.steps.clickOnOkButton();
|
1041
1062
|
textEntryMathPage.steps.switchToGradingView();
|
1042
1063
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -1046,6 +1067,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1046
1067
|
//Syntax: Equation
|
1047
1068
|
it('When user has selected \'Equation\' from the syntax dropdown and user enters input using integer in preview tab response fields they should be treated as incorrect', () => {
|
1048
1069
|
textEntryMathPage.steps.switchToEditTab();
|
1070
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
1071
|
+
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
1049
1072
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
1050
1073
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Expression');
|
1051
1074
|
textEntryMathPage.steps.switchToPreviewTab();
|
@@ -1080,7 +1103,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1080
1103
|
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', () => {
|
1081
1104
|
textEntryMathPage.steps.resetQuestionPreview();
|
1082
1105
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1083
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1106
|
+
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'] }]);
|
1084
1107
|
equationEditorFlyout.steps.clickOnOkButton();
|
1085
1108
|
textEntryMathPage.steps.switchToGradingView();
|
1086
1109
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
@@ -1100,7 +1123,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1100
1123
|
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 incorrect', () => {
|
1101
1124
|
textEntryMathPage.steps.resetQuestionPreview();
|
1102
1125
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1103
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1126
|
+
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'] }]);
|
1104
1127
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=0')
|
1105
1128
|
equationEditorFlyout.steps.clickOnOkButton();
|
1106
1129
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -1111,9 +1134,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1111
1134
|
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', () => {
|
1112
1135
|
textEntryMathPage.steps.resetQuestionPreview();
|
1113
1136
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1114
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1115
|
-
equationEditorFlyout.steps.
|
1116
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1137
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['sqrt'] }]);
|
1138
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('4x');
|
1139
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['square'] }]);
|
1117
1140
|
equationEditorFlyout.steps.clickOnOkButton();
|
1118
1141
|
textEntryMathPage.steps.switchToGradingView();
|
1119
1142
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -1123,7 +1146,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1123
1146
|
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', () => {
|
1124
1147
|
textEntryMathPage.steps.resetQuestionPreview();
|
1125
1148
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1126
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['
|
1149
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square', 'equalTo'] }]);
|
1127
1150
|
equationEditorFlyout.steps.enterTextInPreviewInputField('2x')
|
1128
1151
|
equationEditorFlyout.steps.clickOnOkButton();
|
1129
1152
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -1135,7 +1158,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1135
1158
|
textEntryMathPage.steps.resetQuestionPreview();
|
1136
1159
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1137
1160
|
equationEditorFlyout.steps.enterTextInPreviewInputField('2*3.14');
|
1138
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1161
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['lessThan'] }, { categoryName: 'numPad', symbolName: ['two'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
1139
1162
|
equationEditorFlyout.steps.clickOnOkButton();
|
1140
1163
|
textEntryMathPage.steps.switchToGradingView();
|
1141
1164
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -1197,6 +1220,8 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1197
1220
|
textEntryMathPage.steps.clickOnCustomSettingsAccordion();
|
1198
1221
|
textEntryMathPage.steps.expandSyntaxDropdown();
|
1199
1222
|
textEntryMathPage.steps.selectSyntaxDropdownListOption('Scientific');
|
1223
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
1224
|
+
textEntryMathPage.steps.selectEquationEditorSectionCategories([equationEditorCategoriesAndSymbols.trig.displayName, equationEditorCategoriesAndSymbols.greek.displayName, equationEditorCategoriesAndSymbols.calculus.displayName]);
|
1200
1225
|
textEntryMathPage.steps.switchToPreviewTab();
|
1201
1226
|
});
|
1202
1227
|
|
@@ -1205,9 +1230,9 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1205
1230
|
textEntryMathPage.steps.resetQuestionPreview();
|
1206
1231
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1207
1232
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100,000');
|
1208
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1233
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['dotMultiplier'] }]);
|
1209
1234
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(1.3)^');
|
1210
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1235
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['varEpsilon'] }]);
|
1211
1236
|
equationEditorFlyout.steps.clickOnOkButton();
|
1212
1237
|
textEntryMathPage.steps.switchToGradingView();
|
1213
1238
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
@@ -1228,7 +1253,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1228
1253
|
textEntryMathPage.steps.resetQuestionPreview();
|
1229
1254
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1230
1255
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-150');
|
1231
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1256
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['groupInParenthesis', 'fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
1232
1257
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2']);
|
1233
1258
|
equationEditorFlyout.steps.enterTextInPreviewInputField('+')
|
1234
1259
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'greek', symbolName: ['theta'] }])
|
@@ -1242,7 +1267,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1242
1267
|
it('When user has selected \'Scientific\' from the syntax dropdown and user enters input using addition and scientific operation in preview tab response fields they should be treated as incorrect', () => {
|
1243
1268
|
textEntryMathPage.steps.resetQuestionPreview();
|
1244
1269
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1245
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: '
|
1270
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['three', 'add'] }]);
|
1246
1271
|
equationEditorFlyout.steps.enterTextInPreviewInputField('10^20');
|
1247
1272
|
equationEditorFlyout.steps.clickOnOkButton();
|
1248
1273
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -1273,7 +1298,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1273
1298
|
it('When user has selected \'Scientific\' from the syntax dropdown and user enters input using integration in preview tab response fields they should be treated as incorrect', () => {
|
1274
1299
|
textEntryMathPage.steps.resetQuestionPreview();
|
1275
1300
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1276
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: '
|
1301
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
1277
1302
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
1278
1303
|
equationEditorFlyout.steps.clickOnOkButton();
|
1279
1304
|
textEntryMathPage.steps.switchToGradingView();
|
@@ -1294,7 +1319,7 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1294
1319
|
it('When user has selected \'Scientific\' from the syntax dropdown and user enters input using derivative in preview tab response fields they should be treated as incorrect', () => {
|
1295
1320
|
textEntryMathPage.steps.resetQuestionPreview();
|
1296
1321
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1297
|
-
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['
|
1322
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
1298
1323
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=2x');
|
1299
1324
|
equationEditorFlyout.steps.clickOnOkButton();
|
1300
1325
|
textEntryMathPage.steps.switchToGradingView();
|