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
@@ -0,0 +1,291 @@
|
|
1
|
+
import { equationEditorCategoriesAndSymbols } from "../../../fixtures/equationEditorCategoriesAndSymbols ";
|
2
|
+
import { thinkSpherePage } from "../../../pages";
|
3
|
+
import { editCategoryFlyout } from "../../../pages/components/editCategoryFlyout";
|
4
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
5
|
+
import utilities from "../../../support/helpers/utilities";
|
6
|
+
const css = Cypress.env('css');
|
7
|
+
const defaultSelectedCategories = ['numPad', 'keyPad', 'intermediate', 'primary', 'general', 'common', 'algebra', 'geo', 'compare', 'matrices', 'setNotation', 'delimiters', 'trig', 'measurement', 'calculus', 'otherSymbols', 'greekSymbols'];
|
8
|
+
|
9
|
+
describe('Create question page - Essay Response: Edit category', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Edit category flyout contents', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
|
18
|
+
thinkSpherePage.steps.expandCustomizeToolsAndControls();
|
19
|
+
thinkSpherePage.steps.selectCustomizedFormattingOption(['Equation editor']);
|
20
|
+
});
|
21
|
+
|
22
|
+
it('When user clicks on the Edit category icon below the categories in the Equation Editor section the Edit category flyout should open', () => {
|
23
|
+
editCategoryFlyout.steps.openEditCategoryFlyout();
|
24
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'visible');
|
25
|
+
});
|
26
|
+
|
27
|
+
it('Title of the flyout should be \'Edit category\'', () => {
|
28
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBoxTitle(), 'exist');
|
29
|
+
utilities.verifyInnerText(editCategoryFlyout.dialogBoxTitle(), 'Edit category');
|
30
|
+
});
|
31
|
+
|
32
|
+
it('\'Select the symbols to display to the students.\' help text should be displayed below the title', () => {
|
33
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.selectSymbolsToDisplayLabel(), 'exist');
|
34
|
+
utilities.verifyInnerText(editCategoryFlyout.selectSymbolsToDisplayLabel(), 'Select the symbols to display to the students.');
|
35
|
+
});
|
36
|
+
|
37
|
+
it('The name of the category should be displayed in the flyout with a checked checkbox', () => {
|
38
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.categoryLabel(), 'visible');
|
39
|
+
utilities.verifyInnerText(editCategoryFlyout.categoryLabel(), `${equationEditorCategoriesAndSymbols['general'].displayName}`);
|
40
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
41
|
+
thinkSpherePage.steps.cancelCustomCategory();
|
42
|
+
});
|
43
|
+
|
44
|
+
defaultSelectedCategories.forEach((key) => {
|
45
|
+
if (key === 'numPad') {
|
46
|
+
it(`All the ${equationEditorCategoriesAndSymbols['numPad'].displayName} characters should be displayed and should be in selected state except the last three ones also each one should have necessary tooltips`, () => {
|
47
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['numPad'].symbols);
|
48
|
+
const selectedSymbolsArray = symbolsArray.slice(0, 10);
|
49
|
+
const unselectedSymbolsArray = symbolsArray.slice(-3);
|
50
|
+
editCategoryFlyout.steps.openEditCategoryFlyout(key);
|
51
|
+
thinkSpherePage.steps.verifyCategoryCharactersAndSelectedState(selectedSymbolsArray);
|
52
|
+
thinkSpherePage.steps.verifyCategoryCharactersAndUnSelectedState(unselectedSymbolsArray);
|
53
|
+
thinkSpherePage.steps.cancelCustomCategory();
|
54
|
+
});
|
55
|
+
} else if (key !== 'keyPad') {
|
56
|
+
it(`All the ${equationEditorCategoriesAndSymbols[key]?.displayName} characters should be displayed and should be in selected state also each one should have necessary tooltips`, () => {
|
57
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols[key]?.symbols);
|
58
|
+
editCategoryFlyout.steps.openEditCategoryFlyout(key);
|
59
|
+
thinkSpherePage.steps.verifyCategoryCharactersAndSelectedState(symbolsArray);
|
60
|
+
editCategoryFlyout.steps.verifyCategoryCharactersDragIcon();
|
61
|
+
thinkSpherePage.steps.cancelCustomCategory();
|
62
|
+
});
|
63
|
+
}
|
64
|
+
})
|
65
|
+
|
66
|
+
it(`All the ${equationEditorCategoriesAndSymbols['numPad'].displayName} characters should be displayed and should be in selected state except the last three ones`, () => {
|
67
|
+
const symbolsArray = Object.values(equationEditorCategoriesAndSymbols['numPad'].symbols);
|
68
|
+
const selectedSymbolsArray = symbolsArray.slice(0, -3);
|
69
|
+
const unselectedSymbolsArray = symbolsArray.slice(-3);
|
70
|
+
editCategoryFlyout.steps.verifyCategoryCharactersAndSelectedState(selectedSymbolsArray);
|
71
|
+
editCategoryFlyout.steps.verifyCategoryCharactersDragIcon();
|
72
|
+
thinkSpherePage.steps.verifyCategoryCharactersAndUnSelectedState(unselectedSymbolsArray);
|
73
|
+
});
|
74
|
+
|
75
|
+
it('Reset button should be displayed in the flyout', () => {
|
76
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.buttonReset(), 'exist');
|
77
|
+
utilities.verifyInnerText(editCategoryFlyout.buttonReset(), 'Reset');
|
78
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.resetIcon(), 'exist');
|
79
|
+
});
|
80
|
+
|
81
|
+
it('\'Save\' button should be displayed in the flyout', () => {
|
82
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.buttonSave(), 'visible');
|
83
|
+
utilities.verifyInnerText(thinkSpherePage.buttonSave(), 'Save');
|
84
|
+
});
|
85
|
+
|
86
|
+
it('CSS of Edit category flyout components', { tags: 'css' }, () => {
|
87
|
+
utilities.verifyCSS(editCategoryFlyout.dialogBoxTitle(), {
|
88
|
+
'color': css.color.flyoutTitle,
|
89
|
+
'font-size': css.fontSize.heading,
|
90
|
+
'font-weight': css.fontWeight.semibold
|
91
|
+
});
|
92
|
+
utilities.verifyCSS(editCategoryFlyout.categoryLabel(), {
|
93
|
+
'color': css.color.accordionLabel,
|
94
|
+
'font-size': css.fontSize.default,
|
95
|
+
'font-weight': css.fontWeight.bold
|
96
|
+
});
|
97
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCheckbox().parents('.MuiCheckbox-root').find('svg'), {
|
98
|
+
'fill': css.color.activeButtons
|
99
|
+
});
|
100
|
+
utilities.verifyCSS(editCategoryFlyout.selectSymbolsToDisplayLabel(), {
|
101
|
+
'color': css.color.labels,
|
102
|
+
'font-size': css.fontSize.normal,
|
103
|
+
'font-weight': css.fontWeight.semibold
|
104
|
+
});
|
105
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0), {
|
106
|
+
'background-color': css.color.activeButtons
|
107
|
+
});
|
108
|
+
utilities.verifyCSS(editCategoryFlyout.characterDragIcon(), {
|
109
|
+
'background-color': css.color.defaultBackground
|
110
|
+
});
|
111
|
+
utilities.verifyCSS(editCategoryFlyout.characterDragIcon().eq(0).find('path').eq(1), {
|
112
|
+
'color': css.color.activeButtons,
|
113
|
+
'font-size': css.fontSize.normal,
|
114
|
+
'font-weight': css.fontWeight.bold
|
115
|
+
});
|
116
|
+
utilities.verifyCSS(editCategoryFlyout.characterTickIcon().eq(0).find('path').eq(1), {
|
117
|
+
'fill': css.color.activeButtons
|
118
|
+
});
|
119
|
+
utilities.verifyCSS(thinkSpherePage.buttonSave(), {
|
120
|
+
'color': css.color.primaryBtn,
|
121
|
+
'font-size': css.fontSize.default,
|
122
|
+
'font-weight': css.fontWeight.semibold,
|
123
|
+
'background-color': css.color.primaryBtnBg
|
124
|
+
});
|
125
|
+
utilities.verifyCSS(thinkSpherePage.buttonCancel(), {
|
126
|
+
'color': css.color.secondaryBtn,
|
127
|
+
'font-size': css.fontSize.default,
|
128
|
+
'font-weight': css.fontWeight.semibold,
|
129
|
+
'background-color': css.color.transparent
|
130
|
+
});
|
131
|
+
});
|
132
|
+
|
133
|
+
it('Accessibility of Edit category flyout components', { tags: 'a11y' }, () => {
|
134
|
+
cy.checkAccessibility(editCategoryFlyout.dialogBox());
|
135
|
+
});
|
136
|
+
|
137
|
+
it('\'Cancel\' button should be displayed and on clicking it the flyout should close', () => {
|
138
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.buttonCancel(), 'visible');
|
139
|
+
utilities.verifyInnerText(thinkSpherePage.buttonCancel(), 'Cancel');
|
140
|
+
thinkSpherePage.steps.cancelCustomCategory();
|
141
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
142
|
+
});
|
143
|
+
});
|
144
|
+
|
145
|
+
describe('Category checkbox validation states', () => {
|
146
|
+
abortEarlySetup();
|
147
|
+
before(() => {
|
148
|
+
thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
|
149
|
+
thinkSpherePage.steps.expandCustomizeToolsAndControls();
|
150
|
+
thinkSpherePage.steps.selectCustomizedFormattingOption(['Equation editor']);
|
151
|
+
editCategoryFlyout.steps.openEditCategoryFlyout();
|
152
|
+
});
|
153
|
+
|
154
|
+
it('When user deselects any one character by clicking on it then the category checkbox should be in partially checked state', () => {
|
155
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel);
|
156
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsPartiallyChecked();
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When user clicks on the partially checked category checkbox then all the characters should be selected', () => {
|
160
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsPartiallyChecked();
|
161
|
+
editCategoryFlyout.steps.checkCategoryCheckbox();
|
162
|
+
editCategoryFlyout.steps.verifyAllCategoryCharactersSelected();
|
163
|
+
});
|
164
|
+
|
165
|
+
it('When user clicks on checked category checkbox then all the characters should get de-selected', () => {
|
166
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked()
|
167
|
+
editCategoryFlyout.steps.uncheckCategoryCheckbox();
|
168
|
+
editCategoryFlyout.steps.verifyAllCategoryCharactersNotSelected()
|
169
|
+
});
|
170
|
+
|
171
|
+
it('CSS of de-selected character', { tags: 'css' }, () => {
|
172
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0).find('text'), {
|
173
|
+
'color': css.color.liText,
|
174
|
+
'font-size': css.fontSize.normal,
|
175
|
+
'font-weight': css.fontWeight.bold,
|
176
|
+
});
|
177
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0), {
|
178
|
+
'background-color': css.color.defaultBackground
|
179
|
+
});
|
180
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0).find('.drag-icon-button-custom-format'), {
|
181
|
+
'background-color': css.color.defaultBackgrounds
|
182
|
+
});
|
183
|
+
utilities.verifyCSS(editCategoryFlyout.categoryCharacters().eq(0).find('.drag-icon-button-custom-format path').eq(1), {
|
184
|
+
'color': css.color.secondaryBtn,
|
185
|
+
'font-size': css.fontSize.normal,
|
186
|
+
'font-weight': css.fontWeight.bold,
|
187
|
+
});
|
188
|
+
});
|
189
|
+
|
190
|
+
it('Accessibility of de-selected character', { tags: 'a11y' }, () => {
|
191
|
+
cy.checkAccessibility(editCategoryFlyout.categoryCharacters(0).parents('[class*="DragItemstyles__ItemContainer"]'))
|
192
|
+
});
|
193
|
+
|
194
|
+
it('When user clicks on the unchecked category checkbox then all the characters should get selected', () => {
|
195
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsUnchecked()
|
196
|
+
editCategoryFlyout.steps.checkCategoryCheckbox();
|
197
|
+
editCategoryFlyout.steps.verifyAllCategoryCharactersSelected();
|
198
|
+
});
|
199
|
+
|
200
|
+
it('When user clicks on all the selected characters then the category checkbox should get unchecked', () => {
|
201
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
202
|
+
editCategoryFlyout.steps.deselectCategoryCharacter('QuestionMark selected');
|
203
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel);
|
204
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel);
|
205
|
+
editCategoryFlyout.steps.deselectCategoryCharacters('colon');
|
206
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsUnchecked();
|
207
|
+
});
|
208
|
+
|
209
|
+
it('When user clicks on all the de-selected characters the category checkbox should get checked', () => {
|
210
|
+
editCategoryFlyout.steps.selectCategoryCharactersUsingIndex(0);
|
211
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Dollar');
|
212
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Cents');
|
213
|
+
editCategoryFlyout.steps.selectCategoryCharacters('Colon');
|
214
|
+
editCategoryFlyout.steps.verifyCategoryCheckboxIsChecked();
|
215
|
+
});
|
216
|
+
});
|
217
|
+
|
218
|
+
describe('\'Reset\' button validation states', () => {
|
219
|
+
abortEarlySetup();
|
220
|
+
before(() => {
|
221
|
+
thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
|
222
|
+
thinkSpherePage.steps.expandCustomizeToolsAndControls();
|
223
|
+
thinkSpherePage.steps.selectCustomizedFormattingOption(['Equation editor']);
|
224
|
+
});
|
225
|
+
|
226
|
+
it('When user opens the Edit category flyout then the Reset button should be disabled by default', () => {
|
227
|
+
editCategoryFlyout.steps.openEditCategoryFlyout();
|
228
|
+
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset());
|
229
|
+
});
|
230
|
+
|
231
|
+
it('When user de-selects any character by clicking on it then the Reset button should get enabled', () => {
|
232
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
233
|
+
utilities.verifyElementNotDisabled(editCategoryFlyout.buttonReset());
|
234
|
+
});
|
235
|
+
|
236
|
+
it('CSS of enabled Reset button', { tags: 'css' }, () => {
|
237
|
+
utilities.verifyCSS(editCategoryFlyout.buttonReset(), {
|
238
|
+
'color': css.color.activeButtons,
|
239
|
+
'font-size': css.fontSize.default,
|
240
|
+
'font-weight': css.fontWeight.regular
|
241
|
+
});
|
242
|
+
});
|
243
|
+
|
244
|
+
it('Accessibility of enabled Reset button', { tags: 'a11y' }, () => {
|
245
|
+
cy.checkAccessibility(editCategoryFlyout.buttonReset());
|
246
|
+
})
|
247
|
+
|
248
|
+
it('When user clicks on the Reset button the changes should be reverted and the all the character should be selected again', () => {
|
249
|
+
editCategoryFlyout.steps.reset();
|
250
|
+
editCategoryFlyout.steps.verifyAllCategoryCharactersSelected();
|
251
|
+
});
|
252
|
+
|
253
|
+
it('When user de-selects characters and re-selects them then the Reset button should be disabled', () => {
|
254
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
255
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`)
|
256
|
+
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
257
|
+
editCategoryFlyout.steps.selectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`)
|
258
|
+
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset())
|
259
|
+
});
|
260
|
+
|
261
|
+
it('When user edits and saves the category then on opening the same Edit category flyout the \'Reset\' button should be disabled and the previously Saved changes should be displayed', () => {
|
262
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
263
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`);
|
264
|
+
thinkSpherePage.steps.saveCustomCategory();
|
265
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
266
|
+
editCategoryFlyout.steps.openEditCategoryFlyout();
|
267
|
+
utilities.verifyElementDisabled(editCategoryFlyout.buttonReset());
|
268
|
+
editCategoryFlyout.steps.verifyCategoryCharacterNotSelected(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`)
|
269
|
+
});
|
270
|
+
});
|
271
|
+
|
272
|
+
describe('Save a edited category', () => {
|
273
|
+
abortEarlySetup();
|
274
|
+
before(() => {
|
275
|
+
thinkSpherePage.steps.navigateToThinkSphereCreateQuestion();
|
276
|
+
thinkSpherePage.steps.expandCustomizeToolsAndControls();
|
277
|
+
thinkSpherePage.steps.selectCustomizedFormattingOption(['Equation editor']);
|
278
|
+
editCategoryFlyout.steps.openEditCategoryFlyout()
|
279
|
+
});
|
280
|
+
|
281
|
+
it('When user edits a category and clicks on Cancel button then the flyout should close and the changes should not be saved', () => {
|
282
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.dollar.ariaLabel}`);
|
283
|
+
editCategoryFlyout.steps.deselectCategoryCharacters(`${equationEditorCategoriesAndSymbols.general.symbols.cents.ariaLabel}`);
|
284
|
+
thinkSpherePage.steps.cancelCustomCategory();
|
285
|
+
utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBox(), 'notExist');
|
286
|
+
editCategoryFlyout.steps.openEditCategoryFlyout()
|
287
|
+
editCategoryFlyout.steps.verifyAllCategoryCharactersSelected();
|
288
|
+
});
|
289
|
+
|
290
|
+
});
|
291
|
+
});
|
@@ -18,6 +18,28 @@ const sentenceStartersTextDefault = [
|
|
18
18
|
'I will check my work by',
|
19
19
|
'If my strategy is not working, I will'
|
20
20
|
];
|
21
|
+
const preAuthoredStrategyVideos = [
|
22
|
+
{
|
23
|
+
displayName: 'Create_a_model',
|
24
|
+
duration: '00:24',
|
25
|
+
},
|
26
|
+
{
|
27
|
+
displayName: 'Look_for_a_pattern',
|
28
|
+
duration: '00:18',
|
29
|
+
},
|
30
|
+
{
|
31
|
+
displayName: 'Guess_check_and_revise',
|
32
|
+
duration: '00:17',
|
33
|
+
},
|
34
|
+
{
|
35
|
+
displayName: 'Try_with_friendlier_numbers',
|
36
|
+
duration: '00:26',
|
37
|
+
},
|
38
|
+
{
|
39
|
+
displayName: 'Show_with_an_equation',
|
40
|
+
duration: '00:22',
|
41
|
+
}
|
42
|
+
];
|
21
43
|
describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
22
44
|
before(() => {
|
23
45
|
cy.loginAs('admin');
|
@@ -55,19 +77,37 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
|
55
77
|
});
|
56
78
|
});
|
57
79
|
|
80
|
+
describe('\'Plan Phase\' Section Strategies list component - Pre-authored Videos', () => {
|
81
|
+
abortEarlySetup();
|
82
|
+
it('Strategies list options should have Pre-authored Videos', () => {
|
83
|
+
thinkSpherePage.steps.verifyPreAuthoredVideoTitles(preAuthoredStrategyVideos.map(video => video.displayName));
|
84
|
+
})
|
85
|
+
it('When the user clicks on the video, the respective video should play', () => {
|
86
|
+
thinkSpherePage.steps.verifyPreAuthoredVideos(preAuthoredStrategyVideos);
|
87
|
+
});
|
88
|
+
});
|
89
|
+
|
58
90
|
describe('\'Plan Phase\' Video Preview Component', () => {
|
59
91
|
const playbackSpeedOptions = ['1x', '1.25x', '1.5x', '2x'];
|
60
92
|
const playbackSpeedMultiplier = [1, 1.25, 1.5, 2];
|
93
|
+
before(()=>{
|
94
|
+
thinkSpherePage.steps.addOption('strategy');
|
95
|
+
thinkSpherePage.steps.addOptionText('strategy', 5, "Custom strategy");
|
96
|
+
})
|
97
|
+
|
98
|
+
after(() => {
|
99
|
+
thinkSpherePage.steps.deleteOption(5);
|
100
|
+
})
|
61
101
|
|
62
102
|
it('When the video is uploaded it should display the video and its buttons correctly', () => {
|
63
|
-
thinkSpherePage.videoLinkComponent()
|
103
|
+
thinkSpherePage.videoLinkComponent(5)
|
64
104
|
.within(() => {
|
65
105
|
thinkSpherePage.uploadVideoLinkButton()
|
66
106
|
.click();
|
67
107
|
});
|
68
108
|
thinkSpherePage.steps.uploadVideoFile('uploads/sample.mp4');
|
69
109
|
cy.wait(10000);
|
70
|
-
thinkSpherePage.videoLinkComponent()
|
110
|
+
thinkSpherePage.videoLinkComponent(5)
|
71
111
|
.within(() => {
|
72
112
|
thinkSpherePage.uploadVideoLinkButton()
|
73
113
|
.click();
|
@@ -151,7 +191,7 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
|
151
191
|
|
152
192
|
it('When video player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.', () => {
|
153
193
|
thinkSpherePage.videoPopupCloseButton().click();
|
154
|
-
thinkSpherePage.videoLinkComponent()
|
194
|
+
thinkSpherePage.videoLinkComponent(5)
|
155
195
|
.within(() => {
|
156
196
|
thinkSpherePage.uploadVideoLinkButton()
|
157
197
|
.click();
|
@@ -287,18 +327,16 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
|
287
327
|
|
288
328
|
it('When popup is open it should have the title visible and it should contain the title', () => {
|
289
329
|
utilities.verifyElementVisibilityState(thinkSpherePage.videoPopupTitle(), 'visible');
|
290
|
-
thinkSpherePage.videoPopupTitle()
|
291
|
-
.invoke('text')
|
292
|
-
.should('not.be.empty');
|
330
|
+
thinkSpherePage.steps.verifyTextIsNotEmpty(thinkSpherePage.videoPopupTitle());
|
293
331
|
});
|
294
332
|
|
295
|
-
it
|
333
|
+
it('The play and pause button should be visible in the center of the video', () => {
|
296
334
|
//TODO: the play and pause button should be visible in the center of the video
|
297
335
|
});
|
298
336
|
|
299
337
|
it('When the user hovers over the playback speed button, a tooltip \'Playback speed\' should be displayed and on hovering away from the button, the tooltip should disappear', () => {
|
300
338
|
thinkSpherePage.videoPopupCloseButton().click();
|
301
|
-
thinkSpherePage.videoLinkComponent()
|
339
|
+
thinkSpherePage.videoLinkComponent(5)
|
302
340
|
.within(() => {
|
303
341
|
thinkSpherePage.uploadVideoLinkButton()
|
304
342
|
.click();
|
@@ -474,10 +512,31 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
|
474
512
|
thinkSpherePage.tests.verifyOptionsInput('strategy');
|
475
513
|
|
476
514
|
thinkSpherePage.tests.verifyAtleastOneOptionIsRequired('strategy', strategiesTextDefault, 'Minimum one option is required');
|
515
|
+
|
516
|
+
it('The author should be able to add up to 15 strategies using the \'Add strategy\' button and newly added option\'s checkbox should be unchecked by default', () => {
|
517
|
+
for (let index = 0; index < 10; index++) {
|
518
|
+
thinkSpherePage.steps.addOption('strategy');
|
519
|
+
}
|
520
|
+
thinkSpherePage.tests.verifyListSectionContents({
|
521
|
+
optionFieldsCount: 15,
|
522
|
+
optionList: [...strategiesTextDefault, ...Array(10).fill('')],
|
523
|
+
placeholder: 'Enter strategy name',
|
524
|
+
list: 'strategy',
|
525
|
+
});
|
526
|
+
thinkSpherePage.steps.verifyTypeCheckBoxStrategy();
|
527
|
+
thinkSpherePage.steps.verifyStrategyCheckBoxNotChecked();
|
528
|
+
});
|
529
|
+
|
530
|
+
it('When 5 strategies are checked, further checkboxes should have tool tip \'Only 5 strategies can be selected\'', () => {
|
531
|
+
for(let i = 1; i < 5; i++) {
|
532
|
+
thinkSpherePage.steps.selectOption('strategy', i)
|
533
|
+
}
|
534
|
+
utilities.getNthElement(thinkSpherePage.planStrategyCheckbox(), 5).verifyTooltip('Only 5 strategies can be selected')
|
535
|
+
});
|
477
536
|
|
478
537
|
thinkSpherePage.tests.verifyResetToDefaultFunctionality(strategiesTextDefault, 'strategy');
|
479
538
|
|
480
|
-
thinkSpherePage.tests.verifyVideoLinkComponent();
|
539
|
+
thinkSpherePage.tests.verifyVideoLinkComponent(5);
|
481
540
|
|
482
541
|
it('Accessibility of \'Plan Phase\' Section Strategies list component', { tags: 'a11y' }, () => {
|
483
542
|
cy.checkAccessibility(thinkSpherePage.planStrategySection());
|
@@ -530,6 +589,29 @@ describe('Create item : ThinkSphere Question - Plan Phases Section',() => {
|
|
530
589
|
thinkSpherePage.tests.verifyOptionsInput('sentenceStarter');
|
531
590
|
|
532
591
|
thinkSpherePage.tests.verifyAtleastOneOptionIsRequired('sentenceStarter', sentenceStartersTextDefault, 'Minimum one option is required');
|
592
|
+
|
593
|
+
it('The author should be able to add up to 15 sentence starters using the \'Add sentence starters\' button and newly added option\'s checkbox should be unchecked by default', () => {
|
594
|
+
for (let index = 0; index < 10; index++) {
|
595
|
+
thinkSpherePage.steps.addOption('sentenceStarter');
|
596
|
+
}
|
597
|
+
thinkSpherePage.tests.verifyListSectionContents({
|
598
|
+
optionFieldsCount: 15,
|
599
|
+
optionList: [...sentenceStartersTextDefault, ...Array(10).fill('')],
|
600
|
+
placeholder: 'Enter sentence starter name',
|
601
|
+
list: 'sentenceStarter',
|
602
|
+
});
|
603
|
+
thinkSpherePage.steps.verifyTypeCheckBoxSentenceStarter();
|
604
|
+
thinkSpherePage.steps.verifySentenceStrategyCheckBoxNotChecked();
|
605
|
+
});
|
606
|
+
|
607
|
+
it('When 5 sentence starters are checked, further checkboxes should have tool tip \'Only 5 sentence starters can be selected\'', () => {
|
608
|
+
for(let i = 1; i < 5; i++) {
|
609
|
+
thinkSpherePage.steps.selectOption(sentenceStartersTextDefault, i)
|
610
|
+
}
|
611
|
+
utilities.getNthElement(thinkSpherePage.planSentenceStarterCheckbox(), 5).verifyTooltip('Only 5 sentence starters can be selected')
|
612
|
+
});
|
613
|
+
|
614
|
+
thinkSpherePage.tests.verifyResetToDefaultFunctionality(sentenceStartersTextDefault, 'sentenceStarter');
|
533
615
|
|
534
616
|
it('Accessibility of \'Plan Phase\' Section Sentence starters list component', { tags: 'a11y' }, () => {
|
535
617
|
cy.checkAccessibility(thinkSpherePage.planSentenceStarterSection());
|
@@ -6,11 +6,11 @@ import utilities from "../../../support/helpers/utilities";
|
|
6
6
|
const css = Cypress.env('css');
|
7
7
|
|
8
8
|
const sentenceStartersTextDefault = [
|
9
|
-
'The strategy
|
10
|
-
'First,
|
11
|
-
'Secondly,
|
9
|
+
'The strategy I’m going to use is',
|
10
|
+
'First, I will',
|
11
|
+
'Secondly, I will',
|
12
12
|
'I will check my work by',
|
13
|
-
'If my strategy is not working,
|
13
|
+
'If my strategy is not working, I will'
|
14
14
|
];
|
15
15
|
|
16
16
|
describe('Preview question : ThinkSphere Question - Plan Section - preview tab', () => {
|
@@ -24,11 +24,14 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
|
|
24
24
|
thinkSpherePage.steps.switchToPreviewTab();
|
25
25
|
});
|
26
26
|
|
27
|
+
after(() => {
|
28
|
+
cy.deleteThinkSphereItem('~zzz item name');
|
29
|
+
});
|
30
|
+
|
27
31
|
describe('\'Question instruction\' section', () => {
|
28
32
|
abortEarlySetup();
|
29
33
|
it('\'Question instruction\' section should be present', () => {
|
30
|
-
|
31
|
-
utilities.verifyInnerText(thinkSpherePage.questionInstructionPreviewTexWrapper(), 'question instruction text');
|
34
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
|
32
35
|
});
|
33
36
|
|
34
37
|
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
@@ -46,8 +49,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
|
|
46
49
|
cy.wait(1000);
|
47
50
|
thinkSpherePage.steps.uploadFile('uploads/image.png');
|
48
51
|
thinkSpherePage.steps.switchToPreviewTab();
|
49
|
-
|
50
|
-
utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionPreviewImageExpandButton(), 'visible');
|
52
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
51
53
|
});
|
52
54
|
|
53
55
|
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
@@ -279,7 +281,7 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
|
|
279
281
|
|
280
282
|
it('\'Planning journal\' section heading should be present', () => {
|
281
283
|
utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
|
282
|
-
utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), '
|
284
|
+
utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
|
283
285
|
});
|
284
286
|
|
285
287
|
it('\'Sentence starters\' label and dropdown should be displayed', () => {
|
@@ -473,14 +475,12 @@ describe('Preview question : ThinkSphere Question - Plan Section - preview tab',
|
|
473
475
|
});
|
474
476
|
});
|
475
477
|
|
476
|
-
it('CSS of strategy chip when it is selected', { tags: 'css' }, () => {
|
478
|
+
it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
|
477
479
|
utilities.verifyCSS(thinkSpherePage.strategyChip(), {
|
478
480
|
'background-color': css.color.secondaryBtnBorder,
|
479
481
|
'border': `1px solid ${css.color.primaryBtnBg}`,
|
480
482
|
});
|
481
|
-
});
|
482
483
|
|
483
|
-
it('CSS of planning journal section', { tags: 'css' }, () => {
|
484
484
|
utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
|
485
485
|
'color': css.color.primaryBtnBorder,
|
486
486
|
'font-size': css.fontSize.heading,
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import { thinkSpherePage } from "../../../pages";
|
2
|
+
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
3
|
+
import { commonComponents } from "../../../pages/components/commonComponents";
|
4
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
5
|
+
import utilities from "../../../support/helpers/utilities";
|
6
|
+
const css = Cypress.env('css');
|
7
|
+
|
8
|
+
const sentenceStartersTextDefault = [
|
9
|
+
'The strategy I’m going to use is',
|
10
|
+
'First, I will',
|
11
|
+
'Secondly, I will',
|
12
|
+
'I will check my work by',
|
13
|
+
'If my strategy is not working, I will'
|
14
|
+
];
|
15
|
+
|
16
|
+
describe('Preview question : ThinkSphere Question - Plan Section - preview tab', () => {
|
17
|
+
before(() => {
|
18
|
+
cy.loginAs('admin');
|
19
|
+
cy.deleteThinkSphereItem('~zzz item name review test');
|
20
|
+
cy.createThinkSphereItem('~zzz item name review test', true);
|
21
|
+
cy.visit('/item-engine/thinksphere/browse-items');
|
22
|
+
browseItemsPage.steps.clickOnItemReferenceId('~zzz item name review test');
|
23
|
+
browseItemsPage.steps.clickOnAddReviewItem();
|
24
|
+
thinkSpherePage.steps.createReviewQuestion();
|
25
|
+
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
26
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
27
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
28
|
+
});
|
29
|
+
|
30
|
+
after(() => {
|
31
|
+
cy.deleteThinkSphereItem('~zzz item name review test');
|
32
|
+
});
|
33
|
+
|
34
|
+
describe('\'Question instruction\' section', () => {
|
35
|
+
abortEarlySetup();
|
36
|
+
it('\'Question instruction\' section should be present', () => {
|
37
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
|
38
|
+
});
|
39
|
+
|
40
|
+
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
41
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
|
42
|
+
'border-radius': '12px',
|
43
|
+
'background-color': css.color.questionInstructionBG,
|
44
|
+
'padding': '10px 170px 10px 27px',
|
45
|
+
'font-size': css.fontSize.default,
|
46
|
+
'font-weight': css.fontWeight.regular,
|
47
|
+
});
|
48
|
+
});
|
49
|
+
|
50
|
+
it('Question instruction image should visibile in the preview', () => {
|
51
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
52
|
+
});
|
53
|
+
|
54
|
+
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
55
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
|
56
|
+
'width': '143px',
|
57
|
+
'height': '110px',
|
58
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
59
|
+
'background-color': css.color.primaryBtn,
|
60
|
+
});
|
61
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
|
62
|
+
'width': '24px',
|
63
|
+
'height': '24px',
|
64
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
65
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
66
|
+
'border-radius': '4px',
|
67
|
+
'background-color': css.color.primaryBtn,
|
68
|
+
});
|
69
|
+
});
|
70
|
+
|
71
|
+
it('When user clicks on expand question instruction image then it should open in the popup', () => {
|
72
|
+
thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
|
73
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
74
|
+
thinkSpherePage.steps.verifyQuestionImagePopup();
|
75
|
+
});
|
76
|
+
|
77
|
+
it('CSS of question instruction image popup', { tags: 'css' }, () => {
|
78
|
+
utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
|
79
|
+
'border-radius': '8px',
|
80
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
81
|
+
'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
|
82
|
+
});
|
83
|
+
utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
|
84
|
+
'background-color': css.color.primaryBtn,
|
85
|
+
'font-size': css.fontSize.normal,
|
86
|
+
'font-weight': css.fontWeight.semibold,
|
87
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
88
|
+
'color': css.color.primaryBtnBorder,
|
89
|
+
});
|
90
|
+
});
|
91
|
+
|
92
|
+
it('When user clicks on close expand image popup button then it should remove the popup', () => {
|
93
|
+
thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
|
94
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
|
95
|
+
});
|
96
|
+
});
|
97
|
+
});
|