itemengine-cypress-automation 1.0.355 → 1.0.356-capture-image-8b4830c.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/ILC/AudioResponseNew/editTabBasicSection.js +4 -16
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +49 -11
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +4 -3
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +4 -3
- 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 +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +37 -0
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +50 -2
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +3 -1
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +18 -1
- 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 +62 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +119 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.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 +1 -1
- 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/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/allOrNothingForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
- 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/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/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/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- 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/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -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/specifyCorrectAnswerSection.js +6 -10
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +23 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +35 -9
- 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/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 +35 -1
- 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 +3 -5
- package/cypress/e2e/ILC/Matching/draggableOptions.js +4 -0
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +41 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +36 -11
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -15
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +208 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +227 -0
- package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -67
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +6 -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/editTabBasicSections.js +35 -51
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -4
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
- package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +2 -0
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +101 -70
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
- 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/evaluationMethodEquivalentStructures.smoke.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -1
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +58 -4
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +208 -13
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +259 -9
- 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 +409 -4
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +39 -6
- 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/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/applitools.config.js +3 -3
- package/cypress/fixtures/theme/ilc.json +5 -1
- package/cypress/fixtures/uploads/sample.webm +0 -0
- package/cypress/fixtures/uploads/sample.wmv +0 -0
- package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
- package/cypress/pages/audioPlayerPage.js +47 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +20 -0
- package/cypress/pages/components/additionalSettingsPanel.js +3 -2
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
- package/cypress/pages/components/browseItemsPage.js +109 -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/commonComponents.js +4 -0
- package/cypress/pages/components/createQuestionBasePage.js +14 -1
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- 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 +56 -0
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
- package/cypress/pages/components/questionInstructionsComponent.js +9 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +4 -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 +2 -0
- package/cypress/pages/gradingViewPage.js +8 -0
- package/cypress/pages/graphingPage.js +27 -8
- package/cypress/pages/gridFillPage.js +15 -6
- package/cypress/pages/listOrderingPage.js +32 -1
- package/cypress/pages/matchingPage.js +26 -7
- package/cypress/pages/multipleSelectionPage.js +9 -1
- package/cypress/pages/numberLineLabelPage.js +31 -8
- package/cypress/pages/numberLinePage.js +19 -7
- package/cypress/pages/textEntryMathPage.js +24 -1
- package/cypress/pages/thinkSpherePage.js +925 -47
- 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 +668 -19
- package/cypress/support/helpers/utilities.js +35 -2
- package/package.json +3 -3
@@ -0,0 +1,541 @@
|
|
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');
|
20
|
+
cy.createThinkSphereItem('~zzz item name');
|
21
|
+
cy.visit('/item-engine/thinksphere/browse-items');
|
22
|
+
browseItemsPage.steps.clickOnItemReferenceId('~zzz item name');
|
23
|
+
thinkSpherePage.steps.clickOnEditQuestionIcon();
|
24
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
25
|
+
});
|
26
|
+
|
27
|
+
after(() => {
|
28
|
+
cy.deleteThinkSphereItem('~zzz item name');
|
29
|
+
});
|
30
|
+
|
31
|
+
describe('\'Question instruction\' section', () => {
|
32
|
+
abortEarlySetup();
|
33
|
+
it('\'Question instruction\' section should be present', () => {
|
34
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewTexWrapperVisibility('question instruction text');
|
35
|
+
});
|
36
|
+
|
37
|
+
it('CSS of \'Question instruction\' section', { tags: 'css' }, () => {
|
38
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewTexWrapper(), {
|
39
|
+
'border-radius': '12px',
|
40
|
+
'background-color': css.color.questionInstructionBG,
|
41
|
+
'padding': '10px 10px 10px 27px',
|
42
|
+
'font-size': css.fontSize.default,
|
43
|
+
'font-weight': css.fontWeight.regular,
|
44
|
+
});
|
45
|
+
});
|
46
|
+
|
47
|
+
it('When user add question instruction image then, it should visibile in the preview', () => {
|
48
|
+
thinkSpherePage.steps.switchToEditTab();
|
49
|
+
cy.wait(1000);
|
50
|
+
thinkSpherePage.steps.uploadFile('uploads/image.png');
|
51
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
52
|
+
thinkSpherePage.steps.verifyQuestionInstructionPreviewImageWrapperVisibility();
|
53
|
+
});
|
54
|
+
|
55
|
+
it('CSS of question instruction image section', { tags: 'css' }, () => {
|
56
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageWrapper(), {
|
57
|
+
'width': '143px',
|
58
|
+
'height': '110px',
|
59
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
60
|
+
'background-color': css.color.primaryBtn,
|
61
|
+
});
|
62
|
+
utilities.verifyCSS(thinkSpherePage.questionInstructionPreviewImageExpandButton(), {
|
63
|
+
'width': '24px',
|
64
|
+
'height': '24px',
|
65
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
66
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
67
|
+
'border-radius': '4px',
|
68
|
+
'background-color': css.color.primaryBtn,
|
69
|
+
});
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When user clicks on expand question instruction image then it should open in the popup', () => {
|
73
|
+
thinkSpherePage.steps.clickOnQuestionInstructionExpandImageButton();
|
74
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
75
|
+
thinkSpherePage.dialogBoxRoot()
|
76
|
+
.within(() => {
|
77
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.questionInstructionImagePopup(), 'visible');
|
78
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.closeExpandImagePopupButton(), 'visible');
|
79
|
+
});
|
80
|
+
});
|
81
|
+
|
82
|
+
it('CSS of question instruction image popup', { tags: 'css' }, () => {
|
83
|
+
utilities.verifyCSS(thinkSpherePage.dialogBoxRoot(), {
|
84
|
+
'border-radius': '8px',
|
85
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
86
|
+
'box-shadow': `${css.color.dialogBoxBoxShadow} 0px 0px 10px 0px`,
|
87
|
+
});
|
88
|
+
utilities.verifyCSS(thinkSpherePage.closeExpandImagePopupButton(), {
|
89
|
+
'background-color': css.color.primaryBtn,
|
90
|
+
'font-size': css.fontSize.normal,
|
91
|
+
'font-weight': css.fontWeight.semibold,
|
92
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
93
|
+
'color': css.color.primaryBtnBorder,
|
94
|
+
});
|
95
|
+
});
|
96
|
+
|
97
|
+
it('When user clicks on close expand image popup button then it should remove the popup', () => {
|
98
|
+
thinkSpherePage.steps.clickOnCloseExpandImagePopupButton();
|
99
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'notExist');
|
100
|
+
});
|
101
|
+
});
|
102
|
+
|
103
|
+
describe('\'Choose your strategies\' section', () => {
|
104
|
+
abortEarlySetup();
|
105
|
+
it('\'Choose your strategies\' section and title should be present', () => {
|
106
|
+
utilities.verifyInnerText(thinkSpherePage.strategiesPreviewHeader(), 'Choose your strategies');
|
107
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategiesPreviewHeader(), 'visible');
|
108
|
+
});
|
109
|
+
|
110
|
+
it('\'Add new strategy\' button should be present', () => {
|
111
|
+
utilities.verifyInnerText(thinkSpherePage.addNewStrategyButton(), 'Add new strategy');
|
112
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addNewStrategyButton(), 'visible');
|
113
|
+
});
|
114
|
+
|
115
|
+
it('CSS of strategies header and add new strategy button', { tags: 'css' }, () => {
|
116
|
+
utilities.verifyCSS(thinkSpherePage.strategiesPreviewHeader(), {
|
117
|
+
'font-size': css.fontSize.heading,
|
118
|
+
'font-weight': css.fontWeight.semibold,
|
119
|
+
'color': css.color.primaryBtnBorder,
|
120
|
+
});
|
121
|
+
utilities.verifyCSS(thinkSpherePage.addNewStrategyButton(), {
|
122
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
123
|
+
'padding': '12px 16px',
|
124
|
+
'border-radius': '8px',
|
125
|
+
'box-shadow': `${css.color.boxShadow} 0px 2px 8px 0px`,
|
126
|
+
});
|
127
|
+
utilities.verifyCSS(thinkSpherePage.addNewStrategyTextWrapper(), {
|
128
|
+
'color': css.color.primaryBtnBorder,
|
129
|
+
'font-size': css.fontSize.default,
|
130
|
+
'font-weight': css.fontWeight.regular,
|
131
|
+
});
|
132
|
+
});
|
133
|
+
|
134
|
+
it('Number of strategies in preview tab should be same as that in edit tab', () => {
|
135
|
+
let editTabCount, previewTabCount;
|
136
|
+
thinkSpherePage.steps.switchToEditTab();
|
137
|
+
thinkSpherePage.strategiesInputBoxEditTab()
|
138
|
+
.its('length')
|
139
|
+
.then((count) => {
|
140
|
+
editTabCount = count;
|
141
|
+
cy.log('Edit Tab Count:', editTabCount);
|
142
|
+
});
|
143
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
144
|
+
thinkSpherePage.strategiesBoxPreviewTab()
|
145
|
+
.its('length')
|
146
|
+
.then((count) => {
|
147
|
+
previewTabCount = count;
|
148
|
+
cy.log('Preview Tab Count:', previewTabCount);
|
149
|
+
expect(previewTabCount).to.equal(editTabCount);
|
150
|
+
});
|
151
|
+
});
|
152
|
+
|
153
|
+
it('CSS of strategies list', { tags: 'css' }, () => {
|
154
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 0), {
|
155
|
+
'padding': '8px 16px 8px 24px',
|
156
|
+
'border': `2px solid ${css.color.transparent}`,
|
157
|
+
'background-color': css.color.progressBarRemainingFill,
|
158
|
+
'border-radius': '12px',
|
159
|
+
});
|
160
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
|
161
|
+
'color': css.color.primaryBtnBorder,
|
162
|
+
'margin-right': '40px',
|
163
|
+
'font-size': '18px',
|
164
|
+
'font-weight': '600',
|
165
|
+
});
|
166
|
+
|
167
|
+
// css of strategies list on hover
|
168
|
+
utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0)
|
169
|
+
.realHover();;
|
170
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0), {
|
171
|
+
'outline-color': css.color.toggleButtonSelectedBg,
|
172
|
+
'outline-offset': '-1px',
|
173
|
+
'outline-style': 'solid',
|
174
|
+
});
|
175
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 0), {
|
176
|
+
'color': css.color.primaryBtnBg,
|
177
|
+
});
|
178
|
+
utilities.getNthElement(thinkSpherePage.strategiesBoxPreviewTab(), 0)
|
179
|
+
.trigger('mouseout');
|
180
|
+
});
|
181
|
+
|
182
|
+
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', () => {
|
183
|
+
thinkSpherePage.addNewStrategyButton().click();
|
184
|
+
utilities.verifyInnerText(thinkSpherePage.popupTitle(), 'Add new strategy');
|
185
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.popupTitle(), 'visible');
|
186
|
+
utilities.verifyInnerText(thinkSpherePage.strategyNameLabel(), 'Strategy name');
|
187
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameLabel(), 'visible');
|
188
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyNameInputField(), 'visible');
|
189
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupCancelButton(), 'visible');
|
190
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.addStrategyPopupSaveButton(), 'visible');
|
191
|
+
thinkSpherePage.addStrategyPopupCancelButton().click();
|
192
|
+
});
|
193
|
+
|
194
|
+
it('Add new strategy popup should close when cancel button is clicked and the number of strategies should be same before opening the popup', () => {
|
195
|
+
let countBeforeOpeningPopup, countAfterClosingPopup;
|
196
|
+
cy.get(thinkSpherePage.strategiesBoxPreviewTab())
|
197
|
+
.its('length')
|
198
|
+
.then((count) => {
|
199
|
+
countBeforeOpeningPopup = count;
|
200
|
+
cy.log('Count before opening popup:', countBeforeOpeningPopup);
|
201
|
+
});
|
202
|
+
thinkSpherePage.addNewStrategyButton().click();
|
203
|
+
thinkSpherePage.addStrategyPopupCancelButton().click();
|
204
|
+
cy.get(thinkSpherePage.strategiesBoxPreviewTab())
|
205
|
+
.its('length')
|
206
|
+
.then((count) => {
|
207
|
+
countAfterClosingPopup = count;
|
208
|
+
cy.log('Count after closing popup:', countAfterClosingPopup);
|
209
|
+
expect(countAfterClosingPopup).to.equal(countBeforeOpeningPopup);
|
210
|
+
});
|
211
|
+
});
|
212
|
+
|
213
|
+
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', () => {
|
214
|
+
let countBeforeOpeningPopup, countAfterClosingPopup;
|
215
|
+
thinkSpherePage.strategiesBoxPreviewTab()
|
216
|
+
.its('length')
|
217
|
+
.then((count) => {
|
218
|
+
countBeforeOpeningPopup = count;
|
219
|
+
cy.log('Count before opening popup:', countBeforeOpeningPopup);
|
220
|
+
});
|
221
|
+
thinkSpherePage.addNewStrategyButton().click();
|
222
|
+
thinkSpherePage.strategyNameInputField().type('Test Strategy');
|
223
|
+
thinkSpherePage.addStrategyPopupSaveButton().click();
|
224
|
+
thinkSpherePage.strategiesBoxPreviewTab()
|
225
|
+
.its('length')
|
226
|
+
.then((count) => {
|
227
|
+
countAfterClosingPopup = count;
|
228
|
+
cy.log('Count after closing popup:', countAfterClosingPopup);
|
229
|
+
expect(countAfterClosingPopup).to.equal(countBeforeOpeningPopup + 1);
|
230
|
+
});
|
231
|
+
});
|
232
|
+
|
233
|
+
it('CSS of strategies list in selected state', { tags: 'css' }, () => {
|
234
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
235
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategiesPreviewListLI(), 1), {
|
236
|
+
'border': `2px solid ${css.color.toggleButtonSelectedBg}`,
|
237
|
+
'background-color': css.color.transparent,
|
238
|
+
});
|
239
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.strategyTextWrapper(), 1), {
|
240
|
+
'color': css.color.primaryBtnBg,
|
241
|
+
});
|
242
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
243
|
+
});
|
244
|
+
|
245
|
+
it('Video icon for should not present by default besides the strategy name', () => {
|
246
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.videoIconWrapper(), 'notExist');
|
247
|
+
});
|
248
|
+
|
249
|
+
it('When user uploads a video inside strategy then video icon should be visible besides the strategy name', () => {
|
250
|
+
thinkSpherePage.steps.switchToEditTab();
|
251
|
+
thinkSpherePage.videoLinkComponent()
|
252
|
+
.within(() => {
|
253
|
+
thinkSpherePage.uploadVideoLinkButton()
|
254
|
+
.click();
|
255
|
+
});
|
256
|
+
thinkSpherePage.steps.uploadVideoFile('uploads/sample2MB.mp4');
|
257
|
+
cy.interceptGraphql('getFileScanStatus');
|
258
|
+
cy.wait(5000);
|
259
|
+
thinkSpherePage.steps.switchToPreviewTab();
|
260
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(thinkSpherePage.videoIconWrapper(), 0), 'visible');
|
261
|
+
});
|
262
|
+
|
263
|
+
it('When user clicks on video icon then video should be played in the popup', () => {
|
264
|
+
thinkSpherePage.steps.clickOnVideoIcon();
|
265
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxRoot(), 'visible');
|
266
|
+
thinkSpherePage.dialogBoxRoot()
|
267
|
+
.within(() => {
|
268
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.dialogBoxTitle(), 'visible');
|
269
|
+
utilities.verifyInnerText(thinkSpherePage.dialogBoxTitle(), 'Sample2mb.mp4');
|
270
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.buttonClose(), 'visible');
|
271
|
+
});
|
272
|
+
thinkSpherePage.steps.closeVideoPopup();
|
273
|
+
});
|
274
|
+
});
|
275
|
+
|
276
|
+
describe('\'Planning journal\' Section', () => {
|
277
|
+
abortEarlySetup();
|
278
|
+
it('\'Planning journal\' section should be present', () => {
|
279
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.PlanningPreviewWrapper(), 'visible');
|
280
|
+
});
|
281
|
+
|
282
|
+
it('\'Planning journal\' section heading should be present', () => {
|
283
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.planningPreviewHeading(), 'visible');
|
284
|
+
utilities.verifyInnerText(thinkSpherePage.planningPreviewHeading(), 'Planning journal');
|
285
|
+
});
|
286
|
+
|
287
|
+
it('\'Sentence starters\' label and dropdown should be displayed', () => {
|
288
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterLabel(), 'visible');
|
289
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.chooseStarterDropdown(), 'visible');
|
290
|
+
utilities.verifyInnerText(thinkSpherePage.chooseStarterLabel(), 'Sentence starter');
|
291
|
+
thinkSpherePage.chooseStarterTextIconWrapper()
|
292
|
+
.within(() => {
|
293
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.starterIocn(), 'visible');
|
294
|
+
utilities.verifyInnerText(thinkSpherePage.starterTextWrapper(), 'Starters');
|
295
|
+
});
|
296
|
+
thinkSpherePage.chooseStarterDropdown()
|
297
|
+
.verifyPseudoClassBeforeProperty('content', '""');
|
298
|
+
});
|
299
|
+
|
300
|
+
it('CSS of \'Sentence starter\' dropdown - default state', { tags: 'css' }, () => {
|
301
|
+
utilities.verifyCSS(thinkSpherePage.chooseStarterLabel(), {
|
302
|
+
'color': css.color.sectionHeading,
|
303
|
+
'font-size': css.fontSize.normal,
|
304
|
+
'font-weight': css.fontWeight.semibold,
|
305
|
+
});
|
306
|
+
utilities.verifyCSS(thinkSpherePage.chooseStarterDropdown(), {
|
307
|
+
'color': css.color.liText,
|
308
|
+
'font-size': css.fontSize.default,
|
309
|
+
'font-weight': css.fontWeight.regular
|
310
|
+
});
|
311
|
+
});
|
312
|
+
|
313
|
+
it('Clicking on \'Sentence starters\' dropdown should open a list', () => {
|
314
|
+
commonComponents.steps.verifyDropdownIsCollapsed();
|
315
|
+
thinkSpherePage.steps.expandChooseStarterDropdown();
|
316
|
+
utilities.verifyElementVisibilityState(commonComponents.dropdownList(), 'visible');
|
317
|
+
sentenceStartersTextDefault.forEach((label, index) => {
|
318
|
+
utilities.verifyInnerText(utilities.getNthElement(thinkSpherePage.chooseStartersListOptionLabels(), index), label);
|
319
|
+
});
|
320
|
+
utilities.clickOnBody();
|
321
|
+
});
|
322
|
+
|
323
|
+
it('CSS of Sentence starters dropdown - active state', { tags: 'css' }, () => {
|
324
|
+
thinkSpherePage.steps.expandChooseStarterDropdown();
|
325
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 0), {
|
326
|
+
'color': css.color.liText,
|
327
|
+
'font-size': css.fontSize.default,
|
328
|
+
'font-weight': css.fontWeight.regular,
|
329
|
+
'background-color': css.color.dropdownDefaultBG
|
330
|
+
});
|
331
|
+
utilities.verifyCSS(utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 1), {
|
332
|
+
'background-color': css.color.transparent
|
333
|
+
});
|
334
|
+
cy.log('Post step: Closing the Sentence starters dropdown');
|
335
|
+
utilities.clickOnBody();
|
336
|
+
});
|
337
|
+
|
338
|
+
it('When user clicks on any starter then it should get written in the \'Write your plan\' text input field', () => {
|
339
|
+
thinkSpherePage.writePlanWrapper()
|
340
|
+
.within(() => {
|
341
|
+
thinkSpherePage.contentEditableDiv().clear();
|
342
|
+
});
|
343
|
+
thinkSpherePage.steps.expandChooseStarterDropdown();
|
344
|
+
utilities.getNthElement(thinkSpherePage.chooseStartersListOptions(), 1).click();
|
345
|
+
thinkSpherePage.writePlanWrapper()
|
346
|
+
.within(() => {
|
347
|
+
thinkSpherePage.contentEditableDiv().should('have.value', 'First, I will ');
|
348
|
+
thinkSpherePage.contentEditableDiv().clear();
|
349
|
+
});
|
350
|
+
});
|
351
|
+
|
352
|
+
it('\'Planning journal\' write wrapper should be present', () => {
|
353
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.planningWriteWrapper(), 'visible');
|
354
|
+
});
|
355
|
+
|
356
|
+
it('\'The problem is asking me to\' section should be present', () => {
|
357
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.problemAskingWrapper(), 'visible');
|
358
|
+
});
|
359
|
+
|
360
|
+
it('\'The problem is asking me to\' subheading should be present', () => {
|
361
|
+
thinkSpherePage.problemAskingWrapper()
|
362
|
+
.within(() => {
|
363
|
+
utilities.verifyInnerText(thinkSpherePage.subheadingWrapper(), 'The problem is asking me to');
|
364
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.subheadingWrapper(), 'visible');
|
365
|
+
});
|
366
|
+
});
|
367
|
+
|
368
|
+
it('Text area with placeholder \'Enter your text here\' should be present under \'The problem is asking me to\' section', () => {
|
369
|
+
thinkSpherePage.problemAskingWrapper()
|
370
|
+
.within(() => {
|
371
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.contentEditableDiv(), 'visible');
|
372
|
+
utilities.verifyElementAttribute(thinkSpherePage.contentEditableDiv(), 'placeholder', 'Enter your text here');
|
373
|
+
});
|
374
|
+
});
|
375
|
+
|
376
|
+
it('Mic button should be present under \'The problem is asking me to\' section', () => {
|
377
|
+
thinkSpherePage.problemAskingWrapper()
|
378
|
+
.within(() => {
|
379
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.micIconWrapper(), 'visible');
|
380
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'role', 'button');
|
381
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'aria-label', 'Mic button');
|
382
|
+
});
|
383
|
+
});
|
384
|
+
|
385
|
+
it('User should be able to write in the \'Enter your text here\' textarea under \'The problem is asking me to\' section', () => {
|
386
|
+
const textToEnter = 'This is a test text for the problem.';
|
387
|
+
thinkSpherePage.problemAskingWrapper()
|
388
|
+
.within(() => {
|
389
|
+
thinkSpherePage.contentEditableDiv().type(textToEnter);
|
390
|
+
thinkSpherePage.contentEditableDiv().should('have.value', textToEnter);
|
391
|
+
});
|
392
|
+
});
|
393
|
+
|
394
|
+
it('\'Add strategies to plan\' section should be present', () => {
|
395
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategiesToPlanWrapper(), 'visible');
|
396
|
+
});
|
397
|
+
|
398
|
+
it('\'Add strategies to plan\' subheading should be present', () => {
|
399
|
+
thinkSpherePage.strategiesToPlanWrapper()
|
400
|
+
.within(() => {
|
401
|
+
utilities.verifyInnerText(thinkSpherePage.subheadingWrapper(), 'Add strategies to plan');
|
402
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.subheadingWrapper(), 'visible');
|
403
|
+
});
|
404
|
+
});
|
405
|
+
|
406
|
+
it('By default the strategy chips should not present under \'Add strategies to plan\' section', () => {
|
407
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'notExist');
|
408
|
+
});
|
409
|
+
|
410
|
+
it('\'Write your plan\' section should be present', () => {
|
411
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.writePlanWrapper(), 'visible');
|
412
|
+
});
|
413
|
+
|
414
|
+
it('\'Write your plan\' subheading should be present', () => {
|
415
|
+
thinkSpherePage.writePlanWrapper()
|
416
|
+
.within(() => {
|
417
|
+
utilities.verifyInnerText(thinkSpherePage.subheadingWrapper(), 'Write your plan');
|
418
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.subheadingWrapper(), 'visible');
|
419
|
+
});
|
420
|
+
});
|
421
|
+
|
422
|
+
it('Text area with placeholder \'Enter your plan here\' should be present under \'Write your plan\' section', () => {
|
423
|
+
thinkSpherePage.writePlanWrapper()
|
424
|
+
.within(() => {
|
425
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.contentEditableDiv(), 'visible');
|
426
|
+
utilities.verifyElementAttribute(thinkSpherePage.contentEditableDiv(), 'placeholder', 'Enter your plan here');
|
427
|
+
});
|
428
|
+
});
|
429
|
+
|
430
|
+
it('Mic button should be present under \'Write your plan\' section', () => {
|
431
|
+
thinkSpherePage.writePlanWrapper()
|
432
|
+
.within(() => {
|
433
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.micIconWrapper(), 'visible');
|
434
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'role', 'button');
|
435
|
+
utilities.verifyElementAttribute(thinkSpherePage.micIconWrapper(), 'aria-label', 'Mic button');
|
436
|
+
});
|
437
|
+
});
|
438
|
+
|
439
|
+
it('User should be able to write in the \'Enter your plan here\' textarea under \'Write your plan\' section', () => {
|
440
|
+
const planTextToEnter = 'This is a test plan.';
|
441
|
+
thinkSpherePage.writePlanWrapper()
|
442
|
+
.within(() => {
|
443
|
+
thinkSpherePage.contentEditableDiv().type(planTextToEnter);
|
444
|
+
thinkSpherePage.contentEditableDiv().should('have.value', planTextToEnter);
|
445
|
+
thinkSpherePage.contentEditableDiv().clear();
|
446
|
+
});
|
447
|
+
});
|
448
|
+
|
449
|
+
it('When user click on strategy list it should display inside \'Add strategies to plan\' wrapper in the form of chip', () => {
|
450
|
+
thinkSpherePage.steps.clickOnStrategiesPreviewListLI();
|
451
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChipWrapper(), 'visible');
|
452
|
+
utilities.verifyElementVisibilityState(thinkSpherePage.strategyChip(), 'visible');
|
453
|
+
utilities.verifyInnerText(thinkSpherePage.strategyChip(), 'Look for a pattern');
|
454
|
+
});
|
455
|
+
|
456
|
+
it('CSS of strategy chip when it is not selected', { tags: 'css' }, () => {
|
457
|
+
utilities.verifyCSS(thinkSpherePage.strategyChip(), {
|
458
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`,
|
459
|
+
'color': css.color.sectionHeading,
|
460
|
+
'border-radius': '20px',
|
461
|
+
'font-size': css.fontSize.normal,
|
462
|
+
'font-weight': css.fontWeight.regular,
|
463
|
+
});
|
464
|
+
});
|
465
|
+
|
466
|
+
it('When user click on strategy chip it should get written in the \'Write your plan\' text input field', () => {
|
467
|
+
thinkSpherePage.writePlanWrapper()
|
468
|
+
.within(() => {
|
469
|
+
thinkSpherePage.contentEditableDiv().clear();
|
470
|
+
});
|
471
|
+
thinkSpherePage.strategyChip().click();
|
472
|
+
thinkSpherePage.writePlanWrapper()
|
473
|
+
.within(() => {
|
474
|
+
thinkSpherePage.contentEditableDiv().should('have.value', 'look for a pattern ');
|
475
|
+
});
|
476
|
+
});
|
477
|
+
|
478
|
+
it('CSS of strategy chip when it is selected and CSS of planning journal section', { tags: 'css' }, () => {
|
479
|
+
utilities.verifyCSS(thinkSpherePage.strategyChip(), {
|
480
|
+
'background-color': css.color.secondaryBtnBorder,
|
481
|
+
'border': `1px solid ${css.color.primaryBtnBg}`,
|
482
|
+
});
|
483
|
+
|
484
|
+
utilities.verifyCSS(thinkSpherePage.planningPreviewHeading(), {
|
485
|
+
'color': css.color.primaryBtnBorder,
|
486
|
+
'font-size': css.fontSize.heading,
|
487
|
+
'font-weight': css.fontWeight.semibold,
|
488
|
+
});
|
489
|
+
|
490
|
+
utilities.verifyCSS(thinkSpherePage.planningWriteWrapper(), {
|
491
|
+
'border': `1px solid ${css.color.secondaryBtnBorder}`,
|
492
|
+
'border-radius': '12px'
|
493
|
+
});
|
494
|
+
|
495
|
+
utilities.verifyCSS(thinkSpherePage.problemAskingWrapper(), {
|
496
|
+
'padding': '16px 16px 14px',
|
497
|
+
'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
|
498
|
+
});
|
499
|
+
|
500
|
+
utilities.verifyCSS(thinkSpherePage.strategiesToPlanWrapper(), {
|
501
|
+
'padding': '16px',
|
502
|
+
'border-bottom': `1px solid ${css.color.secondaryBtnBorder}`
|
503
|
+
});
|
504
|
+
|
505
|
+
utilities.verifyCSS(thinkSpherePage.writePlanWrapper(), {
|
506
|
+
'padding': '16px'
|
507
|
+
});
|
508
|
+
|
509
|
+
thinkSpherePage.problemAskingWrapper()
|
510
|
+
.within(() => {
|
511
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
512
|
+
'color': css.color.primaryBtnBorder,
|
513
|
+
'font-size': css.fontSize.normal,
|
514
|
+
'font-weight': css.fontWeight.bold,
|
515
|
+
});
|
516
|
+
});
|
517
|
+
|
518
|
+
thinkSpherePage.strategiesToPlanWrapper()
|
519
|
+
.within(() => {
|
520
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
521
|
+
'color': css.color.primaryBtnBorder,
|
522
|
+
'font-size': css.fontSize.normal,
|
523
|
+
'font-weight': css.fontWeight.bold,
|
524
|
+
});
|
525
|
+
});
|
526
|
+
|
527
|
+
thinkSpherePage.writePlanWrapper()
|
528
|
+
.within(() => {
|
529
|
+
utilities.verifyCSS(thinkSpherePage.subheadingWrapper(), {
|
530
|
+
'color': css.color.primaryBtnBorder,
|
531
|
+
'font-size': css.fontSize.normal,
|
532
|
+
'font-weight': css.fontWeight.bold,
|
533
|
+
});
|
534
|
+
});
|
535
|
+
});
|
536
|
+
|
537
|
+
it('Accessibility of planning journal', { tags: 'a11y' }, () => {
|
538
|
+
cy.checkAccessibility(thinkSpherePage.PlanningPreviewWrapper());
|
539
|
+
});
|
540
|
+
});
|
541
|
+
});
|
@@ -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
|
+
});
|