itemengine-cypress-automation 1.0.243 → 1.0.244
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +10 -10
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +3 -2
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories1.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/equationEditorCategories2.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +6 -4
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -3
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +2 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +2 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +10 -10
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +6 -6
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +3 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +6 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +0 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +0 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -2
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/TextSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordionFilledIn.js +7 -7
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -4
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +10 -10
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +3 -1
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -0
- package/cypress/pages/components/optionsWrapperComponent.js +2 -0
- package/cypress/pages/drawingResponsePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -4
- package/cypress/pages/imageHighlightPage.js +4 -5
- package/cypress/pages/listOrderingPage.js +9 -12
- package/cypress/pages/numberLineLabelPage.js +4 -5
- package/cypress/pages/singleSelectionPage.js +2 -2
- package/cypress/pages/textSelectionPage.js +4 -21
- package/cypress/pages/videoResponsePage.js +3 -0
- package/package.json +1 -1
- package/scripts/sorry-cypress.mjs +1 -1
@@ -42,11 +42,11 @@ describe('Create item page - Drag and drop into categories: Header section and S
|
|
42
42
|
});
|
43
43
|
|
44
44
|
describe('Validation error messages', () => {
|
45
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
45
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
46
46
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
48
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
|
-
dragAndDropIntoCategoriesPage.steps.verifyWarningIconOnRequiredFields(['Please
|
49
|
+
dragAndDropIntoCategoriesPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
50
50
|
});
|
51
51
|
|
52
52
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -528,6 +528,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
528
528
|
utilities.verifyInnerText(drawingResponsePage.editTabColorPickerPopupOkButton(), 'Ok');
|
529
529
|
colorPopupComponent.steps.verifySelectedColorBlock('rgb(0, 224, 255)');
|
530
530
|
colorPopupComponent.steps.verifyHexValue('#00E0FF');
|
531
|
+
drawingResponsePage.steps.clickOnEditTabColorPaletteOkButton();
|
531
532
|
});
|
532
533
|
|
533
534
|
it('The user can modify the color using the color palette. The modified color should be displayed in the \'Default Fill colors\' section', () => {
|
@@ -228,32 +228,32 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
228
228
|
utilities.verifyElementVisibilityState(drawingResponsePage.additionalOptionsTiles(additionalOption), 'visible');
|
229
229
|
});
|
230
230
|
utilities.verifyElementCount(drawingResponsePage.additionalOptionsTiles(), toolbarOption.additionalOptions.length);
|
231
|
-
if (toolbarOption.additionalOptions.includes('
|
231
|
+
if (toolbarOption.additionalOptions.includes(' StrokeFontColor')) {
|
232
232
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultStrokeFontColorLabel(), 'visible');
|
233
233
|
utilities.verifyInnerText(drawingResponsePage.defaultStrokeFontColorLabel(), 'Default stroke/font colors');
|
234
234
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultStrokeColorsWrapper(), 'visible');
|
235
235
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(0, 'rgb(0, 112, 128)');
|
236
|
-
} else {
|
236
|
+
} else if(!toolbarOption.additionalOptions.includes(' StrokeFontColor')) {
|
237
237
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultStrokeColorsWrapper(), 'notExist');
|
238
238
|
}
|
239
|
-
if (toolbarOption.additionalOptions.includes('
|
239
|
+
else if (toolbarOption.additionalOptions.includes(' FillColor')) {
|
240
240
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultFillColorsLabel(), 'visible');
|
241
241
|
utilities.verifyInnerText(drawingResponsePage.defaultFillColorsLabel(), 'Default fill colors');
|
242
242
|
utilities.verifyElementVisibilityState(drawingResponsePage.defaultFillColorsWrapper(), 'visible');
|
243
243
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(1, 'rgb(0, 224, 255)');
|
244
|
-
} else {
|
245
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.
|
244
|
+
} else if(!toolbarOption.additionalOptions.includes(' FillColor')) {
|
245
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.defaultNewFillColorsWrapper(), 'notExist');
|
246
246
|
}
|
247
|
-
if (toolbarOption.additionalOptions.includes('
|
247
|
+
else if (toolbarOption.additionalOptions.includes(' SpecialChar')) {
|
248
248
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersLabel(), 'visible');
|
249
249
|
utilities.verifyElementDisabledClass(drawingResponsePage.customizeSpecialCharactersLabel());
|
250
250
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersCheckbox(), 'exist');
|
251
251
|
utilities.verifyElementDisabled(drawingResponsePage.customizeSpecialCharactersCheckbox());
|
252
|
-
} else {
|
252
|
+
} else if(!toolbarOption.additionalOptions.includes(' SpecialChar')) {
|
253
253
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersLabel(), 'notExist');
|
254
254
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeSpecialCharactersCheckbox(), 'notExist');
|
255
255
|
}
|
256
|
-
if (toolbarOption.additionalOptions.includes('
|
256
|
+
else if (toolbarOption.additionalOptions.includes(' MathChar')) {
|
257
257
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeMathCharactersLabel(), 'visible');
|
258
258
|
utilities.verifyElementDisabledClass(drawingResponsePage.customizeMathCharactersLabel());
|
259
259
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeMathCharactersCheckbox(), 'exist');
|
@@ -265,8 +265,8 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
265
265
|
} else {
|
266
266
|
utilities.verifyElementVisibilityState(drawingResponsePage.additionalOptionsLabel(), 'notExist');
|
267
267
|
utilities.verifyElementVisibilityState(drawingResponsePage.additionalOptionsTiles(), 'notExist');
|
268
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.
|
269
|
-
utilities.verifyElementVisibilityState(drawingResponsePage.
|
268
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.defaultNewStrokeColorsWrapper(), 'notExist');
|
269
|
+
utilities.verifyElementVisibilityState(drawingResponsePage.defaultNewFillColorsWrapper(), 'notExist');
|
270
270
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeMathCharactersLabel(), 'notExist');
|
271
271
|
utilities.verifyElementVisibilityState(drawingResponsePage.customizeMathCharactersLabel(), 'notExist');
|
272
272
|
}
|
@@ -37,8 +37,9 @@ describe('Create item page - Drawing response: Drawing Response: Scoring sectio
|
|
37
37
|
drawingResponsePage.tests.verifyMinimumScoringDropdown();
|
38
38
|
|
39
39
|
drawingResponsePage.tests.verifyMinimumPointsLabelAndInputField();
|
40
|
-
|
41
|
-
|
40
|
+
|
41
|
+
//Uncomment code once https://redmine.zeuslearning.com/issues/580584 is resolved
|
42
|
+
// drawingResponsePage.tests.verifyMinimumPointsFieldErrorState();
|
42
43
|
});
|
43
44
|
|
44
45
|
describe('Non scored scoring - Scoring section', () => {
|
@@ -36,7 +36,7 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
36
36
|
|
37
37
|
it('Ok button should be displayed at the bottom of the flyout', () => {
|
38
38
|
utilities.verifyElementVisibilityState(equationEditorFlyout.buttonOk(), 'visible');
|
39
|
-
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), '
|
39
|
+
utilities.verifyInnerText(equationEditorFlyout.buttonOk(), 'OK');
|
40
40
|
});
|
41
41
|
|
42
42
|
it('Equation Editor input field should be displayed and when user focuses in the input field should have cursor', () => {
|
@@ -106,8 +106,8 @@ describe('Create question page - Essay Response: Equation Editor categories', ()
|
|
106
106
|
});
|
107
107
|
|
108
108
|
equationEditorFlyout.tests.verifyCSSAnda11yOfEquationEditorInputField('intermediate');
|
109
|
-
|
110
|
-
essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('832322516<>3155(25)273:3%|9|50$°≤≥πxy', '2');
|
109
|
+
//Uncomment once https://redmine.zeuslearning.com/issues/525213 is resolved
|
110
|
+
// essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('832322516<>3155(25)273:3%|9|50$°≤≥πxy', '2');
|
111
111
|
});
|
112
112
|
|
113
113
|
describe('Equation editor input category: Primary', () => {
|
@@ -194,8 +194,8 @@ describe('Create question page - Essay Response: Equation Editor categories', ()
|
|
194
194
|
});
|
195
195
|
|
196
196
|
equationEditorFlyout.tests.verifyCSSAnda11yOfEquationEditorInputField('delimiters');
|
197
|
-
|
198
|
-
essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('⌊⌋⌈⌉∀¬∧∨≡∃⊕↑{}(a)[a]⟨a⟩[a]{a}', '2');
|
197
|
+
//Uncomment once https://redmine.zeuslearning.com/issues/525213 is resolved
|
198
|
+
// essayResponsePage.tests.insertEquationAndVerifyInputFieldContentsAndWordCount('⌊⌋⌈⌉∀¬∧∨≡∃⊕↑{}(a)[a]⟨a⟩[a]{a}', '2');
|
199
199
|
});
|
200
200
|
|
201
201
|
describe('Equation editor input category: Calculus Symbols', () => {
|
@@ -42,11 +42,11 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
|
|
42
42
|
});
|
43
43
|
|
44
44
|
describe('Validation error messages', () => {
|
45
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
45
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
46
46
|
|
47
47
|
it('Validation error messages should be displayed below required input fields', () => {
|
48
48
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
|
-
fillInTheGapsDragAndDropPage.steps.verifyWarningIconOnRequiredFields(['Please
|
49
|
+
fillInTheGapsDragAndDropPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
50
50
|
});
|
51
51
|
|
52
52
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -43,11 +43,11 @@ describe('Create item page - Fill in the gaps with dropdown: Header section and
|
|
43
43
|
});
|
44
44
|
|
45
45
|
describe('Validation error messages', () => {
|
46
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
46
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
49
|
fillInTheGapsDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
50
|
-
fillInTheGapsDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please
|
50
|
+
fillInTheGapsDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
51
51
|
});
|
52
52
|
|
53
53
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -66,10 +66,5 @@ describe('Create Item page - Fill in the gaps with dropdown: Specify correct ans
|
|
66
66
|
fillInTheGapsDropdownPage.steps.verifyAlternativeAnswerAccordionLabel(0);
|
67
67
|
});
|
68
68
|
|
69
|
-
it('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state and an error icon should appear on correct accordion', () => {
|
70
|
-
fillInTheGapsDropdownPage.steps.deleteOption(1);
|
71
|
-
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerAccordionIsExpanded();
|
72
|
-
fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
73
|
-
});
|
74
69
|
});
|
75
70
|
});
|
@@ -69,6 +69,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Additi
|
|
69
69
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
70
70
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
71
71
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
72
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(10);
|
72
73
|
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(options);
|
73
74
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
|
74
75
|
fillInTheGapsOverImageDragAndDropPage.steps.expandAdditionalSettings();
|
@@ -43,11 +43,11 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
43
43
|
});
|
44
44
|
|
45
45
|
describe('Validation error messages', () => {
|
46
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
46
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please upload an image', 'Please insert a dropzone', 'Please set points']);
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
49
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
50
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyWarningIconOnRequiredFields(['Please
|
50
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please upload an image', 'Please insert a dropzone', 'Please set points'])
|
51
51
|
});
|
52
52
|
|
53
53
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -278,7 +278,8 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
278
278
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
|
279
279
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 1 });
|
280
280
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(5, 5);
|
281
|
-
|
281
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/580236 is resolved
|
282
|
+
//fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
282
283
|
});
|
283
284
|
});
|
284
285
|
|
@@ -492,6 +493,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
492
493
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
493
494
|
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(3);
|
494
495
|
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(options.slice(0, 5));
|
496
|
+
cy.wait(2000);
|
495
497
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
|
496
498
|
});
|
497
499
|
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettingsForGroupedLayout.js
CHANGED
@@ -257,7 +257,8 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
257
257
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
258
258
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1 });
|
259
259
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(5, 5);
|
260
|
-
|
260
|
+
//need to remove comment after https://redmine.zeuslearning.com/issues/561248 is resolved
|
261
|
+
//fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
261
262
|
});
|
262
263
|
});
|
263
264
|
});
|
@@ -59,7 +59,7 @@ describe('fill in the gaps over image - dropdown - Additional settings', () => {
|
|
59
59
|
'font-size': fontSizes[option]
|
60
60
|
});
|
61
61
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(correctAnswerArray[0]);
|
62
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.
|
62
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.dropdownTextLabelCollapsed(), {
|
63
63
|
'font-size': fontSizes[option]
|
64
64
|
});
|
65
65
|
});
|
@@ -43,11 +43,11 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
|
|
43
43
|
});
|
44
44
|
|
45
45
|
describe('Validation error messages', () => {
|
46
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
46
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please insert a dropdown', 'Please set points']);
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
49
|
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
50
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please
|
50
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please insert a dropdown', 'Please set points'])
|
51
51
|
});
|
52
52
|
|
53
53
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -45,11 +45,11 @@ describe('Create item page - Fill in the gaps over image - text: Header section
|
|
45
45
|
});
|
46
46
|
|
47
47
|
describe('Validation error messages', () => {
|
48
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
48
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please insert a text container', 'Please set points']);
|
49
49
|
|
50
50
|
it('Validation error messages should be displayed below required input fields', () => {
|
51
51
|
fillInTheGapsOverImageTextPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
52
|
-
fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please
|
52
|
+
fillInTheGapsOverImageTextPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please insert a text container', 'Please set points']);
|
53
53
|
});
|
54
54
|
|
55
55
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -168,7 +168,8 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
168
168
|
if (view === 'Question preview' || view === 'Item preview') {
|
169
169
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(20, 20);
|
170
170
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
171
|
-
|
171
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/580236 is resolved
|
172
|
+
//fillInTheGapsOverImageTextPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
172
173
|
};
|
173
174
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
174
175
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { fillInTheGapsOverImageTextPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
3
4
|
|
4
5
|
describe('Create Item page - Fill in the gaps over image - text: Specify correct answer, Alternative correct answer', () => {
|
5
6
|
before(() => {
|
@@ -33,6 +34,7 @@ describe('Create Item page - Fill in the gaps over image - text: Specify correct
|
|
33
34
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
34
35
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
35
36
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(30);
|
37
|
+
utilities.hoverAwayFromElement(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
|
36
38
|
});
|
37
39
|
|
38
40
|
fillInTheGapsOverImageTextPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('fill in the gaps over image text');
|
@@ -40,8 +40,8 @@ describe('Create item page - Fill in the gaps over image with text: Supported fi
|
|
40
40
|
|
41
41
|
it('When the user tries to uploads an image with unsupported file type, then an error message, "Error: The file type is not supported. Please upload a file with the following supported formats: JPG, PNG, GIF, SVG.", should be displayed', () => {
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFile('sample.heic');
|
43
|
-
utilities.
|
44
|
-
|
43
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.errorMessage(), 'notExist');
|
44
|
+
fillInTheGapsOverImageTextPage.steps.verifyCanvasImageNotExist();
|
45
45
|
});
|
46
46
|
|
47
47
|
fillInTheGapsOverImageTextPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -156,6 +156,8 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
156
156
|
});
|
157
157
|
});
|
158
158
|
|
159
|
+
// Change 'Stroke color' to 'Border color' in the following tests after https://redmine.zeuslearning.com/issues/580697 has been resolved.
|
160
|
+
|
159
161
|
describe('Border color image highlight style : Edit tab content and functionality', () => {
|
160
162
|
abortEarlySetup();
|
161
163
|
before(() => {
|
@@ -171,9 +173,9 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
171
173
|
imageHighlightPage.steps.highlightARegionInSpecifyCorrectAnswerSection(1);
|
172
174
|
});
|
173
175
|
|
174
|
-
it('\'Border color\' icon should be displayed and as user hovers over it then a tooltip \'
|
176
|
+
it('\'Border color\' icon should be displayed and as user hovers over it then a tooltip \'Stroke color\' should be displayed', () => {
|
175
177
|
utilities.verifyElementVisibilityState(imageHighlightPage.borderColorButton(), 'visible');
|
176
|
-
imageHighlightPage.steps.verifyToolTipText(2, imageHighlightPage.borderColorButton(), '
|
178
|
+
imageHighlightPage.steps.verifyToolTipText(2, imageHighlightPage.borderColorButton(), 'Stroke color');
|
177
179
|
});
|
178
180
|
|
179
181
|
it('When user clicks on the \'Border color\' icon then a popup should be displayed', () => {
|
@@ -183,7 +185,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
183
185
|
|
184
186
|
it('The popup should contain \'Border color\' label and two color boxes with label \'Default\' and \'Active\'. Both color boxes should have edit color button.Verify defualt color of both \'Default\' and \'Active\' color boxes', () => {
|
185
187
|
utilities.verifyElementVisibilityState(imageHighlightPage.colorPopupMenuLabel(), 'visible');
|
186
|
-
utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), '
|
188
|
+
utilities.verifyInnerText(imageHighlightPage.colorPopupMenuLabel(), 'Stroke color');
|
187
189
|
utilities.verifyElementVisibilityState(imageHighlightPage.defaultStateColorLabel(), 'visible');
|
188
190
|
utilities.verifyInnerText(imageHighlightPage.defaultStateColorLabel(), 'Default');
|
189
191
|
utilities.verifyElementVisibilityState(imageHighlightPage.activeStateColorLabel(), 'visible');
|
@@ -245,7 +247,7 @@ describe('Create Item page - Image highlight: Customize image highlight style',
|
|
245
247
|
cy.checkAccessibility(imageHighlightPage.colorPopupWrapper());
|
246
248
|
});
|
247
249
|
|
248
|
-
imageHighlightPage.tests.verifyColorPopupContentCSSandAccessibility('
|
250
|
+
imageHighlightPage.tests.verifyColorPopupContentCSSandAccessibility('Stroke color');
|
249
251
|
|
250
252
|
it('When user updates the default color from the border color popup then the edited border color should be displayed on the default state of all highlight regions for \'Specify correct answer\ section', () => {
|
251
253
|
imageHighlightPage.steps.clickOnCancelButton();
|
@@ -51,11 +51,11 @@ describe('Create question page - Highlight image: Header section and Saving ques
|
|
51
51
|
});
|
52
52
|
|
53
53
|
describe('Validation error messages', () => {
|
54
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
54
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please specify a possible option', 'Please set points']);
|
55
55
|
|
56
56
|
it('Validation error messages should be displayed below required input fields', () => {
|
57
57
|
imageHighlightPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
58
|
-
imageHighlightPage.steps.verifyWarningIconOnRequiredFields(['Please
|
58
|
+
imageHighlightPage.steps.verifyWarningIconOnRequiredFields(['Please specify a possible option', 'Please set points']);
|
59
59
|
});
|
60
60
|
|
61
61
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -100,7 +100,7 @@ describe('Create Item page - List ordering: Randomize options functionality for
|
|
100
100
|
});
|
101
101
|
|
102
102
|
it('When the \'Enable outer border for question\' checkbox is in checked state, an outer border over the question preview should be visible', () => {
|
103
|
-
listOrderingPage.steps.
|
103
|
+
listOrderingPage.steps.verifyDropdownOuterBorderOfQuestionPreview();
|
104
104
|
});
|
105
105
|
|
106
106
|
it('CSS of the outer border', { tags: 'css' }, () => {
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js
CHANGED
@@ -43,11 +43,10 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
43
43
|
|
44
44
|
it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the warning popup should appear and on closing the warning popup, an error message should be displayed in the \'Specify correct answer\' section', () => {
|
45
45
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
46
|
-
dialogBoxBase.steps.closeWarningPopup();
|
47
46
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
48
47
|
utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
|
49
48
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
50
|
-
listOrderingPage.steps.
|
49
|
+
listOrderingPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
51
50
|
});
|
52
51
|
|
53
52
|
listOrderingPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -61,7 +60,6 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
61
60
|
it('When the user unchecks the \'Randomize options\' checkbox and clicks on \'+Add alternative answer\' the error message should be displayed and on re-ordering the options the error message should disappear', () => {
|
62
61
|
listOrderingPage.steps.uncheckRandomizeOptionsCheckbox();
|
63
62
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
64
|
-
dialogBoxBase.steps.closeWarningPopup();
|
65
63
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
66
64
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInSpecifyCorrectAnswerSection('seed', 0);
|
67
65
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInSpecifyCorrectAnswerSection('sprout', 1);
|
package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js
CHANGED
@@ -221,7 +221,7 @@ describe('Create Item page - List ordering: Preview tab scoring', () => {
|
|
221
221
|
//Penalty points for each incorrect option - Specify total penalty points
|
222
222
|
it('When the user sets penalty scoring to \'Penalty points for each incorrect option\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points of all the empty and incorrect option', () => {
|
223
223
|
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
224
|
-
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('
|
224
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for each incorrect option');
|
225
225
|
listOrderingPage.steps.allotTotalPenaltyPoints(4);
|
226
226
|
listOrderingPage.steps.switchToPreviewTab();
|
227
227
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
@@ -43,11 +43,11 @@ describe('Create item page - Matching : Header section and Saving question', ()
|
|
43
43
|
});
|
44
44
|
|
45
45
|
describe('Validation error messages', () => {
|
46
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
46
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all option values', 'Please set points']);
|
47
47
|
|
48
48
|
it('Validation error messages should be displayed below required input fields', () => {
|
49
49
|
listOrderingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
50
|
-
listOrderingPage.steps.verifyWarningIconOnRequiredFields(['Please
|
50
|
+
listOrderingPage.steps.verifyWarningIconOnRequiredFields(['Please enter all option values', 'Please set points']);
|
51
51
|
});
|
52
52
|
|
53
53
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js
CHANGED
@@ -66,7 +66,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
66
66
|
});
|
67
67
|
};
|
68
68
|
|
69
|
-
it('When the user selects \'Grading\' view without attempting the question, then incorrect icons
|
69
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
70
70
|
if (view === 'Grading view') {
|
71
71
|
utilities.verifyElementVisibilityState(studentViewPage.submitButton(), 'visible');
|
72
72
|
studentViewPage.steps.submitResponse();
|
@@ -79,11 +79,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
79
79
|
listOrderingPage.steps.switchToGradingView();
|
80
80
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
81
81
|
};
|
82
|
-
listOrderingPage.steps.
|
83
|
-
listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
|
84
|
-
listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
|
85
|
-
listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
|
86
|
-
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
82
|
+
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
87
83
|
utilities.verifyInnerText(listOrderingPage.correctAnswersLabel(), 'Correct answers');
|
88
84
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
89
85
|
listOrderingPage.steps.verifyCorrectOptionIconsCorrectAnswerSection();
|
@@ -41,7 +41,7 @@ describe('Create item page - List ordering: Minimum scoring, Penalty scoring, Ro
|
|
41
41
|
|
42
42
|
it('When the user selects \'Penalty points for each incorrect option\' from the penalty scoring dropdown, \'Automatically set penalty for each incorrect option to total points / no. of incorrect options\' label and checkbox should be displayed, by default the checkbox should be unchecked. Two radio buttons with labels - \'Specify total penalty points\' and \'Specify points for each incorrect option\' should be displayed. By default, \'Specify total penalty points\' radio button should be checked', () => {
|
43
43
|
listOrderingPage.steps.expandPenaltyScoringDropdown();
|
44
|
-
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('
|
44
|
+
listOrderingPage.steps.selectOptionFromPenaltyScoringDropdown('enalty points for each incorrect option');
|
45
45
|
utilities.verifyInnerText(listOrderingPage.automaticallySetPenaltyPointsCheckboxLabel(), 'Automatically set penalty for each incorrect option to total points / no. of incorrect options');
|
46
46
|
utilities.verifyInnerText(listOrderingPage.specifyTotalPenaltyPointsRadioButtonLabel(), 'Specify total penalty points');
|
47
47
|
utilities.verifyInnerText(listOrderingPage.specifyPointsForEachIncorrectOptionRadioButtonLabel(), 'Specify points for each incorrect option');
|
@@ -41,7 +41,6 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
41
41
|
|
42
42
|
it('When user tries to \'+Add alternative answer\' after allotting points without re-ordering the options then the warning popup should appear and on closing the warning popup, an error message should be displayed in the \'Specify correct answer\' section', () => {
|
43
43
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
44
|
-
dialogBoxBase.steps.closeWarningPopup();
|
45
44
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
46
45
|
utilities.verifyInnerText(listOrderingPage.errorMessage(), 'Error: The correct answer sequence matches the option sequence. Please either rearrange the options or select \'Randomize options\' to continue.');
|
47
46
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
@@ -59,7 +58,6 @@ describe('Create item page - List ordering: Specify correct answer, Alternative
|
|
59
58
|
it('When the user unchecks the \'Randomize options\' checkbox and clicks on \'+Add alternative answer\' the error message should be displayed and on re-ordering the options the error message should disappear', () => {
|
60
59
|
listOrderingPage.steps.uncheckRandomizeOptionsCheckbox();
|
61
60
|
listOrderingPage.steps.clickOnAddAlternativeAnswerButton();
|
62
|
-
dialogBoxBase.steps.closeWarningPopup();
|
63
61
|
utilities.verifyElementVisibilityState(listOrderingPage.errorMessage(), 'visible');
|
64
62
|
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
|
65
63
|
listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('sprout', 1);
|
@@ -110,7 +110,8 @@ describe('Create Item page - List ordering : Student view settings', () => {
|
|
110
110
|
listOrderingPage.steps.switchToPreviewTab();
|
111
111
|
});
|
112
112
|
|
113
|
-
|
113
|
+
//need to remove skip after https://redmine.zeuslearning.com/issues/571731 is resolved
|
114
|
+
it.skip('When the \'Enable outer border for question\' checkbox is in checked state, an outer border over the question preview should be visible', () => {
|
114
115
|
listOrderingPage.steps.verifyOuterBorderOfQuestionPreview();
|
115
116
|
});
|
116
117
|
|
@@ -137,10 +137,8 @@ describe('Create Item page - Matching: Draggable options section', () => {
|
|
137
137
|
matchingPage.steps.verifyDeleteOptionButtonDisabledState();
|
138
138
|
});
|
139
139
|
|
140
|
-
it('When the user
|
141
|
-
matchingPage.
|
142
|
-
matchingPage.steps.verifyOptionsInputFieldErrorMessage(3);
|
143
|
-
matchingPage.steps.verifyOptionsInputFieldErrorMessage(4);
|
140
|
+
it('When the user not entering text in the option input fields, then the \'Add group\' button should be disable', () => {
|
141
|
+
utilities.verifyElementDisabled(matchingPage.addGroupButton());
|
144
142
|
});
|
145
143
|
|
146
144
|
it('When the user enters text in the options input field, the error messages should disappear', () => {
|
@@ -44,11 +44,11 @@ describe('Create item page - Matching : Header section and Saving question', ()
|
|
44
44
|
});
|
45
45
|
|
46
46
|
describe('Validation error messages', () => {
|
47
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please
|
47
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all prompt values', 'Please enter all option values', 'Please set points']);
|
48
48
|
|
49
49
|
it('Validation error messages should be displayed below required input fields', () => {
|
50
50
|
matchingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
51
|
-
matchingPage.steps.verifyWarningIconOnRequiredFields(['Please
|
51
|
+
matchingPage.steps.verifyWarningIconOnRequiredFields(['Please enter all prompt values', 'Please enter all option values', 'Please set points']);
|
52
52
|
});
|
53
53
|
|
54
54
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -95,7 +95,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
95
95
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
96
96
|
matchingPage.steps.switchToGradingView();
|
97
97
|
matchingPage.steps.verifyCorrectIncorrectIconNotExistDropdown(0);
|
98
|
-
matchingPage.steps.
|
98
|
+
matchingPage.steps.verifyCorrectOptionIconDropdown(1);
|
99
99
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
100
100
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
101
101
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
@@ -91,7 +91,7 @@ describe('Create item page - Matching: All or nothing with alternative answers',
|
|
91
91
|
|
92
92
|
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the response from the correct accordion and alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropdown cell numeration should be displayed', () => {
|
93
93
|
matchingPage.steps.resetQuestionPreview();
|
94
|
-
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }, { dropdownIndex:
|
94
|
+
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
|
95
95
|
matchingPage.steps.verifyPreviewScore(0, 20);
|
96
96
|
matchingPage.steps.switchToGradingView();
|
97
97
|
matchingPage.steps.verifyCorrectOptionIconDropdown(0);
|
@@ -241,7 +241,7 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
241
241
|
});
|
242
242
|
});
|
243
243
|
|
244
|
-
describe
|
244
|
+
describe('Question preview: Auto scored - Partial different weights: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
|
245
245
|
abortEarlySetup();
|
246
246
|
before(() => {
|
247
247
|
matchingPage.steps.navigateToCreateQuestion('matching');
|
@@ -296,7 +296,7 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
296
296
|
//Penalty points for each incorrect dropzone - Specify total penalty points
|
297
297
|
it('When the user sets penalty scoring to \'Penalty points for each incorrect dropdown\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points of all the empty and incorrect dropdown', () => {
|
298
298
|
matchingPage.steps.expandPenaltyScoringDropdown();
|
299
|
-
matchingPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect
|
299
|
+
matchingPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect dropdown');
|
300
300
|
matchingPage.steps.allotTotalPenaltyPoints(4);
|
301
301
|
matchingPage.steps.switchToPreviewTab();
|
302
302
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[4] }]);
|
@@ -115,14 +115,14 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
115
115
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
116
116
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
117
117
|
});
|
118
|
-
|
118
|
+
|
119
119
|
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with with points of the correctly attempted responses and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside responses from the alternative tab as points achieved from the correct accordion is more, status message should not be displayed and correct answer section with all correct answers from the alternate accordion along with dropdown numeration should be displayed', () => {
|
120
120
|
matchingPage.steps.resetQuestionPreview();
|
121
121
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[3] }, { dropdownIndex: 1, dropdownOption: optionsArray[2] }, { dropdownIndex: 2, dropdownOption: optionsArray[0] }]);
|
122
122
|
matchingPage.steps.verifyPreviewScore(12, 15);
|
123
123
|
matchingPage.steps.switchToGradingView();
|
124
|
-
matchingPage.steps.
|
125
|
-
matchingPage.steps.
|
124
|
+
matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
|
125
|
+
matchingPage.steps.verifyCorrectOptionIconDropdown(1);
|
126
126
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
127
127
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
128
128
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Cat']]);
|
@@ -170,7 +170,7 @@ describe('Create item page - Matching: Partial different weights', () => {
|
|
170
170
|
matchingPage.steps.switchToGradingView();
|
171
171
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(0);
|
172
172
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(1);
|
173
|
-
matchingPage.steps.
|
173
|
+
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
174
174
|
matchingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
175
175
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bear'], ['Penguin'], ['Eagle']]);
|
176
176
|
matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|