itemengine-cypress-automation 1.0.222 → 1.0.223
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +12 -5
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +370 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +285 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +629 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +4 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +5 -4
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +11 -10
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +8 -5
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +12 -12
- package/cypress/e2e/ILC/ChartsLine/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +0 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +6 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +4 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +17 -11
- package/cypress/e2e/ILC/FeedbackScaleNew/additionalSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +3 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +53 -44
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +4 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +9 -9
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +8 -56
- package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +12 -12
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +48 -48
- package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +22 -25
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +23 -3
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +96 -7
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +12 -2
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +4 -6
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +3 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +12 -3
- package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +9 -9
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +2 -0
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +20 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +214 -0
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +1 -6
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/audioOverviewAndTranscript.js +3 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/customizePlayerLayoutSettings.js +2 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/standardAudioPlayerStyle.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +5 -5
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +9 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +62 -60
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +29 -27
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +45 -45
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +28 -28
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +48 -34
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +41 -38
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +26 -26
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +41 -38
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +7 -5
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/audioResponsePage.js +1 -0
- package/cypress/pages/chartsBarPage.js +177 -76
- package/cypress/pages/chartsDotPlotPage.js +28 -43
- package/cypress/pages/components/additionalSettingsPanel.js +5 -2
- package/cypress/pages/components/barAndLineChartComponent.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +28 -0
- package/cypress/pages/components/colorPopupComponent.js +2 -0
- package/cypress/pages/components/createQuestionBasePage.js +1 -0
- package/cypress/pages/components/draggableOptionsSectionComponent.js +1 -0
- package/cypress/pages/components/editCategoryFlyout.js +6 -4
- package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -4
- package/cypress/pages/components/imageCanvasComponent.js +7 -5
- package/cypress/pages/components/layoutSectionComponent.js +4 -3
- package/cypress/pages/components/numberLineCommonComponent.js +38 -21
- package/cypress/pages/components/opacityComponent.js +1 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -0
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +8 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +5 -2
- package/cypress/pages/components/toolSettingsComponent.js +1 -0
- package/cypress/pages/contentBlocksPage.js +1 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +9 -2
- package/cypress/pages/fillInTheGapsDropdownPage.js +16 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +16 -1
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +20 -1
- package/cypress/pages/graphingPage.js +43 -10
- package/cypress/pages/gridFillPage.js +11 -3
- package/cypress/pages/matchingPage.js +2 -0
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +25 -24
- package/cypress/pages/readingRulerPage.js +6 -2
- package/cypress/pages/rulerPage.js +1 -0
- package/cypress/pages/shortTextResponsePage.js +3 -1
- package/cypress/pages/singleSelectionPage.js +25 -2
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/pages/videoResponsePage.js +7 -2
- package/package.json +1 -1
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/allSupportedFileTypes.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/barAudioPlayerStyle.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/compactAudioPlayerStyle.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/headerSection.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/previewContents.smoke.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/studentViewSettings.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/uploadAndAddAudioFile.js +0 -0
- /package/cypress/fixtures/uploads/{sample10Sec.mp3 → sampleAudio.mp3} +0 -0
@@ -25,7 +25,6 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
25
25
|
drawingResponsePage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
26
26
|
});
|
27
27
|
|
28
|
-
//Failing due to https://redmine.zeuslearning.com/issues/567593
|
29
28
|
describe('Question instructions input field - Preview tab', () => {
|
30
29
|
abortEarlySetup();
|
31
30
|
before(() => {
|
@@ -58,8 +57,8 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
58
57
|
utilities.verifyElementVisibilityState(drawingResponsePage.toolBarOptionsLabel(), 'visible');
|
59
58
|
});
|
60
59
|
|
61
|
-
//
|
62
|
-
it(`A total of ${toolbarOptions.length} toolbar options should be displayed in the \'Toolbar options\' section. By default, first 8 toolbar options should be selected in the \'Toolbar options\' section`, () => {
|
60
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/560558 is resolved
|
61
|
+
it.skip(`A total of ${toolbarOptions.length} toolbar options should be displayed in the \'Toolbar options\' section. By default, first 8 toolbar options should be selected in the \'Toolbar options\' section`, () => {
|
63
62
|
toolbarOptions.forEach((toolbarOption) => {
|
64
63
|
utilities.verifyElementVisibilityState(drawingResponsePage.toolbarOptionsAndControlsFormattingOptionsTiles(toolbarOption.displayName), 'visible');
|
65
64
|
});
|
@@ -93,16 +92,18 @@ describe('Create item page - Drawing response: Question instructions, Customize
|
|
93
92
|
drawingResponsePage.steps.selectEditTabToolbarOptions(controlsOptions);
|
94
93
|
});
|
95
94
|
|
96
|
-
|
95
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/560558 is resolved
|
96
|
+
it.skip('When user deselects all toolbar options, then an error message should be displayed - \'Error: Please select a Toolbar option.\'', () => {
|
97
97
|
defaultSelectedToolbarOptions.forEach((toolbarOption) => {
|
98
98
|
drawingResponsePage.steps.deselectToolbarOptionsAndControlsFormattingOptionsTiles(toolbarOption.displayName);
|
99
99
|
});
|
100
100
|
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please select a Toolbar option.');
|
101
101
|
});
|
102
102
|
|
103
|
-
commonComponents.tests.verifyErrorMessageCSSAndA11y();
|
103
|
+
// commonComponents.tests.verifyErrorMessageCSSAndA11y();
|
104
104
|
|
105
|
-
|
105
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/560558 is resolved
|
106
|
+
it.skip('When user selects a toolbar option, the error message should disappear', () => {
|
106
107
|
drawingResponsePage.steps.selectEditTabToolbarOptions([`${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[0].displayName}`]);
|
107
108
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
108
109
|
});
|
@@ -278,7 +278,7 @@ describe('Create question page - Essay Response: Edit category', () => {
|
|
278
278
|
essayResponsePage.steps.switchToEditTab()
|
279
279
|
editCategoryFlyout.steps.openEditCategoryFlyout();
|
280
280
|
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryCharacters('QuestionMark not-selected'), 'exist');
|
281
|
-
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory([
|
281
|
+
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedStateForEditedCategory(['dollar', equationEditorCategoriesAndSymbols['general'].symbols.cents.ariaLabel, 'colon']);
|
282
282
|
});
|
283
283
|
});
|
284
284
|
});
|
@@ -251,6 +251,10 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
251
251
|
essayResponsePage.tests.verifyUndoAndRedoFunctionalityForPreviewTabToolbarOption('Increase Indent');
|
252
252
|
|
253
253
|
it('When the user selects the \'Decrease indent\' toolbar option, then the indentation of text in the response field should decrease', () => {
|
254
|
+
essayResponsePage.steps.resetPreviewTabResponseField();
|
255
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum');
|
256
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Increase Indent');
|
257
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p style=\"margin-left: 40px;\">Lorem Ipsum</p>');
|
254
258
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Decrease Indent');
|
255
259
|
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum</p>');
|
256
260
|
});
|
@@ -102,9 +102,12 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
102
102
|
essayResponsePage.tests.verifyUndoAndRedoFunctionalityForPreviewTabToolbarOption('Code Inline');
|
103
103
|
|
104
104
|
it('If user selects the entered text and deselects the \'Code inline\' toolbar option, then the selected text should be displayed in default format', () => {
|
105
|
+
essayResponsePage.steps.resetPreviewTabResponseField();
|
106
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Code Inline');
|
107
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem')
|
105
108
|
essayResponsePage.steps.enterInputInResponseField('{selectAll}');
|
106
109
|
essayResponsePage.steps.deselectPreviewTabToolbarOption('Code Inline');
|
107
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem
|
110
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem<br></p>')
|
108
111
|
});
|
109
112
|
|
110
113
|
it('When the user is typing while \'Code inline\' toolbar option is selected, then the text should appear as a highlighted inline code and when the user deselects the \'Code inline\' toolbar option and continues to type, then the text should appear as plain text', () => {
|
@@ -164,6 +167,8 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
164
167
|
|
165
168
|
//Comment: Here we are unable to verify the number of the code line that appears since it is displayed using ::before
|
166
169
|
it('When the user presses the \'Enter\' key and switches to a new line, then a new code line with \'2\'number should appear in the response field, the \'Code editor\' toolbar option should be in selected state and the inline code block formatting should persist', () => {
|
170
|
+
essayResponsePage.steps.resetPreviewTabResponseField();
|
171
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Code Editor')
|
167
172
|
essayResponsePage.steps.enterInputInResponseField('console.log(){enter}')
|
168
173
|
essayResponsePage.steps.verifyResponseFieldCodeblockHTML('<pre class=\"line\">console.log()</pre><pre class=\"line\"><br></pre>');
|
169
174
|
essayResponsePage.steps.verifyPreviewTabToolbarOptionDisabled('Bold (Ctrl+B)');
|
@@ -201,25 +206,27 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
201
206
|
essayResponsePage.tests.verifyUndoAndRedoFunctionalityForPreviewTabToolbarOption('Remove Format');
|
202
207
|
|
203
208
|
it('When the user has selected text in the response field and applies text formatting options - Superscript, Subscript and clicks on the \'Remove format\' toolbar option, then all the text formatting should get removed and the text should be displayed in default format', () => {
|
204
|
-
essayResponsePage.steps.
|
209
|
+
essayResponsePage.steps.resetPreviewTabResponseField();
|
205
210
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Subscript');
|
206
|
-
essayResponsePage.steps.
|
207
|
-
essayResponsePage.steps.
|
208
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum</p>');
|
211
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Superscript');
|
212
|
+
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum{selectAll}');
|
213
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p><sub><sup>Lorem Ipsum</sup></sub><br></p>');
|
214
|
+
essayResponsePage.steps.selectPreviewTabToolbarOption('Remove Format');
|
215
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum<br></p>');
|
209
216
|
});
|
210
217
|
|
211
218
|
it('When the user has selected text in the response field and applies text formatting option - Align right/Center/Justify and clicks on the \'Remove format\' toolbar option, then all the text formatting should get removed and the text should be displayed in default format', () => {
|
212
219
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Align Right');
|
213
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p style=\"text-align: right;\">Lorem Ipsum
|
220
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p style=\"text-align: right;\">Lorem Ipsum<br></p>');
|
214
221
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Remove Format')
|
215
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum
|
222
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum<br></p>');
|
216
223
|
});
|
217
224
|
|
218
225
|
it('When the user has selected text in the response field and applies text formatting option - Code inline and clicks on the \'Remove format\' toolbar option, then all the text formatting should get removed and the text should be displayed in default format', () => {
|
219
226
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Code Inline');
|
220
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p><code>Lorem Ipsum</code></p>');
|
227
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p><code>Lorem Ipsum</code><br></p>');
|
221
228
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Remove Format')
|
222
|
-
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum
|
229
|
+
essayResponsePage.steps.verifyResponseFieldHTML('<p>Lorem Ipsum<br></p>');
|
223
230
|
});
|
224
231
|
});
|
225
232
|
|
@@ -261,8 +268,7 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
261
268
|
});
|
262
269
|
|
263
270
|
it('The undo toolbar option should get disabled after a certain number of undo actions (18 times)', () => {
|
264
|
-
essayResponsePage.steps.
|
265
|
-
essayResponsePage.steps.focusInResponseField();
|
271
|
+
essayResponsePage.steps.resetPreviewTabResponseField();
|
266
272
|
essayResponsePage.steps.enterInputInResponseField('Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Donec tristique ipsum sit amet velit laoreet, eget dapibus mi placerat.');
|
267
273
|
for (var i = 0; i < 19; i++) {
|
268
274
|
essayResponsePage.steps.selectPreviewTabToolbarOption('Undo (Ctrl+Z)');
|
@@ -31,7 +31,7 @@ describe('Create item page: Feedback scale: Additional settings', () => {
|
|
31
31
|
});
|
32
32
|
|
33
33
|
describe('Additional settings: Font size contents preview tab section', () => {
|
34
|
-
const moreInfoFontSizes = { '
|
34
|
+
const moreInfoFontSizes = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
35
35
|
abortEarlySetup();
|
36
36
|
before(() => {
|
37
37
|
feedbackScalePage.steps.navigateToCreateQuestion('feedback scale');
|
@@ -42,31 +42,31 @@ describe('Create item page: Feedback scale: Additional settings', () => {
|
|
42
42
|
feedbackScalePage.steps.checkAllowStudentsToAddCommentCheckbox();
|
43
43
|
});
|
44
44
|
|
45
|
-
Object.keys(
|
46
|
-
it(`When the user selects
|
47
|
-
feedbackScalePage.steps.selectFontSizeOptionFromFontSizeDropdown(option)
|
45
|
+
Object.keys(moreInfoFontSizes).forEach((option) => {
|
46
|
+
it(`When the user selects '${option}' option from the Font size dropdown, then font size of the preview contents should be changed to ${moreInfoFontSizes[option]} in the preview tab`, () => {
|
47
|
+
feedbackScalePage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
|
48
48
|
utilities.verifyInnerText(feedbackScalePage.fontSizeDropdown(), `${option}`);
|
49
49
|
feedbackScalePage.steps.switchToPreviewTab();
|
50
50
|
utilities.verifyCSS(feedbackScalePage.questionInstructionsText(), {
|
51
|
-
'font-size':
|
51
|
+
'font-size': moreInfoFontSizes[option]
|
52
52
|
});
|
53
53
|
utilities.verifyCSS(feedbackScalePage.feedbackButton(), {
|
54
|
-
'font-size':
|
54
|
+
'font-size': moreInfoFontSizes[option]
|
55
55
|
});
|
56
56
|
utilities.verifyCSS(feedbackScalePage.legendAccordion().find('.customize_info_label'), {
|
57
|
-
'font-size':
|
57
|
+
'font-size': moreInfoFontSizes['Small']
|
58
58
|
});
|
59
59
|
utilities.verifyCSS(feedbackScalePage.legendTextFeedbackButtonLabel(), {
|
60
|
-
'font-size':
|
60
|
+
'font-size': moreInfoFontSizes['Tiny']
|
61
61
|
});
|
62
62
|
utilities.verifyCSS(feedbackScalePage.legendTextPreviewTab(), {
|
63
|
-
'font-size':
|
63
|
+
'font-size': moreInfoFontSizes['Tiny']
|
64
64
|
});
|
65
65
|
utilities.verifyCSS(feedbackScalePage.commentLabel(), {
|
66
|
-
'font-size':
|
66
|
+
'font-size': moreInfoFontSizes['Default']
|
67
67
|
});
|
68
68
|
utilities.verifyCSS(feedbackScalePage.commentInputField(), {
|
69
|
-
'font-size':
|
69
|
+
'font-size': moreInfoFontSizes['Default']
|
70
70
|
});
|
71
71
|
feedbackScalePage.steps.switchToEditTab();
|
72
72
|
});
|
@@ -24,7 +24,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
24
24
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, correctAnswerArray[2]);
|
25
25
|
fillInTheGapsDropdownPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
26
26
|
fillInTheGapsDropdownPage.steps.allotPartialDifferentWeightsPoints({ 0: 1, 1: 6, 2: 5 });
|
27
|
-
|
27
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
28
28
|
});
|
29
29
|
|
30
30
|
it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
|
@@ -177,7 +177,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
177
177
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
178
178
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, correctAnswerArray[2]);
|
179
179
|
fillInTheGapsDropdownPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 5 });
|
180
|
-
|
180
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
181
181
|
});
|
182
182
|
|
183
183
|
//Penalty points for the entire question
|
@@ -224,19 +224,19 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
224
224
|
fillInTheGapsDropdownPage.steps.allotTotalPenaltyPoints(4);
|
225
225
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
226
226
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Branch' }]);
|
227
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-
|
227
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-4, 20);
|
228
228
|
});
|
229
229
|
|
230
230
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
231
231
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
232
232
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
|
233
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(13.
|
233
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(13.6667, 20);
|
234
234
|
});
|
235
235
|
|
236
236
|
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', () => {
|
237
237
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
238
238
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Seed' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
|
239
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(6.
|
239
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(6.3333, 20);
|
240
240
|
});
|
241
241
|
|
242
242
|
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', () => {
|
@@ -293,19 +293,19 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
|
|
293
293
|
fillInTheGapsDropdownPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
294
294
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
295
295
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Stem' }]);
|
296
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-20
|
296
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-20, 20);
|
297
297
|
});
|
298
298
|
|
299
299
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
300
300
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
301
301
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
|
302
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(8.
|
302
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(8.3333, 20);
|
303
303
|
});
|
304
304
|
|
305
305
|
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', () => {
|
306
306
|
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
307
307
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Seed' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
|
308
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-4.
|
308
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(-4.3333, 20);
|
309
309
|
});
|
310
310
|
|
311
311
|
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', () => {
|
@@ -34,7 +34,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal weigh
|
|
34
34
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
35
35
|
fillInTheGapsDropdownPage.steps.allotPoints(15);
|
36
36
|
fillInTheGapsDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
37
|
-
|
37
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
38
38
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
39
39
|
});
|
40
40
|
|
@@ -193,7 +193,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal weigh
|
|
193
193
|
fillInTheGapsDropdownPage.steps.allotPoints(5);
|
194
194
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
195
195
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }, { dropdownIndex: 2, dropdownOption: alternateAnswerArray[2] }]);
|
196
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(7.
|
196
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(7.6667, 23);
|
197
197
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
198
198
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
199
199
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -34,7 +34,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal weigh
|
|
34
34
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
35
35
|
fillInTheGapsDropdownPage.steps.allotPoints(9);
|
36
36
|
fillInTheGapsDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
37
|
-
|
37
|
+
//fillInTheGapsDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
38
38
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
39
39
|
});
|
40
40
|
|
@@ -194,7 +194,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial equal weigh
|
|
194
194
|
fillInTheGapsDropdownPage.steps.allotPoints(23);
|
195
195
|
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
196
196
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: alternateAnswerArray[1] }, { dropdownIndex: 2, dropdownOption: correctAnswerArray[2] }]);
|
197
|
-
fillInTheGapsDropdownPage.steps.verifyPreviewScore(7.
|
197
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewScore(7.6667, 23);
|
198
198
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
199
199
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
200
200
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -51,8 +51,8 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
|
|
51
51
|
|
52
52
|
it('When \'Display multiline text in dropdown\' checkbox is unchecked and user selects and long text option in dropdown, then the selected long text option should be incompletely displayed in the dropdown with an ellipses at the end and a tooltip which displays the entire option', () => {
|
53
53
|
fillInTheGapsDropdownPage.steps.verifyMultilineTextNotDisplayedInDropdownSpecifyCorrectAnswerSection(0);
|
54
|
-
utilities.getNthElement(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0)
|
55
|
-
|
54
|
+
fillInTheGapsDropdownPage.steps.verifyTooltipInnerText(utilities.getNthElement(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0), `${optionsForDropdown[3]}`);
|
55
|
+
|
56
56
|
});
|
57
57
|
|
58
58
|
it('User should be able to check the \'Display multiline text in dropdown\' checkbox', () => {
|
@@ -122,8 +122,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
|
|
122
122
|
|
123
123
|
it('When \'Display multiline text in dropdown\' checkbox is unchecked and user selects and long text option in dropdown, then the selected long text option should be incompletely displayed in the dropdown with an ellipses at the end and a tooltip which displays the entire option', () => {
|
124
124
|
fillInTheGapsDropdownPage.steps.verifyMultilineTextNotDisplayedInDropdownPreviewTab(0);
|
125
|
-
utilities.getNthElement(fillInTheGapsDropdownPage.dropdownPreviewTab(), 0)
|
126
|
-
.verifyTooltip(`${optionsForDropdown[3]}`);
|
125
|
+
fillInTheGapsDropdownPage.steps.verifyTooltipInnerText(utilities.getNthElement(fillInTheGapsDropdownPage.dropdownPreviewTab(), 0), `${optionsForDropdown[3]}`);
|
127
126
|
});
|
128
127
|
|
129
128
|
it('When \'Display multiline text in dropdown\' checkbox is checked, then the added long text option should be word wrapped and displayed in a multi-line format', () => {
|
@@ -18,6 +18,8 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown settings',
|
|
18
18
|
|
19
19
|
it('When the user clicks on a Dropdown settings button, then Dropdown settings popup should be displayed with the title \'Dropdown settings\'', () => {
|
20
20
|
fillInTheGapsDropdownPage.steps.clickOnResponseAreaSettingsButton(0);
|
21
|
+
cy.log('The dialog box takes some time to open');
|
22
|
+
cy.wait(1000);
|
21
23
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
22
24
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBoxTitle(), 'visible');
|
23
25
|
utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Dropdown settings');
|
@@ -130,7 +132,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown settings',
|
|
130
132
|
fillInTheGapsDropdownPage.steps.verifyResponseAreaWidth(0, '180px');
|
131
133
|
fillInTheGapsDropdownPage.steps.verifyResponseAreaWidth(1, '180px');
|
132
134
|
});
|
133
|
-
|
135
|
+
|
134
136
|
it('When \'Set for all dropdowns\' checkbox is checked, user updates the width input field value and clicks on OK, then width of all dropdowns in the specify correct answer section should be updated', () => {
|
135
137
|
fillInTheGapsDropdownPage.steps.verifyDropdownWidthSpecifyCorrectAnswerSection(0, '180px');
|
136
138
|
fillInTheGapsDropdownPage.steps.verifyDropdownWidthSpecifyCorrectAnswerSection(1, '180px');
|
package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js
CHANGED
@@ -63,7 +63,7 @@ describe('Create item page - Fill in the gaps with dropdown: Minimum scoring, Pe
|
|
63
63
|
|
64
64
|
it('When the user adds a new option, then \'points for each incorrect dropdown\' should get updated accordingly', () => {
|
65
65
|
fillInTheGapsDropdownPage.steps.addResponseArea();
|
66
|
-
fillInTheGapsDropdownPage.steps.verifyPenaltyPointsForEachIncorrectDropdown(1.
|
66
|
+
fillInTheGapsDropdownPage.steps.verifyPenaltyPointsForEachIncorrectDropdown(1.6667);
|
67
67
|
});
|
68
68
|
|
69
69
|
it('When the user deletes an option, then \'points for each incorrect dropdown\' should get updated accordingly', () => {
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js
CHANGED
@@ -336,19 +336,19 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Partia
|
|
336
336
|
fillInTheGapsOverImageDragAndDropPage.steps.allotTotalPenaltyPoints(4);
|
337
337
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
338
338
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
339
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-
|
339
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-4, 20);
|
340
340
|
});
|
341
341
|
|
342
342
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
343
343
|
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
344
344
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Flower': 1, 'Roots': 1, 'Leaves': 2 });
|
345
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(12.
|
345
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(12.6667, 20);
|
346
346
|
});
|
347
347
|
|
348
348
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect dropzone should get deducted from the awarded points', () => {
|
349
349
|
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
350
350
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Stem': 1, 'Roots': 1, 'Leaves': 2 });
|
351
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(12.
|
351
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(12.6667, 20);
|
352
352
|
});
|
353
353
|
|
354
354
|
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', () => {
|
@@ -405,7 +405,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Partia
|
|
405
405
|
fillInTheGapsOverImageDragAndDropPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
406
406
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
407
407
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0 });
|
408
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-20
|
408
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(-20, 20);
|
409
409
|
});
|
410
410
|
|
411
411
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
@@ -208,7 +208,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Par
|
|
208
208
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
|
209
209
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
210
210
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Flower': 1, 'Seed': 2 });
|
211
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(7.
|
211
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(7.6667, 23);
|
212
212
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
213
213
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
214
214
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -202,7 +202,8 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
202
202
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
203
203
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
204
204
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
205
|
-
|
205
|
+
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
206
|
+
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
206
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
207
208
|
});
|
208
209
|
});
|
@@ -67,7 +67,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Min
|
|
67
67
|
|
68
68
|
it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
69
69
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
70
|
-
fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
|
71
71
|
});
|
72
72
|
|
73
73
|
it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
@@ -197,7 +197,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
197
197
|
fillInTheGapsOverImageDropdownPage.steps.allotPoints(5);
|
198
198
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
199
199
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }, { dropdownIndex: 2, dropdownOption: alternateAnswerArray[2] }]);
|
200
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(7.
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(7.6667, 23);
|
201
201
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
202
202
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
203
203
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -38,7 +38,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
38
38
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(2, alternateAnswerArray[2]);
|
39
39
|
fillInTheGapsOverImageDropdownPage.steps.allotPoints(9);
|
40
40
|
fillInTheGapsOverImageDropdownPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
41
|
-
|
41
|
+
//fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
42
42
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
43
43
|
});
|
44
44
|
|
@@ -198,7 +198,7 @@ describe('Create item page - Fill in the gaps over image with dropdown: Partial
|
|
198
198
|
fillInTheGapsOverImageDropdownPage.steps.allotPoints(23);
|
199
199
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
200
200
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: alternateAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: alternateAnswerArray[1] }, { dropdownIndex: 2, dropdownOption: correctAnswerArray[2] }]);
|
201
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(7.
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore(7.6667, 23);
|
202
202
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
203
203
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
204
204
|
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -127,8 +127,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown an
|
|
127
127
|
|
128
128
|
it('When \'Display multiline text in dropdown\' checkbox is unchecked and user selects and long text option in dropdown, then the selected long text option should be incompletely displayed in the dropdown with an ellipses at the end and a tooltip which displays the entire option', () => {
|
129
129
|
fillInTheGapsOverImageDropdownPage.steps.verifyMultilineTextNotDisplayedInDropdownSpecifyCorrectAnswerSection(0);
|
130
|
-
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0)
|
131
|
-
.verifyTooltip(`${optionsForDropdown[3]}`);
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTooltipInnerText(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownSpecifyCorrectAnswerSection(), 0), `${optionsForDropdown[3]}`);
|
132
131
|
});
|
133
132
|
|
134
133
|
it('User should be able to check the \'Display multiline text in dropdown\' checkbox', () => {
|
@@ -204,8 +203,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown an
|
|
204
203
|
|
205
204
|
it('When \'Display multiline text in dropdown\' checkbox is unchecked and user selects and long text option in dropdown, then the selected long text option should be incompletely displayed in the dropdown with an ellipses at the end and a tooltip which displays the entire option', () => {
|
206
205
|
fillInTheGapsOverImageDropdownPage.steps.verifyMultilineTextNotDisplayedInDropdownPreviewTab(0);
|
207
|
-
utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 0)
|
208
|
-
.verifyTooltip(`${optionsForDropdown[3]}`);
|
206
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTooltipInnerText(utilities.getNthElement(fillInTheGapsOverImageDropdownPage.dropdownPreviewTab(), 0), `${optionsForDropdown[3]}`);
|
209
207
|
});
|
210
208
|
|
211
209
|
it('When \'Display multiline text in dropdown\' checkbox is checked, then the added long text option should be word wrapped and displayed in a multi-line format', () => {
|
@@ -67,7 +67,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Minimum sco
|
|
67
67
|
|
68
68
|
it('When the user adds a new option, then \'points for each incorrect dropdown\' should get updated accordingly', () => {
|
69
69
|
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea();
|
70
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPenaltyPointsForEachIncorrectDropdown(1.
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPenaltyPointsForEachIncorrectDropdown(1.6667);
|
71
71
|
});
|
72
72
|
|
73
73
|
it('When the user deletes an option, then \'points for each incorrect dropdown\' should get updated accordingly', () => {
|
@@ -59,6 +59,7 @@ describe('Create item page - Fill in the gaps over image - text: Header section
|
|
59
59
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
60
60
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
61
61
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(10);
|
62
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }]);
|
62
63
|
fillInTheGapsOverImageTextPage.steps.enterAndVerifyImageAlternativeTextInInputField('Image alternative text');
|
63
64
|
fillInTheGapsOverImageTextPage.steps.verifyErrorMessageIsNotDisplayed();
|
64
65
|
fillInTheGapsOverImageTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
@@ -172,7 +172,7 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
|
|
172
172
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 20);
|
173
173
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
174
174
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
175
|
-
fillInTheGapsOverImageTextPage.steps.
|
175
|
+
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
176
176
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
177
177
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
178
178
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
@@ -215,19 +215,19 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
215
215
|
fillInTheGapsOverImageTextPage.steps.allotTotalPenaltyPoints(4);
|
216
216
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
217
217
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Roots' }]);
|
218
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-
|
218
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-4, 20);
|
219
219
|
});
|
220
220
|
|
221
221
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
222
222
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
223
223
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
224
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(13.
|
224
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(13.6667, 20);
|
225
225
|
});
|
226
226
|
|
227
227
|
it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect text container should get deducted from the awarded points', () => {
|
228
228
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
229
229
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Seed' }, { responseIndex: 2, responseText: 'Branch' }]);
|
230
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(6.
|
230
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(6.3333, 20);
|
231
231
|
});
|
232
232
|
|
233
233
|
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', () => {
|
@@ -286,19 +286,19 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
286
286
|
fillInTheGapsOverImageTextPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
287
287
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
288
288
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Roots' }]);
|
289
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-20
|
289
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-20, 20);
|
290
290
|
});
|
291
291
|
|
292
292
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
293
293
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
294
294
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
295
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(8.
|
295
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(8.3333, 20);
|
296
296
|
});
|
297
297
|
|
298
298
|
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', () => {
|
299
299
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
300
300
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Branch' }, { responseIndex: 2, responseText: 'Roots' }]);
|
301
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-4.
|
301
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(-4.3333, 20);
|
302
302
|
});
|
303
303
|
|
304
304
|
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', () => {
|
@@ -181,7 +181,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
181
181
|
fillInTheGapsOverImageTextPage.steps.allotPoints(5);
|
182
182
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
183
183
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Branch' }]);
|
184
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(7.
|
184
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(7.6667, 23);
|
185
185
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
186
186
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
187
187
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
|
@@ -181,7 +181,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
|
|
181
181
|
fillInTheGapsOverImageTextPage.steps.allotPoints(23);
|
182
182
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
183
183
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Branch' }]);
|
184
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(7.
|
184
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(7.6667, 23);
|
185
185
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
186
186
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
187
187
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
|
@@ -48,6 +48,7 @@ describe('Fill In the gaps over image with text - Additional settings', () => {
|
|
48
48
|
fillInTheGapsOverImageTextPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
|
49
49
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.fontSizeDropdown(), `${option}`);
|
50
50
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
51
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }]);
|
51
52
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.questionInstructionsText(), {
|
52
53
|
'font-size': fontSizes[option]
|
53
54
|
});
|
@@ -99,9 +99,9 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
99
99
|
|
100
100
|
it('When the user adds one more response token, then points per response should get updated accordingly', () => {
|
101
101
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
102
|
-
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 1.
|
103
|
-
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 1.
|
104
|
-
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(2, 1.
|
102
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(0, 1.3333);
|
103
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(1, 1.3333);
|
104
|
+
fillInTheGapsOverImageTextPage.steps.verifyPointsDisplayedOnResponseAccordion(2, 1.3333);
|
105
105
|
});
|
106
106
|
|
107
107
|
it('When the user deletes a response token, then points per response should get updated accordingly', () => {
|