itemengine-cypress-automation 1.0.382-FixesPR3-b746986.0 → 1.0.382-IEI-6323-IEI-6324-manualAndNonScoredScript-1726a00.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/ListOrderingDropdown/editTabBasicSection.js +0 -2
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +0 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +1 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +4 -4
- package/cypress/pages/listOrderingPage.js +1 -6
- package/cypress/pages/textEntryMathPage.js +7 -3
- package/package.json +1 -1
@@ -85,8 +85,6 @@ describe('Create Item page - List ordering: Dropdown menu ordering layout: Edit
|
|
85
85
|
before(() => {
|
86
86
|
cy.log('Navigating to list ordering question type');
|
87
87
|
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
88
|
-
listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange the following options in the correct order');
|
89
|
-
cy.barsPreLoaderWait();
|
90
88
|
listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
|
91
89
|
listOrderingPage.steps.addInputToOptionsInputField(options);
|
92
90
|
});
|
@@ -451,7 +451,7 @@ describe('Create Item page - Matching : Student view settings', () => {
|
|
451
451
|
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
452
452
|
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('No limit');
|
453
453
|
matchingPage.steps.switchToPreviewTab();
|
454
|
-
utilities.verifyInnerText(matchingPage.maxLimitInEachDropzoneHelpText(), 'Maximum answers in each dropzone
|
454
|
+
utilities.verifyInnerText(matchingPage.maxLimitInEachDropzoneHelpText(), 'Maximum answers in each dropzone:');
|
455
455
|
});
|
456
456
|
});
|
457
457
|
});
|
@@ -9,7 +9,6 @@ describe('Create item page - Matching-Dropdown: Scoring for blank responses', ()
|
|
9
9
|
cy.loginAs('admin');
|
10
10
|
});
|
11
11
|
|
12
|
-
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-6160
|
13
12
|
describe(`Auto scored - All or nothing scoring`, () => {
|
14
13
|
abortEarlySetup();
|
15
14
|
before(() => {
|
@@ -300,19 +300,19 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
300
300
|
matchingPage.steps.allotTotalPenaltyPoints(4);
|
301
301
|
matchingPage.steps.switchToPreviewTab();
|
302
302
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[4] }]);
|
303
|
-
matchingPage.steps.verifyPreviewScore(-
|
303
|
+
matchingPage.steps.verifyPreviewScore(-2.01, 20);
|
304
304
|
});
|
305
305
|
|
306
306
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
307
307
|
matchingPage.steps.resetQuestionPreview();
|
308
308
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[4] }]);
|
309
|
-
matchingPage.steps.verifyPreviewScore(
|
309
|
+
matchingPage.steps.verifyPreviewScore(14.33, 20);
|
310
310
|
});
|
311
311
|
|
312
312
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect dropdown should get deducted from the awarded points', () => {
|
313
313
|
matchingPage.steps.resetQuestionPreview();
|
314
314
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[1] }, { dropdownIndex: 1, dropdownOption: optionsArray[3] }, { dropdownIndex: 2, dropdownOption: optionsArray[4] }]);
|
315
|
-
matchingPage.steps.verifyPreviewScore(
|
315
|
+
matchingPage.steps.verifyPreviewScore(7.66, 20);
|
316
316
|
});
|
317
317
|
|
318
318
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -369,19 +369,19 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
369
369
|
matchingPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
370
370
|
matchingPage.steps.switchToPreviewTab();
|
371
371
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[4] }]);
|
372
|
-
matchingPage.steps.verifyPreviewScore(-9.
|
372
|
+
matchingPage.steps.verifyPreviewScore(-9.99, 20);
|
373
373
|
});
|
374
374
|
|
375
375
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
376
376
|
matchingPage.steps.resetQuestionPreview();
|
377
377
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[4] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
|
378
|
-
matchingPage.steps.verifyPreviewScore(7.
|
378
|
+
matchingPage.steps.verifyPreviewScore(7.67, 20);
|
379
379
|
});
|
380
380
|
|
381
381
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
382
382
|
matchingPage.steps.resetQuestionPreview();
|
383
383
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[4] }]);
|
384
|
-
matchingPage.steps.verifyPreviewScore(-0.
|
384
|
+
matchingPage.steps.verifyPreviewScore(-0.66, 20);
|
385
385
|
});
|
386
386
|
|
387
387
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -318,13 +318,13 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
318
318
|
|
319
319
|
it('When user attempts the question with responses from the correct accordion i.e select an option, then the user should be awarded full points specified for correct points accordion and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
320
320
|
textEntryMathPage.steps.resetQuestionPreview();
|
321
|
-
textEntryMathPage.steps.
|
321
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
322
322
|
equationEditorFlyout.steps.clearAll();
|
323
323
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
324
324
|
equationEditorFlyout.steps.clickOnOkButton();
|
325
|
-
textEntryMathPage.steps.
|
325
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
326
326
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
327
|
-
textEntryMathPage.steps.
|
327
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
328
328
|
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
329
329
|
equationEditorFlyout.steps.clickOnOkButton();
|
330
330
|
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
@@ -336,10 +336,10 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
336
336
|
|
337
337
|
it('When user attempts the question with responses from the alternative accordion then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
338
338
|
textEntryMathPage.steps.resetQuestionPreview();
|
339
|
-
textEntryMathPage.steps.
|
339
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
340
340
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
341
341
|
equationEditorFlyout.steps.clickOnOkButton();
|
342
|
-
textEntryMathPage.steps.
|
342
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
343
343
|
equationEditorFlyout.steps.clearAll();
|
344
344
|
textEntryMathPage.steps.verifyPreviewScore(12, 20);
|
345
345
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -42,7 +42,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
42
42
|
equationEditorFlyout.steps.clickOnOkButton();
|
43
43
|
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
44
44
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
45
|
-
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
45
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
46
46
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
47
47
|
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
48
48
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -67,7 +67,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
67
67
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six', 'equalTo', 'one', 'two'] }]);
|
68
68
|
equationEditorFlyout.steps.clickOnOkButton();
|
69
69
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
70
|
-
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
70
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
71
71
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
72
72
|
equationEditorFlyout.steps.enterTextInPreviewInputField('700%');
|
73
73
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -277,7 +277,7 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
277
277
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
278
278
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
279
279
|
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
280
|
-
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectNewOne', '6
|
280
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectNewOne', '2×6=12', '700%']);
|
281
281
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
282
282
|
});
|
283
283
|
});
|
package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js
CHANGED
@@ -115,7 +115,7 @@ describe('Create item page - Text Entry Math: Partial different weights', () =>
|
|
115
115
|
textEntryMathPage.steps.switchToGradingView();
|
116
116
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
117
117
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
118
|
-
textEntryMathPage.steps.
|
118
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
119
119
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
120
120
|
});
|
121
121
|
|
@@ -199,8 +199,8 @@ describe('Create Item page - Text entry math: Preview scoring', () => {
|
|
199
199
|
textEntryMathPage.steps.verifyPreviewScore(6, 18);
|
200
200
|
textEntryMathPage.steps.switchToGradingView();
|
201
201
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
202
|
-
textEntryMathPage.steps.
|
203
|
-
textEntryMathPage.steps.
|
202
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
203
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
204
204
|
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
205
205
|
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
206
206
|
});
|
@@ -22,7 +22,7 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
|
|
22
22
|
|
23
23
|
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'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', () => {
|
24
24
|
textEntryMathPage.steps.switchToGradingView();
|
25
|
-
textEntryMathPage.steps.
|
25
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 24);
|
26
26
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
27
27
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
28
28
|
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
@@ -36,7 +36,7 @@ describe('Create item page - Text entry math: Partial equal weights for blank re
|
|
36
36
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
37
37
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
38
38
|
textEntryMathPage.steps.switchToGradingView();
|
39
|
-
textEntryMathPage.steps.
|
39
|
+
textEntryMathPage.steps.verifyPreviewScore(24, 24);
|
40
40
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
41
41
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
42
42
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
@@ -98,7 +98,7 @@ describe('Create question page - Text Entry Math: Equation Editor functionality'
|
|
98
98
|
cy.log('Adding an equation to preview input field')
|
99
99
|
equationEditorFlyout.steps.enterEquation([{ categoryName: 'intermediate', symbolName: ['x'] }, { categoryName: 'numPad', symbolName: ['add', 'five', 'equalTo', 'one'] }]);
|
100
100
|
equationEditorFlyout.steps.clickOnOkButton();
|
101
|
-
textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1
|
101
|
+
textEntryMathPage.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
|
102
102
|
});
|
103
103
|
|
104
104
|
textEntryMathPage.tests.editEquationInPreviewTab('text entry math');
|
@@ -1021,14 +1021,14 @@ describe('Create item page - Text entry math: Equivalent structure evaluation me
|
|
1021
1021
|
});
|
1022
1022
|
|
1023
1023
|
//Syntax: Expression
|
1024
|
-
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using integer in preview tab response fields they should be treated as
|
1024
|
+
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using integer in preview tab response fields they should be treated as incorrect', () => {
|
1025
1025
|
textEntryMathPage.steps.resetQuestionPreview();
|
1026
1026
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
1027
1027
|
equationEditorFlyout.steps.enterTextInPreviewInputField('90');
|
1028
1028
|
equationEditorFlyout.steps.clickOnOkButton();
|
1029
1029
|
textEntryMathPage.steps.switchToGradingView();
|
1030
|
-
textEntryMathPage.steps.
|
1031
|
-
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('
|
1030
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
1031
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
1032
1032
|
});
|
1033
1033
|
|
1034
1034
|
it('When user has selected \'Expression\' from the syntax dropdown and user enters input using single variable with coefficient in preview tab response fields they should be treated as incorrect', () => {
|
@@ -387,6 +387,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
|
|
387
387
|
textEntryMathWithImagePage.steps.addBackground();
|
388
388
|
textEntryMathWithImagePage.steps.uploadFile('highlightImage.jpg');
|
389
389
|
textEntryMathWithImagePage.steps.verifyFileNameLabel('highlightImage.jpg');
|
390
|
+
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.uploadImageProgressBar(), 'visible');
|
390
391
|
textEntryMathWithImagePage.steps.verifyImageIsUploaded();
|
391
392
|
});
|
392
393
|
|
@@ -299,7 +299,7 @@ describe('Create Item page - Text Entry Math: Style and layout customization', (
|
|
299
299
|
textEntryMathWithImagePage.steps.clearWidthInputField();
|
300
300
|
textEntryMathWithImagePage.steps.insertResponseArea(20);
|
301
301
|
textEntryMathWithImagePage.steps.switchToPreviewTab();
|
302
|
-
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '
|
302
|
+
textEntryMathWithImagePage.steps.verifyHeightOfTextContainerInPreviewTab(1, '46px');
|
303
303
|
textEntryMathWithImagePage.steps.verifyWidthOfTextContainerInPreviewTab(1, '122px');
|
304
304
|
});
|
305
305
|
});
|
@@ -24,7 +24,6 @@ describe('Create Item page - Text selection: Text selection modes in specify pos
|
|
24
24
|
textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
25
25
|
});
|
26
26
|
textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
|
27
|
-
utilities.verifyInnerText(textSelectionPage.specifyPossibleOptionsTextFieldWrapper(), "Horses cannot breat& through their mouth! Cows sleep standing up?\n\nDogs have e#cellent 'hearing'.\n\nDeers possess nearly, 300 degree field of vision.")
|
28
27
|
});
|
29
28
|
|
30
29
|
it('\'Text selection mode\' label and \'Custom\', \'Paragraph\', \'Sentence\' and \'Word\' text selection modes should be displayed', () => {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import utilities from "../../support/helpers/utilities";
|
2
2
|
import { equationEditorCategoriesAndSymbols } from "../../fixtures/equationEditorCategoriesAndSymbols ";
|
3
|
-
import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage
|
3
|
+
import { equationEditorFlyout, commonComponents, essayResponseCommonComponents, createQuestionBasePage } from "../components";
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
const allCategories = Object.values(equationEditorCategoriesAndSymbols)
|
6
6
|
const defaultSelectedCategories = ['Numpad', 'Keypad', 'Intermediate', 'Primary', 'General', 'Common', 'Algebra', 'Geo', 'Compare', 'Matrices'];
|
@@ -302,7 +302,7 @@ const tests = {
|
|
302
302
|
it(`In the equation editor flyout the ${allCategories[0].displayName} should be selected by default and the Equation editor input field should be prefilled with the added equation`, () => {
|
303
303
|
equationEditorFlyout.steps.verifyCategoryTileSelectedInEquationEditor(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`);
|
304
304
|
cy.log('Adding this to focus out of input field')
|
305
|
-
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
305
|
+
equationEditorFlyout.steps.selectEquationEditorCategoryPreviewTab(`${equationEditorCategoriesAndSymbols['numPad'].displayName}`)
|
306
306
|
utilities.verifyTextContent(equationEditorFlyout.previewInputField(), 'x+5=1');
|
307
307
|
});
|
308
308
|
|
@@ -312,7 +312,7 @@ const tests = {
|
|
312
312
|
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5=1');
|
313
313
|
}
|
314
314
|
else {
|
315
|
-
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1
|
315
|
+
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5=1');
|
316
316
|
}
|
317
317
|
});
|
318
318
|
|
@@ -330,7 +330,7 @@ const tests = {
|
|
330
330
|
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationText(0, 'x+5×0');
|
331
331
|
}
|
332
332
|
else {
|
333
|
-
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0
|
333
|
+
equationEditorSectionCommonComponent.steps.verifyResponseFieldEquationTextNew(0, 'x+5×0');
|
334
334
|
}
|
335
335
|
});
|
336
336
|
},
|
@@ -255,7 +255,7 @@ const steps = {
|
|
255
255
|
break;
|
256
256
|
case 'none':
|
257
257
|
dragIcon
|
258
|
-
.should('not.
|
258
|
+
.should('not.be.visible');
|
259
259
|
break;
|
260
260
|
default:
|
261
261
|
throw new Error('Invalid drag handle option');
|
@@ -755,7 +755,6 @@ const steps = {
|
|
755
755
|
///Dropdown menu steps
|
756
756
|
expandDropdownMenuOptionsDropdown: () => {
|
757
757
|
listOrderingPage.dropdownMenuOptionsDropdown()
|
758
|
-
.trigger('mouseover')
|
759
758
|
.click();
|
760
759
|
},
|
761
760
|
|
@@ -774,7 +773,6 @@ const steps = {
|
|
774
773
|
*/
|
775
774
|
expandPositionDropdownSpecifyCorrectAnswerSection: (dropdownIndex) => {
|
776
775
|
utilities.getNthElement(listOrderingPage.positionDropdownSpecifyCorrectAnswerSection(), dropdownIndex)
|
777
|
-
.trigger('mouseover')
|
778
776
|
.click();
|
779
777
|
},
|
780
778
|
|
@@ -786,7 +784,6 @@ const steps = {
|
|
786
784
|
selectOptionPositionSpecifyCorrectAnswerSection: (optionIndex, position) => {
|
787
785
|
steps.expandPositionDropdownSpecifyCorrectAnswerSection(optionIndex);
|
788
786
|
listOrderingPage.positionDropdownListOption(position)
|
789
|
-
.trigger('mouseover')
|
790
787
|
.click();
|
791
788
|
},
|
792
789
|
|
@@ -808,7 +805,6 @@ const steps = {
|
|
808
805
|
*/
|
809
806
|
expandPositionDropdownPreviewTab: (dropdownIndex) => {
|
810
807
|
utilities.getNthElement(listOrderingPage.positionDropdownPreviewTab(), dropdownIndex)
|
811
|
-
.trigger('mouseover')
|
812
808
|
.click();
|
813
809
|
},
|
814
810
|
|
@@ -830,7 +826,6 @@ const steps = {
|
|
830
826
|
selectOptionPositionPreviewTab: (optionIndex, position) => {
|
831
827
|
steps.expandPositionDropdownPreviewTab(optionIndex);
|
832
828
|
listOrderingPage.positionDropdownListOption(position)
|
833
|
-
.trigger('mouseover')
|
834
829
|
.click();
|
835
830
|
},
|
836
831
|
|
@@ -1447,21 +1447,25 @@ const tests = {
|
|
1447
1447
|
});
|
1448
1448
|
}
|
1449
1449
|
|
1450
|
-
it('When user focuses in and out of the response accordion \'Answer\' input field, error message should
|
1450
|
+
it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
|
1451
1451
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
1452
1452
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
1453
1453
|
equationEditorFlyout.steps.focusInPreviewInputField();
|
1454
1454
|
equationEditorFlyout.steps.clickOnOkButton();
|
1455
1455
|
textEntryMathPage.steps.focusOutOfResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
1456
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
1456
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
1457
|
+
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
|
1457
1458
|
});
|
1458
1459
|
|
1459
|
-
it('When gives an input to \'Answer\' input field,then error message should
|
1460
|
+
it('When gives an input to \'Answer\' input field,then error message should disappear', () => {
|
1460
1461
|
textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(a−b)');
|
1461
1462
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
1462
1463
|
});
|
1463
1464
|
|
1464
1465
|
it('User should be able to expand multiple response accordions simultaneously', () => {
|
1466
|
+
if (accordionName === 'Alternate') {
|
1467
|
+
textEntryMathPage.steps.deleteAlternativeAnswerAccordion(0);
|
1468
|
+
}
|
1465
1469
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
1466
1470
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
1467
1471
|
textEntryMathPage.steps.verifyResponseAccordionIsExpanded(0);
|