itemengine-cypress-automation 1.0.381-fixes-r1-4b1054a.0 → 1.0.381-regressionFixes10June-8dc1710.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/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/CkEditorInsertImage/imageInfo.js +3 -3
- 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/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +3 -3
- 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/drawingResponsePreviewTabContents.smoke.js +1 -3
- 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/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -3
- 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 +2 -2
- package/cypress/e2e/ILC/GridFill/headerSection.js +4 -4
- 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/ImageHighlight/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
- package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +3 -3
- 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 +38 -3
- 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/MultipleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +3 -3
- 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 +33 -49
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +3 -3
- 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/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
- package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -3
- package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabSolveSection.js +36 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- 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/fixtures/thinkSphereWhiteboardTools.js +66 -0
- 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/autoScoredSpecifyCorrectAnswerSection.js +5 -1
- package/cypress/pages/components/chartsCommonComponent.js +6 -2
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +1 -0
- package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
- 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/createQuestionBasePage.js +19 -6
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +31 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
- package/cypress/pages/components/imageCanvasComponent.js +11 -5
- package/cypress/pages/components/questionInstructionsComponent.js +2 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +16 -0
- 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 +10 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -8
- package/cypress/pages/gradingGridViewPage.js +64 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +27 -9
- package/cypress/pages/imageHighlightPage.js +115 -15
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/listOrderingPage.js +40 -1
- package/cypress/pages/matchingPage.js +29 -10
- 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/textSelectionPage.js +2 -2
- package/cypress/pages/thinkSpherePage.js +928 -87
- 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 +2 -2
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -227,4 +227,85 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
227
227
|
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
228
228
|
});
|
229
229
|
});
|
230
|
+
|
231
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has blank response', () => {
|
232
|
+
abortEarlySetup();
|
233
|
+
before(() => {
|
234
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
235
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
236
|
+
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
|
237
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
238
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
239
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
|
240
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
|
241
|
+
numberLineLabelPage.steps.allotPoints(12);
|
242
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
243
|
+
numberLineLabelPage.steps.allotPoints(20);
|
244
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
245
|
+
})
|
246
|
+
|
247
|
+
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', () => {
|
248
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
|
249
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
|
250
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
|
251
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 20);
|
252
|
+
numberLineLabelPage.steps.switchToGradingView();
|
253
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
254
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
255
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
256
|
+
})
|
257
|
+
|
258
|
+
it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
|
259
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
260
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
|
261
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 3');
|
262
|
+
numberLineLabelPage.steps.verifyPreviewScore(20, 20);
|
263
|
+
numberLineLabelPage.steps.switchToGradingView();
|
264
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
265
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
266
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
267
|
+
})
|
268
|
+
})
|
269
|
+
|
270
|
+
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', () => {
|
271
|
+
abortEarlySetup();
|
272
|
+
before(() => {
|
273
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
274
|
+
cy.barsPreLoaderWait();
|
275
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
276
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
277
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
278
|
+
numberLineLabelPage.steps.allotPoints(12);
|
279
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
280
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
281
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
|
282
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
|
283
|
+
numberLineLabelPage.steps.allotPoints(20);
|
284
|
+
numberLineLabelPage.steps.expandCorrectAnswerAccordion();
|
285
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
|
286
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
287
|
+
});
|
288
|
+
|
289
|
+
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', () => {
|
290
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
|
291
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
|
292
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 20);
|
293
|
+
numberLineLabelPage.steps.switchToGradingView();
|
294
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
295
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
296
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
297
|
+
})
|
298
|
+
|
299
|
+
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
300
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
301
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
|
302
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
|
303
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
|
304
|
+
numberLineLabelPage.steps.verifyPreviewScore(20, 20);
|
305
|
+
numberLineLabelPage.steps.switchToGradingView();
|
306
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
307
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
308
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
309
|
+
})
|
310
|
+
})
|
230
311
|
});
|
package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
CHANGED
@@ -227,4 +227,47 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
227
227
|
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
228
228
|
});
|
229
229
|
});
|
230
|
+
|
231
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
232
|
+
abortEarlySetup();
|
233
|
+
before(() => {
|
234
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
235
|
+
cy.barsPreLoaderWait();
|
236
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
237
|
+
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
|
238
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
239
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
240
|
+
numberLineLabelPage.steps.allotPoints(12);
|
241
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
242
|
+
numberLineLabelPage.steps.allotPoints(12);
|
243
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
244
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
|
245
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
|
246
|
+
numberLineLabelPage.steps.expandCorrectAnswerAccordion();
|
247
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
|
248
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
249
|
+
});
|
250
|
+
|
251
|
+
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', () => {
|
252
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
253
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
|
254
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 12);
|
255
|
+
numberLineLabelPage.steps.switchToGradingView();
|
256
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
257
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
258
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
259
|
+
});
|
260
|
+
|
261
|
+
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
262
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
263
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
|
264
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
|
265
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
|
266
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 12);
|
267
|
+
numberLineLabelPage.steps.switchToGradingView();
|
268
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
269
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
270
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
271
|
+
});
|
272
|
+
});
|
230
273
|
});
|
@@ -227,4 +227,47 @@ describe('Create Item page - Number line: All or nothing with alternative answer
|
|
227
227
|
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
228
228
|
});
|
229
229
|
});
|
230
|
+
|
231
|
+
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
232
|
+
abortEarlySetup();
|
233
|
+
before(() => {
|
234
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
235
|
+
cy.barsPreLoaderWait();
|
236
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
237
|
+
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
|
238
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
239
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
240
|
+
numberLineLabelPage.steps.allotPoints(21);
|
241
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
242
|
+
numberLineLabelPage.steps.allotPoints(12);
|
243
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
|
244
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
|
245
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
|
246
|
+
numberLineLabelPage.steps.expandCorrectAnswerAccordion();
|
247
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
|
248
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
249
|
+
});
|
250
|
+
|
251
|
+
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 (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', () => {
|
252
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
253
|
+
numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
|
254
|
+
numberLineLabelPage.steps.verifyPreviewScore(21, 21);
|
255
|
+
numberLineLabelPage.steps.switchToGradingView();
|
256
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
257
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
258
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
259
|
+
});
|
260
|
+
|
261
|
+
it('When user attempts the question with responses from the alternative accordion then less than full score should be awarded', () => {
|
262
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
263
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
|
264
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
|
265
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
|
266
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 21);
|
267
|
+
numberLineLabelPage.steps.switchToGradingView();
|
268
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
269
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
270
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
271
|
+
});
|
272
|
+
});
|
230
273
|
});
|
package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
import { numberLineLabelPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
const range = 22.18;
|
4
|
+
|
5
|
+
describe('Create Item page - Number line', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
describe('Question Preview: Auto Scored With Points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
15
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
16
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
17
|
+
});
|
18
|
+
it('In Preview tab, when an answer is not set then manually scored scoring label should be displayed', () => {
|
19
|
+
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
20
|
+
});
|
21
|
+
it('In Preview tab, when user switches to grading view then no banner and correct answer should be displayed', () => {
|
22
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
23
|
+
numberLineLabelPage.steps.switchToGradingView();
|
24
|
+
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
25
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
26
|
+
});
|
27
|
+
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', () => {
|
28
|
+
numberLineLabelPage.steps.switchToEditTab();
|
29
|
+
numberLineLabelPage.steps.allotPoints(10);
|
30
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
31
|
+
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
32
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
33
|
+
numberLineLabelPage.steps.switchToGradingView();
|
34
|
+
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
35
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
36
|
+
});
|
37
|
+
});
|
38
|
+
describe('Question Preview: Auto Scored Without Points', () => {
|
39
|
+
abortEarlySetup();
|
40
|
+
before(() => {
|
41
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
42
|
+
cy.barsPreLoaderWait();
|
43
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
44
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
45
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
46
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
47
|
+
});
|
48
|
+
it('In Preview tab, when points are not set then manually scored scoring label should be displayed', () => {
|
49
|
+
numberLineLabelPage.steps.checkManuallyScoredScoringLabel();
|
50
|
+
});
|
51
|
+
it('In Preview tab, when user switches to grading view then banner and correct answer should be displayed', () => {
|
52
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 6);
|
53
|
+
numberLineLabelPage.steps.switchToGradingView();
|
54
|
+
numberLineLabelPage.steps.verifyAnswerStatusBannerExist();
|
55
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionExist();
|
56
|
+
});
|
57
|
+
});
|
58
|
+
describe('Question Preview: Non Scored', () => {
|
59
|
+
abortEarlySetup();
|
60
|
+
before(() => {
|
61
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
62
|
+
cy.barsPreLoaderWait();
|
63
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
64
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
65
|
+
});
|
66
|
+
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
67
|
+
numberLineLabelPage.steps.expandScoringTypeDropdown();
|
68
|
+
numberLineLabelPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
69
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
70
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 6);
|
71
|
+
numberLineLabelPage.steps.switchToGradingView();
|
72
|
+
numberLineLabelPage.steps.verifyAnswerStatusBannerNotExist();
|
73
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
74
|
+
});
|
75
|
+
});
|
76
|
+
});
|
@@ -66,8 +66,8 @@ describe('Create Item page -numberLine : Additional settings', () => {
|
|
66
66
|
before(() => {
|
67
67
|
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
68
68
|
cy.barsPreLoaderWait();
|
69
|
-
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
70
69
|
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot label on the number line');
|
70
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
71
71
|
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
72
72
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
73
73
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { numberLineLabelPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const range = 22.18;
|
5
|
+
describe('Create question page - Graphing', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Check Alternative Answer Button', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
14
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
15
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
});
|
18
|
+
|
19
|
+
it('When correct answer is not set then alternative answer should be disabled', () => {
|
20
|
+
numberLineLabelPage.steps.checkAlternativeButtonDisabled();
|
21
|
+
});
|
22
|
+
|
23
|
+
it('When correct answer is set then alternative answer should be enabled', () => {
|
24
|
+
numberLineLabelPage.steps.allotPoints(10);
|
25
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
26
|
+
numberLineLabelPage.steps.checkAlternativeButtonEnabled();
|
27
|
+
});
|
28
|
+
|
29
|
+
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', () => {
|
30
|
+
numberLineLabelPage.steps.clickOnAddAlternativeAnswerButton();
|
31
|
+
numberLineLabelPage.steps.expandCorrectAnswerAccordion();
|
32
|
+
});
|
33
|
+
});
|
34
|
+
});
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { numberLineLabelPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create item page - Number Line', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('User should be able to edit incomplete authored question', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
13
|
+
cy.barsPreLoaderWait();
|
14
|
+
numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
|
15
|
+
numberLineLabelPage.steps.editItem();
|
16
|
+
});
|
17
|
+
|
18
|
+
it('Warning icons should be displayed on the required input fields', () => {
|
19
|
+
numberLineLabelPage.steps.verifyWarningIconOnRequiredFields([
|
20
|
+
'Please set points.',
|
21
|
+
]);
|
22
|
+
});
|
23
|
+
|
24
|
+
it('When required input fields are filled then warning icons should disappear', () => {
|
25
|
+
numberLineLabelPage.steps.allotPoints(10);
|
26
|
+
numberLineLabelPage.steps.verifyErrorMessageIsNotDisplayed();
|
27
|
+
numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
28
|
+
});
|
29
|
+
|
30
|
+
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
31
|
+
numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
|
32
|
+
});
|
33
|
+
|
34
|
+
it('Warning icon should not be visible', () => {
|
35
|
+
numberLineLabelPage.steps.verifyWarningIconNotExist();
|
36
|
+
});
|
37
|
+
});
|
38
|
+
});
|
@@ -1,7 +1,9 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { dialogBoxBase, numberLineLabelPage } from "../../../pages";
|
2
|
+
import { dialogBoxBase, numberLineLabelPage, itemPreviewPage } from "../../../pages";
|
3
|
+
import { browseItemsPage } from "../../../pages/components";
|
3
4
|
import utilities from "../../../support/helpers/utilities";
|
4
5
|
const range = 20.75;
|
6
|
+
var itemReferenceID = "";
|
5
7
|
|
6
8
|
describe('Create item page - Number line: Header section and saving question', () => {
|
7
9
|
before(() => {
|
@@ -46,16 +48,16 @@ describe('Create item page - Number line: Header section and saving question', (
|
|
46
48
|
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
47
49
|
cy.barsPreLoaderWait();
|
48
50
|
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
51
|
+
cy.wait(1000);
|
49
52
|
});
|
50
53
|
|
51
54
|
describe('Validation error messages', () => {
|
52
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
55
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all label values.', 'Please set points.']);
|
53
56
|
|
54
57
|
it('Validation error messages should be displayed below required input fields', () => {
|
55
58
|
numberLineLabelPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
56
|
-
|
57
|
-
|
58
|
-
numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
|
59
|
+
numberLineLabelPage.steps.verifyWarningIconOnRequiredFields(['Please enter all label values.', 'Please set points.']);
|
60
|
+
numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
59
61
|
});
|
60
62
|
|
61
63
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -77,5 +79,35 @@ describe('Create item page - Number line: Header section and saving question', (
|
|
77
79
|
|
78
80
|
numberLineLabelPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
79
81
|
});
|
82
|
+
|
83
|
+
describe('Saving a question with incomplete authoring', () => {
|
84
|
+
abortEarlySetup();
|
85
|
+
before(() => {
|
86
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
87
|
+
cy.barsPreLoaderWait();
|
88
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
89
|
+
});
|
90
|
+
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
91
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points.']);
|
92
|
+
numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
|
93
|
+
});
|
94
|
+
numberLineLabelPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
95
|
+
});
|
96
|
+
|
97
|
+
describe('Save as you go - Browse item page contents', () => {
|
98
|
+
abortEarlySetup();
|
99
|
+
before(() => {
|
100
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
101
|
+
cy.barsPreLoaderWait();
|
102
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
103
|
+
numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
|
104
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
105
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
106
|
+
browseItemsPage.steps.navigateToBrowseItemsPage();
|
107
|
+
});
|
108
|
+
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
109
|
+
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
110
|
+
});
|
111
|
+
});
|
80
112
|
});
|
81
113
|
});
|
@@ -46,8 +46,9 @@ describe('Create Item page - Number line: Scoring cases', () => {
|
|
46
46
|
describe('Non scored scoring - Scoring section', () => {
|
47
47
|
abortEarlySetup();
|
48
48
|
before(() => {
|
49
|
-
numberLineLabelPage.steps.navigateToCreateQuestion('
|
49
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
50
50
|
cy.barsPreLoaderWait();
|
51
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
51
52
|
});
|
52
53
|
|
53
54
|
it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
|
@@ -49,7 +49,7 @@ describe('Edit item - Number line', () => {
|
|
49
49
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Newly added label', 'vertical', range, 6);
|
50
50
|
numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [6]);
|
51
51
|
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
|
52
|
-
numberLineLabelPage.steps.
|
52
|
+
numberLineLabelPage.steps.verifyVerticalPointsNotExistOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
53
53
|
numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
|
54
54
|
});
|
55
55
|
|
@@ -152,6 +152,192 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
152
152
|
});
|
153
153
|
});
|
154
154
|
|
155
|
+
views.forEach((view) => {
|
156
|
+
describe(`${view}: Short text response - Manually scored`, { tags: 'smoke' }, () => {
|
157
|
+
abortEarlySetup();
|
158
|
+
before(() => {
|
159
|
+
switch (view) {
|
160
|
+
case 'Question preview':
|
161
|
+
shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
|
162
|
+
cy.barsPreLoaderWait();
|
163
|
+
shortTextResponsePage.steps.addTextInQuestionInstructionsInputField('What is the primary cause of urbanization?');
|
164
|
+
shortTextResponsePage.steps.expandScoringTypeDropdown();
|
165
|
+
shortTextResponsePage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
166
|
+
shortTextResponsePage.steps.allotPoints(20);
|
167
|
+
shortTextResponsePage.steps.switchToPreviewTab();
|
168
|
+
break;
|
169
|
+
case 'Item preview':
|
170
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
171
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
172
|
+
break;
|
173
|
+
case 'Grading view':
|
174
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
175
|
+
break;
|
176
|
+
};
|
177
|
+
});
|
178
|
+
|
179
|
+
beforeEach(() => {
|
180
|
+
switch (view) {
|
181
|
+
case 'Question preview':
|
182
|
+
shortTextResponsePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
183
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
184
|
+
break;
|
185
|
+
case 'Item preview':
|
186
|
+
shortTextResponsePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
188
|
+
break;
|
189
|
+
case 'Grading view':
|
190
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
191
|
+
break;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
|
195
|
+
if (view === 'Question preview') {
|
196
|
+
after(() => {
|
197
|
+
shortTextResponsePage.steps.clickOnSaveQuestionButton();
|
198
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
199
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
200
|
+
});
|
201
|
+
};
|
202
|
+
|
203
|
+
it('Question instructions should be visible', () => {
|
204
|
+
shortTextResponsePage.steps.verifyQuestionInstructionsTextPreviewTab('What is the primary cause of urbanization?');
|
205
|
+
shortTextResponsePage.steps.verifyVisibityOfQuestionInstructionsText();
|
206
|
+
});
|
207
|
+
|
208
|
+
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', () => {
|
209
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Urbanization');
|
210
|
+
if (view === 'Grading view') {
|
211
|
+
studentViewPage.steps.submitResponse();
|
212
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
213
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
214
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
215
|
+
};
|
216
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
217
|
+
shortTextResponsePage.steps.checkManuallyScoredScoringLabel();
|
218
|
+
shortTextResponsePage.steps.verifyCorrectIncorrectIconNotVisibleGradingView();
|
219
|
+
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
|
220
|
+
};
|
221
|
+
});
|
222
|
+
});
|
223
|
+
});
|
224
|
+
|
225
|
+
views.forEach((view) => {
|
226
|
+
describe(`${view}: Short text response - Non scored`, { tags: 'smoke' }, () => {
|
227
|
+
abortEarlySetup();
|
228
|
+
before(() => {
|
229
|
+
switch (view) {
|
230
|
+
case 'Question preview':
|
231
|
+
shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
|
232
|
+
cy.barsPreLoaderWait();
|
233
|
+
shortTextResponsePage.steps.addTextInQuestionInstructionsInputField('What is the primary cause of urbanization?');
|
234
|
+
shortTextResponsePage.steps.expandScoringTypeDropdown();
|
235
|
+
shortTextResponsePage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
236
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Urbanization');
|
237
|
+
shortTextResponsePage.steps.switchToPreviewTab();
|
238
|
+
break;
|
239
|
+
case 'Item preview':
|
240
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
241
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
242
|
+
break;
|
243
|
+
case 'Grading view':
|
244
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
245
|
+
break;
|
246
|
+
};
|
247
|
+
});
|
248
|
+
|
249
|
+
beforeEach(() => {
|
250
|
+
switch (view) {
|
251
|
+
case 'Question preview':
|
252
|
+
shortTextResponsePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
253
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
254
|
+
break;
|
255
|
+
case 'Item preview':
|
256
|
+
shortTextResponsePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
257
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
258
|
+
break;
|
259
|
+
case 'Grading view':
|
260
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
261
|
+
break;
|
262
|
+
}
|
263
|
+
});
|
264
|
+
|
265
|
+
if (view === 'Question preview') {
|
266
|
+
after(() => {
|
267
|
+
shortTextResponsePage.steps.clickOnSaveQuestionButton();
|
268
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
269
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
270
|
+
});
|
271
|
+
};
|
272
|
+
|
273
|
+
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', () => {
|
274
|
+
if (view === 'Grading view') {
|
275
|
+
studentViewPage.steps.submitResponse();
|
276
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
277
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
278
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
279
|
+
};
|
280
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
281
|
+
shortTextResponsePage.steps.checkNonScoredScoringLabel();
|
282
|
+
shortTextResponsePage.steps.switchToGradingView();
|
283
|
+
};
|
284
|
+
utilities.verifyInnerText(shortTextResponsePage.previewTabCorrectAnswerLabel(), 'Correct answer:');
|
285
|
+
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Urbanization');
|
286
|
+
});
|
287
|
+
|
288
|
+
it('When the user attempts the question incorrectly, then non-scoring label should be displayed and on switching to "Grading" view, incorrect icon should be displayed beside the incorrect response, and correct answer should be displayed in the question preview', () => {
|
289
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Incorrect Answer');
|
290
|
+
if (view === 'Grading view') {
|
291
|
+
studentViewPage.steps.submitResponse();
|
292
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
293
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
294
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
295
|
+
};
|
296
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
297
|
+
shortTextResponsePage.steps.checkNonScoredScoringLabel();
|
298
|
+
shortTextResponsePage.steps.switchToGradingView();
|
299
|
+
};
|
300
|
+
shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
|
301
|
+
shortTextResponsePage.steps.verifyIncorrectIcon();
|
302
|
+
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Urbanization');
|
303
|
+
});
|
304
|
+
|
305
|
+
it('When the user attempts the question partially correct then non-scoring label should be displayed and on switching to "Grading" view, correct icon should be displayed beside the correct part of the response, incorrect icon should be displayed beside the incorrect part, and correct answer should be displayed in the question preview', () => {
|
306
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Urban');
|
307
|
+
if (view === 'Grading view') {
|
308
|
+
studentViewPage.steps.submitResponse();
|
309
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
310
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
311
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
312
|
+
};
|
313
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
314
|
+
shortTextResponsePage.steps.checkNonScoredScoringLabel();
|
315
|
+
shortTextResponsePage.steps.switchToGradingView();
|
316
|
+
};
|
317
|
+
shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
|
318
|
+
shortTextResponsePage.steps.verifyIncorrectIcon();
|
319
|
+
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Urbanization');
|
320
|
+
});
|
321
|
+
|
322
|
+
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 responses, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
323
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Urbanization');
|
324
|
+
if (view === 'Grading view') {
|
325
|
+
studentViewPage.steps.submitResponse();
|
326
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
327
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
328
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
329
|
+
};
|
330
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
331
|
+
shortTextResponsePage.steps.checkNonScoredScoringLabel();
|
332
|
+
shortTextResponsePage.steps.switchToGradingView();
|
333
|
+
};
|
334
|
+
shortTextResponsePage.steps.verifyCorrectAttemptBorder();
|
335
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
336
|
+
shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
|
337
|
+
});
|
338
|
+
});
|
339
|
+
});
|
340
|
+
|
155
341
|
if (!grepTags || !grepTags.includes('smoke')) {
|
156
342
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
157
343
|
abortEarlySetup();
|