itemengine-cypress-automation 1.0.342-regressionFixes18thMarch-b97f3ea.0 → 1.0.342
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
- package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +72 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +6 -10
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +35 -1
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +3 -5
- package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +73 -0
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
- package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +84 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +84 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +62 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +62 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +63 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -8
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.smoke.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +10 -7
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
- package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/scores.js +9 -5
- package/cypress/e2e/applitools.config.js +3 -3
- package/cypress/fixtures/theme/ilc.json +14 -1
- package/cypress/fixtures/uploads/sample.webm +0 -0
- package/cypress/fixtures/uploads/sample.wmv +0 -0
- package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
- package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
- package/cypress/pages/audioPlayerPage.js +22 -22
- package/cypress/pages/chartsBarPage.js +20 -0
- package/cypress/pages/components/additionalSettingsPanel.js +3 -2
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +16 -28
- package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
- package/cypress/pages/components/browseItemsPage.js +998 -7
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
- package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
- package/cypress/pages/components/commonComponents.js +8 -1
- package/cypress/pages/components/createQuestionBasePage.js +8 -1
- package/cypress/pages/components/defaultToolDropdown.js +7 -6
- package/cypress/pages/components/editCategoryFlyout.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -35
- package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
- package/cypress/pages/components/imageCanvasComponent.js +7 -6
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
- package/cypress/pages/components/questionInstructionsComponent.js +7 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +14 -12
- package/cypress/pages/desmos3DGraphingPage.js +149 -4
- package/cypress/pages/desmosGeometryPage.js +184 -4
- package/cypress/pages/dialogBoxBase.js +2 -1
- package/cypress/pages/drawingResponsePage.js +16 -15
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/gradingViewPage.js +8 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +15 -6
- package/cypress/pages/index.js +2 -1
- package/cypress/pages/listOrderingPage.js +32 -1
- package/cypress/pages/matchingPage.js +26 -7
- package/cypress/pages/multipleSelectionPage.js +10 -39
- package/cypress/pages/numberLineLabelPage.js +31 -8
- package/cypress/pages/numberLinePage.js +19 -7
- package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
- package/cypress/pages/singleSelectionPage.js +0 -37
- package/cypress/pages/textEntryMathPage.js +21 -0
- package/cypress/pages/thinkSpherePage.js +1874 -0
- package/cypress/pages/uploadResponsePage.js +2 -1
- package/cypress/pages/videoResponsePage.js +3 -0
- package/cypress/support/commands.js +7 -4
- package/cypress/support/e2e.js +1 -0
- package/cypress/support/helpers/createItem.js +1181 -1
- package/cypress/support/helpers/utilities.js +75 -1
- package/deploy/smoke/deploy.yaml +2 -2
- package/package.json +4 -4
- package/scripts/dataApi.mjs +3 -0
- package/scripts/sorry-cypress.mjs +13 -0
@@ -209,6 +209,222 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
209
209
|
});
|
210
210
|
});
|
211
211
|
|
212
|
+
views.forEach((view) => {
|
213
|
+
describe(`Fill in the Gaps over Image Drag and drop - Manually scored: ${view}`, { tags: 'smoke' }, () => {
|
214
|
+
abortEarlySetup();
|
215
|
+
before(() => {
|
216
|
+
switch (view) {
|
217
|
+
case 'Question preview':
|
218
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
219
|
+
cy.barsPreLoaderWait();
|
220
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone over the image');
|
221
|
+
fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
|
222
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
223
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
224
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
225
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
226
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
227
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(20);
|
228
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
|
229
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
230
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
231
|
+
break;
|
232
|
+
case 'Item preview':
|
233
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
234
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
235
|
+
break;
|
236
|
+
case 'Grading view':
|
237
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
238
|
+
break;
|
239
|
+
};
|
240
|
+
});
|
241
|
+
|
242
|
+
beforeEach(() => {
|
243
|
+
switch (view) {
|
244
|
+
case 'Question preview':
|
245
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
246
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
247
|
+
break;
|
248
|
+
case 'Item preview':
|
249
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
250
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
251
|
+
break;
|
252
|
+
case 'Grading view':
|
253
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
254
|
+
break;
|
255
|
+
}
|
256
|
+
});
|
257
|
+
|
258
|
+
if (view === 'Question preview') {
|
259
|
+
after(() => {
|
260
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickOnSaveQuestionButton();
|
261
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
262
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
263
|
+
});
|
264
|
+
};
|
265
|
+
|
266
|
+
it('Question instructions should be visible', () => {
|
267
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone over the image');
|
268
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
|
269
|
+
});
|
270
|
+
|
271
|
+
it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
|
272
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
|
273
|
+
if (view === 'Grading view') {
|
274
|
+
studentViewPage.steps.submitResponse();
|
275
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
276
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
277
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
278
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
279
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
280
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
281
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyAnswerStatusBannerNotExist();
|
282
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
|
283
|
+
};
|
284
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
285
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
286
|
+
};
|
287
|
+
});
|
288
|
+
});
|
289
|
+
});
|
290
|
+
|
291
|
+
views.forEach((view) => {
|
292
|
+
describe(`Fill in the Gaps Over Image Drag and drop - Non scored: ${view}`, { tags: 'smoke' }, () => {
|
293
|
+
abortEarlySetup();
|
294
|
+
before(() => {
|
295
|
+
switch (view) {
|
296
|
+
case 'Question preview':
|
297
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
298
|
+
cy.barsPreLoaderWait();
|
299
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzones over the image');
|
300
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
301
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
302
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
303
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
304
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(2);
|
305
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
306
|
+
fillInTheGapsOverImageDragAndDropPage.steps.expandScoringTypeDropdown();
|
307
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
308
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
|
309
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
310
|
+
break;
|
311
|
+
case 'Item preview':
|
312
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
313
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
314
|
+
break;
|
315
|
+
case 'Grading view':
|
316
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
317
|
+
break;
|
318
|
+
};
|
319
|
+
});
|
320
|
+
|
321
|
+
beforeEach(() => {
|
322
|
+
switch (view) {
|
323
|
+
case 'Question preview':
|
324
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
325
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
326
|
+
break;
|
327
|
+
case 'Item preview':
|
328
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
329
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
330
|
+
break;
|
331
|
+
case 'Grading view':
|
332
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
333
|
+
break;
|
334
|
+
}
|
335
|
+
});
|
336
|
+
|
337
|
+
if (view === 'Question preview') {
|
338
|
+
after(() => {
|
339
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickOnSaveQuestionButton();
|
340
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
341
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
342
|
+
});
|
343
|
+
};
|
344
|
+
|
345
|
+
it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
|
346
|
+
if (view === 'Grading view') {
|
347
|
+
studentViewPage.steps.submitResponse();
|
348
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
349
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
350
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
351
|
+
};
|
352
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
353
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
|
354
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
355
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
356
|
+
};
|
357
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
|
358
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
359
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
360
|
+
});
|
361
|
+
|
362
|
+
it('When the user attempts the question incorrectly, and on switching to "Grading" view, non-scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text "Your answer is incorrect" and correct answer section with correct answers should be displayed', () => {
|
363
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
|
364
|
+
if (view === 'Grading view') {
|
365
|
+
studentViewPage.steps.submitResponse();
|
366
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
367
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
368
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
369
|
+
};
|
370
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
371
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
|
372
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
373
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
374
|
+
};
|
375
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
376
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
377
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
378
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
379
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
380
|
+
});
|
381
|
+
|
382
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
|
383
|
+
if (view === 'Grading view') {
|
384
|
+
studentViewPage.steps.clearResponses();
|
385
|
+
};
|
386
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 2, 'Stem': 1 });
|
387
|
+
if (view === 'Grading view') {
|
388
|
+
studentViewPage.steps.submitResponse();
|
389
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
390
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
391
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
392
|
+
};
|
393
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
394
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
|
395
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
396
|
+
};
|
397
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
398
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
399
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
400
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
401
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
402
|
+
});
|
403
|
+
|
404
|
+
it('When the user attempts the question correctly, and on switching to "Grading" view, non-scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
405
|
+
if (view === 'Grading view') {
|
406
|
+
studentViewPage.steps.clearResponses();
|
407
|
+
};
|
408
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
|
409
|
+
if (view === 'Grading view') {
|
410
|
+
studentViewPage.steps.submitResponse();
|
411
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
412
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
413
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
414
|
+
};
|
415
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
416
|
+
fillInTheGapsOverImageDragAndDropPage.steps.checkNonScoredScoringLabel();
|
417
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
418
|
+
};
|
419
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
420
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
421
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
422
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
423
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
424
|
+
});
|
425
|
+
});
|
426
|
+
});
|
427
|
+
|
212
428
|
if (!grepTags || !grepTags.includes('smoke')) {
|
213
429
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
214
430
|
abortEarlySetup();
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js
CHANGED
@@ -375,7 +375,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
375
375
|
cy.barsPreLoaderWait();
|
376
376
|
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
377
377
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
378
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.uploadImageProgressBar(), 'visible');
|
379
378
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
380
379
|
});
|
381
380
|
|
@@ -44,6 +44,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: Header
|
|
44
44
|
before(() => {
|
45
45
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
46
46
|
cy.barsPreLoaderWait();
|
47
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.optionsInputField(), 2);
|
47
48
|
});
|
48
49
|
|
49
50
|
describe('Validation error messages', () => {
|
@@ -492,7 +492,11 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
492
492
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
493
493
|
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
494
494
|
fillInTheGapsOverImageDragAndDropPage.steps.addMultipleOptionFields(3);
|
495
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
495
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, options[0]);
|
496
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, options[1]);
|
497
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(2, options[2]);
|
498
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(3, options[3]);
|
499
|
+
fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(4, options[4]);
|
496
500
|
cy.wait(2000);
|
497
501
|
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(5);
|
498
502
|
});
|
@@ -434,7 +434,8 @@ describe('Create Item page - Fill in the gaps over image with text: Style and la
|
|
434
434
|
});
|
435
435
|
});
|
436
436
|
|
437
|
-
|
437
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5636
|
438
|
+
describe.skip('Option placement in dropzone - Preview tab functionality', () => {
|
438
439
|
abortEarlySetup();
|
439
440
|
before(() => {
|
440
441
|
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
@@ -29,33 +29,28 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
29
29
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
30
30
|
});
|
31
31
|
|
32
|
-
it('When
|
32
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, no correct/incorrect status message should be shown, and the correct answers section with the label \'Correct answers\' should display correct answers with respective option numeration', () => {
|
33
33
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
34
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
34
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
35
35
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
36
36
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
37
37
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
38
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
39
38
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
40
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
41
39
|
});
|
42
40
|
|
43
|
-
it('When
|
41
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user interacts with the question in the preview tab, correct icons should be displayed beside all responses, full points should be allocated, and the correct answer section should not be displayed', () => {
|
44
42
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
45
43
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
46
|
-
|
47
|
-
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(2, optionsForDropdown3);
|
48
46
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
49
47
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }]);
|
50
|
-
|
51
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
52
|
-
|
53
|
-
|
54
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
55
|
-
|
56
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
57
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
58
|
-
});
|
48
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
49
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
50
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
51
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
53
|
+
});
|
59
54
|
|
60
55
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
61
56
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
@@ -145,32 +140,28 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
145
140
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
146
141
|
});
|
147
142
|
|
148
|
-
it('When
|
143
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, no correct/incorrect status message should not be shown', () => {
|
149
144
|
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
150
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
145
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
151
146
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
152
147
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
153
148
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
154
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
155
149
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
156
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
157
150
|
});
|
158
151
|
|
159
|
-
it('When
|
152
|
+
it('When no answer is set in the \'Specify correct answer\' section and the user interacts with the question in the preview tab, correct/incorrect icons should not be displayed beside all responses, manually scored label should be displayed', () => {
|
160
153
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
161
154
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
162
155
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
163
156
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(2, optionsForDropdown3);
|
164
157
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
165
158
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }]);
|
166
|
-
|
167
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
168
|
-
|
169
|
-
|
170
|
-
fillInTheGapsOverImageDropdownPage.steps.
|
171
|
-
|
172
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['', '', '']);
|
173
|
-
});
|
159
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
160
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
164
|
+
});
|
174
165
|
|
175
166
|
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
176
167
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
@@ -239,4 +230,4 @@ describe('Create item page - Fill in the gaps ovr image with dropdown: All or no
|
|
239
230
|
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
240
231
|
});
|
241
232
|
});
|
242
|
-
|
233
|
+
});
|
@@ -184,6 +184,217 @@ describe('Create item page - Fill in the gaps over image - dropdown: All or noth
|
|
184
184
|
});
|
185
185
|
});
|
186
186
|
|
187
|
+
views.forEach((view) => {
|
188
|
+
describe(`${view}: Manually scored`, { tags: 'smoke' }, () => {
|
189
|
+
abortEarlySetup();
|
190
|
+
before(() => {
|
191
|
+
switch (view) {
|
192
|
+
case 'Question preview':
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
194
|
+
cy.barsPreLoaderWait();
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
196
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
197
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
198
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
205
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
206
|
+
break;
|
207
|
+
case 'Item preview':
|
208
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
209
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
210
|
+
break;
|
211
|
+
case 'Grading view':
|
212
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
213
|
+
break;
|
214
|
+
};
|
215
|
+
});
|
216
|
+
|
217
|
+
beforeEach(() => {
|
218
|
+
switch (view) {
|
219
|
+
case 'Question preview':
|
220
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
221
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
222
|
+
break;
|
223
|
+
case 'Item preview':
|
224
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
225
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
226
|
+
break;
|
227
|
+
case 'Grading view':
|
228
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
229
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploadedInPreviewTab();
|
230
|
+
break;
|
231
|
+
}
|
232
|
+
});
|
233
|
+
|
234
|
+
if (view === 'Question preview') {
|
235
|
+
after(() => {
|
236
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnSaveQuestionButton();
|
237
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
238
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
239
|
+
});
|
240
|
+
};
|
241
|
+
|
242
|
+
it('Question instructions should be visible', () => {
|
243
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
244
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.questionInstructionsText(), 'visible');
|
245
|
+
});
|
246
|
+
|
247
|
+
it('User should be able to attempt the question and icons, Your answer is correct/incorrect label should not be displayed', () => {
|
248
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
249
|
+
if (view === 'Grading view') {
|
250
|
+
studentViewPage.steps.submitResponse();
|
251
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
252
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
253
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewScore('Score', ' 20 points');
|
254
|
+
};
|
255
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
256
|
+
fillInTheGapsOverImageDropdownPage.steps.checkManuallyScoredScoringLabel();
|
257
|
+
};
|
258
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
259
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
260
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyAnswerStatusBannerNotExist();
|
261
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExist();
|
262
|
+
});
|
263
|
+
});
|
264
|
+
});
|
265
|
+
|
266
|
+
views.forEach((view) => {
|
267
|
+
describe(`${view}: Non scored`, { tags: 'smoke' }, () => {
|
268
|
+
abortEarlySetup();
|
269
|
+
before(() => {
|
270
|
+
switch (view) {
|
271
|
+
case 'Question preview':
|
272
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
273
|
+
cy.barsPreLoaderWait();
|
274
|
+
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
275
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
276
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
277
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
278
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
279
|
+
fillInTheGapsOverImageDropdownPage.steps.expandScoringTypeDropdown();
|
280
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
281
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
282
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
283
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
284
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
285
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
286
|
+
break;
|
287
|
+
case 'Item preview':
|
288
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
289
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
290
|
+
break;
|
291
|
+
case 'Grading view':
|
292
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
293
|
+
break;
|
294
|
+
};
|
295
|
+
});
|
296
|
+
|
297
|
+
beforeEach(() => {
|
298
|
+
switch (view) {
|
299
|
+
case 'Question preview':
|
300
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
301
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
302
|
+
break;
|
303
|
+
case 'Item preview':
|
304
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
305
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
306
|
+
break;
|
307
|
+
case 'Grading view':
|
308
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
309
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploadedInPreviewTab();
|
310
|
+
break;
|
311
|
+
}
|
312
|
+
});
|
313
|
+
|
314
|
+
if (view === 'Question preview') {
|
315
|
+
after(() => {
|
316
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnSaveQuestionButton();
|
317
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
318
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
319
|
+
});
|
320
|
+
};
|
321
|
+
|
322
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
323
|
+
if (view === 'Grading view') {
|
324
|
+
studentViewPage.steps.submitResponse();
|
325
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
326
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
327
|
+
};
|
328
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
329
|
+
fillInTheGapsOverImageDropdownPage.steps.checkNonScoredScoringLabel();
|
330
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
331
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
332
|
+
};
|
333
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownNumerationPreviewTab();
|
334
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.correctAnswersLabel(), 'Correct answers');
|
335
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
336
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
337
|
+
});
|
338
|
+
|
339
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
340
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
341
|
+
if (view === 'Grading view') {
|
342
|
+
studentViewPage.steps.submitResponse();
|
343
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
344
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
345
|
+
};
|
346
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
347
|
+
fillInTheGapsOverImageDropdownPage.steps.checkNonScoredScoringLabel();
|
348
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
349
|
+
};
|
350
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
351
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
352
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
353
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
354
|
+
});
|
355
|
+
|
356
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
357
|
+
if (view === 'Grading view') {
|
358
|
+
studentViewPage.steps.clearResponses();
|
359
|
+
};
|
360
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
361
|
+
if (view === 'Grading view') {
|
362
|
+
studentViewPage.steps.submitResponse();
|
363
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
364
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
365
|
+
};
|
366
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
367
|
+
fillInTheGapsOverImageDropdownPage.steps.checkNonScoredScoringLabel();
|
368
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
369
|
+
};
|
370
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
371
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
372
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
373
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
374
|
+
});
|
375
|
+
|
376
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
377
|
+
if (view === 'Grading view') {
|
378
|
+
studentViewPage.steps.clearResponses();
|
379
|
+
};
|
380
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
381
|
+
if (view === 'Grading view') {
|
382
|
+
studentViewPage.steps.submitResponse();
|
383
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
384
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
385
|
+
};
|
386
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
387
|
+
fillInTheGapsOverImageDropdownPage.steps.checkNonScoredScoringLabel();
|
388
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
389
|
+
};
|
390
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(0);
|
391
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionIcon(1);
|
392
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
393
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
394
|
+
});
|
395
|
+
});
|
396
|
+
});
|
397
|
+
|
187
398
|
if (!grepTags || !grepTags.includes('smoke')) {
|
188
399
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
189
400
|
abortEarlySetup();
|
@@ -112,7 +112,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Dropdown an
|
|
112
112
|
});
|
113
113
|
|
114
114
|
it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
|
115
|
-
|
115
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
|
116
|
+
//fillInTheGapsOverImageDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
|
117
|
+
//Need to remove the below line once the above issue is fixed
|
118
|
+
fillInTheGapsOverImageDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
|
116
119
|
cy.log('Choosing an option from dropdown to collapse it')
|
117
120
|
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
118
121
|
});
|
@@ -377,7 +377,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
377
377
|
cy.barsPreLoaderWait();
|
378
378
|
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
379
379
|
fillInTheGapsOverImageDropdownPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
380
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.uploadImageProgressBar(), 'visible');
|
381
380
|
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
382
381
|
});
|
383
382
|
|
@@ -45,11 +45,11 @@ describe('Create item page - Fill in the gaps over image - dropdown: Header sect
|
|
45
45
|
});
|
46
46
|
|
47
47
|
describe('Validation error messages', () => {
|
48
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please
|
48
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload an image', 'Please set points']);
|
49
49
|
|
50
50
|
it('Validation error messages should be displayed below required input fields', () => {
|
51
51
|
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
52
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyWarningIconOnRequiredFields(['Please upload an image', 'Please set points'])
|
53
53
|
});
|
54
54
|
|
55
55
|
it('Validation error messages should disappear when required input fields are filled', () => {
|