itemengine-cypress-automation 1.0.375 → 1.0.376-resourceAndTools-fbbcf92.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -0
- package/cypress/e2e/GradingGridView/gradingGridView.js +156 -0
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -0
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +39 -7
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +26 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +39 -38
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +31 -30
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +35 -34
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +92 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +220 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +24 -23
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +21 -20
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +48 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +249 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
- package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +94 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -4
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
- package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +63 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +116 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +1 -3
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -2
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +3 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
- package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +5 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/GridFill/headerSection.js +1 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +237 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +7 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +10 -14
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +215 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +36 -9
- package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +2 -0
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +7 -23
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +309 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +36 -1
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +38 -41
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -5
- package/cypress/e2e/ILC/Matching/draggableOptions.js +7 -0
- package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +38 -12
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +2 -0
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +6 -6
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +186 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +35 -51
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +54 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +53 -2
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +91 -9
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +12 -12
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +35 -2
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +27 -28
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +24 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +39 -37
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +22 -23
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +31 -31
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +18 -19
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +96 -0
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/saveResponseScores.js +2 -2
- package/cypress/pages/audioPlayerPage.js +47 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +45 -0
- package/cypress/pages/chartsDotPlotPage.js +25 -0
- package/cypress/pages/chartsLinePage.js +28 -3
- package/cypress/pages/components/additionalSettingsPanel.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
- package/cypress/pages/components/browseItemsPage.js +109 -2
- package/cypress/pages/components/chartsCommonComponent.js +6 -2
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +5 -4
- package/cypress/pages/components/ckEditorInsertImageComponent.js +2 -2
- package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
- package/cypress/pages/components/colorPopupComponent.js +6 -0
- package/cypress/pages/components/commonComponents.js +4 -0
- package/cypress/pages/components/createQuestionBasePage.js +14 -1
- package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
- package/cypress/pages/components/editCategoryFlyout.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +28 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
- package/cypress/pages/components/imageCanvasComponent.js +4 -4
- package/cypress/pages/components/questionInstructionsComponent.js +2 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +7 -1
- package/cypress/pages/contentBlocksPage.js +2 -0
- package/cypress/pages/desmos3DGraphingPage.js +149 -4
- package/cypress/pages/desmosGeometryPage.js +184 -4
- package/cypress/pages/drawingResponsePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -4
- package/cypress/pages/gradingGridViewPage.js +64 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +15 -6
- package/cypress/pages/imageHighlightPage.js +32 -0
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/listOrderingPage.js +40 -1
- package/cypress/pages/matchingPage.js +26 -7
- package/cypress/pages/numberLineLabelPage.js +31 -8
- package/cypress/pages/numberLinePage.js +19 -7
- package/cypress/pages/singleSelectionPage.js +30 -1
- package/cypress/pages/textEntryMathPage.js +24 -1
- package/cypress/pages/thinkSpherePage.js +674 -48
- package/cypress/pages/uploadResponsePage.js +17 -1
- package/cypress/pages/videoResponsePage.js +3 -0
- package/cypress/support/commands.js +9 -0
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +14 -1
- package/package.json +3 -3
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -1349,6 +1349,21 @@ const steps = {
|
|
1349
1349
|
});
|
1350
1350
|
},
|
1351
1351
|
|
1352
|
+
/**
|
1353
|
+
* @param {number} index index of highlight region
|
1354
|
+
* @param {string} colorWithOpacity color to be checked in rgba format
|
1355
|
+
* @description this function verifiies the border color of highlight regions in specify correct answer section.
|
1356
|
+
*/
|
1357
|
+
verifyEditedBorderOpacityInSpecifyCorrectAnswerSection: (index, colorWithOpacity) => {
|
1358
|
+
imageHighlightPage.specifyCorrectAnswerSectionHighlight()
|
1359
|
+
.eq(index)
|
1360
|
+
.within(() => {
|
1361
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
|
1362
|
+
'stroke': colorWithOpacity
|
1363
|
+
});
|
1364
|
+
});
|
1365
|
+
},
|
1366
|
+
|
1352
1367
|
/**
|
1353
1368
|
* @param {number} index index of highlight region
|
1354
1369
|
* @param {string} color color to be checked in rgb/rgba format
|
@@ -1366,6 +1381,23 @@ const steps = {
|
|
1366
1381
|
});
|
1367
1382
|
});
|
1368
1383
|
},
|
1384
|
+
/**
|
1385
|
+
* @param {number} index index of highlight region
|
1386
|
+
* @param {string} colorWithOpacity color to be checked in rgba format
|
1387
|
+
* @description this function verifies the border color of highlight regions in preview tab.
|
1388
|
+
*/
|
1389
|
+
verifyEditedBorderOpacityInPreviewtabSection: (index, colorWithOpacity) => {
|
1390
|
+
imageHighlightPage.previewTabQuestionWrapper()
|
1391
|
+
.within(() => {
|
1392
|
+
imageHighlightPage.previewSectionHighlight()
|
1393
|
+
.eq(index)
|
1394
|
+
.within(() => {
|
1395
|
+
utilities.verifyCSS(imageHighlightPage.specifyCorrectAnswerSectionHighlightPolygon(), {
|
1396
|
+
'stroke': colorWithOpacity
|
1397
|
+
});
|
1398
|
+
});
|
1399
|
+
});
|
1400
|
+
},
|
1369
1401
|
|
1370
1402
|
verifyBorderStyleButtonsVisible: () => {
|
1371
1403
|
utilities.verifyElementVisibilityState(imageHighlightPage.popupBorderStyleButtons().eq(0), 'visible');
|
package/cypress/pages/index.js
CHANGED
@@ -40,6 +40,7 @@ const selectors = {
|
|
40
40
|
questionDropdownBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__DroppableDiv"]'),
|
41
41
|
//grading view and correct answer view
|
42
42
|
optionGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionTextWrapper"]'),
|
43
|
+
correctIncorrectStatusMessageText: () => cy.get('[class*="AnswerStatusText"]'),
|
43
44
|
optionWrapperGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionsWrapper"]'),
|
44
45
|
//Orientation and layout
|
45
46
|
orderingLayoutLabel: () => cy.get('.list-ordering-order-layout .options-label'),
|
@@ -105,6 +106,7 @@ const selectors = {
|
|
105
106
|
optionOrientationSeparateList: () => cy.get('[class*="ClozeWithDragAndDropstyles__DraggableItemsGrid"]'),
|
106
107
|
specifyCorrectAnswerSectionMyListLabel: () => cy.get('[class*="ReorderAsSeparatestyles__TitleContainer"]'),
|
107
108
|
outerBorderPreviewSeparateList: () => cy.get('[class*="ReorderAsSeparatestyles__ReorderSeparateWrapper"]'),
|
109
|
+
emptyDropzoneList: () => cy.get('[class*="ClozeWithDragAndDropstyles__PlaceHolderDiv"]:not(:has(*))'),
|
108
110
|
|
109
111
|
//Style and layout
|
110
112
|
optionsLabel: () => cy.get('.draggable-options-label'),
|
@@ -1488,6 +1490,14 @@ const steps = {
|
|
1488
1490
|
utilities.verifyInnerText(utilities.getNthElement(listOrderingPage.dropzoneSeperateList().find('[class*="MultipleDroppedItemstyles__FlexWrapper"]'), index), option);
|
1489
1491
|
});
|
1490
1492
|
},
|
1493
|
+
/**
|
1494
|
+
* Verifies the number of options in the dropzone of order as separate list.
|
1495
|
+
* @param {number} expectedCount - The expected number of options in the dropzone.
|
1496
|
+
*/
|
1497
|
+
verifyNumberOfOptionsInDropzoneOrderAsSeperateList: (expectedCount) => {
|
1498
|
+
listOrderingPage.dropzoneSeperateList().find('[class*="MultipleDroppedItemstyles__FlexWrapper"]')
|
1499
|
+
.should('have.length', expectedCount);
|
1500
|
+
},
|
1491
1501
|
|
1492
1502
|
/**
|
1493
1503
|
* Verifies the order of options in seperate list.
|
@@ -1532,6 +1542,15 @@ const steps = {
|
|
1532
1542
|
.click();
|
1533
1543
|
},
|
1534
1544
|
|
1545
|
+
clickAndResetDropOptionSeperateList: (optionsText) => {
|
1546
|
+
listOrderingPage.dropzoneSeperateList()
|
1547
|
+
.contains(optionsText)
|
1548
|
+
.click();
|
1549
|
+
listOrderingPage.emptyDropzoneList()
|
1550
|
+
.first()
|
1551
|
+
.click();
|
1552
|
+
},
|
1553
|
+
|
1535
1554
|
clickAndUnDropOptionSeperateList: (optionsText) => {
|
1536
1555
|
listOrderingPage.dropzoneSeperateList()
|
1537
1556
|
.contains(optionsText)
|
@@ -1761,7 +1780,27 @@ const steps = {
|
|
1761
1780
|
optionsTextArray.forEach((option, optionIndex) => {
|
1762
1781
|
utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.optionsInputFieldInQuestionPreviewTab(), optionIndex * 2), option);
|
1763
1782
|
});
|
1764
|
-
}
|
1783
|
+
},
|
1784
|
+
|
1785
|
+
verifyAnswerStatusBannerNotExist: () => {
|
1786
|
+
listOrderingPage.correctIncorrectStatusMessageText()
|
1787
|
+
.should('not.exist');
|
1788
|
+
},
|
1789
|
+
|
1790
|
+
verifyAnswerStatusBannerExist: () => {
|
1791
|
+
listOrderingPage.correctIncorrectStatusMessageText()
|
1792
|
+
.should('be.visible');
|
1793
|
+
},
|
1794
|
+
|
1795
|
+
verifyCorrectAnswerSectionExist: () => {
|
1796
|
+
listOrderingPage.correctAnswersLabel()
|
1797
|
+
.should('be.visible');
|
1798
|
+
},
|
1799
|
+
|
1800
|
+
verifyCorrectAnswerSectionNotExist: () => {
|
1801
|
+
listOrderingPage.correctAnswersLabel()
|
1802
|
+
.should('not.exist');
|
1803
|
+
},
|
1765
1804
|
}
|
1766
1805
|
|
1767
1806
|
const tests = {
|
@@ -194,6 +194,7 @@ const selectors = {
|
|
194
194
|
connectorLineTypeLabel: () => cy.get('[class*="__SubSectionLabel"]').eq(2),
|
195
195
|
connectorLine: () => cy.get('[class*="ClozeWithDragAndDropstyles__ShowIconWrapper"]:visible'),
|
196
196
|
optionsInputFieldInQuestionPreviewTab: () => cy.get('.draggable-selected-item'),
|
197
|
+
correctAnswerSection: () => cy.get('[class*=CorrectAnswerWrapperDND]'),
|
197
198
|
}
|
198
199
|
|
199
200
|
const steps = {
|
@@ -2648,7 +2649,27 @@ const steps = {
|
|
2648
2649
|
optionsTextArray.forEach((option, optionIndex) => {
|
2649
2650
|
utilities.verifyTextContent(utilities.getNthElement(matchingPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
|
2650
2651
|
});
|
2651
|
-
}
|
2652
|
+
},
|
2653
|
+
|
2654
|
+
verifyAnswerStatusBannerNotExist: () => {
|
2655
|
+
matchingPage.correctIncorrectAnswerLabel()
|
2656
|
+
.should('not.exist');
|
2657
|
+
},
|
2658
|
+
|
2659
|
+
verifyAnswerStatusBannerExist: () => {
|
2660
|
+
matchingPage.correctIncorrectAnswerLabel()
|
2661
|
+
.should('be.visible');
|
2662
|
+
},
|
2663
|
+
|
2664
|
+
verifyCorrectAnswerSectionExist: () => {
|
2665
|
+
matchingPage.correctAnswerSection()
|
2666
|
+
.should('be.visible');
|
2667
|
+
},
|
2668
|
+
|
2669
|
+
verifyCorrectAnswerSectionNotExist: () => {
|
2670
|
+
matchingPage.correctAnswerSection()
|
2671
|
+
.should('not.exist');
|
2672
|
+
},
|
2652
2673
|
}
|
2653
2674
|
|
2654
2675
|
const tests = {
|
@@ -2760,7 +2781,7 @@ const tests = {
|
|
2760
2781
|
.eq(inputFieldIndex)
|
2761
2782
|
.click()
|
2762
2783
|
.blur();
|
2763
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
2784
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
2764
2785
|
});
|
2765
2786
|
|
2766
2787
|
it('User should be able to enter text in options input field', () => {
|
@@ -3061,14 +3082,13 @@ const tests = {
|
|
3061
3082
|
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Petals', dropzoneIndex: 0 }]);
|
3062
3083
|
});
|
3063
3084
|
|
3064
|
-
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion,
|
3085
|
+
it(`When the user has removed all the options from the dropzone in the ${accordionName} accordion, should not be thrown any error in '${accordionName}' accordion`, () => {
|
3065
3086
|
matchingPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
|
3066
|
-
|
3067
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
3087
|
+
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
3068
3088
|
if (accordionName == 'Correct') {
|
3069
3089
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
3070
3090
|
.within(() => {
|
3071
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
3091
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
3072
3092
|
});
|
3073
3093
|
} else {
|
3074
3094
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
@@ -3078,7 +3098,6 @@ const tests = {
|
|
3078
3098
|
};
|
3079
3099
|
});
|
3080
3100
|
|
3081
|
-
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
3082
3101
|
|
3083
3102
|
it('CSS of the dropzone border', { tags: 'css' }, () => {
|
3084
3103
|
utilities.verifyCSS(matchingPage.dropzoneSpecifyCorrectAnswerSection().eq(0), {
|
@@ -36,6 +36,7 @@ const selectors = {
|
|
36
36
|
draggableLabelsPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .label-tool'),
|
37
37
|
labelContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .items-container'),
|
38
38
|
numberLinePointPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find('svg ellipse[display="inline"]:visible'),
|
39
|
+
correctIncorrectStatusMessageText: () => cy.get('[class*="NumberLinestyles__CorrectIncorrectWrapper"]'),
|
39
40
|
|
40
41
|
//Correct answer section
|
41
42
|
numberLineCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg').eq(2),
|
@@ -296,6 +297,17 @@ const steps = {
|
|
296
297
|
numberLineLabelPage.labelContainerSpecifyCorrectAnswer()
|
297
298
|
.click({ force: true });
|
298
299
|
},
|
300
|
+
/**
|
301
|
+
* This function clicks and drops the label back in the container for previewTab
|
302
|
+
* @param {string} label to be clicked and dropped
|
303
|
+
*/
|
304
|
+
clickAndDropLabelInContainerPreviewTab: (label) => {
|
305
|
+
numberLineLabelPage.draggableLabelsPreviewTab()
|
306
|
+
.contains(label)
|
307
|
+
.click();
|
308
|
+
numberLineLabelPage.labelContainerPreviewTab()
|
309
|
+
.click({ force: true });
|
310
|
+
},
|
299
311
|
|
300
312
|
/**
|
301
313
|
* This function verifies plotted points on the number line on the Edit tab.
|
@@ -641,6 +653,20 @@ const steps = {
|
|
641
653
|
utilities.verifyElementVisibilityState(numberLineLabelPage.numberLineCorrectAnswerSection(), 'notExist');
|
642
654
|
},
|
643
655
|
|
656
|
+
verifyCorrectAnswerSectionExist: () => {
|
657
|
+
utilities.verifyElementVisibilityState(numberLineLabelPage.numberLineCorrectAnswerSection(), 'exist');
|
658
|
+
},
|
659
|
+
|
660
|
+
verifyAnswerStatusBannerNotExist: () => {
|
661
|
+
numberLineLabelPage.correctIncorrectStatusMessageText()
|
662
|
+
.should('not.exist');
|
663
|
+
},
|
664
|
+
|
665
|
+
verifyAnswerStatusBannerExist: () => {
|
666
|
+
numberLineLabelPage.correctIncorrectStatusMessageText()
|
667
|
+
.should('be.visible');
|
668
|
+
},
|
669
|
+
|
644
670
|
/**
|
645
671
|
* @param {number} points - The points to be allotted.
|
646
672
|
* @description - Allots points in the scoring section.
|
@@ -1024,26 +1050,23 @@ const tests = {
|
|
1024
1050
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
1025
1051
|
});
|
1026
1052
|
|
1027
|
-
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown
|
1053
|
+
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
|
1028
1054
|
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 2');
|
1029
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
1030
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
1055
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
1031
1056
|
if (accordionName == 'Correct') {
|
1032
1057
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1033
1058
|
.within(() => {
|
1034
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1059
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1035
1060
|
});
|
1036
1061
|
} else {
|
1037
1062
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1038
1063
|
.within(() => {
|
1039
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1064
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1040
1065
|
});
|
1041
1066
|
};
|
1042
1067
|
});
|
1043
1068
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
it('When the user plots on the number line then the error message should disappear', () => {
|
1069
|
+
it('User should be able to attempt the labels on the number line', () => {
|
1047
1070
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
|
1048
1071
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
1049
1072
|
});
|
@@ -56,6 +56,7 @@ const selectors = {
|
|
56
56
|
return cy.get('[class*="question-preview-wrapper"] [class*="ControlsWrapper"] button')
|
57
57
|
}
|
58
58
|
},
|
59
|
+
correctIncorrectStatusMessageText: () => cy.get('[class*="NumberLinestyles__CorrectIncorrectWrapper"]'),
|
59
60
|
|
60
61
|
//Correct answer section
|
61
62
|
numberLineCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg:visible').eq(1),
|
@@ -758,6 +759,20 @@ const steps = {
|
|
758
759
|
utilities.verifyElementVisibilityState(numberLinePage.numberLineCorrectAnswerSection(), 'notExist');
|
759
760
|
},
|
760
761
|
|
762
|
+
verifyCorrectAnswerSectionExist: () => {
|
763
|
+
utilities.verifyElementVisibilityState(numberLinePage.numberLineCorrectAnswerSection(), 'exist');
|
764
|
+
},
|
765
|
+
|
766
|
+
verifyAnswerStatusBannerNotExist: () => {
|
767
|
+
numberLinePage.correctIncorrectStatusMessageText()
|
768
|
+
.should('not.exist');
|
769
|
+
},
|
770
|
+
|
771
|
+
verifyAnswerStatusBannerExist: () => {
|
772
|
+
numberLinePage.correctIncorrectStatusMessageText()
|
773
|
+
.should('be.visible');
|
774
|
+
},
|
775
|
+
|
761
776
|
/**
|
762
777
|
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
763
778
|
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
@@ -1451,26 +1466,23 @@ const tests = {
|
|
1451
1466
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1]);
|
1452
1467
|
});
|
1453
1468
|
|
1454
|
-
it(`When the user resets the number line in the ${accordionName} accordion,
|
1469
|
+
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
|
1455
1470
|
numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
|
1456
1471
|
numberLinePage.steps.confirmReset();
|
1457
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
1458
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
1472
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
1459
1473
|
if (accordionName == 'Correct') {
|
1460
1474
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1461
1475
|
.within(() => {
|
1462
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1476
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1463
1477
|
});
|
1464
1478
|
} else {
|
1465
1479
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1466
1480
|
.within(() => {
|
1467
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1481
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1468
1482
|
});
|
1469
1483
|
};
|
1470
1484
|
});
|
1471
1485
|
|
1472
|
-
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
1473
|
-
|
1474
1486
|
it('When the user plots on the number line then the error message should disappear', () => {
|
1475
1487
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
|
1476
1488
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 1);
|
@@ -704,7 +704,36 @@ const steps = {
|
|
704
704
|
optionsTextArray.forEach((option, optionIndex) => {
|
705
705
|
utilities.verifyTextContent(utilities.getNthElement(singleSelectionPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
|
706
706
|
});
|
707
|
-
}
|
707
|
+
},
|
708
|
+
|
709
|
+
/**
|
710
|
+
* @description. Checks the options checkbox in the 'Specify correct answer' section for single selection questions.
|
711
|
+
* @param {number} optionIndex - The index of the option checkbox to be checked.
|
712
|
+
* @throws {Error} Will throw an error if the checkbox is not checked after the operation.
|
713
|
+
* @example - checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
714
|
+
*/
|
715
|
+
setCorrectAnswer: (optionIndex) => {
|
716
|
+
singleSelectionPage.optionWrapperCorrectAnswerSection()
|
717
|
+
.eq(optionIndex)
|
718
|
+
.click()
|
719
|
+
},
|
720
|
+
|
721
|
+
/**
|
722
|
+
* Creates a basic single selection question
|
723
|
+
* @param {Object} params - Parameters for the question.
|
724
|
+
* @param {string} params.questionInstruction - The question text.
|
725
|
+
* @param {Array<string>} params.options - The list of options.
|
726
|
+
* @param {number} params.points - The points allotted for the question.
|
727
|
+
* @param {number} params.correctAnswer - Index of the correct answer.
|
728
|
+
*/
|
729
|
+
createBasicSingleSelectionQuestion: ({questionInstruction, options, points, correctAnswer}) => {
|
730
|
+
cy.barsPreLoaderWait();
|
731
|
+
singleSelectionPage.steps.addTextInQuestionInstructionsInputField(questionInstruction);
|
732
|
+
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
733
|
+
singleSelectionPage.steps.allotPoints(points);
|
734
|
+
singleSelectionPage.steps.setCorrectAnswer(correctAnswer);
|
735
|
+
singleSelectionPage.saveQuestionButton().click();
|
736
|
+
},
|
708
737
|
};
|
709
738
|
|
710
739
|
const tests = {
|
@@ -25,6 +25,7 @@ const selectors = {
|
|
25
25
|
...equationEditorSectionCommonComponent,
|
26
26
|
...styleAndLayoutCustomizationAccordionComponent,
|
27
27
|
...imageCanvasComponent,
|
28
|
+
...scoringSectionBaseEditTab,
|
28
29
|
addStructureTab: () => cy.get('[data-ngie-testid="add-structure-tab"]'),
|
29
30
|
responseToken: () => cy.get('.cke_button__addresponse'),
|
30
31
|
penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label="Penalty points for each incorrect text container"]'),
|
@@ -939,7 +940,8 @@ const steps = {
|
|
939
940
|
|
940
941
|
switchToGradingView: () => {
|
941
942
|
autoScoredScoringPreviewTab.gradingViewRadioButton()
|
942
|
-
.click()
|
943
|
+
.click({ force: true });
|
944
|
+
autoScoredScoringPreviewTab.gradingViewRadioButton()
|
943
945
|
.should('be.checked');
|
944
946
|
cy.wait(1500);
|
945
947
|
},
|
@@ -1385,6 +1387,26 @@ const steps = {
|
|
1385
1387
|
expandAndFocusInResponseAnswerInputFieldSpecifyCorrectAnswerSection: (index) => {
|
1386
1388
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(index);
|
1387
1389
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(index);
|
1390
|
+
},
|
1391
|
+
|
1392
|
+
verifyAnswerStatusBannerNotExist: () => {
|
1393
|
+
textEntryMathPage.correctIncorrectStatusMessageText()
|
1394
|
+
.should('not.exist');
|
1395
|
+
},
|
1396
|
+
|
1397
|
+
verifyAnswerStatusBannerExist: () => {
|
1398
|
+
textEntryMathPage.correctIncorrectStatusMessageText()
|
1399
|
+
.should('be.visible');
|
1400
|
+
},
|
1401
|
+
|
1402
|
+
verifyCorrectAnswerSectionExist: () => {
|
1403
|
+
textEntryMathPage.correctAnswersLabel()
|
1404
|
+
.should('be.visible');
|
1405
|
+
},
|
1406
|
+
|
1407
|
+
verifyCorrectAnswerSectionNotExist: () => {
|
1408
|
+
textEntryMathPage.correctAnswersLabel()
|
1409
|
+
.should('not.exist');
|
1388
1410
|
}
|
1389
1411
|
}
|
1390
1412
|
|
@@ -1402,6 +1424,7 @@ const tests = {
|
|
1402
1424
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
1403
1425
|
...equationEditorSectionCommonComponent.tests,
|
1404
1426
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
1427
|
+
...createQuestionBasePage.tests,
|
1405
1428
|
/**
|
1406
1429
|
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
1407
1430
|
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|