itemengine-cypress-automation 1.0.365-RCA-IEI5709-1b901dc.0 → 1.0.365
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 +39 -7
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +33 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +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 +2 -2
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/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 +236 -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/allOrNothingForAllViews.smoke.js +215 -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/allOrNothingForAllViews.smoke.js +221 -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/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/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/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 +4 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +10 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +5 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +64 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +65 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +27 -3
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +43 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +54 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +53 -2
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +91 -9
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +12 -12
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +35 -2
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +90 -2
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +34 -0
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +38 -1
- package/cypress/e2e/ILC/UploadResponse/uploadResponsePreview.js +50 -13
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +14 -29
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +16 -1
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- 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 +55 -0
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +1 -0
- package/cypress/pages/components/questionInstructionsComponent.js +9 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -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 +637 -11
- package/cypress/pages/uploadResponsePage.js +17 -1
- package/cypress/pages/videoResponsePage.js +3 -0
- package/cypress/support/commands.js +9 -0
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +14 -1
- package/package.json +3 -3
@@ -201,6 +201,233 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
201
201
|
});
|
202
202
|
});
|
203
203
|
|
204
|
+
views.forEach((view) => {
|
205
|
+
describe(`Multiple selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
|
206
|
+
abortEarlySetup();
|
207
|
+
before(() => {
|
208
|
+
switch (view) {
|
209
|
+
case 'Question preview':
|
210
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
211
|
+
cy.barsPreLoaderWait();
|
212
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
213
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
214
|
+
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
215
|
+
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
216
|
+
multipleSelectionPage.steps.allotPoints(20);
|
217
|
+
multipleSelectionPage.steps.switchToPreviewTab();
|
218
|
+
break;
|
219
|
+
case 'Item preview':
|
220
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
221
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
222
|
+
break;
|
223
|
+
case 'Grading view':
|
224
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
225
|
+
break;
|
226
|
+
};
|
227
|
+
});
|
228
|
+
|
229
|
+
beforeEach(() => {
|
230
|
+
switch (view) {
|
231
|
+
case 'Question preview':
|
232
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
233
|
+
multipleSelectionPage.steps.resetQuestionPreview();
|
234
|
+
break;
|
235
|
+
case 'Item preview':
|
236
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
237
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
238
|
+
break;
|
239
|
+
case 'Grading view':
|
240
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
241
|
+
break;
|
242
|
+
}
|
243
|
+
});
|
244
|
+
|
245
|
+
if (view === 'Question preview') {
|
246
|
+
after(() => {
|
247
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButtonWithForceTrue();
|
248
|
+
cy.wait(5000);
|
249
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
250
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
251
|
+
});
|
252
|
+
};
|
253
|
+
|
254
|
+
it('Question instructions should be visible', () => {
|
255
|
+
multipleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
256
|
+
multipleSelectionPage.steps.verifyVisibityOfQuestionInstructionsText();
|
257
|
+
});
|
258
|
+
|
259
|
+
it('User should be able to attempt the question in student view and correct/incorrect icons, Your answer is correct/incorrect label, correct answer section should not be displayed in grading view', () => {
|
260
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
261
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
262
|
+
if (view === 'Grading view') {
|
263
|
+
studentViewPage.steps.submitResponse();
|
264
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
265
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
266
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
267
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
|
268
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
|
269
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
270
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
271
|
+
multipleSelectionPage.steps.verifyAnswerBannerNotExist();
|
272
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
273
|
+
};
|
274
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
275
|
+
multipleSelectionPage.steps.checkManuallyScoredScoringLabel();
|
276
|
+
};
|
277
|
+
});
|
278
|
+
});
|
279
|
+
});
|
280
|
+
|
281
|
+
views.forEach((view) => {
|
282
|
+
describe(`Multiple selection - Non scored: ${view}`, { tags: 'smoke' }, () => {
|
283
|
+
abortEarlySetup();
|
284
|
+
before(() => {
|
285
|
+
switch (view) {
|
286
|
+
case 'Question preview':
|
287
|
+
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
288
|
+
cy.barsPreLoaderWait();
|
289
|
+
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
290
|
+
multipleSelectionPage.steps.expandScoringTypeDropdown();
|
291
|
+
multipleSelectionPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
292
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
293
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
294
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
295
|
+
multipleSelectionPage.steps.switchToPreviewTab();
|
296
|
+
break;
|
297
|
+
case 'Item preview':
|
298
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
299
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
300
|
+
break;
|
301
|
+
case 'Grading view':
|
302
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
303
|
+
break;
|
304
|
+
};
|
305
|
+
});
|
306
|
+
|
307
|
+
beforeEach(() => {
|
308
|
+
switch (view) {
|
309
|
+
case 'Question preview':
|
310
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
311
|
+
multipleSelectionPage.steps.resetQuestionPreview();
|
312
|
+
break;
|
313
|
+
case 'Item preview':
|
314
|
+
multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
315
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
316
|
+
break;
|
317
|
+
case 'Grading view':
|
318
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
319
|
+
break;
|
320
|
+
}
|
321
|
+
});
|
322
|
+
|
323
|
+
if (view === 'Question preview') {
|
324
|
+
after(() => {
|
325
|
+
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
326
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
327
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
328
|
+
});
|
329
|
+
};
|
330
|
+
|
331
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
332
|
+
if (view === 'Grading view') {
|
333
|
+
studentViewPage.steps.submitResponse();
|
334
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
335
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
336
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
337
|
+
};
|
338
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
339
|
+
multipleSelectionPage.steps.checkNonScoredScoringLabel();
|
340
|
+
multipleSelectionPage.steps.switchToGradingView();
|
341
|
+
multipleSelectionPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
342
|
+
};
|
343
|
+
//Remove the if-else condition and line 346 once https://weldnorthed.atlassian.net/browse/IEI-5704 is fixed.
|
344
|
+
if(view === 'Question preview'){
|
345
|
+
utilities.verifyInnerText(multipleSelectionPage.correctAnswersLabel(), 'Correct answers');
|
346
|
+
}
|
347
|
+
else{
|
348
|
+
utilities.verifyInnerText(multipleSelectionPage.correctAnswersLabel(), 'Correct answer');
|
349
|
+
}
|
350
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
351
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
|
352
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
|
353
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
354
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
355
|
+
});
|
356
|
+
|
357
|
+
it('When the user attempts the question incorrectly,and on switching to \'Grading\' view non scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text \'Your answer is incorrect\' and correct answer section with correct answer should be displayed', () => {
|
358
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
359
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
360
|
+
if (view === 'Grading view') {
|
361
|
+
studentViewPage.steps.submitResponse();
|
362
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
363
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
364
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
365
|
+
};
|
366
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
367
|
+
multipleSelectionPage.steps.checkNonScoredScoringLabel();
|
368
|
+
multipleSelectionPage.steps.switchToGradingView();
|
369
|
+
};
|
370
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
|
371
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
|
372
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
|
373
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
|
374
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
375
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionExist();
|
376
|
+
});
|
377
|
+
|
378
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-6004
|
379
|
+
it.skip('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
380
|
+
if (view === 'Grading view') {
|
381
|
+
studentViewPage.steps.clearResponses();
|
382
|
+
};
|
383
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
384
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
385
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
386
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
387
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
388
|
+
if (view === 'Grading view') {
|
389
|
+
studentViewPage.steps.submitResponse();
|
390
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
391
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
392
|
+
};
|
393
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
394
|
+
multipleSelectionPage.steps.checkNonScoredScoringLabel();
|
395
|
+
multipleSelectionPage.steps.switchToGradingView();
|
396
|
+
};
|
397
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
398
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
399
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
|
400
|
+
multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
|
401
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
402
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionExist();
|
403
|
+
});
|
404
|
+
|
405
|
+
it('When user attempts the question correctly, and on switching to \'Grading\' view non scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
406
|
+
if (view === 'Grading view') {
|
407
|
+
studentViewPage.steps.clearResponses();
|
408
|
+
};
|
409
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
410
|
+
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
411
|
+
if (view === 'Grading view') {
|
412
|
+
studentViewPage.steps.submitResponse();
|
413
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
414
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
415
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
416
|
+
};
|
417
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
418
|
+
multipleSelectionPage.steps.checkNonScoredScoringLabel();
|
419
|
+
multipleSelectionPage.steps.switchToGradingView();
|
420
|
+
};
|
421
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
422
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
423
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
424
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
425
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
426
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
|
427
|
+
});
|
428
|
+
});
|
429
|
+
});
|
430
|
+
|
204
431
|
if (!grepTags || !grepTags.includes('smoke')) {
|
205
432
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
206
433
|
abortEarlySetup();
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { multipleSelectionPage } from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
3
4
|
|
4
5
|
describe('Create Item page - Multiple selection', () => {
|
5
6
|
before(() => {
|
@@ -64,6 +65,7 @@ describe('Create Item page - Multiple selection', () => {
|
|
64
65
|
before(() => {
|
65
66
|
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
66
67
|
cy.barsPreLoaderWait();
|
68
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
67
69
|
});
|
68
70
|
|
69
71
|
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
@@ -224,6 +224,7 @@ describe('Create item page - Multiple selection: Scoring section', () => {
|
|
224
224
|
before(() => {
|
225
225
|
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
226
226
|
cy.barsPreLoaderWait();
|
227
|
+
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
227
228
|
});
|
228
229
|
|
229
230
|
it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
|
package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js
CHANGED
@@ -65,6 +65,7 @@ describe('Create Item page - Multiple selection grid', () => {
|
|
65
65
|
before(() => {
|
66
66
|
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
67
67
|
cy.barsPreLoaderWait();
|
68
|
+
multipleSelectionGridPage.steps.addQuestionInstructions('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
68
69
|
});
|
69
70
|
|
70
71
|
it('When the user selects \'Grading\' view without setting the answer, correct answers section and answer status banner should not be displayed', () => {
|
@@ -209,6 +209,226 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
209
209
|
});
|
210
210
|
});
|
211
211
|
|
212
|
+
views.forEach((view) => {
|
213
|
+
describe(`Multiple selection - Manually scored: ${view}`, { tags: 'smoke' }, () => {
|
214
|
+
abortEarlySetup();
|
215
|
+
before(() => {
|
216
|
+
switch (view) {
|
217
|
+
case 'Question preview':
|
218
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
219
|
+
cy.barsPreLoaderWait();
|
220
|
+
multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not');
|
221
|
+
multipleSelectionGridPage.steps.expandScoringTypeDropdown();
|
222
|
+
multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
223
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
224
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
225
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
226
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
227
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
228
|
+
break;
|
229
|
+
case 'Item preview':
|
230
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
231
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
232
|
+
break;
|
233
|
+
case 'Grading view':
|
234
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
235
|
+
break;
|
236
|
+
};
|
237
|
+
});
|
238
|
+
|
239
|
+
beforeEach(() => {
|
240
|
+
switch (view) {
|
241
|
+
case 'Question preview':
|
242
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
243
|
+
multipleSelectionGridPage.steps.resetQuestionPreview();
|
244
|
+
break;
|
245
|
+
case 'Item preview':
|
246
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
247
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
248
|
+
break;
|
249
|
+
case 'Grading view':
|
250
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
251
|
+
break;
|
252
|
+
}
|
253
|
+
});
|
254
|
+
|
255
|
+
if (view === 'Question preview') {
|
256
|
+
after(() => {
|
257
|
+
multipleSelectionGridPage.steps.clickOnSaveQuestionButton();
|
258
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
259
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
260
|
+
});
|
261
|
+
};
|
262
|
+
|
263
|
+
it('Question instructions should be visible', () => {
|
264
|
+
multipleSelectionGridPage.steps.verifyQuestionInstructionsTextPreviewTab('Please select following animals facts are correct or not');
|
265
|
+
multipleSelectionGridPage.steps.verifyVisibityOfQuestionInstructionsText();
|
266
|
+
});
|
267
|
+
|
268
|
+
it('User should be able to attempt the question in student view and correct/incorrect icons, Your answer is correct/incorrect label, and correct answer section should not be displayed in grading view', () => {
|
269
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
270
|
+
if (view === 'Grading view') {
|
271
|
+
studentViewPage.steps.submitResponse();
|
272
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
273
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
274
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
275
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 1, column: 0 });
|
276
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 1, column: 1 });
|
277
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 2, column: 1 });
|
278
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 3, column: 1 });
|
279
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotExists({ row: 4, column: 0 });
|
280
|
+
multipleSelectionGridPage.steps.verifyAnswerStatusBannerNotExist();
|
281
|
+
multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExist();
|
282
|
+
};
|
283
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
284
|
+
multipleSelectionGridPage.steps.checkManuallyScoredScoringLabel();
|
285
|
+
};
|
286
|
+
});
|
287
|
+
});
|
288
|
+
});
|
289
|
+
|
290
|
+
views.forEach((view) => {
|
291
|
+
describe(`Multiple selection - Non scored: ${view}`, { tags: 'smoke' }, () => {
|
292
|
+
abortEarlySetup();
|
293
|
+
before(() => {
|
294
|
+
switch (view) {
|
295
|
+
case 'Question preview':
|
296
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
297
|
+
cy.barsPreLoaderWait();
|
298
|
+
multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not');
|
299
|
+
multipleSelectionGridPage.steps.expandScoringTypeDropdown();
|
300
|
+
multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
301
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
302
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
303
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
304
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
305
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
306
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
307
|
+
break;
|
308
|
+
case 'Item preview':
|
309
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
310
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
311
|
+
break;
|
312
|
+
case 'Grading view':
|
313
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
314
|
+
break;
|
315
|
+
};
|
316
|
+
});
|
317
|
+
|
318
|
+
beforeEach(() => {
|
319
|
+
switch (view) {
|
320
|
+
case 'Question preview':
|
321
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
322
|
+
multipleSelectionGridPage.steps.resetQuestionPreview();
|
323
|
+
break;
|
324
|
+
case 'Item preview':
|
325
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
326
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
327
|
+
break;
|
328
|
+
case 'Grading view':
|
329
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
330
|
+
break;
|
331
|
+
}
|
332
|
+
});
|
333
|
+
|
334
|
+
if (view === 'Question preview') {
|
335
|
+
after(() => {
|
336
|
+
multipleSelectionGridPage.steps.clickOnSaveQuestionButton();
|
337
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
338
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
339
|
+
});
|
340
|
+
};
|
341
|
+
|
342
|
+
it('When the user selects \'Grading\' view without attempting the question, non scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
|
343
|
+
if (view === 'Grading view') {
|
344
|
+
studentViewPage.steps.submitResponse();
|
345
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
346
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
347
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
348
|
+
};
|
349
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
350
|
+
multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
|
351
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
352
|
+
multipleSelectionGridPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
353
|
+
};
|
354
|
+
utilities.verifyInnerText(multipleSelectionGridPage.correctAnswersSectionLabel(), 'Correct answers');
|
355
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
356
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 1, column: 0 });
|
357
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 1, column: 1 });
|
358
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 2, column: 1 });
|
359
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 3, column: 1 });
|
360
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 0 });
|
361
|
+
});
|
362
|
+
|
363
|
+
it('When the user attempts the question incorrectly,and on switching to \'Grading\' view non scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text \'Your answer is incorrect\' and correct answer section with correct answer should be displayed', () => {
|
364
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 2, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 0 }]);
|
365
|
+
if (view === 'Grading view') {
|
366
|
+
studentViewPage.steps.submitResponse();
|
367
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
368
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
369
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
370
|
+
};
|
371
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
372
|
+
multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
|
373
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
374
|
+
};
|
375
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
|
376
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
|
377
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
|
378
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
379
|
+
multipleSelectionGridPage.steps.verifyCorrectAnswerSectionExist();
|
380
|
+
});
|
381
|
+
|
382
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
|
383
|
+
if (view === 'Grading view') {
|
384
|
+
studentViewPage.steps.clearResponses();
|
385
|
+
};
|
386
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 0 }]);
|
387
|
+
if (view === 'Grading view') {
|
388
|
+
studentViewPage.steps.submitResponse();
|
389
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
390
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
391
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
392
|
+
};
|
393
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
394
|
+
multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
|
395
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
396
|
+
};
|
397
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
|
398
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
|
399
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
|
400
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 3, column: 1 });
|
401
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
|
402
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
403
|
+
multipleSelectionGridPage.steps.verifyCorrectAnswerSectionExist();
|
404
|
+
});
|
405
|
+
|
406
|
+
it('When user attempts the question correctly, and on switching to \'Grading\' view non scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
407
|
+
if (view === 'Grading view') {
|
408
|
+
studentViewPage.steps.clearResponses();
|
409
|
+
};
|
410
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 1, column: 1 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
411
|
+
if (view === 'Grading view') {
|
412
|
+
studentViewPage.steps.submitResponse();
|
413
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
414
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
415
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
416
|
+
};
|
417
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
418
|
+
multipleSelectionGridPage.steps.checkNonScoredScoringLabel();
|
419
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
420
|
+
};
|
421
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 0 });
|
422
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 1, column: 1 });
|
423
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
|
424
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
|
425
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
426
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
427
|
+
multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExist();
|
428
|
+
});
|
429
|
+
});
|
430
|
+
});
|
431
|
+
|
212
432
|
if (!grepTags || !grepTags.includes('smoke')) {
|
213
433
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
214
434
|
abortEarlySetup();
|
@@ -237,6 +237,9 @@ describe('Create item page - Multiple selection grid: Scoring section', () => {
|
|
237
237
|
before(() => {
|
238
238
|
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
239
239
|
cy.barsPreLoaderWait();
|
240
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
241
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
242
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
240
243
|
});
|
241
244
|
|
242
245
|
it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
|
@@ -263,6 +266,9 @@ describe('Create item page - Multiple selection grid: Scoring section', () => {
|
|
263
266
|
before(() => {
|
264
267
|
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
265
268
|
cy.barsPreLoaderWait();
|
269
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
270
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
271
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
266
272
|
});
|
267
273
|
|
268
274
|
it('User should be able to select \'Non scored\' scoring type from scoring type dropdown', () => {
|