itemengine-cypress-automation 1.0.381-PR-fixes-1c28a3d.0 → 1.0.381-regressionFixes10June-8dc1710.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Dockerfile +1 -0
- package/cypress/e2e/GradingGridView/gradingGridView.js +156 -0
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +2 -0
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -0
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +37 -36
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +26 -25
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +39 -38
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +31 -30
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +35 -34
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +247 -0
- package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +92 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePointsLocked.js +220 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +47 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightBasic.js +25 -25
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +24 -23
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +21 -20
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +48 -46
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePointsLocked.js +249 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
- package/cypress/e2e/ILC/ChartsLine/specifyCorrectAnswerSection.js +94 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +2 -4
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +2 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +1 -1
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +6 -0
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +2 -3
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +3 -3
- package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +3 -3
- package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +11 -11
- package/cypress/e2e/ILC/CkEditorLink/uploadSection.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/editTabBasics.js +63 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +116 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/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/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +40 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +45 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +73 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +38 -0
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +87 -0
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +28 -0
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +38 -0
- package/cypress/e2e/ILC/Graphing/editTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +36 -4
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +40 -0
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
- package/cypress/e2e/ILC/GridFill/headerSection.js +4 -4
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +37 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +39 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +36 -0
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +75 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +212 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +29 -0
- package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +3 -3
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +86 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +237 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +35 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +108 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +7 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +10 -14
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +215 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +36 -9
- package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +2 -0
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +7 -23
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +30 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +50 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +101 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +309 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +24 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +4 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +38 -3
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +38 -41
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +98 -0
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -5
- package/cypress/e2e/ILC/Matching/draggableOptions.js +7 -0
- package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +3 -2
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +38 -12
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +2 -0
- package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +6 -6
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +100 -69
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +1 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +79 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +42 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +75 -0
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +32 -0
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLine/headerSection.js +33 -4
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +81 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +76 -0
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +34 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +38 -0
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +37 -5
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +186 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +35 -51
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/headerSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextSelection/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +231 -0
- package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -3
- package/cypress/e2e/ILC/TextSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabSolveSection.js +36 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +27 -28
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +24 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +39 -37
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +22 -23
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +31 -30
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +25 -24
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +31 -31
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +18 -19
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +96 -0
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/saveResponseScores.js +2 -2
- package/cypress/fixtures/thinkSphereWhiteboardTools.js +66 -0
- package/cypress/pages/audioPlayerPage.js +47 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +45 -0
- package/cypress/pages/chartsDotPlotPage.js +25 -0
- package/cypress/pages/chartsLinePage.js +28 -3
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +5 -1
- package/cypress/pages/components/chartsCommonComponent.js +6 -2
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +1 -0
- package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
- package/cypress/pages/components/ckEditorInsertTableComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +8 -9
- package/cypress/pages/components/colorPopupComponent.js +6 -0
- package/cypress/pages/components/createQuestionBasePage.js +19 -6
- package/cypress/pages/components/draggableOptionsSectionComponent.js +2 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +10 -25
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +31 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +55 -2
- package/cypress/pages/components/imageCanvasComponent.js +11 -5
- package/cypress/pages/components/questionInstructionsComponent.js +2 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -0
- package/cypress/pages/components/specifyRowsAndColumnsComponent.js +16 -0
- package/cypress/pages/contentBlocksPage.js +2 -0
- package/cypress/pages/desmos3DGraphingPage.js +149 -4
- package/cypress/pages/desmosGeometryPage.js +184 -4
- package/cypress/pages/drawingResponsePage.js +10 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -8
- package/cypress/pages/gradingGridViewPage.js +64 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +27 -9
- package/cypress/pages/imageHighlightPage.js +115 -15
- package/cypress/pages/index.js +1 -0
- package/cypress/pages/listOrderingPage.js +40 -1
- package/cypress/pages/matchingPage.js +29 -10
- package/cypress/pages/numberLineLabelPage.js +31 -8
- package/cypress/pages/numberLinePage.js +19 -7
- package/cypress/pages/singleSelectionPage.js +30 -1
- package/cypress/pages/textEntryMathPage.js +24 -1
- package/cypress/pages/textSelectionPage.js +2 -2
- package/cypress/pages/thinkSpherePage.js +928 -87
- package/cypress/pages/uploadResponsePage.js +17 -1
- package/cypress/pages/videoResponsePage.js +3 -0
- package/cypress/support/commands.js +9 -0
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +14 -1
- package/package.json +2 -2
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/checkAnswerFunctionalityForAllViews.js +0 -0
- /package/cypress/e2e/ILC/{ChartsDotsPlot → chartsDotsPlot}/editQuestion.smoke.js +0 -0
@@ -0,0 +1,393 @@
|
|
1
|
+
import uuid from 'react-uuid';
|
2
|
+
import { thinkSpherePage } from "../../../pages";
|
3
|
+
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
4
|
+
import { commonComponents } from "../../../pages/components/commonComponents";
|
5
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
6
|
+
import utilities from "../../../support/helpers/utilities";
|
7
|
+
const css = Cypress.env('css');
|
8
|
+
|
9
|
+
const sentenceStartersTextDefault = [
|
10
|
+
'The strategy I’m going to use is',
|
11
|
+
'First, I will',
|
12
|
+
'Secondly, I will',
|
13
|
+
'I will check my work by',
|
14
|
+
'If my strategy is not working, I will'
|
15
|
+
];
|
16
|
+
|
17
|
+
describe('Student view : ThinkSphere Question - Plan Section', () => {
|
18
|
+
const uuidString = uuid();
|
19
|
+
|
20
|
+
before(() => {
|
21
|
+
cy.loginAs('admin');
|
22
|
+
cy.createThinkSphereItem(uuidString, true);
|
23
|
+
cy.visit('/item-engine/thinksphere/browse-items');
|
24
|
+
browseItemsPage.steps.clickOnActionButton();
|
25
|
+
browseItemsPage.steps.clickOnActionMenuItem(0);
|
26
|
+
});
|
27
|
+
|
28
|
+
describe('\'Question instruction\' section', () => {
|
29
|
+
abortEarlySetup();
|
30
|
+
it('\'Question instruction\' section should be present', () => {
|
31
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
|
32
|
+
});
|
33
|
+
|
34
|
+
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
35
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
|
36
|
+
'border-radius': '12px',
|
37
|
+
'background-color': css.color.questionInstructionBG,
|
38
|
+
'padding': '10px 170px 10px 27px',
|
39
|
+
'font-size': css.fontSize.default,
|
40
|
+
'font-weight': css.fontWeight.regular,
|
41
|
+
});
|
42
|
+
});
|
43
|
+
|
44
|
+
it('Question instruction image should visibile in the preview', () => {
|
45
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
46
|
+
});
|
47
|
+
|
48
|
+
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
49
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
|
50
|
+
'width': '143px',
|
51
|
+
'height': '110px',
|
52
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
53
|
+
'background-color': css.color.primaryBtn,
|
54
|
+
});
|
55
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
|
56
|
+
'width': '24px',
|
57
|
+
'height': '24px',
|
58
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
59
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
60
|
+
'border-radius': '4px',
|
61
|
+
'background-color': css.color.primaryBtn,
|
62
|
+
});
|
63
|
+
});
|
64
|
+
|
65
|
+
it('When user clicks on expand question instruction image then it should open in the popup', () => {
|
66
|
+
thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
|
67
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
68
|
+
thinkSpherePage.steps.verifyQuestionImagePopup();
|
69
|
+
});
|
70
|
+
|
71
|
+
it('CSS of question instruction image popup', { tags: 'css' }, () => {
|
72
|
+
utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
|
73
|
+
'border-radius': '8px',
|
74
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
75
|
+
'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
|
76
|
+
});
|
77
|
+
utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
|
78
|
+
'background-color': css.color.primaryBtn,
|
79
|
+
'font-size': css.fontSize.normal,
|
80
|
+
'font-weight': css.fontWeight.semibold,
|
81
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
82
|
+
'color': css.color.primaryBtnBorder,
|
83
|
+
});
|
84
|
+
});
|
85
|
+
|
86
|
+
it('When user clicks on close expand image popup button then it should remove the popup', () => {
|
87
|
+
thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
|
88
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
|
89
|
+
});
|
90
|
+
});
|
91
|
+
|
92
|
+
describe('\'Choose your strategies\' section', () => {
|
93
|
+
abortEarlySetup();
|
94
|
+
it('\'Choose your strategies\' section and title should be present', () => {
|
95
|
+
utilities.verifyInnerText(thinkSpherePage.strategiesPreviewHeader(), 'Choose your strategies');
|
96
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategiesPreviewHeader(), 'visible');
|
97
|
+
});
|
98
|
+
|
99
|
+
it('\'Add new strategy\' button should be present', () => {
|
100
|
+
utilities.verifyInnerText(thinkSpherePage.addNewStrategyButton(), 'Add new strategy');
|
101
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addNewStrategyButton(), 'visible');
|
102
|
+
});
|
103
|
+
|
104
|
+
it('CSS of strategies header and add new strategy button', { tags: 'css' }, () => {
|
105
|
+
utilities.verifyCSS(thinkSpherePage.strategiesPreviewHeader(), {
|
106
|
+
'font-size': css.fontSize.heading,
|
107
|
+
'font-weight': css.fontWeight.semibold,
|
108
|
+
'color': css.color.primaryBtnBorder,
|
109
|
+
});
|
110
|
+
utilities.verifyCSS(thinkSpherePage.addNewStrategyButton(), {
|
111
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
112
|
+
'padding': '12px 16px',
|
113
|
+
'border-radius': '8px',
|
114
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
115
|
+
});
|
116
|
+
utilities.verifyCSS(thinkSpherePage.addNewStrategyTextWrapper(), {
|
117
|
+
'color': css.color.primaryBtnBorder,
|
118
|
+
'font-size': css.fontSize.default,
|
119
|
+
'font-weight': css.fontWeight.regular,
|
120
|
+
});
|
121
|
+
});
|
122
|
+
|
123
|
+
it('CSS of strategies list', { tags: 'css' }, () => {
|
124
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0), {
|
125
|
+
'padding': '8px 16px 8px 24px',
|
126
|
+
'border': `2px solid ${css.color.transparent}`,
|
127
|
+
'background-color': css.color.progressBarRemainingFill,
|
128
|
+
'border-radius': '12px',
|
129
|
+
});
|
130
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
|
131
|
+
'color': css.color.primaryBtnBorder,
|
132
|
+
'margin-right': '40px',
|
133
|
+
'font-size': '18px',
|
134
|
+
'font-weight': '600',
|
135
|
+
});
|
136
|
+
|
137
|
+
// css of strategies list on hover
|
138
|
+
utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0)
|
139
|
+
.realHover();
|
140
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0), {
|
141
|
+
'outline-color': css.color.toggleButtonSelectedBg,
|
142
|
+
'outline-offset': '-1px',
|
143
|
+
'outline-style': 'solid',
|
144
|
+
});
|
145
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
|
146
|
+
'color': css.color.primaryBtnBg,
|
147
|
+
});
|
148
|
+
utilities.triggerMouseout(utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0));
|
149
|
+
});
|
150
|
+
|
151
|
+
it('When we click add new strategy button a popup should be opened with header \'Add new strategy\', a text input field with label \'Strategy name\', a cancel and a save button', () => {
|
152
|
+
thinkSpherePage.addNewStrategyButton().click();
|
153
|
+
utilities.verifyInnerText(thinkSpherePage.popupTitle(), 'Add new strategy');
|
154
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.popupTitle(), 'visible');
|
155
|
+
utilities.verifyInnerText(thinkSpherePage.strategyNameLabel(), 'Strategy name');
|
156
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameLabel(), 'visible');
|
157
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameInputField(), 'visible');
|
158
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupCancelButton(), 'visible');
|
159
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupSaveButton(), 'visible');
|
160
|
+
thinkSpherePage.addStrategyPopupCancelButton().click();
|
161
|
+
});
|
162
|
+
|
163
|
+
it('Add new strategy popup should close when cancel button is clicked and the number of strategies should be same before opening the popup', () => {
|
164
|
+
thinkSpherePage.steps.verifyAddNewStrategyPopupCloseFunctionality();
|
165
|
+
});
|
166
|
+
|
167
|
+
it('When user adds a new strategy, the popup should close when save button is clicked and the number of strategies should increase by 1 compared to that before opening the popup', () => {
|
168
|
+
thinkSpherePage.steps.verifyAddNewStrategyPopupSaveFunctionality();
|
169
|
+
});
|
170
|
+
|
171
|
+
it('CSS of strategies list in selected state', { tags: 'css' }, () => {
|
172
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
173
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 1), {
|
174
|
+
'border': `2px solid ${css.color.toggleButtonSelectedBg}`,
|
175
|
+
'background-color': css.color.transparent,
|
176
|
+
});
|
177
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 1), {
|
178
|
+
'color': css.color.primaryBtnBg,
|
179
|
+
});
|
180
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
181
|
+
});
|
182
|
+
|
183
|
+
it('Video icon for should present by default besides the strategy name', () => {
|
184
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(thinkSpherePage.videoIconWrapper(), 0), 'visible');
|
185
|
+
});
|
186
|
+
|
187
|
+
it('When user clicks on video icon then video should be played in the popup', () => {
|
188
|
+
thinkSpherePage.steps.clickOnVideoIcon();
|
189
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
190
|
+
thinkSpherePage.steps.verifyVideoPopupDialogBox();
|
191
|
+
thinkSpherePage.steps.closeVideoPopup();
|
192
|
+
});
|
193
|
+
});
|
194
|
+
|
195
|
+
describe('\'Planning journal\' Section', () => {
|
196
|
+
abortEarlySetup();
|
197
|
+
it('\'Planning journal\' section should be present', () => {
|
198
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.PlanningPreviewWrapper(), 'visible');
|
199
|
+
});
|
200
|
+
|
201
|
+
it('\'Planning journal\' section heading should be present', () => {
|
202
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
|
203
|
+
utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
|
204
|
+
});
|
205
|
+
|
206
|
+
it('\'Sentence starters\' label and dropdown should be displayed', () => {
|
207
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterLabel(), 'visible');
|
208
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterDropdown(), 'visible');
|
209
|
+
utilities.verifyInnerText(thinkSpherePage.chooseStarterLabel(), 'Sentence starter');
|
210
|
+
thinkSpherePage.steps.verifySentenceStartersDropdown();
|
211
|
+
});
|
212
|
+
|
213
|
+
it('CSS of \'Sentence starter\' dropdown - default state', { tags: 'css' }, () => {
|
214
|
+
utilities.verifyCSS(thinkSpherePage.chooseStarterLabel(), {
|
215
|
+
'color': css.color.sectionHeading,
|
216
|
+
'font-size': css.fontSize.normal,
|
217
|
+
'font-weight': css.fontWeight.semibold,
|
218
|
+
});
|
219
|
+
utilities.verifyCSS(thinkSpherePage.chooseStarterDropdown(), {
|
220
|
+
'color': css.color.liText,
|
221
|
+
'font-size': css.fontSize.default,
|
222
|
+
'font-weight': css.fontWeight.regular
|
223
|
+
});
|
224
|
+
});
|
225
|
+
|
226
|
+
it('Clicking on \'Sentence starters\' dropdown should open a list', () => {
|
227
|
+
commonComponents.steps.verifyDropdownIsCollapsed();
|
228
|
+
thinkSpherePage.steps.expandChooseStarterDropdown();
|
229
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
230
|
+
thinkSpherePage.steps.verifySentenceStartersDropdownOptions(sentenceStartersTextDefault);
|
231
|
+
utilities.pressEscapeKey();
|
232
|
+
});
|
233
|
+
|
234
|
+
it('CSS of Sentence starters dropdown - active state', { tags: 'css' }, () => {
|
235
|
+
thinkSpherePage.steps.expandChooseStarterDropdown();
|
236
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 0), {
|
237
|
+
'color': css.color.liText,
|
238
|
+
'font-size': css.fontSize.default,
|
239
|
+
'font-weight': css.fontWeight.regular,
|
240
|
+
'background-color': css.color.optionsBg
|
241
|
+
});
|
242
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 1), {
|
243
|
+
'background-color': css.color.transparent
|
244
|
+
});
|
245
|
+
cy.log('Post step: Closing the Sentence starters dropdown');
|
246
|
+
utilities.pressEscapeKey();
|
247
|
+
});
|
248
|
+
|
249
|
+
it('When user clicks on any starter then it should get written in the \'Write your plan\' text input field', () => {
|
250
|
+
thinkSpherePage.steps.verifySentenceStartersDropdownFunctionality();
|
251
|
+
});
|
252
|
+
|
253
|
+
it('\'Planning journal\' write wrapper should be present', () => {
|
254
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.planningWriteWrapper(), 'visible');
|
255
|
+
});
|
256
|
+
|
257
|
+
it('\'The problem is asking me to\' section should be present', () => {
|
258
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingWrapper(), 'visible');
|
259
|
+
});
|
260
|
+
|
261
|
+
it('\'The problem is asking me to\' subheading should be present', () => {
|
262
|
+
thinkSpherePage.steps.verifyProblemAskingHeading();
|
263
|
+
});
|
264
|
+
|
265
|
+
it('Text area with placeholder \'Enter your text here\' should be present under \'The problem is asking me to\' section', () => {
|
266
|
+
thinkSpherePage.steps.verifyProblemAskingTextArea();
|
267
|
+
});
|
268
|
+
|
269
|
+
it('Mic button should be present under \'The problem is asking me to\' section', () => {
|
270
|
+
thinkSpherePage.steps.verifyProblemAskingMicSection();
|
271
|
+
});
|
272
|
+
|
273
|
+
it('User should be able to write in the \'Enter your text here\' textarea under \'The problem is asking me to\' section', () => {
|
274
|
+
thinkSpherePage.steps.verifyProblemAskingTextAreaFunctionality('This is a test text for the problem.');
|
275
|
+
});
|
276
|
+
|
277
|
+
it('\'Add strategies to plan\' section should be present', () => {
|
278
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategiesToPlanWrapper(), 'visible');
|
279
|
+
});
|
280
|
+
|
281
|
+
it('\'Add strategies to plan\' subheading should be present', () => {
|
282
|
+
thinkSpherePage.steps.verifyStrategiesToPlanHeading();
|
283
|
+
});
|
284
|
+
|
285
|
+
it('By default the strategy chips should not present under \'Add strategies to plan\' section', () => {
|
286
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'notExist');
|
287
|
+
});
|
288
|
+
|
289
|
+
it('\'Write your plan\' section should be present', () => {
|
290
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.writePlanWrapper(), 'visible');
|
291
|
+
});
|
292
|
+
|
293
|
+
it('\'Write your plan\' subheading should be present', () => {
|
294
|
+
thinkSpherePage.steps.verifyWritePlanHeading();
|
295
|
+
});
|
296
|
+
|
297
|
+
it('Text area with placeholder \'Enter your plan here\' should be present under \'Write your plan\' section', () => {
|
298
|
+
thinkSpherePage.steps.verifyWritePlanTextArea();
|
299
|
+
});
|
300
|
+
|
301
|
+
it('Mic button should be present under \'Write your plan\' section', () => {
|
302
|
+
thinkSpherePage.steps.verifyWritePlanMicSection();
|
303
|
+
});
|
304
|
+
|
305
|
+
it('User should be able to write in the \'Enter your plan here\' textarea under \'Write your plan\' section', () => {
|
306
|
+
thinkSpherePage.steps.verifyWritePlanTextAreaFunctionality('This is a test plan.');
|
307
|
+
});
|
308
|
+
|
309
|
+
it('When user click on strategy list it should display inside \'Add strategies to plan\' wrapper in the form of chip', () => {
|
310
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
311
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChipWrapper(), 'visible');
|
312
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'visible');
|
313
|
+
utilities.verifyInnerText(thinkSpherePage.strategyChip(), 'Look for a pattern');
|
314
|
+
});
|
315
|
+
|
316
|
+
it('CSS of strategy chip when it is not selected', { tags: 'css' }, () => {
|
317
|
+
utilities.verifyCSS(thinkSpherePage.strategyChip(), {
|
318
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
319
|
+
'color': css.color.sectionHeading,
|
320
|
+
'border-radius': '20px',
|
321
|
+
'font-size': css.fontSize.normal,
|
322
|
+
'font-weight': css.fontWeight.regular,
|
323
|
+
});
|
324
|
+
});
|
325
|
+
|
326
|
+
it('When user click on strategy chip it should get written in the \'Write your plan\' text input field', () => {
|
327
|
+
thinkSpherePage.steps.verifyStrategyChipClickFunctionality();
|
328
|
+
});
|
329
|
+
|
330
|
+
it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
|
331
|
+
utilities.verifyCSS(thinkSpherePage.strategyChip(), {
|
332
|
+
'background-color': css.color.secondaryBtnBorder,
|
333
|
+
'border': `1px solid ${css.color.primaryBtnBg}`,
|
334
|
+
});
|
335
|
+
|
336
|
+
utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
|
337
|
+
'color': css.color.primaryBtnBorder,
|
338
|
+
'font-size': css.fontSize.heading,
|
339
|
+
'font-weight': css.fontWeight.semibold,
|
340
|
+
});
|
341
|
+
|
342
|
+
utilities.verifyCSS(thinkSpherePage.planningWriteWrapper(), {
|
343
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
344
|
+
'border-radius': '12px'
|
345
|
+
});
|
346
|
+
|
347
|
+
utilities.verifyCSS(thinkSpherePage.problemAskingWrapper(), {
|
348
|
+
'padding': '16px 16px 14px',
|
349
|
+
'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
|
350
|
+
});
|
351
|
+
|
352
|
+
utilities.verifyCSS(thinkSpherePage.strategiesToPlanWrapper(), {
|
353
|
+
'padding': '16px',
|
354
|
+
'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
|
355
|
+
});
|
356
|
+
|
357
|
+
utilities.verifyCSS(thinkSpherePage.writePlanWrapper(), {
|
358
|
+
'padding': '16px'
|
359
|
+
});
|
360
|
+
|
361
|
+
thinkSpherePage.problemAskingWrapper()
|
362
|
+
.within(() => {
|
363
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
364
|
+
'color': css.color.primaryBtnBorder,
|
365
|
+
'font-size': css.fontSize.normal,
|
366
|
+
'font-weight': css.fontWeight.bold,
|
367
|
+
});
|
368
|
+
});
|
369
|
+
|
370
|
+
thinkSpherePage.strategiesToPlanWrapper()
|
371
|
+
.within(() => {
|
372
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
373
|
+
'color': css.color.primaryBtnBorder,
|
374
|
+
'font-size': css.fontSize.normal,
|
375
|
+
'font-weight': css.fontWeight.bold,
|
376
|
+
});
|
377
|
+
});
|
378
|
+
|
379
|
+
thinkSpherePage.writePlanWrapper()
|
380
|
+
.within(() => {
|
381
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
382
|
+
'color': css.color.primaryBtnBorder,
|
383
|
+
'font-size': css.fontSize.normal,
|
384
|
+
'font-weight': css.fontWeight.bold,
|
385
|
+
});
|
386
|
+
});
|
387
|
+
});
|
388
|
+
|
389
|
+
it('Accessibility of planning journal', { tags: 'a11y' }, () => {
|
390
|
+
cy.checkAccessibility(thinkSpherePage.PlanningPreviewWrapper());
|
391
|
+
});
|
392
|
+
});
|
393
|
+
});
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import uuid from 'react-uuid';
|
2
|
+
import { thinkSpherePage } from "../../../pages";
|
3
|
+
import { browseItemsPage } from "../../../pages/components/browseItemsPage";
|
4
|
+
import { commonComponents } from "../../../pages/components/commonComponents";
|
5
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
6
|
+
import utilities from "../../../support/helpers/utilities";
|
7
|
+
const css = Cypress.env('css');
|
8
|
+
|
9
|
+
describe('Student view : ThinkSphere Question - Review Section', () => {
|
10
|
+
const uuidString = uuid();
|
11
|
+
|
12
|
+
before(() => {
|
13
|
+
cy.loginAs('admin');
|
14
|
+
cy.createThinkSphereItem(uuidString, true);
|
15
|
+
thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
|
16
|
+
browseItemsPage.steps.clickOnItemReferenceId(uuidString);
|
17
|
+
browseItemsPage.steps.clickOnAddReviewItem();
|
18
|
+
thinkSpherePage.steps.createReviewQuestion();
|
19
|
+
thinkSpherePage.steps.visitThinksphereBrowseItemsPage();
|
20
|
+
browseItemsPage.steps.clickOnActionButton();
|
21
|
+
browseItemsPage.steps.clickOnActionMenuItem(0);
|
22
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
23
|
+
});
|
24
|
+
|
25
|
+
describe('\'Question instruction\' section', () => {
|
26
|
+
abortEarlySetup();
|
27
|
+
it('\'Question instruction\' section should be present', () => {
|
28
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
|
29
|
+
});
|
30
|
+
|
31
|
+
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
32
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
|
33
|
+
'border-radius': '12px',
|
34
|
+
'background-color': css.color.questionInstructionBG,
|
35
|
+
'padding': '10px 170px 10px 27px',
|
36
|
+
'font-size': css.fontSize.default,
|
37
|
+
'font-weight': css.fontWeight.regular,
|
38
|
+
});
|
39
|
+
});
|
40
|
+
|
41
|
+
it('Question instruction image should visibile in the preview', () => {
|
42
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
43
|
+
});
|
44
|
+
|
45
|
+
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
46
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
|
47
|
+
'width': '143px',
|
48
|
+
'height': '110px',
|
49
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
50
|
+
'background-color': css.color.primaryBtn,
|
51
|
+
});
|
52
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
|
53
|
+
'width': '24px',
|
54
|
+
'height': '24px',
|
55
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
56
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
57
|
+
'border-radius': '4px',
|
58
|
+
'background-color': css.color.primaryBtn,
|
59
|
+
});
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When user clicks on expand question instruction image then it should open in the popup', () => {
|
63
|
+
thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
|
64
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
65
|
+
thinkSpherePage.steps.verifyQuestionImagePopup();
|
66
|
+
});
|
67
|
+
|
68
|
+
it('CSS of question instruction image popup', { tags: 'css' }, () => {
|
69
|
+
utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
|
70
|
+
'border-radius': '8px',
|
71
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
72
|
+
'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
|
73
|
+
});
|
74
|
+
utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
|
75
|
+
'background-color': css.color.primaryBtn,
|
76
|
+
'font-size': css.fontSize.normal,
|
77
|
+
'font-weight': css.fontWeight.semibold,
|
78
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
79
|
+
'color': css.color.primaryBtnBorder,
|
80
|
+
});
|
81
|
+
});
|
82
|
+
|
83
|
+
it('When user clicks on close expand image popup button then it should remove the popup', () => {
|
84
|
+
thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
|
85
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
|
86
|
+
});
|
87
|
+
});
|
88
|
+
|
89
|
+
describe('\'Check your math\' section', () => {
|
90
|
+
abortEarlySetup();
|
91
|
+
it('\'Check your math\' section header should be present', () => {
|
92
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.checkYourMathHeading(), 'visible');
|
93
|
+
utilities.verifyInnerText(thinkSpherePage.checkYourMathHeading(), 'Check your math');
|
94
|
+
});
|
95
|
+
|
96
|
+
it('CSS of \'Check your math\' section header', { tags: 'css' }, () => {
|
97
|
+
utilities.verifyCSS(thinkSpherePage.checkYourMathHeading(), {
|
98
|
+
'color': css.color.primaryBtnBorder,
|
99
|
+
'font-size': css.fontSize.heading,
|
100
|
+
'font-weight': css.fontWeight.semibold,
|
101
|
+
});
|
102
|
+
});
|
103
|
+
|
104
|
+
it('\'The problem is asking me to\' section header should be present', () => {
|
105
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingToMeTextWrapper(), 'visible');
|
106
|
+
utilities.verifyInnerText(thinkSpherePage.problemAskingToMeTextWrapper(), 'The problem is asking me to...');
|
107
|
+
});
|
108
|
+
|
109
|
+
it('Review question should be present', () => {
|
110
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.reviewQuestionWrapper(), 'visible');
|
111
|
+
});
|
112
|
+
|
113
|
+
it('CSS of \'The problem is asking me to\' section', { tags: 'css' }, () => {
|
114
|
+
utilities.verifyCSS(thinkSpherePage.problemAskingToMeTextWrapper(), {
|
115
|
+
'color': css.color.primaryBtnBorder,
|
116
|
+
'font-size': css.fontSize.normal,
|
117
|
+
'font-weight': css.fontWeight.bold,
|
118
|
+
});
|
119
|
+
utilities.verifyCSS(thinkSpherePage.reviewComponentWrapper(), {
|
120
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
121
|
+
'border-radius': '12px'
|
122
|
+
});
|
123
|
+
});
|
124
|
+
|
125
|
+
it('When User type in the \'The problem is asking me to\' in the plan tab, then it should render in the \'The problem is asking me to\' in the review tab', () => {
|
126
|
+
thinkSpherePage.steps.clickOnPlanTab();
|
127
|
+
thinkSpherePage.steps.verifyProblemAskingTextAreaFunctionality('This is a test text for the problem.');
|
128
|
+
thinkSpherePage.steps.clickOnReviewTab();
|
129
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemStatementWrapper(), 'visible');
|
130
|
+
utilities.verifyInnerText(thinkSpherePage.problemStatementWrapper(), 'This is a test text for the problem.');
|
131
|
+
});
|
132
|
+
|
133
|
+
it('CSS of \'The problem is asking me to\' section statement', { tags: 'css' }, () => {
|
134
|
+
utilities.verifyCSS(thinkSpherePage.problemStatementWrapper(), {
|
135
|
+
'color': css.color.text,
|
136
|
+
'font-size': css.fontSize.default,
|
137
|
+
'font-weight': css.fontWeight.regular,
|
138
|
+
});
|
139
|
+
});
|
140
|
+
});
|
141
|
+
});
|
@@ -1,9 +1,12 @@
|
|
1
|
-
import { audioPlayerPage, dialogBoxBase, selectQuestionResourceToolPage } from "../../../pages";
|
1
|
+
import { audioPlayerPage, dialogBoxBase, selectQuestionResourceToolPage, itemPreviewPage } from "../../../pages";
|
2
|
+
import { browseItemsPage } from "../../../pages/components";
|
2
3
|
import utilities from "../../../support/helpers/utilities";
|
3
4
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
5
|
import constants from "../../../fixtures/constants";
|
5
6
|
const css = Cypress.env('css');
|
6
7
|
|
8
|
+
var itemReferenceID = "";
|
9
|
+
|
7
10
|
describe('Create question page - Audio player: Header section and saving resource tool', () => {
|
8
11
|
before(() => {
|
9
12
|
cy.loginAs('admin');
|
@@ -99,7 +102,7 @@ describe('Create question page - Audio player: Header section and saving resourc
|
|
99
102
|
});
|
100
103
|
|
101
104
|
describe('Validation error messages', () => {
|
102
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
105
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please upload a file']);
|
103
106
|
|
104
107
|
it('Validation error message(s) should be displayed below required input field(s)', () => {
|
105
108
|
utilities.verifyElementVisibilityState(audioPlayerPage.errorMessage(), 'visible');
|
@@ -122,4 +125,89 @@ describe('Create question page - Audio player: Header section and saving resourc
|
|
122
125
|
audioPlayerPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
123
126
|
});
|
124
127
|
});
|
128
|
+
|
129
|
+
describe('Saving a question with incomplete authoring', () => {
|
130
|
+
abortEarlySetup();
|
131
|
+
before(() => {
|
132
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
133
|
+
});
|
134
|
+
|
135
|
+
it('User should be able to save the resource with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save button is clicked', () => {
|
136
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please add a source URL']);
|
137
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
138
|
+
});
|
139
|
+
audioPlayerPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
140
|
+
});
|
141
|
+
|
142
|
+
describe('User should be able to edit incomplete authored resource', () => {
|
143
|
+
abortEarlySetup();
|
144
|
+
before(() => {
|
145
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
146
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
147
|
+
audioPlayerPage.steps.editItem();
|
148
|
+
});
|
149
|
+
|
150
|
+
it('Warning icons should be displayed on the required input fields', () => {
|
151
|
+
audioPlayerPage.steps.verifyWarningIconOnRequiredFields([
|
152
|
+
'Please add a source URL',
|
153
|
+
]);
|
154
|
+
});
|
155
|
+
|
156
|
+
it('When required input fields are filled then warning icons should disappear', () => {
|
157
|
+
audioPlayerPage.steps.uploadAudioFile('uploads/sample.mp3');
|
158
|
+
audioPlayerPage.steps.verifyErrorMessageIsNotDisplayed();
|
159
|
+
});
|
160
|
+
|
161
|
+
it('Clicking on Save button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
162
|
+
audioPlayerPage.steps.saveAQuestionAndVerifySnackbar();
|
163
|
+
});
|
164
|
+
|
165
|
+
it('Warning icon should not be visible', () => {
|
166
|
+
audioPlayerPage.steps.verifyWarningIconNotExist();
|
167
|
+
});
|
168
|
+
});
|
169
|
+
|
170
|
+
describe('User should be able to edit incomplete authored resource when add audio URL is selected', () => {
|
171
|
+
abortEarlySetup();
|
172
|
+
before(() => {
|
173
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
174
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
175
|
+
audioPlayerPage.steps.editItem();
|
176
|
+
});
|
177
|
+
|
178
|
+
it('Warning icons should be displayed on the required input fields', () => {
|
179
|
+
audioPlayerPage.steps.selectAddAudioURLRadioButton();
|
180
|
+
audioPlayerPage.steps.verifyWarningIconOnRequiredFields([
|
181
|
+
'Please add a source URL',
|
182
|
+
]);
|
183
|
+
});
|
184
|
+
|
185
|
+
it('When required input fields are filled then warning icons should disappear', () => {
|
186
|
+
audioPlayerPage.steps.enterTextInSourceURLInputField(constants.sampleMp3Link);
|
187
|
+
audioPlayerPage.steps.verifyErrorMessageIsNotDisplayed();
|
188
|
+
});
|
189
|
+
|
190
|
+
it('Clicking on Save button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
191
|
+
audioPlayerPage.steps.saveAQuestionAndVerifySnackbar();
|
192
|
+
});
|
193
|
+
|
194
|
+
it('Warning icon should not be visible', () => {
|
195
|
+
audioPlayerPage.steps.verifyWarningIconNotExist();
|
196
|
+
});
|
197
|
+
});
|
198
|
+
|
199
|
+
describe('Save as you go - Browse item page contents', () => {
|
200
|
+
abortEarlySetup();
|
201
|
+
before(() => {
|
202
|
+
audioPlayerPage.steps.navigateToCreateResource('audio player');
|
203
|
+
audioPlayerPage.steps.saveAQuestionWithIncompleteAuthoring();
|
204
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
205
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
206
|
+
browseItemsPage.steps.navigateToBrowseItemsPage();
|
207
|
+
});
|
208
|
+
|
209
|
+
it('When user saves an incompletely authored resource then a warning icon should be visible in browse items page', () => {
|
210
|
+
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
211
|
+
});
|
212
|
+
});
|
125
213
|
});
|