itemengine-cypress-automation 1.0.389-graphAndCharts-04d27f6.0 → 1.0.390-IEI-6314-testScriptForTextEntryMathValidations-dcad527.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 +3 -3
- package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +3 -3
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +6 -6
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +6 -6
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +356 -0
- 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 +27 -27
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -37
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -37
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -37
- 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/allOrNothingScoringForAllViews.smoke.js +287 -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 -26
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -47
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -25
- 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/allOrNothingScoringForAllViews.smoke.js +247 -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/audioPlayerEditTabAddTranscriptRadioButton .js +2 -2
- 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/selectModeEditorBasic.js +4 -1
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -3
- package/cypress/e2e/ILC/CkEditorInsertImage/insertImageBasicFile.js +2 -0
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +8 -8
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
- package/cypress/e2e/ILC/CkEditorLink/linkPreview.js +2 -1
- 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 +3 -3
- 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/drawingResponseEditTabBasicSection.js +11 -3
- 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 +15 -16
- 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/editTabBasicSection.js +2 -2
- 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 +213 -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 +37 -4
- package/cypress/e2e/ILC/Graphing/specifyCorrectAnswerSection.js +28 -0
- 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 +26 -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 +3 -1
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +7 -6
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.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/allOrNothingScoringForAllViews.smoke.js +213 -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 +34 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +249 -0
- 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 +0 -1
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +266 -0
- 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 -4
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +268 -0
- 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 +4 -3
- 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 +4 -2
- 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 +9 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
- 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/blankResponseScoring.js +2 -2
- 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/allOrNothingBasicForAllViews.smoke.js +263 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +219 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +310 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +205 -1
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +263 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- 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/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.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/gradingViewPlanTabSection.js +334 -0
- package/cypress/e2e/ILC/ThinkSphere/gradingViewReviewTabSection.js +140 -0
- package/cypress/e2e/ILC/ThinkSphere/gradingViewSolveTabSection.js +65 -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 +102 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabSolveSection.js +41 -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 +146 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewSolveSection.js +53 -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/allOrNothingForAllViews.smoke.js +248 -0
- 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 +25 -0
- 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 +29 -2
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
- package/cypress/pages/components/chartsCommonComponent.js +21 -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 +4 -4
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +31 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +1 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
- package/cypress/pages/components/imageCanvasComponent.js +11 -5
- package/cypress/pages/components/playbackControlsBaseComponent.js +6 -3
- 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 +9 -2
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -8
- package/cypress/pages/gradingGridViewPage.js +64 -0
- package/cypress/pages/graphingPage.js +28 -5
- package/cypress/pages/gridFillPage.js +24 -9
- package/cypress/pages/imageHighlightPage.js +115 -15
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/listOrderingPage.js +46 -2
- package/cypress/pages/matchingPage.js +29 -10
- package/cypress/pages/numberLineLabelPage.js +26 -0
- package/cypress/pages/numberLinePage.js +15 -0
- package/cypress/pages/singleSelectionPage.js +30 -1
- package/cypress/pages/textEntryMathPage.js +29 -10
- package/cypress/pages/textSelectionPage.js +2 -2
- package/cypress/pages/thinkSpherePage.js +1118 -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 +1 -1
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -1,9 +1,12 @@
|
|
1
|
-
import { audioPlayerPage, dialogBoxBase, selectQuestionResourceToolPage } from "../../../pages";
|
1
|
+
import { audioPlayerPage, dialogBoxBase, selectQuestionResourceToolPage, itemPreviewPage } from "../../../pages";
|
2
|
+
import { browseItemsPage } from "../../../pages/components";
|
2
3
|
import utilities from "../../../support/helpers/utilities";
|
3
4
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
5
|
import constants from "../../../fixtures/constants";
|
5
6
|
const css = Cypress.env('css');
|
6
7
|
|
8
|
+
var itemReferenceID = "";
|
9
|
+
|
7
10
|
describe('Create question page - Audio player: Header section and saving resource tool', () => {
|
8
11
|
before(() => {
|
9
12
|
cy.loginAs('admin');
|
@@ -99,7 +102,7 @@ describe('Create question page - Audio player: Header section and saving resourc
|
|
99
102
|
});
|
100
103
|
|
101
104
|
describe('Validation error messages', () => {
|
102
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
105
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload a file']);
|
103
106
|
|
104
107
|
it('Validation error message(s) should be displayed below required input field(s)', () => {
|
105
108
|
utilities.verifyElementVisibilityState(audioPlayerPage.errorMessage(), 'visible');
|
@@ -122,4 +125,89 @@ describe('Create question page - Audio player: Header section and saving resourc
|
|
122
125
|
audioPlayerPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
123
126
|
});
|
124
127
|
});
|
128
|
+
|
129
|
+
describe('Saving a question with incomplete authoring', () => {
|
130
|
+
abortEarlySetup();
|
131
|
+
before(() => {
|
132
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
133
|
+
});
|
134
|
+
|
135
|
+
it('User should be able to save the resource with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save button is clicked', () => {
|
136
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please add a source URL']);
|
137
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
138
|
+
});
|
139
|
+
audioPlayerPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
140
|
+
});
|
141
|
+
|
142
|
+
describe('User should be able to edit incomplete authored resource', () => {
|
143
|
+
abortEarlySetup();
|
144
|
+
before(() => {
|
145
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
146
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
147
|
+
audioPlayerPage.steps.editItem();
|
148
|
+
});
|
149
|
+
|
150
|
+
it('Warning icons should be displayed on the required input fields', () => {
|
151
|
+
audioPlayerPage.steps.verifyWarningIconOnRequiredFields([
|
152
|
+
'Please add a source URL',
|
153
|
+
]);
|
154
|
+
});
|
155
|
+
|
156
|
+
it('When required input fields are filled then warning icons should disappear', () => {
|
157
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample.mp3');
|
158
|
+
audioPlayerPage.steps.verifyErrorMessageIsNotDisplayed();
|
159
|
+
});
|
160
|
+
|
161
|
+
it('Clicking on Save button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
162
|
+
audioPlayerPage.steps.saveAQuestionAndVerifySnackbar();
|
163
|
+
});
|
164
|
+
|
165
|
+
it('Warning icon should not be visible', () => {
|
166
|
+
audioPlayerPage.steps.verifyWarningIconNotExist();
|
167
|
+
});
|
168
|
+
});
|
169
|
+
|
170
|
+
describe('User should be able to edit incomplete authored resource when add audio URL is selected', () => {
|
171
|
+
abortEarlySetup();
|
172
|
+
before(() => {
|
173
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
174
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
175
|
+
audioPlayerPage.steps.editItem();
|
176
|
+
});
|
177
|
+
|
178
|
+
it('Warning icons should be displayed on the required input fields', () => {
|
179
|
+
audioPlayerPage.steps.selectAddAudioURLRadioButton();
|
180
|
+
audioPlayerPage.steps.verifyWarningIconOnRequiredFields([
|
181
|
+
'Please add a source URL',
|
182
|
+
]);
|
183
|
+
});
|
184
|
+
|
185
|
+
it('When required input fields are filled then warning icons should disappear', () => {
|
186
|
+
audioPlayerPage.steps.enterTextInSourceURLInputField(constants.sampleMp3Link);
|
187
|
+
audioPlayerPage.steps.verifyErrorMessageIsNotDisplayed();
|
188
|
+
});
|
189
|
+
|
190
|
+
it('Clicking on Save button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
191
|
+
audioPlayerPage.steps.saveAQuestionAndVerifySnackbar();
|
192
|
+
});
|
193
|
+
|
194
|
+
it('Warning icon should not be visible', () => {
|
195
|
+
audioPlayerPage.steps.verifyWarningIconNotExist();
|
196
|
+
});
|
197
|
+
});
|
198
|
+
|
199
|
+
describe('Save as you go - Browse item page contents', () => {
|
200
|
+
abortEarlySetup();
|
201
|
+
before(() => {
|
202
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
203
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
204
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
205
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
206
|
+
browseItemsPage.steps.navigateToBrowseItemsPage();
|
207
|
+
});
|
208
|
+
|
209
|
+
it('When user saves an incompletely authored resource then a warning icon should be visible in browse items page', () => {
|
210
|
+
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
211
|
+
});
|
212
|
+
});
|
125
213
|
});
|
@@ -2,6 +2,7 @@ import abortEarlySetup from "../../../support/helpers/abortEarly";
|
|
2
2
|
import { uploadResponsePage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
import { supportedFileType } from "../../../fixtures/uploadResponseFileType";
|
5
|
+
import { commonComponents } from "../../../pages/components";
|
5
6
|
const css = Cypress.env('css');
|
6
7
|
|
7
8
|
const fileSizeLimitOptions = ['5', '10', '15', '20', '100'];
|
@@ -373,4 +374,37 @@ describe('Create question page - Upload Response: Question Instructions, Support
|
|
373
374
|
|
374
375
|
uploadResponsePage.tests.verifyWarningMessageDisappear();
|
375
376
|
});
|
377
|
+
|
378
|
+
describe('User should be able to edit incomplete authored question', () => {
|
379
|
+
abortEarlySetup();
|
380
|
+
before(() => {
|
381
|
+
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
382
|
+
cy.barsPreLoaderWait();
|
383
|
+
uploadResponsePage.steps.clickOnSupportedFilesTypesAccordion();
|
384
|
+
uploadResponsePage.steps.uncheckDefaultSelectedFileTypes();
|
385
|
+
uploadResponsePage.steps.saveAQuestionWithIncompleteAuthoring();
|
386
|
+
uploadResponsePage.steps.editItem();
|
387
|
+
});
|
388
|
+
|
389
|
+
it('Warning icons should be displayed on the required fields', () => {
|
390
|
+
uploadResponsePage.steps.verifyWarningIconOnRequiredFields(['Please select a file type']);
|
391
|
+
});
|
392
|
+
|
393
|
+
it('When file type is selected then warning icons should disappear', () => {
|
394
|
+
uploadResponsePage.steps.clickOnSupportedFilesTypesAccordion();
|
395
|
+
uploadResponsePage.steps.selectSupportedFileTypeOption(0);
|
396
|
+
uploadResponsePage.supportedFileTypesAccordionWrapper()
|
397
|
+
.within(() => {
|
398
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'notExist');
|
399
|
+
});
|
400
|
+
});
|
401
|
+
|
402
|
+
it('Clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
403
|
+
uploadResponsePage.steps.saveAQuestionAndVerifySnackbar();
|
404
|
+
});
|
405
|
+
|
406
|
+
it('Warning icon should not be visible', () => {
|
407
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.warningIcon(), 'notExist');
|
408
|
+
});
|
409
|
+
});
|
376
410
|
});
|
@@ -1,6 +1,9 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { uploadResponsePage, dialogBoxBase } from "../../../pages";
|
2
|
+
import { uploadResponsePage, dialogBoxBase, itemPreviewPage } from "../../../pages";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
|
+
import { browseItemsPage } from "../../../pages/components";
|
5
|
+
var itemReferenceID = ""
|
6
|
+
|
4
7
|
|
5
8
|
describe('Create question page - Upload Response: Header section and Saving question', () => {
|
6
9
|
before(() => {
|
@@ -49,4 +52,38 @@ describe('Create question page - Upload Response: Header section and Saving ques
|
|
49
52
|
|
50
53
|
uploadResponsePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
51
54
|
});
|
55
|
+
|
56
|
+
describe('Saving a question with incomplete authoring', () => {
|
57
|
+
abortEarlySetup();
|
58
|
+
before(() => {
|
59
|
+
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
60
|
+
cy.barsPreLoaderWait();
|
61
|
+
uploadResponsePage.steps.clickOnSupportedFilesTypesAccordion();
|
62
|
+
uploadResponsePage.steps.uncheckDefaultSelectedFileTypes();
|
63
|
+
});
|
64
|
+
|
65
|
+
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', () => {
|
66
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please select a file type']);
|
67
|
+
uploadResponsePage.steps.saveAQuestionWithIncompleteAuthoring();
|
68
|
+
});
|
69
|
+
uploadResponsePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
70
|
+
});
|
71
|
+
|
72
|
+
describe('Save as you go - Browse item page contents', () => {
|
73
|
+
abortEarlySetup();
|
74
|
+
before(() => {
|
75
|
+
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
76
|
+
cy.barsPreLoaderWait();
|
77
|
+
uploadResponsePage.steps.clickOnSupportedFilesTypesAccordion();
|
78
|
+
uploadResponsePage.steps.uncheckDefaultSelectedFileTypes();
|
79
|
+
uploadResponsePage.steps.saveAQuestionWithIncompleteAuthoring();
|
80
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
81
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
82
|
+
browseItemsPage.steps.navigateToBrowseItemsPage();
|
83
|
+
});
|
84
|
+
|
85
|
+
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
86
|
+
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
87
|
+
});
|
88
|
+
});
|
52
89
|
});
|
@@ -111,51 +111,88 @@ describe('Create question page - Upload Response: Preview', () => {
|
|
111
111
|
});
|
112
112
|
});
|
113
113
|
|
114
|
-
|
115
|
-
describe.skip('Allow students to capture photos preview', () => {
|
114
|
+
describe('Allow students to capture photos preview', () => {
|
116
115
|
abortEarlySetup();
|
117
116
|
before(() => {
|
117
|
+
cy.mockCamera();
|
118
118
|
uploadResponsePage.steps.navigateToCreateQuestion('upload response');
|
119
119
|
uploadResponsePage.steps.switchToPreviewTab();
|
120
120
|
});
|
121
121
|
|
122
122
|
it('Camera icon should be displayed before link text \'capture an image\'', () => {
|
123
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.cameraIcon(), 'visible');
|
124
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.captureAnImageLabel(), 'visible');
|
125
|
+
utilities.verifyInnerText(uploadResponsePage.captureAnImageLabel(), 'capture an image');
|
123
126
|
});
|
124
127
|
|
125
128
|
it('When the user clicks on the link text \'capture an image\' a \'Capture image\' popup should open', () => {
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
it('CSS of \'Capture image\' popup', () => {
|
130
|
-
|
129
|
+
uploadResponsePage.steps.captureImage();
|
130
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.dialogBox(), 'visible');
|
131
131
|
});
|
132
132
|
|
133
133
|
it('On \'Capture image\' popup following should be displayed - \'Capture image\' title text, Camera preview, Capture and Cancel buttons', () => {
|
134
|
+
uploadResponsePage.steps.verifyCaptureImagePopup();
|
135
|
+
});
|
134
136
|
|
137
|
+
it('CSS of \'Capture image\' popup', { tags: 'css' }, () => {
|
138
|
+
utilities.verifyCSS(uploadResponsePage.dialogBoxTitle(), {
|
139
|
+
'color': css.color.secondaryBtn,
|
140
|
+
'font-size': css.fontSize.heading,
|
141
|
+
'font-weight': css.fontWeight.semibold
|
142
|
+
});
|
143
|
+
utilities.verifyCSS(uploadResponsePage.cancelButton(), {
|
144
|
+
'color': css.color.secondaryBtn,
|
145
|
+
'background-color': css.color.transparent,
|
146
|
+
'font-size': css.fontSize.default,
|
147
|
+
'font-weight': css.fontWeight.semibold
|
148
|
+
});
|
149
|
+
utilities.verifyCSS(uploadResponsePage.acceptButton(), {
|
150
|
+
'color': css.color.primaryBtn,
|
151
|
+
'background-color': css.color.activeButtons,
|
152
|
+
'font-size': css.fontSize.default,
|
153
|
+
'font-weight': css.fontWeight.semibold
|
154
|
+
});
|
135
155
|
});
|
136
156
|
|
137
157
|
it('When the user clicks on \'Cancel\' button the \'Capture image\' popup should close', () => {
|
138
|
-
|
158
|
+
uploadResponsePage.steps.clickCancelButtonInPopup();
|
159
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.dialogBox(), 'notExist');
|
139
160
|
});
|
140
161
|
|
141
162
|
it('When the user clicks on \'Capture\' button, then an image should get captured and a preview of the captured image should be displayed in place of the camera preview and also two buttons \'Retake\' and \'Save\' should be displayed in the popup and \'Cancel\' and \'Capture\' buttons should not be displayed in the popup', () => {
|
142
|
-
|
163
|
+
uploadResponsePage.steps.captureImage();
|
164
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
165
|
+
utilities.verifyInnerText(uploadResponsePage.cancelButton(), 'Retake');
|
166
|
+
utilities.verifyInnerText(uploadResponsePage.acceptButton(), 'Save');
|
143
167
|
});
|
144
168
|
|
145
169
|
it('When the user clicks on \'Save\' button, it should upload the captured image in the response', () => {
|
146
|
-
|
170
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
171
|
+
utilities.verifyElementVisibilityState(uploadResponsePage.uploadingProgressBar(), 'notExist');
|
147
172
|
});
|
148
173
|
|
149
174
|
it('The captured image should be saved in .jpeg format and the 1st image should be saved with the name \'Photo.jpeg\'', () => {
|
150
|
-
|
175
|
+
uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'Photo.jpeg');
|
151
176
|
});
|
152
177
|
|
153
178
|
it('If the user uploads another image the name should be \'Photo-1.jpeg\' and so on', () => {
|
154
|
-
|
155
|
-
|
179
|
+
uploadResponsePage.steps.captureImage();
|
180
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
181
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
182
|
+
uploadResponsePage.steps.uploadedFileContentsPreviewTab(1, 'Photo-1.jpeg');
|
183
|
+
uploadResponsePage.steps.captureImage();
|
184
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
185
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
186
|
+
uploadResponsePage.steps.uploadedFileContentsPreviewTab(2, 'Photo-2.jpeg');
|
156
187
|
});
|
157
188
|
|
158
189
|
it('When the user clicks on \'Retake\' button, it should take the user back to the capture an image flow where the user should be able to capture another image', () => {
|
190
|
+
uploadResponsePage.steps.captureImage();
|
191
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
192
|
+
uploadResponsePage.steps.clickCancelButtonInPopup();
|
193
|
+
uploadResponsePage.steps.verifyCaptureImagePopup();
|
194
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
195
|
+
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
159
196
|
});
|
160
197
|
});
|
161
198
|
});
|
@@ -159,31 +159,21 @@ describe('Create item page - Video response: Question instructions, Maximum reco
|
|
159
159
|
});
|
160
160
|
});
|
161
161
|
|
162
|
-
it('When the user focuses in and out of the empty \'Maximum recording duration\' input field,
|
162
|
+
it('When the user focuses in and out of the empty \'Maximum recording duration\' input field, Validation error should not be displayed below the \'Maximum recording duration\' input field and it should take up default value i.e. 300', () => {
|
163
163
|
videoResponsePage.steps.clearMaximumRecordingDurationInputField();
|
164
|
-
|
165
|
-
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), '
|
164
|
+
videoResponsePage.steps.verifyMaximumRecordingDuration(300);
|
165
|
+
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'notExist');
|
166
166
|
});
|
167
167
|
|
168
|
-
videoResponsePage.tests.verifyErrorMessageCSSAndA11y();
|
169
|
-
|
170
168
|
it('When the user updates the \'Maximum recording duration\' value, then the validation message \'Error: Maximum recording duration is required.\' should disappear.', () => {
|
171
169
|
videoResponsePage.steps.setMaximumRecordingDuration(1000);
|
172
170
|
videoResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
173
171
|
});
|
174
172
|
|
175
|
-
it('When the user has set \'Maximum recording duration\' to \'0\' (zero),
|
173
|
+
it('When the user has set \'Maximum recording duration\' to \'0\' (zero), error message should not be displayed and it should take default value i.e 300', () => {
|
176
174
|
videoResponsePage.steps.setMaximumRecordingDuration(0);
|
177
|
-
videoResponsePage.steps.verifyMaximumRecordingDuration(
|
178
|
-
utilities.
|
179
|
-
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'visible');
|
180
|
-
});
|
181
|
-
|
182
|
-
videoResponsePage.tests.verifyErrorMessageCSSAndA11y();
|
183
|
-
|
184
|
-
it('When the user updates the \'Maximum recording duration\' value, then the validation message \'Error: Value must be greater than 0 secs.\' should disappear', () => {
|
185
|
-
videoResponsePage.steps.setMaximumRecordingDuration(1000);
|
186
|
-
videoResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
175
|
+
videoResponsePage.steps.verifyMaximumRecordingDuration(300);
|
176
|
+
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'notExist');
|
187
177
|
});
|
188
178
|
|
189
179
|
it('When user adds decimal values or alphanumeric values then only numeric values should be displayed in the maximum recording length input field', () => {
|
@@ -204,32 +194,27 @@ describe('Create item page - Video response: Question instructions, Maximum reco
|
|
204
194
|
videoResponsePage.steps.verifyMaximumRecordingDuration(5);
|
205
195
|
});
|
206
196
|
|
207
|
-
it('When the user focuses in and out of the empty \'Maximum recording duration\' input field,
|
197
|
+
it('When the user focuses in and out of the empty \'Maximum recording duration\' input field, validation error should not be displayed below the \'Maximum recording duration\' input field', () => {
|
208
198
|
videoResponsePage.steps.clearMaximumRecordingDurationInputField();
|
209
199
|
videoResponsePage.steps.toggleMaximumRecordingDurationInputField('Secs');
|
210
200
|
videoResponsePage.steps.clearMaximumRecordingDurationInputField();
|
211
|
-
utilities.
|
212
|
-
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'visible');
|
201
|
+
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'notExist');
|
213
202
|
});
|
214
203
|
|
215
|
-
|
216
|
-
|
217
|
-
it('When the user updates the \'Maximum recording duration\' value, then the validation message \'Error: Maximum recording duration is required.\' should disappear.', () => {
|
204
|
+
it('When the user updates the \'Maximum recording duration\' value, then the validation message should not be displayed', () => {
|
218
205
|
videoResponsePage.steps.setMaximumRecordingDuration(5);
|
219
206
|
videoResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
220
207
|
});
|
221
208
|
|
222
|
-
it('When the user has set \'Maximum recording duration\' to \'0\' (zero), a validation message
|
223
|
-
videoResponsePage.steps.
|
224
|
-
videoResponsePage.steps.verifyMaximumRecordingDuration(
|
209
|
+
it('When the user has set \'Maximum recording duration\' to \'0\' (zero), a validation message should not be displayed and it should take default value i.e. 300', () => {
|
210
|
+
videoResponsePage.steps.setMaximumRecordingDuration(0);
|
211
|
+
videoResponsePage.steps.verifyMaximumRecordingDuration(300);
|
225
212
|
// Uncomment once https://redmine.zeuslearning.com/issues/583618 is resolved
|
226
213
|
// utilities.verifyInnerText(videoResponsePage.errorMessage(), 'Error: Value must be greater than 0 mins.');
|
227
|
-
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), '
|
214
|
+
utilities.verifyElementVisibilityState(videoResponsePage.errorMessage(), 'notExist');
|
228
215
|
});
|
229
216
|
|
230
|
-
|
231
|
-
|
232
|
-
it('When the user updates the \'Maximum recording duration\' value, then the validation message \'Error: Value must be greater than 0 mins.\' should disappear', () => {
|
217
|
+
it('When the user updates the \'Maximum recording duration\' value, then the validation message should not be displayed', () => {
|
233
218
|
videoResponsePage.steps.setMaximumRecordingDuration(5);
|
234
219
|
videoResponsePage.steps.verifyErrorMessageIsNotDisplayed();
|
235
220
|
videoResponsePage.steps.toggleMaximumRecordingDurationInputField('Mins');
|
@@ -358,6 +358,254 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
358
358
|
});
|
359
359
|
});
|
360
360
|
|
361
|
+
views.forEach((view) => {
|
362
|
+
describe(`${view}: Charts - Dot: Manually scored`, { tags: 'smoke' }, () => {
|
363
|
+
abortEarlySetup();
|
364
|
+
before(() => {
|
365
|
+
switch (view) {
|
366
|
+
case 'Question preview':
|
367
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
368
|
+
cy.barsPreLoaderWait();
|
369
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
370
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
371
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
372
|
+
chartsDotPlotPage.steps.verifyTextInMinInputField(1);
|
373
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
374
|
+
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
375
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
376
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
377
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
378
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
379
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
380
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
381
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
382
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
383
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
384
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
385
|
+
chartsDotPlotPage.steps.allotPointsForManualScoring(20);
|
386
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
387
|
+
break;
|
388
|
+
case 'Item preview':
|
389
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
390
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
391
|
+
break;
|
392
|
+
case 'Grading view':
|
393
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
394
|
+
cy.wait(1000);
|
395
|
+
break;
|
396
|
+
}
|
397
|
+
});
|
398
|
+
|
399
|
+
beforeEach(() => {
|
400
|
+
switch (view) {
|
401
|
+
case 'Question preview':
|
402
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
403
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
404
|
+
break;
|
405
|
+
case 'Item preview':
|
406
|
+
itemPreviewPage.steps.switchToStudentView();
|
407
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
408
|
+
break;
|
409
|
+
case 'Grading view':
|
410
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
411
|
+
break;
|
412
|
+
}
|
413
|
+
});
|
414
|
+
|
415
|
+
if (view === 'Question preview') {
|
416
|
+
after(() => {
|
417
|
+
chartsDotPlotPage.steps.clickOnSaveQuestionButton();
|
418
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
419
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
420
|
+
});
|
421
|
+
}
|
422
|
+
|
423
|
+
it('Question instructions should be visible', () => {
|
424
|
+
chartsDotPlotPage.steps.verifyQuestionInstructionsTextPreviewTab('Dot plot');
|
425
|
+
chartsDotPlotPage.steps.verifyVisibityOfQuestionInstructionsText();
|
426
|
+
});
|
427
|
+
|
428
|
+
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', () => {
|
429
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
430
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
431
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
432
|
+
if (view === 'Grading view') {
|
433
|
+
studentViewPage.steps.submitResponse();
|
434
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
435
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
436
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
437
|
+
}
|
438
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
439
|
+
chartsDotPlotPage.steps.checkManuallyScoredScoringLabel();
|
440
|
+
}
|
441
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
442
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
443
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
444
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectIconIsNotDisplayedInDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
445
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
446
|
+
});
|
447
|
+
});
|
448
|
+
});
|
449
|
+
|
450
|
+
views.forEach((view) => {
|
451
|
+
describe(`${view}: Charts - Dot: Non scored`, { tags: 'smoke' }, () => {
|
452
|
+
abortEarlySetup();
|
453
|
+
before(() => {
|
454
|
+
switch (view) {
|
455
|
+
case 'Question preview':
|
456
|
+
chartsDotPlotPage.steps.navigateToCreateQuestion('charts');
|
457
|
+
cy.barsPreLoaderWait();
|
458
|
+
chartsDotPlotPage.steps.addTextInQuestionInstructionsInputField('Dot plot');
|
459
|
+
chartsDotPlotPage.steps.selectDotPlot();
|
460
|
+
chartsDotPlotPage.steps.enterTextInMinInputField(1);
|
461
|
+
chartsDotPlotPage.steps.verifyTextInMinInputField(1);
|
462
|
+
chartsDotPlotPage.steps.enterTextInMaxInputField(6);
|
463
|
+
chartsDotPlotPage.steps.verifyTextInMaxInputField(6);
|
464
|
+
chartsDotPlotPage.steps.enterTextInIntervalInputField(1);
|
465
|
+
chartsDotPlotPage.steps.setGraphTitle('Five-day observation');
|
466
|
+
chartsDotPlotPage.steps.setXAxisLabel('Days');
|
467
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 1, min: 1, interval: 1, defaultDots: 0 });
|
468
|
+
chartsDotPlotPage.steps.lockDotColumn({ point: 1, min: 1, interval: 1 });
|
469
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
470
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(1, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
471
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSelectChartTypeSection(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
472
|
+
chartsDotPlotPage.steps.expandScoringTypeDropdown();
|
473
|
+
chartsDotPlotPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
474
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 2, min: 1, interval: 1, defaultDots: 0 });
|
475
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(3, { point: 3, min: 1, interval: 1, defaultDots: 0 });
|
476
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(4, { point: 4, min: 1, interval: 1, defaultDots: 0 });
|
477
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnSpecifyCorrectAnswer(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
478
|
+
chartsDotPlotPage.steps.switchToPreviewTab();
|
479
|
+
break;
|
480
|
+
case 'Item preview':
|
481
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
482
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
483
|
+
break;
|
484
|
+
case 'Grading view':
|
485
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
486
|
+
cy.wait(1000);
|
487
|
+
break;
|
488
|
+
}
|
489
|
+
});
|
490
|
+
|
491
|
+
beforeEach(() => {
|
492
|
+
switch (view) {
|
493
|
+
case 'Question preview':
|
494
|
+
chartsDotPlotPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
495
|
+
chartsDotPlotPage.steps.resetQuestionPreview();
|
496
|
+
break;
|
497
|
+
case 'Item preview':
|
498
|
+
itemPreviewPage.steps.switchToStudentView();
|
499
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
500
|
+
break;
|
501
|
+
case 'Grading view':
|
502
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
503
|
+
break;
|
504
|
+
}
|
505
|
+
});
|
506
|
+
|
507
|
+
if (view === 'Question preview') {
|
508
|
+
after(() => {
|
509
|
+
chartsDotPlotPage.steps.clickOnSaveQuestionButton();
|
510
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
511
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
512
|
+
});
|
513
|
+
}
|
514
|
+
|
515
|
+
//Need to remove skip once https://redmine.zeuslearning.com/issues/577716 is resolved
|
516
|
+
it.skip('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', () => {
|
517
|
+
if (view === 'Grading view') {
|
518
|
+
studentViewPage.steps.submitResponse();
|
519
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
520
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
521
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
522
|
+
};
|
523
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
524
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
525
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
526
|
+
};
|
527
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
528
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
529
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
530
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
531
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
532
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
533
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
534
|
+
});
|
535
|
+
|
536
|
+
it('When the user attempts the question incorrectly, non-scoring label should be displayed and on switching to grading view, incorrect icons should be displayed and the correct answer should be displayed in the correct answer section', () => {
|
537
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 4, min: 1, interval: 1 });
|
538
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 6, min: 1, interval: 1, defaultDots: 0 });
|
539
|
+
if (view === 'Grading view') {
|
540
|
+
studentViewPage.steps.submitResponse();
|
541
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
542
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
543
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
544
|
+
};
|
545
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
546
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
547
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
548
|
+
};
|
549
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
550
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
551
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
552
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
553
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
554
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
555
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
556
|
+
});
|
557
|
+
|
558
|
+
it('When the user attempts the question partially correct, non-scoring label should be displayed, correct icons should be displayed for correct columns, incorrect icons for incorrect columns, and the correct answer section should be displayed', () => {
|
559
|
+
if (view === 'Grading view') {
|
560
|
+
studentViewPage.steps.clearResponses();
|
561
|
+
}
|
562
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
563
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 4, min: 1, interval: 1 });
|
564
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
565
|
+
if (view === 'Grading view') {
|
566
|
+
studentViewPage.steps.submitResponse();
|
567
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
568
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
569
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
570
|
+
} else {
|
571
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
572
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
573
|
+
}
|
574
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 2, min: 1, interval: 1 });
|
575
|
+
chartsDotPlotPage.steps.verifyIncorrectDotColumnPreviewTab({ point: 3, min: 1, interval: 1 });
|
576
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnPreviewTab({ point: 5, min: 1, interval: 1, defaultDots: 0 });
|
577
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
578
|
+
chartsDotPlotPage.steps.verifyLockedDotColumnCorrectAnswerSection({ point: 1, min: 1, interval: 1 });
|
579
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 2, min: 1, interval: 1 });
|
580
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 3, min: 1, interval: 1 });
|
581
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 4, min: 1, interval: 1 });
|
582
|
+
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
583
|
+
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
584
|
+
});
|
585
|
+
|
586
|
+
it('When the user attempts the question correctly, non-scoring label should be displayed, correct icons should be displayed, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
587
|
+
if (view === 'Grading view') {
|
588
|
+
studentViewPage.steps.clearResponses();
|
589
|
+
}
|
590
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(2, { point: 2, min: 1, interval: 1 });
|
591
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(3, { point: 3, min: 1, interval: 1 });
|
592
|
+
chartsDotPlotPage.steps.plotDotsInDotColumnPreviewTab(5, { point: 5, min: 1, interval: 1, defaultDots: 0 });
|
593
|
+
if (view === 'Grading view') {
|
594
|
+
studentViewPage.steps.submitResponse();
|
595
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
596
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
597
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
598
|
+
};
|
599
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
600
|
+
chartsDotPlotPage.steps.checkNonScoredScoringLabel();
|
601
|
+
chartsDotPlotPage.steps.switchToGradingView();
|
602
|
+
};
|
603
|
+
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
604
|
+
chartsDotPlotPage.steps.verifyCorrectAnswerSectionNotExists();
|
605
|
+
});
|
606
|
+
});
|
607
|
+
});
|
608
|
+
|
361
609
|
if (!grepTags || !grepTags.includes('smoke')) {
|
362
610
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
363
611
|
abortEarlySetup();
|