itemengine-cypress-automation 1.0.335-IEI-5508-automated-tests-9643d04.0 → 1.0.337-IEI-5508-automated-tests-9e03453.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +4 -8
- package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +4 -8
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +6 -12
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/checkAnswerFunctionalityForAllViews.js +3 -6
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +3 -6
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +10 -20
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +12 -61
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +23 -46
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +14 -28
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/pages/drawingResponsePage.js +2 -0
- package/cypress/pages/textEntryMathPage.js +9 -0
- package/package.json +1 -1
@@ -49,13 +49,11 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
|
|
49
49
|
|
50
50
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
51
51
|
textEntryMathPage.steps.switchToEditTab();
|
52
|
-
textEntryMathPage.steps.
|
53
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
52
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
54
53
|
equationEditorFlyout.steps.clearAll();
|
55
54
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
56
55
|
equationEditorFlyout.steps.clickOnOkButton();
|
57
|
-
textEntryMathPage.steps.
|
58
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
56
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
59
57
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
60
58
|
textEntryMathPage.steps.expandAdditionalSettings();
|
61
59
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
@@ -177,13 +175,11 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
|
|
177
175
|
|
178
176
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
179
177
|
textEntryMathPage.steps.switchToEditTab();
|
180
|
-
textEntryMathPage.steps.
|
181
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
178
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
182
179
|
equationEditorFlyout.steps.clearAll();
|
183
180
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
184
181
|
equationEditorFlyout.steps.clickOnOkButton();
|
185
|
-
textEntryMathPage.steps.
|
186
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
182
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
187
183
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
188
184
|
textEntryMathPage.steps.expandAdditionalSettings();
|
189
185
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
@@ -46,12 +46,10 @@ describe('Text Entry Math - Additional settings : Grading view, ARIA label for t
|
|
46
46
|
cy.barsPreLoaderWait();
|
47
47
|
textEntryMathPage.steps.addResponseArea();
|
48
48
|
textEntryMathPage.steps.addResponseArea();
|
49
|
-
textEntryMathPage.steps.
|
50
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
49
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
51
50
|
textEntryMathPage.steps.enterTextInPreviewInputField('9one');
|
52
51
|
equationEditorFlyout.steps.clickOnOkButton();
|
53
|
-
textEntryMathPage.steps.
|
54
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
52
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
55
53
|
textEntryMathPage.steps.enterTextInPreviewInputField('5Two');
|
56
54
|
equationEditorFlyout.steps.clickOnOkButton();
|
57
55
|
textEntryMathPage.steps.expandAdditionalSettings();
|
@@ -248,12 +246,10 @@ describe('Text Entry Math - Additional settings : Grading view, ARIA label for t
|
|
248
246
|
cy.barsPreLoaderWait();
|
249
247
|
textEntryMathPage.steps.addResponseArea();
|
250
248
|
textEntryMathPage.steps.addResponseArea();
|
251
|
-
textEntryMathPage.steps.
|
252
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
249
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
253
250
|
textEntryMathPage.steps.enterTextInPreviewInputField('10');
|
254
251
|
equationEditorFlyout.steps.clickOnOkButton();
|
255
|
-
textEntryMathPage.steps.
|
256
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
252
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
257
253
|
textEntryMathPage.steps.enterTextInPreviewInputField('20');
|
258
254
|
equationEditorFlyout.steps.clickOnOkButton();
|
259
255
|
textEntryMathPage.steps.expandAdditionalSettings();
|
@@ -38,8 +38,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
38
38
|
|
39
39
|
it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
|
40
40
|
textEntryMathPage.steps.switchToEditTab();
|
41
|
-
textEntryMathPage.steps.
|
42
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
41
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
43
42
|
equationEditorFlyout.steps.clearAll();
|
44
43
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
45
44
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -82,11 +81,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
82
81
|
equationEditorFlyout.steps.clearAll();
|
83
82
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
84
83
|
equationEditorFlyout.steps.clickOnOkButton();
|
85
|
-
textEntryMathPage.steps.
|
86
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
84
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
87
85
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
88
|
-
textEntryMathPage.steps.
|
89
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
86
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
90
87
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
91
88
|
textEntryMathPage.steps.expandAdditionalSettings();
|
92
89
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
@@ -281,16 +278,13 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
281
278
|
textEntryMathPage.steps.addResponseArea();
|
282
279
|
textEntryMathPage.steps.addResponseArea();
|
283
280
|
textEntryMathPage.steps.addResponseArea();
|
284
|
-
textEntryMathPage.steps.
|
285
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
281
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
286
282
|
equationEditorFlyout.steps.clearAll();
|
287
283
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
288
284
|
equationEditorFlyout.steps.clickOnOkButton();
|
289
|
-
textEntryMathPage.steps.
|
290
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
285
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
291
286
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
292
|
-
textEntryMathPage.steps.
|
293
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
287
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
294
288
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
295
289
|
textEntryMathPage.steps.expandAdditionalSettings();
|
296
290
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
@@ -35,8 +35,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
35
35
|
textEntryMathPage.steps.addResponseContainer();
|
36
36
|
equationEditorFlyout.steps.clickOnOkButton();
|
37
37
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
38
|
-
textEntryMathPage.steps.
|
39
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
38
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
40
39
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
41
40
|
textEntryMathPage.steps.expandLayoutAccordion();
|
42
41
|
textEntryMathPage.steps.focusInLayoutInputField(1);
|
@@ -49,8 +48,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
49
48
|
textEntryMathPage.steps.addResponseContainer();
|
50
49
|
equationEditorFlyout.steps.clickOnOkButton();
|
51
50
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
52
|
-
textEntryMathPage.steps.
|
53
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
51
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
54
52
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
55
53
|
textEntryMathPage.steps.expandLayoutAccordion();
|
56
54
|
textEntryMathPage.steps.focusInLayoutInputField(2);
|
@@ -37,16 +37,13 @@ describe('Create item page - Text entry math - Check answer functionality', () =
|
|
37
37
|
textEntryMathPage.steps.addResponseArea();
|
38
38
|
textEntryMathPage.steps.addResponseArea();
|
39
39
|
textEntryMathPage.steps.addResponseArea();
|
40
|
-
textEntryMathPage.steps.
|
41
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
40
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
42
41
|
equationEditorFlyout.steps.clearAll();
|
43
42
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
44
43
|
equationEditorFlyout.steps.clickOnOkButton();
|
45
|
-
textEntryMathPage.steps.
|
46
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
44
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
47
45
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
48
|
-
textEntryMathPage.steps.
|
49
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
46
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
50
47
|
equationEditorFlyout.steps.enterEquationUsingPiSymbol();
|
51
48
|
textEntryMathPage.steps.allotPoints(20);
|
52
49
|
textEntryMathPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
@@ -58,8 +58,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
|
|
58
58
|
});
|
59
59
|
|
60
60
|
it('Users should be able to add responses which contains math template without response container', () => {
|
61
|
-
textEntryMathPage.steps.
|
62
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
61
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
63
62
|
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
|
64
63
|
equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
|
65
64
|
equationEditorFlyout.steps.enterTextAtInputFieldCursor('1{downarrow}');
|
@@ -71,8 +70,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
|
|
71
70
|
equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
|
72
71
|
equationEditorFlyout.steps.clickOnOkButton();
|
73
72
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
74
|
-
textEntryMathPage.steps.
|
75
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
73
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
76
74
|
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
|
77
75
|
equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
|
78
76
|
equationEditorFlyout.steps.enterTextAtInputFieldCursor('4{downarrow}');
|
@@ -84,8 +82,7 @@ describe('Create item page - Text entry math: Scoring section', () => {
|
|
84
82
|
equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
|
85
83
|
equationEditorFlyout.steps.clickOnOkButton();
|
86
84
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
87
|
-
textEntryMathPage.steps.
|
88
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
85
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
89
86
|
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab('Primary')
|
90
87
|
equationEditorFlyout.steps.selectCategoryCharacters(equationEditorCategoriesAndSymbols.primary.symbols.fraction.ariaLabel);
|
91
88
|
equationEditorFlyout.steps.enterTextAtInputFieldCursor('9{downarrow}');
|
@@ -70,8 +70,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
70
70
|
|
71
71
|
it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
|
72
72
|
textEntryMathPage.steps.switchToEditTab();
|
73
|
-
textEntryMathPage.steps.
|
74
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
73
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
75
74
|
equationEditorFlyout.steps.clearAll();
|
76
75
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
77
76
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
|
@@ -111,8 +110,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
111
110
|
|
112
111
|
it('When the user enters a factored equation in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
113
112
|
textEntryMathPage.steps.switchToEditTab();
|
114
|
-
textEntryMathPage.steps.
|
115
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
113
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
116
114
|
equationEditorFlyout.steps.clearAll();
|
117
115
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(x-3)(x+3)');
|
118
116
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -148,8 +146,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
148
146
|
|
149
147
|
it('When the user enters a factored equation in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
150
148
|
textEntryMathPage.steps.switchToEditTab();
|
151
|
-
textEntryMathPage.steps.
|
152
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
149
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
153
150
|
equationEditorFlyout.steps.clearAll();
|
154
151
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
155
152
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -184,8 +181,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
184
181
|
|
185
182
|
it('When the user enters a equation with parenthesis equation with epsilon in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
186
183
|
textEntryMathPage.steps.switchToEditTab();
|
187
|
-
textEntryMathPage.steps.
|
188
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
184
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
189
185
|
equationEditorFlyout.steps.clearAll();
|
190
186
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
191
187
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
@@ -232,8 +228,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
232
228
|
|
233
229
|
it('When the user enters a trigonometric equation in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
234
230
|
textEntryMathPage.steps.switchToEditTab();
|
235
|
-
textEntryMathPage.steps.
|
236
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
231
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
237
232
|
equationEditorFlyout.steps.clearAll();
|
238
233
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-150');
|
239
234
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['groupInParenthesis'] }, { categoryName: 'greek', symbolName: ['theta'] }, { categoryName: 'numPad', symbolName: ['add'] }, { categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -281,8 +276,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
281
276
|
|
282
277
|
it('When the user enters a equation with iota in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
283
278
|
textEntryMathPage.steps.switchToEditTab();
|
284
|
-
textEntryMathPage.steps.
|
285
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
279
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
286
280
|
equationEditorFlyout.steps.clearAll();
|
287
281
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-38-9i');
|
288
282
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -307,8 +301,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
307
301
|
|
308
302
|
it('When the user enters a equation using derivatives in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
309
303
|
textEntryMathPage.steps.switchToEditTab();
|
310
|
-
textEntryMathPage.steps.
|
311
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
304
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
312
305
|
equationEditorFlyout.steps.clearAll();
|
313
306
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
314
307
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -333,8 +326,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
333
326
|
|
334
327
|
it('When the user enters a equation using integration in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
335
328
|
textEntryMathPage.steps.switchToEditTab();
|
336
|
-
textEntryMathPage.steps.
|
337
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
329
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
338
330
|
equationEditorFlyout.steps.clearAll();
|
339
331
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
340
332
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
@@ -362,8 +354,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
362
354
|
|
363
355
|
it('When the user enters a equation using polynomial quadratic equations in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
364
356
|
textEntryMathPage.steps.switchToEditTab();
|
365
|
-
textEntryMathPage.steps.
|
366
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
357
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
367
358
|
equationEditorFlyout.steps.clearAll();
|
368
359
|
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'] }]);
|
369
360
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -388,8 +379,7 @@ describe('Create item page - Text entry math: Match exact evaluation method', ()
|
|
388
379
|
|
389
380
|
it('When the user enters a equation using matrices in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
390
381
|
textEntryMathPage.steps.switchToEditTab();
|
391
|
-
textEntryMathPage.steps.
|
392
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
382
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
393
383
|
equationEditorFlyout.steps.clearAll();
|
394
384
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'matrices', symbolName: ['twoByTwoMatrixBoundedBrackets'] }]);
|
395
385
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2', '1', '0', '3']);
|
@@ -69,8 +69,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
69
69
|
|
70
70
|
it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
|
71
71
|
textEntryMathPage.steps.switchToEditTab();
|
72
|
-
textEntryMathPage.steps.
|
73
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
72
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
74
73
|
equationEditorFlyout.steps.clearAll();
|
75
74
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
76
75
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
|
@@ -110,8 +109,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
110
109
|
|
111
110
|
it('When the user enters a factored equation in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
112
111
|
textEntryMathPage.steps.switchToEditTab();
|
113
|
-
textEntryMathPage.steps.
|
114
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
112
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
115
113
|
equationEditorFlyout.steps.clearAll();
|
116
114
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(x-3)(x+3)');
|
117
115
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -157,8 +155,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
157
155
|
|
158
156
|
it('When the user enters a equation of pi in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
159
157
|
textEntryMathPage.steps.switchToEditTab();
|
160
|
-
textEntryMathPage.steps.
|
161
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
158
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
162
159
|
equationEditorFlyout.steps.clearAll();
|
163
160
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
164
161
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -193,8 +190,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
193
190
|
|
194
191
|
it('When the user enters a equation with parenthesis equation with epsilon in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
195
192
|
textEntryMathPage.steps.switchToEditTab();
|
196
|
-
textEntryMathPage.steps.
|
197
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
193
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
198
194
|
equationEditorFlyout.steps.clearAll();
|
199
195
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
200
196
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
@@ -243,8 +239,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
243
239
|
|
244
240
|
it('When the user enters trigonometric equations in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
245
241
|
textEntryMathPage.steps.switchToEditTab();
|
246
|
-
textEntryMathPage.steps.
|
247
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
242
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
248
243
|
equationEditorFlyout.steps.clearAll();
|
249
244
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-150')
|
250
245
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['groupInParenthesis'] }, { categoryName: 'greek', symbolName: ['theta'] }, { categoryName: 'numPad', symbolName: ['add'] }, { categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -292,8 +287,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
292
287
|
|
293
288
|
it('When the user enters a equation with iota in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
294
289
|
textEntryMathPage.steps.switchToEditTab();
|
295
|
-
textEntryMathPage.steps.
|
296
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
290
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
297
291
|
equationEditorFlyout.steps.clearAll();
|
298
292
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-38-9i');
|
299
293
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -318,8 +312,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
318
312
|
|
319
313
|
it('When the user enters a equation using derivatives in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
320
314
|
textEntryMathPage.steps.switchToEditTab();
|
321
|
-
textEntryMathPage.steps.
|
322
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
315
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
323
316
|
equationEditorFlyout.steps.clearAll();
|
324
317
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
325
318
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -344,8 +337,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
344
337
|
|
345
338
|
it('When the user enters a equation using integration in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
346
339
|
textEntryMathPage.steps.switchToEditTab();
|
347
|
-
textEntryMathPage.steps.
|
348
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
340
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
349
341
|
equationEditorFlyout.steps.clearAll();
|
350
342
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
351
343
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
@@ -373,8 +365,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
373
365
|
|
374
366
|
it('When the user enters a equation using polynomial quadratic equations in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
375
367
|
textEntryMathPage.steps.switchToEditTab();
|
376
|
-
textEntryMathPage.steps.
|
377
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
368
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
378
369
|
equationEditorFlyout.steps.clearAll();
|
379
370
|
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'] }]);
|
380
371
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -399,8 +390,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
399
390
|
|
400
391
|
it('When the user enters a equation using matrices in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
401
392
|
textEntryMathPage.steps.switchToEditTab();
|
402
|
-
textEntryMathPage.steps.
|
403
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
393
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
404
394
|
equationEditorFlyout.steps.clearAll();
|
405
395
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'matrices', symbolName: ['twoByTwoMatrixBoundedBrackets'] }]);
|
406
396
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2', '1', '0', '3']);
|
@@ -437,8 +427,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
437
427
|
|
438
428
|
it('When the user enters a equation using parenthesis in \'Specify correct answer\' and the user enters the same equation but in different form then it should be treated as incorrect', () => {
|
439
429
|
textEntryMathPage.steps.switchToEditTab();
|
440
|
-
textEntryMathPage.steps.
|
441
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
430
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
442
431
|
equationEditorFlyout.steps.clearAll();
|
443
432
|
textEntryMathPage.steps.enterTextInPreviewInputField('{4,6')
|
444
433
|
textEntryMathPage.steps.enterTextInPreviewInputField('}');
|
@@ -455,8 +444,7 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
455
444
|
//Note - Using custom settings here as raised in 2442
|
456
445
|
it('When the user enters a equation using parenthesis in \'Specify correct answer\' and the user enters the same equation but in different form then it should be treated as correct', () => {
|
457
446
|
textEntryMathPage.steps.switchToEditTab();
|
458
|
-
textEntryMathPage.steps.
|
459
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
447
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
460
448
|
equationEditorFlyout.steps.clearAll();
|
461
449
|
textEntryMathPage.steps.enterTextInPreviewInputField('10,000*10=100,000');
|
462
450
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -470,42 +458,5 @@ describe('Create item page - Text entry math: Match value evaluation method', ()
|
|
470
458
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
471
459
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
472
460
|
});
|
473
|
-
|
474
|
-
//https://weldnorthed.atlassian.net/browse/IEI-5159
|
475
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters the same equation then it should be treated as correct', () => {
|
476
|
-
textEntryMathPage.steps.switchToEditTab();
|
477
|
-
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
478
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
479
|
-
equationEditorFlyout.steps.clearAll();
|
480
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
|
481
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
482
|
-
textEntryMathPage.steps.switchToPreviewTab();
|
483
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
484
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=28');
|
485
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
486
|
-
textEntryMathPage.steps.switchToGradingView();
|
487
|
-
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
488
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
489
|
-
});
|
490
|
-
|
491
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
|
492
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
493
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
494
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('18+10=1');
|
495
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
496
|
-
textEntryMathPage.steps.switchToGradingView();
|
497
|
-
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
498
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
499
|
-
});
|
500
|
-
|
501
|
-
it('When the user enters a equation using in \'Specify correct answer\' and the user enters incorrect equation it should be treated as correct', () => {
|
502
|
-
textEntryMathPage.steps.resetQuestionPreview();
|
503
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
504
|
-
textEntryMathPage.steps.enterTextInPreviewInputField('10+7=17');
|
505
|
-
equationEditorFlyout.steps.clickOnOkButton();
|
506
|
-
textEntryMathPage.steps.switchToGradingView();
|
507
|
-
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
508
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
509
|
-
});
|
510
461
|
});
|
511
462
|
});
|
@@ -72,8 +72,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
72
72
|
|
73
73
|
it('When the user enters a equation using parenthesis in \'Specify correct answer\' and user enters the simplified answer it should be treated as correct', () => {
|
74
74
|
textEntryMathPage.steps.switchToEditTab();
|
75
|
-
textEntryMathPage.steps.
|
76
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
75
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
77
76
|
equationEditorFlyout.steps.clearAll();
|
78
77
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(7-2)(7+2)');
|
79
78
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -109,8 +108,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
109
108
|
|
110
109
|
it('When the user sets percentage in \'Specify correct answer\' section and user enters a value using integers which yields same result it should be treated as correct', () => {
|
111
110
|
textEntryMathPage.steps.switchToEditTab();
|
112
|
-
textEntryMathPage.steps.
|
113
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
111
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
114
112
|
equationEditorFlyout.steps.clearAll();
|
115
113
|
textEntryMathPage.steps.enterTextInPreviewInputField('9000%');
|
116
114
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -135,8 +133,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
135
133
|
|
136
134
|
it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
|
137
135
|
textEntryMathPage.steps.switchToEditTab();
|
138
|
-
textEntryMathPage.steps.
|
139
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
136
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
140
137
|
equationEditorFlyout.steps.clearAll();
|
141
138
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
142
139
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
|
@@ -176,8 +173,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
176
173
|
|
177
174
|
it('When the user enters a equation using polynomial quadratic equations in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
178
175
|
textEntryMathPage.steps.switchToEditTab();
|
179
|
-
textEntryMathPage.steps.
|
180
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
176
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
181
177
|
equationEditorFlyout.steps.clearAll();
|
182
178
|
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'] }]);
|
183
179
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -202,8 +198,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
202
198
|
|
203
199
|
it('When the user enters a equation with iota in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
204
200
|
textEntryMathPage.steps.switchToEditTab();
|
205
|
-
textEntryMathPage.steps.
|
206
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
201
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
207
202
|
equationEditorFlyout.steps.clearAll();
|
208
203
|
textEntryMathPage.steps.enterTextInPreviewInputField('-38-9i');
|
209
204
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -238,8 +233,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
238
233
|
|
239
234
|
it('When the user enters a equation with parenthesis equation with epsilon in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
240
235
|
textEntryMathPage.steps.switchToEditTab();
|
241
|
-
textEntryMathPage.steps.
|
242
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
236
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
243
237
|
equationEditorFlyout.steps.clearAll();
|
244
238
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
245
239
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
@@ -286,8 +280,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
286
280
|
|
287
281
|
it('When the user enters a equation with trigonometric functions in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
288
282
|
textEntryMathPage.steps.switchToEditTab();
|
289
|
-
textEntryMathPage.steps.
|
290
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
283
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
291
284
|
equationEditorFlyout.steps.clearAll();
|
292
285
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-150');
|
293
286
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['groupInParenthesis'] }, { categoryName: 'greek', symbolName: ['theta'] }, { categoryName: 'numPad', symbolName: ['add'] }, { categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -334,8 +327,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
334
327
|
|
335
328
|
it('When the user enters a equation using derivatives in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
336
329
|
textEntryMathPage.steps.switchToEditTab();
|
337
|
-
textEntryMathPage.steps.
|
338
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
330
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
339
331
|
equationEditorFlyout.steps.clearAll();
|
340
332
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
341
333
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -360,8 +352,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
360
352
|
|
361
353
|
it('When the user enters a equation using integration in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
362
354
|
textEntryMathPage.steps.switchToEditTab();
|
363
|
-
textEntryMathPage.steps.
|
364
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
355
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
365
356
|
equationEditorFlyout.steps.clearAll();
|
366
357
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
367
358
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
@@ -389,8 +380,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
389
380
|
|
390
381
|
it('When the user enters a equation using matrices in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
391
382
|
textEntryMathPage.steps.switchToEditTab();
|
392
|
-
textEntryMathPage.steps.
|
393
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
383
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
394
384
|
equationEditorFlyout.steps.clearAll();
|
395
385
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'matrices', symbolName: ['twoByTwoMatrixBoundedBrackets'] }]);
|
396
386
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2', '1', '0', '3']);
|
@@ -424,8 +414,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
424
414
|
|
425
415
|
it('When the user enters a equation using different signs in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
426
416
|
textEntryMathPage.steps.switchToEditTab();
|
427
|
-
textEntryMathPage.steps.
|
428
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
417
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
429
418
|
equationEditorFlyout.steps.clearAll();
|
430
419
|
equationEditorFlyout.steps.enterTextInPreviewInputField('8-9=-1');
|
431
420
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -450,8 +439,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
450
439
|
|
451
440
|
it('When the user enters a equation using different signs in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
452
441
|
textEntryMathPage.steps.switchToEditTab();
|
453
|
-
textEntryMathPage.steps.
|
454
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
442
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
455
443
|
equationEditorFlyout.steps.clearAll();
|
456
444
|
equationEditorFlyout.steps.enterTextInPreviewInputField('7-x=-11');
|
457
445
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -476,8 +464,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
476
464
|
|
477
465
|
it('When the user enters a equation using fractions and polynomials in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
478
466
|
textEntryMathPage.steps.switchToEditTab();
|
479
|
-
textEntryMathPage.steps.
|
480
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
467
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
481
468
|
equationEditorFlyout.steps.clearAll();
|
482
469
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }]);
|
483
470
|
equationEditorFlyout.steps.enterTextAtInputFieldCursor('y');
|
@@ -518,8 +505,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
518
505
|
|
519
506
|
it('When the user enters a coordinates in \'Specify correct answer\' and the user enters the same coordinates then it should be treated as correct', () => {
|
520
507
|
textEntryMathPage.steps.switchToEditTab();
|
521
|
-
textEntryMathPage.steps.
|
522
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
508
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
523
509
|
equationEditorFlyout.steps.clearAll();
|
524
510
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(4,3)');
|
525
511
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -534,8 +520,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
534
520
|
|
535
521
|
it('When the user enters a coordinates in \'Specify correct answer\' and the user enters the exact same coordinates then it should be treated as correct', () => {
|
536
522
|
textEntryMathPage.steps.switchToEditTab();
|
537
|
-
textEntryMathPage.steps.
|
538
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
523
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
539
524
|
equationEditorFlyout.steps.clearAll();
|
540
525
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(-1,2)');
|
541
526
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -550,8 +535,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
550
535
|
|
551
536
|
it('When the user enters a equation using polynomials and equal to in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
552
537
|
textEntryMathPage.steps.switchToEditTab();
|
553
|
-
textEntryMathPage.steps.
|
554
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
538
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
555
539
|
equationEditorFlyout.steps.clearAll();
|
556
540
|
equationEditorFlyout.steps.enterTextInPreviewInputField('1.5p=12');
|
557
541
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -580,8 +564,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
580
564
|
|
581
565
|
it('When the user enters a equation using polynomials in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
582
566
|
textEntryMathPage.steps.switchToEditTab();
|
583
|
-
textEntryMathPage.steps.
|
584
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
567
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
585
568
|
equationEditorFlyout.steps.clearAll();
|
586
569
|
equationEditorFlyout.steps.enterTextInPreviewInputField('M=7t');
|
587
570
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -609,8 +592,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
609
592
|
|
610
593
|
it('When the user enters a equation using units in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
611
594
|
textEntryMathPage.steps.switchToEditTab();
|
612
|
-
textEntryMathPage.steps.
|
613
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
595
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
614
596
|
equationEditorFlyout.steps.clearAll();
|
615
597
|
equationEditorFlyout.steps.enterTextInPreviewInputField('48 cm');
|
616
598
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['square'] }]);
|
@@ -639,8 +621,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
639
621
|
//RCA - https://weldnorthed.atlassian.net/browse/IEI-4999
|
640
622
|
it('When the user enters decimal values in the \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
641
623
|
textEntryMathPage.steps.switchToEditTab();
|
642
|
-
textEntryMathPage.steps.
|
643
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
624
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
644
625
|
equationEditorFlyout.steps.clearAll();
|
645
626
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5');
|
646
627
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -696,8 +677,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
696
677
|
|
697
678
|
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
698
679
|
textEntryMathPage.steps.switchToEditTab();
|
699
|
-
textEntryMathPage.steps.
|
700
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
680
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
701
681
|
equationEditorFlyout.steps.clearAll();
|
702
682
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
703
683
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -732,8 +712,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
732
712
|
|
733
713
|
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
734
714
|
textEntryMathPage.steps.switchToEditTab();
|
735
|
-
textEntryMathPage.steps.
|
736
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
715
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
737
716
|
equationEditorFlyout.steps.clearAll();
|
738
717
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
739
718
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -759,8 +738,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
759
738
|
//https://weldnorthed.atlassian.net/browse/IEI-5508
|
760
739
|
it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
761
740
|
textEntryMathPage.steps.switchToEditTab();
|
762
|
-
textEntryMathPage.steps.
|
763
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
741
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
764
742
|
equationEditorFlyout.steps.clearAll();
|
765
743
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
766
744
|
equationEditorFlyout.steps.enterTextInPreviewInputField('=6');
|
@@ -788,8 +766,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
788
766
|
|
789
767
|
it('When the user enters a equation using variables in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
790
768
|
textEntryMathPage.steps.switchToEditTab();
|
791
|
-
textEntryMathPage.steps.
|
792
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
769
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
793
770
|
equationEditorFlyout.steps.clearAll();
|
794
771
|
equationEditorFlyout.steps.enterTextInPreviewInputField('2*?=6');
|
795
772
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -25,8 +25,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
25
25
|
});
|
26
26
|
|
27
27
|
it('When the user enters a equation using decimals in \'Specify correct answer\' section and the user enters the same exact answer it should be treated as correct', () => {
|
28
|
-
textEntryMathPage.steps.
|
29
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
28
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
30
29
|
equationEditorFlyout.steps.clearAll();
|
31
30
|
equationEditorFlyout.steps.enterTextInPreviewInputField('43.9822971503');
|
32
31
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -75,8 +74,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
75
74
|
|
76
75
|
it('When the user enters a equation using parenthesis in \'Specify correct answer\' and user enters the simplified answer it should be treated as correct', () => {
|
77
76
|
textEntryMathPage.steps.switchToEditTab();
|
78
|
-
textEntryMathPage.steps.
|
79
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
77
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
80
78
|
equationEditorFlyout.steps.clearAll();
|
81
79
|
equationEditorFlyout.steps.enterTextInPreviewInputField('(7-2)(7+2)');
|
82
80
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -112,8 +110,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
112
110
|
|
113
111
|
it('When the user sets percentage in \'Specify correct answer\' section and user enters a value using integers which yields same result it should be treated as correct', () => {
|
114
112
|
textEntryMathPage.steps.switchToEditTab();
|
115
|
-
textEntryMathPage.steps.
|
116
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
113
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
117
114
|
equationEditorFlyout.steps.clearAll();
|
118
115
|
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
119
116
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -138,8 +135,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
138
135
|
|
139
136
|
it('When the user enters a fraction value in \'Specify correct answer\' response field and then the user enters the exact same value then it should be treated as correct', () => {
|
140
137
|
textEntryMathPage.steps.switchToEditTab();
|
141
|
-
textEntryMathPage.steps.
|
142
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
138
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
143
139
|
equationEditorFlyout.steps.clearAll();
|
144
140
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'numPad', symbolName: ['four'] }]);
|
145
141
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['3']);
|
@@ -179,8 +175,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
179
175
|
|
180
176
|
it('When the user enters a equation using polynomial quadratic equations in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
181
177
|
textEntryMathPage.steps.switchToEditTab();
|
182
|
-
textEntryMathPage.steps.
|
183
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
178
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
184
179
|
equationEditorFlyout.steps.clearAll();
|
185
180
|
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'] }]);
|
186
181
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -205,8 +200,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
205
200
|
|
206
201
|
it('When the user enters a equation with iota in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
207
202
|
textEntryMathPage.steps.switchToEditTab();
|
208
|
-
textEntryMathPage.steps.
|
209
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
203
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
210
204
|
equationEditorFlyout.steps.clearAll();
|
211
205
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-38-9i');
|
212
206
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -241,8 +235,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
241
235
|
|
242
236
|
it('When the user enters a equation with parenthesis equation with epsilon in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
243
237
|
textEntryMathPage.steps.switchToEditTab();
|
244
|
-
textEntryMathPage.steps.
|
245
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
238
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
246
239
|
equationEditorFlyout.steps.clearAll();
|
247
240
|
equationEditorFlyout.steps.enterTextInPreviewInputField('100000')
|
248
241
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['dotMultiplier'] }]);
|
@@ -289,8 +282,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
289
282
|
|
290
283
|
it('When the user enters a equation with trigonometric functions in \'Specify correct answer\' response field and then the user enters the exact same equation then it should be treated as correct', () => {
|
291
284
|
textEntryMathPage.steps.switchToEditTab();
|
292
|
-
textEntryMathPage.steps.
|
293
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
285
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
294
286
|
equationEditorFlyout.steps.clearAll();
|
295
287
|
equationEditorFlyout.steps.enterTextInPreviewInputField('-150');
|
296
288
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'trig', symbolName: ['sin'] }, { categoryName: 'intermediate', symbolName: ['groupInParenthesis'] }, { categoryName: 'greek', symbolName: ['theta'] }, { categoryName: 'numPad', symbolName: ['add'] }, { categoryName: 'intermediate', symbolName: ['fraction'] }, { categoryName: 'greek', symbolName: ['pi'] }]);
|
@@ -337,8 +329,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
337
329
|
|
338
330
|
it('When the user enters a equation using derivatives in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
339
331
|
textEntryMathPage.steps.switchToEditTab();
|
340
|
-
textEntryMathPage.steps.
|
341
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
332
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
342
333
|
equationEditorFlyout.steps.clearAll();
|
343
334
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['partialDerivative'] }, { categoryName: 'intermediate', symbolName: ['x', 'square'] }]);
|
344
335
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -363,8 +354,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
363
354
|
|
364
355
|
it('When the user enters a equation using integration in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
365
356
|
textEntryMathPage.steps.switchToEditTab();
|
366
|
-
textEntryMathPage.steps.
|
367
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
357
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
368
358
|
equationEditorFlyout.steps.clearAll();
|
369
359
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'calculus', symbolName: ['integral'] }, { categoryName: 'intermediate', symbolName: ['x'] }]);
|
370
360
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['1', '0']);
|
@@ -392,8 +382,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
392
382
|
|
393
383
|
it('When the user enters a equation using matrices in \'Specify correct answer\' and the user enters the exact same equation then it should be treated as correct', () => {
|
394
384
|
textEntryMathPage.steps.switchToEditTab();
|
395
|
-
textEntryMathPage.steps.
|
396
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
385
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
397
386
|
equationEditorFlyout.steps.clearAll();
|
398
387
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'matrices', symbolName: ['twoByTwoMatrixBoundedBrackets'] }]);
|
399
388
|
equationEditorFlyout.steps.enterTextInFirstEmptyBox(['2', '1', '0', '3']);
|
@@ -428,8 +417,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
428
417
|
//RCA - https://weldnorthed.atlassian.net/browse/IEI-4999
|
429
418
|
it('When the user enters decimal values in the \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
430
419
|
textEntryMathPage.steps.switchToEditTab();
|
431
|
-
textEntryMathPage.steps.
|
432
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
420
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
433
421
|
equationEditorFlyout.steps.clearAll();
|
434
422
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5');
|
435
423
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -485,8 +473,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
485
473
|
|
486
474
|
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
487
475
|
textEntryMathPage.steps.switchToEditTab();
|
488
|
-
textEntryMathPage.steps.
|
489
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
476
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
490
477
|
equationEditorFlyout.steps.clearAll();
|
491
478
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5 hours.');
|
492
479
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -521,8 +508,7 @@ describe('Create item page - Text entry math: Value is equivalent evaluation met
|
|
521
508
|
|
522
509
|
it('When the user enters answers with "." in \'Specify correct answer\' section then the exact same answer should be validated', () => {
|
523
510
|
textEntryMathPage.steps.switchToEditTab();
|
524
|
-
textEntryMathPage.steps.
|
525
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
511
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
526
512
|
equationEditorFlyout.steps.clearAll();
|
527
513
|
equationEditorFlyout.steps.enterTextInPreviewInputField('36.5.');
|
528
514
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -33,13 +33,11 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
33
33
|
textEntryMathPage.steps.allotPoints(10);
|
34
34
|
textEntryMathPage.steps.addResponseArea();
|
35
35
|
textEntryMathPage.steps.addResponseArea();
|
36
|
-
textEntryMathPage.steps.
|
37
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
36
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
38
37
|
equationEditorFlyout.steps.clearAll();
|
39
38
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
40
39
|
equationEditorFlyout.steps.clickOnOkButton();
|
41
|
-
textEntryMathPage.steps.
|
42
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
40
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
43
41
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
44
42
|
textEntryMathPage.steps.expandAdditionalSettings();
|
45
43
|
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
@@ -177,8 +175,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
177
175
|
}
|
178
176
|
// Specify correct answers for each response area
|
179
177
|
for (let i = 0; i < 8; i++) {
|
180
|
-
textEntryMathPage.steps.
|
181
|
-
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(i);
|
178
|
+
textEntryMathPage.steps.expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(i);
|
182
179
|
equationEditorFlyout.steps.clearAll();
|
183
180
|
equationEditorFlyout.steps.enterTextInPreviewInputField(`A${i + 1}`);
|
184
181
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -124,6 +124,8 @@ const selectors = {
|
|
124
124
|
aspectRatioButton: () => cy.get('.lock-reset-icon-wrapper button').eq(0),
|
125
125
|
resetDimensionsButton: () => cy.get('.lock-reset-icon-wrapper button').eq(1),
|
126
126
|
uploadLabel: () => cy.get('[class*="SimpleImageUploaderstyles__LabelWrapper"]').eq(0),
|
127
|
+
uploadedImage: () => cy.get('[aria-label="Image"]'),
|
128
|
+
uploadImageLoader: () => cy.get('[class*="InlineLoaderstyles__LoaderDiv"]'),
|
127
129
|
fileNameLabel: () => cy.get('[class*="SimpleImageUploaderstyles__LabelWrapper"]').eq(1),
|
128
130
|
fileUploadSection: () => cy.get('.file-input-wrapper'),
|
129
131
|
chooseFileButton: () => cy.get('.choose-file-button'),
|
@@ -1372,6 +1372,15 @@ const steps = {
|
|
1372
1372
|
const clientWidth = $CorrectAnswerSection[0].clientWidth;
|
1373
1373
|
expect(scrollWidth).to.not.be.greaterThan(clientWidth);
|
1374
1374
|
});
|
1375
|
+
},
|
1376
|
+
|
1377
|
+
/**
|
1378
|
+
* This function is used for expanding the response accordion in the specify correct answer section
|
1379
|
+
* @param {number} index of the response field
|
1380
|
+
*/
|
1381
|
+
expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection: (index) => {
|
1382
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(index);
|
1383
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(index);
|
1375
1384
|
}
|
1376
1385
|
}
|
1377
1386
|
|