itemengine-cypress-automation 1.0.375 → 1.0.376-resourceAndTools-fbbcf92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -0
- package/cypress/e2e/GradingGridView/gradingGridView.js +156 -0
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -0
- 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 +39 -7
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +26 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +39 -38
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +31 -30
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +35 -34
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +92 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +220 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +24 -23
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +21 -20
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +48 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +249 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
- package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +94 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -4
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
- package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +63 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +116 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.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 +1 -3
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -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 +87 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -2
- 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/editTabScoringSection.js +1 -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/allOrNothingBasicForAllViews.smoke.js +210 -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/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
- 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/manuallyAndNonScored.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +237 -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/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +7 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +10 -14
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +215 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +36 -9
- package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +2 -0
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +7 -23
- 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/allOrNothingForAllViews.smoke.js +309 -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 +36 -1
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +38 -41
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -5
- package/cypress/e2e/ILC/Matching/draggableOptions.js +7 -0
- package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +38 -12
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +2 -0
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +6 -6
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
- 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 +75 -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/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +186 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +35 -51
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +54 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +53 -2
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +91 -9
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +12 -12
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +35 -2
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +27 -28
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +24 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +39 -37
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +22 -23
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +31 -31
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +18 -19
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +96 -0
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/saveResponseScores.js +2 -2
- package/cypress/pages/audioPlayerPage.js +47 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +45 -0
- package/cypress/pages/chartsDotPlotPage.js +25 -0
- package/cypress/pages/chartsLinePage.js +28 -3
- package/cypress/pages/components/additionalSettingsPanel.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
- package/cypress/pages/components/browseItemsPage.js +109 -2
- package/cypress/pages/components/chartsCommonComponent.js +6 -2
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +5 -4
- package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
- package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
- package/cypress/pages/components/colorPopupComponent.js +6 -0
- package/cypress/pages/components/commonComponents.js +4 -0
- package/cypress/pages/components/createQuestionBasePage.js +14 -1
- package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
- package/cypress/pages/components/editCategoryFlyout.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +28 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
- package/cypress/pages/components/imageCanvasComponent.js +4 -4
- package/cypress/pages/components/questionInstructionsComponent.js +2 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +7 -1
- package/cypress/pages/contentBlocksPage.js +2 -0
- package/cypress/pages/desmos3DGraphingPage.js +149 -4
- package/cypress/pages/desmosGeometryPage.js +184 -4
- package/cypress/pages/drawingResponsePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -4
- package/cypress/pages/gradingGridViewPage.js +64 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +15 -6
- package/cypress/pages/imageHighlightPage.js +32 -0
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/listOrderingPage.js +40 -1
- package/cypress/pages/matchingPage.js +26 -7
- package/cypress/pages/numberLineLabelPage.js +31 -8
- package/cypress/pages/numberLinePage.js +19 -7
- package/cypress/pages/singleSelectionPage.js +30 -1
- package/cypress/pages/textEntryMathPage.js +24 -1
- package/cypress/pages/thinkSpherePage.js +674 -48
- package/cypress/pages/uploadResponsePage.js +17 -1
- package/cypress/pages/videoResponsePage.js +3 -0
- package/cypress/support/commands.js +9 -0
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +14 -1
- package/package.json +3 -3
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -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();
|
@@ -7,6 +7,8 @@ const optionsForDropdown1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
|
7
7
|
const optionsForDropdown2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
8
8
|
const correctAnswerArray = ['Flower', 'Leaf'];
|
9
9
|
const correctAnswerArray1 = ['Leaves', 'Petal'];
|
10
|
+
const equalitySign = ['=', '≠', '>', '<'];
|
11
|
+
const equalitySign1 = ['≠', '≥', '≤', '='];
|
10
12
|
|
11
13
|
describe('Edit item - ', () => {
|
12
14
|
before(() => {
|
@@ -69,4 +71,47 @@ describe('Edit item - ', () => {
|
|
69
71
|
fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
70
72
|
});
|
71
73
|
});
|
74
|
+
|
75
|
+
//https://weldnorthed.atlassian.net/browse/IEI-6059
|
76
|
+
describe('Fill in the gaps with dropdown question - equality sign functionality', () => {
|
77
|
+
abortEarlySetup();
|
78
|
+
before(() => {
|
79
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image with dropdown');
|
80
|
+
cy.barsPreLoaderWait();
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with dropdown');
|
82
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
83
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
84
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyImageIsUploaded();
|
85
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(30);
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.insertResponseArea(40);
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, equalitySign);
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, equalitySign1);
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, equalitySign[2]);
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, equalitySign1[1]);
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.saveAQuestionAndVerifySnackbar();
|
94
|
+
});
|
95
|
+
|
96
|
+
it('When user switches to the preview tab, then the equality signs should be displayed as is in the dropdown and correct answer section', () => {
|
97
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
98
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
|
99
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([equalitySign[2], equalitySign1[1]]);
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: equalitySign[2] }, { dropdownIndex: 1, dropdownOption: equalitySign1[1] }]);
|
101
|
+
});
|
102
|
+
|
103
|
+
it('User should be able to edit the question and check the options in the options input field', () => {
|
104
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
105
|
+
fillInTheGapsOverImageDropdownPage.steps.editItem();
|
106
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
107
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyOptionFieldContent(equalitySign);
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToDropdownOptionsTab(1);
|
109
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyOptionFieldContent(equalitySign1);
|
110
|
+
});
|
111
|
+
|
112
|
+
it('The options in the dropdown should be displayed as the options in the input field', () => {
|
113
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsSpecifyCorrectAnswerSection(0, equalitySign);
|
114
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownOptionsSpecifyCorrectAnswerSection(1, equalitySign1);
|
115
|
+
});
|
116
|
+
});
|
72
117
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js
CHANGED
@@ -17,6 +17,9 @@ describe('Create Item page - Fill in the gaps over image - text: ', () => {
|
|
17
17
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
18
18
|
fillInTheGapsOverImageTextPage.steps.insertResponseArea(80);
|
19
19
|
utilities.hoverAwayFromElement(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
|
20
|
+
utilities.triggerMouseout(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
|
21
|
+
utilities.hoverAwayFromElement(fillInTheGapsOverImageTextPage.selectResponseAreaButton());
|
22
|
+
utilities.triggerMouseout(fillInTheGapsOverImageTextPage.insertResponseAreaButton());
|
20
23
|
});
|
21
24
|
|
22
25
|
fillInTheGapsOverImageTextPage.tests.verifyAnswerInputFieldEditTab();
|
@@ -41,7 +41,9 @@ describe('Create item page - Fill in the gaps over image with text: Supported fi
|
|
41
41
|
it('When the user tries to uploads an image with unsupported file type, then an error message should not be displayed', () => {
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFileWithoutVerification('uploads/sample.heif');
|
43
43
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.errorMessage(), 'notExist');
|
44
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.canvasUploadedImage(), 'notExist')
|
44
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.canvasUploadedImage(), 'notExist');
|
45
45
|
});
|
46
|
+
|
47
|
+
fillInTheGapsOverImageTextPage.tests.verifyErrorMessageCSSAndA11y();
|
46
48
|
});
|
47
49
|
});
|
@@ -347,4 +347,77 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
347
347
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
348
348
|
});
|
349
349
|
});
|
350
|
+
|
351
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has no points plotted', () => {
|
352
|
+
abortEarlySetup();
|
353
|
+
before(() => {
|
354
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
355
|
+
cy.barsPreLoaderWait();
|
356
|
+
graphingPage.steps.addTextInQuestionInstructionsInputField('Test question');
|
357
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
358
|
+
graphingPage.steps.allotPoints(12);
|
359
|
+
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
360
|
+
graphingPage.steps.allotPoints(20);
|
361
|
+
graphingPage.steps.switchToPreviewTab();
|
362
|
+
});
|
363
|
+
|
364
|
+
it('When user attempts the question with responses from the correct accordion, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
365
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
366
|
+
graphingPage.steps.verifyPreviewScore(12, 20);
|
367
|
+
graphingPage.steps.switchToGradingView();
|
368
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
369
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
370
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
371
|
+
});
|
372
|
+
|
373
|
+
it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
|
374
|
+
graphingPage.steps.resetQuestionPreview();
|
375
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
376
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
377
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
378
|
+
graphingPage.steps.verifyPreviewScore(20, 20);
|
379
|
+
graphingPage.steps.switchToGradingView();
|
380
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
381
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
382
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
383
|
+
});
|
384
|
+
});
|
385
|
+
|
386
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and correct answer has no points plotted', () => {
|
387
|
+
abortEarlySetup();
|
388
|
+
before(() => {
|
389
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
390
|
+
cy.barsPreLoaderWait();
|
391
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
392
|
+
graphingPage.steps.allotPoints(12);
|
393
|
+
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
394
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
395
|
+
graphingPage.steps.allotPoints(20);
|
396
|
+
graphingPage.steps.expandCorrectAnswerAccordion();
|
397
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
398
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
399
|
+
graphingPage.steps.switchToPreviewTab();
|
400
|
+
});
|
401
|
+
|
402
|
+
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
403
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
404
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
405
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
406
|
+
graphingPage.steps.verifyPreviewScore(12, 20);
|
407
|
+
graphingPage.steps.switchToGradingView();
|
408
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
409
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
410
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
411
|
+
});
|
412
|
+
|
413
|
+
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
414
|
+
graphingPage.steps.resetQuestionPreview();
|
415
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
416
|
+
graphingPage.steps.verifyPreviewScore(20, 20);
|
417
|
+
graphingPage.steps.switchToGradingView();
|
418
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
419
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
420
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
421
|
+
});
|
422
|
+
});
|
350
423
|
});
|
package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -352,4 +352,42 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
352
352
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
353
353
|
});
|
354
354
|
});
|
355
|
+
|
356
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
357
|
+
abortEarlySetup();
|
358
|
+
before(() => {
|
359
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
360
|
+
cy.barsPreLoaderWait();
|
361
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
362
|
+
graphingPage.steps.allotPoints(12);
|
363
|
+
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
364
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
365
|
+
graphingPage.steps.allotPoints(12);
|
366
|
+
graphingPage.steps.expandCorrectAnswerAccordion();
|
367
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
368
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
369
|
+
graphingPage.steps.switchToPreviewTab();
|
370
|
+
});
|
371
|
+
|
372
|
+
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
373
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
374
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
375
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
376
|
+
graphingPage.steps.verifyPreviewScore(12, 12);
|
377
|
+
graphingPage.steps.switchToGradingView();
|
378
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
379
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
380
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
381
|
+
});
|
382
|
+
|
383
|
+
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
384
|
+
graphingPage.steps.resetQuestionPreview();
|
385
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
386
|
+
graphingPage.steps.verifyPreviewScore(12, 12);
|
387
|
+
graphingPage.steps.switchToGradingView();
|
388
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
389
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
390
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
391
|
+
});
|
392
|
+
});
|
355
393
|
});
|
@@ -398,4 +398,42 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
398
398
|
cy.checkAccessibility(graphingPage.previewTabQuestionWrapper());
|
399
399
|
});
|
400
400
|
});
|
401
|
+
|
402
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
403
|
+
abortEarlySetup();
|
404
|
+
before(() => {
|
405
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
406
|
+
cy.barsPreLoaderWait();
|
407
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
408
|
+
graphingPage.steps.allotPoints(21);
|
409
|
+
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
410
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
411
|
+
graphingPage.steps.allotPoints(12);
|
412
|
+
graphingPage.steps.expandCorrectAnswerAccordion();
|
413
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
414
|
+
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
415
|
+
graphingPage.steps.switchToPreviewTab();
|
416
|
+
});
|
417
|
+
|
418
|
+
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
419
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
420
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
421
|
+
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
422
|
+
graphingPage.steps.verifyPreviewScore(21, 21);
|
423
|
+
graphingPage.steps.switchToGradingView();
|
424
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
425
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
426
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
427
|
+
});
|
428
|
+
|
429
|
+
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
430
|
+
graphingPage.steps.resetQuestionPreview();
|
431
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
432
|
+
graphingPage.steps.verifyPreviewScore(12, 21);
|
433
|
+
graphingPage.steps.switchToGradingView();
|
434
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
435
|
+
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
436
|
+
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
437
|
+
});
|
438
|
+
});
|
401
439
|
});
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { graphingPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const correctAnswerPoints = [
|
5
|
+
{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }
|
6
|
+
];
|
7
|
+
|
8
|
+
const incorrectAnswerPoints = [
|
9
|
+
{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 4, xRange: 20, y: 4, yRange: 20 }
|
10
|
+
];
|
11
|
+
|
12
|
+
describe('Create Item page - Graphing', () => {
|
13
|
+
before(() => {
|
14
|
+
cy.loginAs('admin');
|
15
|
+
});
|
16
|
+
|
17
|
+
describe('Question Preview: Auto Scored With Points', () => {
|
18
|
+
abortEarlySetup();
|
19
|
+
before(() => {
|
20
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
21
|
+
cy.barsPreLoaderWait();
|
22
|
+
graphingPage.steps.switchToPreviewTab();
|
23
|
+
});
|
24
|
+
|
25
|
+
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
26
|
+
graphingPage.steps.checkManuallyScoredScoringLabel();
|
27
|
+
});
|
28
|
+
|
29
|
+
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
30
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
|
31
|
+
graphingPage.steps.switchToGradingView();
|
32
|
+
graphingPage.steps.verifyAnswerStatusBannerNotExist();
|
33
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
34
|
+
});
|
35
|
+
|
36
|
+
it('When user allocates points to the question then the scoring label should be displayed as manually scored and banner and correct answer status should not exist', () => {
|
37
|
+
graphingPage.steps.switchToEditTab();
|
38
|
+
graphingPage.steps.allotPoints(10);
|
39
|
+
graphingPage.steps.switchToPreviewTab();
|
40
|
+
graphingPage.steps.checkManuallyScoredScoringLabel();
|
41
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
|
42
|
+
graphingPage.steps.switchToGradingView();
|
43
|
+
graphingPage.steps.verifyAnswerStatusBannerNotExist();
|
44
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
describe('Question Preview: Auto Scored Without Points', () => {
|
49
|
+
abortEarlySetup();
|
50
|
+
before(() => {
|
51
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
52
|
+
cy.barsPreLoaderWait();
|
53
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection(correctAnswerPoints);
|
54
|
+
graphingPage.steps.switchToPreviewTab();
|
55
|
+
});
|
56
|
+
|
57
|
+
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
58
|
+
graphingPage.steps.checkManuallyScoredScoringLabel();
|
59
|
+
});
|
60
|
+
|
61
|
+
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
62
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab(incorrectAnswerPoints);
|
63
|
+
graphingPage.steps.switchToGradingView();
|
64
|
+
graphingPage.steps.verifyAnswerStatusBannerExist();
|
65
|
+
graphingPage.steps.verifyCorrectAnswerSectionExist();
|
66
|
+
});
|
67
|
+
});
|
68
|
+
|
69
|
+
describe('Question Preview: Non Scored', () => {
|
70
|
+
abortEarlySetup();
|
71
|
+
before(() => {
|
72
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
73
|
+
cy.barsPreLoaderWait();
|
74
|
+
graphingPage.steps.addTextInQuestionInstructionsInputField('Graphing question');
|
75
|
+
});
|
76
|
+
|
77
|
+
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
78
|
+
graphingPage.steps.expandScoringTypeDropdown();
|
79
|
+
graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
80
|
+
graphingPage.steps.switchToPreviewTab();
|
81
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab(correctAnswerPoints);
|
82
|
+
graphingPage.steps.switchToGradingView();
|
83
|
+
graphingPage.steps.verifyAnswerStatusBannerNotExist();
|
84
|
+
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
85
|
+
});
|
86
|
+
});
|
87
|
+
});
|
@@ -784,9 +784,9 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
784
784
|
it('When the user attempts the question with incorrect sine wave then the question should be treated as incorrect', () => {
|
785
785
|
graphingPage.steps.resetQuestionPreview();
|
786
786
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Sine');
|
787
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y:
|
787
|
+
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
788
788
|
graphingPage.steps.switchToGradingView();
|
789
|
-
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y:
|
789
|
+
graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 2, xRange: 20, y: 0, yRange: 20 }, { x: 3, xRange: 20, y: 1, yRange: 20 }]);
|
790
790
|
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
791
791
|
});
|
792
792
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { graphingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const correctAnswerPoints = [
|
5
|
+
{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }
|
6
|
+
];
|
7
|
+
|
8
|
+
describe('Create question page - Graphing', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Check Alternative Answer Button', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
});
|
19
|
+
|
20
|
+
it('When correct answer is not set then alternative answer should be disabled', () => {
|
21
|
+
graphingPage.steps.checkAlternativeButtonDisabled();
|
22
|
+
});
|
23
|
+
|
24
|
+
it('When correct answer is set then alternative answer should be enabled', () => {
|
25
|
+
graphingPage.steps.allotPoints(10);
|
26
|
+
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection(correctAnswerPoints);
|
27
|
+
graphingPage.steps.checkAlternativeButtonEnabled();
|
28
|
+
});
|
29
|
+
|
30
|
+
it('User should be able to add \'Alternative\' answer using the \'Add alternative\' button, when user has not set any answer in the \'Alternative\' accordion and clicks on the \'Correct\' accordion then \'Correct\' accordion should be expanded', () => {
|
31
|
+
graphingPage.steps.clickOnAddAlternativeAnswerButton();
|
32
|
+
graphingPage.steps.expandCorrectAnswerAccordion();
|
33
|
+
});
|
34
|
+
});
|
35
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { graphingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
|
5
|
+
describe('Edit item - Graphing', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Edit Graphing question', { tags: 'smoke' }, () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
graphingPage.steps.expandScoringTypeDropdown();
|
16
|
+
graphingPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
17
|
+
graphingPage.steps.allotPoints(2);
|
18
|
+
graphingPage.steps.saveAQuestionAndVerifySnackbar();
|
19
|
+
});
|
20
|
+
|
21
|
+
it('User should be able to change scoring type to non scored and scoring dropdown should exisit.', () => {
|
22
|
+
graphingPage.steps.editItem();
|
23
|
+
graphingPage.steps.expandScoringTypeDropdown();
|
24
|
+
graphingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
25
|
+
graphingPage.tests.verifyScoringTypeLabelAndDropdown('Auto scored');
|
26
|
+
});
|
27
|
+
});
|
28
|
+
});
|