itemengine-cypress-automation 1.0.340-IEI-5539-0eefd17.0 → 1.0.341-IEI-5600-IEI-5708-defa90b.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/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
- package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- 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/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 +1 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +84 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/checkAddAlternativeButton.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +2 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +39 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
- 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 +3 -4
- 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/Scoring/blankResponseScoring.js +29 -25
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +96 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/checkAddAlternative.js +37 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +4 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabBasicSection.js +47 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +38 -9
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +3 -11
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +1 -2
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +11 -0
- 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 +2 -4
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/editQuestion.smoke.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/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
- package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +3 -4
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +10 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
- package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -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/styleAndLayoutCustomizationLayoutProperties.js +8 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +77 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +8 -0
- 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 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.smoke.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +10 -7
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingAlternatePointsMoreThanCorrectPoints.js +80 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingCorrectPointsMoreThanAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +109 -0
- package/cypress/e2e/ILC/TextSelection/checkAddAlternativeButton.js +46 -0
- package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +57 -0
- package/cypress/e2e/ILC/TextSelection/headerSection.js +38 -6
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +1 -2
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +278 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +291 -0
- package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +621 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +542 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +98 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +394 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +142 -0
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +1 -0
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/scores.js +9 -5
- package/cypress/e2e/applitools.config.js +3 -3
- package/cypress/fixtures/constants.js +5 -1
- package/cypress/fixtures/theme/ilc.json +16 -1
- package/cypress/fixtures/uploads/sample.webm +0 -0
- package/cypress/fixtures/uploads/sample.wmv +0 -0
- package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
- package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
- package/cypress/pages/audioPlayerPage.js +22 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsLinePage.js +1 -1
- package/cypress/pages/components/additionalSettingsPanel.js +3 -2
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +17 -51
- package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
- package/cypress/pages/components/browseItemsPage.js +998 -7
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
- package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
- package/cypress/pages/components/commonComponents.js +8 -1
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/defaultToolDropdown.js +7 -6
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/editCategoryFlyout.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -70
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -101
- package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
- package/cypress/pages/components/hideExpressionListComponent.js +53 -0
- package/cypress/pages/components/imageCanvasComponent.js +7 -6
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +7 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +12 -13
- package/cypress/pages/desmos3DGraphingPage.js +368 -0
- package/cypress/pages/desmosGeometryPage.js +308 -0
- package/cypress/pages/dialogBoxBase.js +2 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +26 -6
- package/cypress/pages/drawingResponsePage.js +17 -16
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -68
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/gradingViewPage.js +8 -0
- package/cypress/pages/graphingPage.js +5 -8
- package/cypress/pages/gridFillPage.js +7 -8
- package/cypress/pages/imageHighlightPage.js +0 -66
- package/cypress/pages/index.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +1 -68
- package/cypress/pages/multipleSelectionPage.js +10 -106
- package/cypress/pages/numberLineLabelPage.js +5 -8
- package/cypress/pages/numberLinePage.js +4 -7
- package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
- package/cypress/pages/singleSelectionGridPage.js +1 -68
- package/cypress/pages/singleSelectionPage.js +0 -104
- package/cypress/pages/textSelectionPage.js +25 -6
- package/cypress/pages/thinkSpherePage.js +2170 -0
- package/cypress/support/commands.js +7 -4
- package/cypress/support/e2e.js +1 -0
- package/cypress/support/helpers/createItem.js +1181 -1
- package/cypress/support/helpers/utilities.js +75 -1
- package/deploy/smoke/deploy.yaml +2 -2
- package/package.json +3 -3
- package/scripts/dataApi.mjs +3 -0
- package/scripts/sorry-cypress.mjs +13 -0
@@ -855,7 +855,7 @@ const steps = {
|
|
855
855
|
|
856
856
|
verifyCorrectAnswerSectionExist: () => {
|
857
857
|
multipleSelectionPage.correctAnswerSectionWrapper()
|
858
|
-
.should('
|
858
|
+
.should('exist');
|
859
859
|
},
|
860
860
|
|
861
861
|
verifyAnswerBannerNotExist: () => {
|
@@ -891,7 +891,15 @@ const steps = {
|
|
891
891
|
optionsTextArray.forEach((option, optionIndex) => {
|
892
892
|
utilities.verifyTextContent(utilities.getNthElement(multipleSelectionPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
|
893
893
|
});
|
894
|
-
}
|
894
|
+
},
|
895
|
+
|
896
|
+
/**
|
897
|
+
* Clicks on the save question button.
|
898
|
+
*/
|
899
|
+
clickOnSaveQuestionButtonWithForceTrue: () => {
|
900
|
+
createQuestionBasePage.saveQuestionButton()
|
901
|
+
.click({force:true});
|
902
|
+
},
|
895
903
|
}
|
896
904
|
|
897
905
|
const tests = {
|
@@ -914,110 +922,6 @@ const tests = {
|
|
914
922
|
...ckEditorInsertTableComponent.tests,
|
915
923
|
...ckEditorInsertImageComponent.tests,
|
916
924
|
...ckEditorLinkComponent.tests,
|
917
|
-
|
918
|
-
//TODO need to remove once Save as you go is available for all questions
|
919
|
-
/**
|
920
|
-
* @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
|
921
|
-
* in the 'Specify correct answer' section for alternative answers in auto-scored questions.
|
922
|
-
* @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
|
923
|
-
* @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
924
|
-
*/
|
925
|
-
verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
|
926
|
-
it('\'+ Add alternative answer\' button should be present', () => {
|
927
|
-
utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
|
928
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
|
929
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
930
|
-
.verifyPseudoClassBeforeProperty('content', '""');
|
931
|
-
});
|
932
|
-
|
933
|
-
it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
|
934
|
-
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
|
935
|
-
'color': css.color.activeButtons,
|
936
|
-
'font-size': css.fontSize.default,
|
937
|
-
'font-weight': css.fontWeight.regular
|
938
|
-
});
|
939
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
940
|
-
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
941
|
-
});
|
942
|
-
|
943
|
-
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
|
944
|
-
utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
945
|
-
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
946
|
-
});
|
947
|
-
|
948
|
-
it('CSS of warning popup', { tags: 'css' }, () => {
|
949
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
|
950
|
-
'color': css.color.flyoutTitle,
|
951
|
-
'font-size': css.fontSize.heading,
|
952
|
-
'font-weight': css.fontWeight.semibold
|
953
|
-
});
|
954
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
|
955
|
-
'color': css.color.labels,
|
956
|
-
'font-size': css.fontSize.default,
|
957
|
-
'font-weight': css.fontWeight.regular
|
958
|
-
});
|
959
|
-
utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
|
960
|
-
'fill': css.color.closeIcon
|
961
|
-
});
|
962
|
-
});
|
963
|
-
|
964
|
-
it('Accessibility of warning popup', { tags: 'a11y' }, () => {
|
965
|
-
cy.checkAccessibility(dialogBoxBase.dialogBox());
|
966
|
-
dialogBoxBase.steps.closeWarningPopup();
|
967
|
-
});
|
968
|
-
},
|
969
|
-
|
970
|
-
//TODO need to remove once Save as you go is available for all questions
|
971
|
-
verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
|
972
|
-
it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
|
973
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
974
|
-
.click();
|
975
|
-
dialogBoxBase.steps.closeWarningPopup();
|
976
|
-
//TODO: Need to add error message according to question types
|
977
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
978
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
979
|
-
.eq(1)
|
980
|
-
.should('have.attr', 'aria-expanded', 'true');
|
981
|
-
});
|
982
|
-
},
|
983
|
-
|
984
|
-
verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
|
985
|
-
it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
|
986
|
-
utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
|
987
|
-
utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
|
988
|
-
autoScoredScoringPreviewTab.studentViewRadioButton()
|
989
|
-
.should('be.checked');
|
990
|
-
autoScoredScoringPreviewTab.gradingViewRadioButton()
|
991
|
-
.should('not.be.checked');
|
992
|
-
autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
|
993
|
-
autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
|
994
|
-
});
|
995
|
-
|
996
|
-
it('CSS of Preview mode contents', { tags: 'css' }, () => {
|
997
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
|
998
|
-
'color': css.color.labelText,
|
999
|
-
'font-size': css.fontSize.normal,
|
1000
|
-
'font-weight': css.fontWeight.regular
|
1001
|
-
});
|
1002
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
|
1003
|
-
'color': css.color.labelText,
|
1004
|
-
'font-size': css.fontSize.normal,
|
1005
|
-
'font-weight': css.fontWeight.regular
|
1006
|
-
});
|
1007
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
|
1008
|
-
'color': css.color.codeBlockText,
|
1009
|
-
'font-size': css.fontSize.default,
|
1010
|
-
'font-weight': css.fontWeight.bold
|
1011
|
-
});
|
1012
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
|
1013
|
-
'fill': css.color.activeButtons
|
1014
|
-
});
|
1015
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
|
1016
|
-
'fill': css.color.uncheckedCheckbox
|
1017
|
-
});
|
1018
|
-
});
|
1019
|
-
},
|
1020
|
-
|
1021
925
|
/**
|
1022
926
|
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
1023
927
|
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
@@ -1024,26 +1024,23 @@ const tests = {
|
|
1024
1024
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
1025
1025
|
});
|
1026
1026
|
|
1027
|
-
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown
|
1027
|
+
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
|
1028
1028
|
numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 2');
|
1029
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
1030
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
1029
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
1031
1030
|
if (accordionName == 'Correct') {
|
1032
1031
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1033
1032
|
.within(() => {
|
1034
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1033
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1035
1034
|
});
|
1036
1035
|
} else {
|
1037
1036
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1038
1037
|
.within(() => {
|
1039
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1038
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1040
1039
|
});
|
1041
1040
|
};
|
1042
1041
|
});
|
1043
1042
|
|
1044
|
-
|
1045
|
-
|
1046
|
-
it('When the user plots on the number line then the error message should disappear', () => {
|
1043
|
+
it('User should be able to attempt the labels on the number line', () => {
|
1047
1044
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
|
1048
1045
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
1049
1046
|
});
|
@@ -1451,26 +1451,23 @@ const tests = {
|
|
1451
1451
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1]);
|
1452
1452
|
});
|
1453
1453
|
|
1454
|
-
it(`When the user resets the number line in the ${accordionName} accordion,
|
1454
|
+
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown`, () => {
|
1455
1455
|
numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
|
1456
1456
|
numberLinePage.steps.confirmReset();
|
1457
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
1458
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
1457
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
1459
1458
|
if (accordionName == 'Correct') {
|
1460
1459
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1461
1460
|
.within(() => {
|
1462
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1461
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1463
1462
|
});
|
1464
1463
|
} else {
|
1465
1464
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1466
1465
|
.within(() => {
|
1467
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1466
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1468
1467
|
});
|
1469
1468
|
};
|
1470
1469
|
});
|
1471
1470
|
|
1472
|
-
autoScoredSpecifyCorrectAnswerSection.tests.verifyAutoScoredCorrectAnswerErrorMessageCSSAndA11y();
|
1473
|
-
|
1474
1471
|
it('When the user plots on the number line then the error message should disappear', () => {
|
1475
1472
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
|
1476
1473
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 1);
|
@@ -15,7 +15,8 @@ const selectors = {
|
|
15
15
|
},
|
16
16
|
selectAQuestionHeaderText: () => cy.get('[class*="QuestionResourceToolstyles__HeaderText"]'),
|
17
17
|
questionTypeCategory: () => cy.get('[class*="QuestionResourceToolstyles__CategorySection"]'),
|
18
|
-
resourceTypeCategory: () => cy.get('.MuiCard-root')
|
18
|
+
resourceTypeCategory: () => cy.get('.MuiCard-root'),
|
19
|
+
cancelCreateQuestionButton: () => cy.get('[class*="QuestionResourceToolstyles__CreateItemHeader"] .ngie-btn-outlined').contains('cancel'),
|
19
20
|
}
|
20
21
|
|
21
22
|
const questionTypeCategoryMap = {
|
@@ -64,7 +65,12 @@ const steps = {
|
|
64
65
|
selectQuestionResourceToolPage.resourceAndToolOptionTitle(resourceCategory)
|
65
66
|
.click();
|
66
67
|
}
|
67
|
-
}
|
68
|
+
},
|
69
|
+
|
70
|
+
clickOnCancelCreateQuestionButton: () => {
|
71
|
+
selectQuestionResourceToolPage.cancelCreateQuestionButton()
|
72
|
+
.click();
|
73
|
+
},
|
68
74
|
}
|
69
75
|
|
70
76
|
export const selectQuestionResourceToolPage = {
|
@@ -2,7 +2,6 @@ import utilities from "../support/helpers/utilities";
|
|
2
2
|
import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredScoringSectionMultiResponseType, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, randomizeOptionsComponent, studentViewSettingsLabelComponent, commonComponents, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent } from "./components";
|
3
3
|
const css = Cypress.env('css');
|
4
4
|
import { createItemPage } from "./createItemPage";
|
5
|
-
import { dialogBoxBase } from "./dialogBoxBase";
|
6
5
|
|
7
6
|
const selectors = {
|
8
7
|
...questionInstructionsComponent,
|
@@ -180,78 +179,12 @@ const tests = {
|
|
180
179
|
...randomizeOptionsComponent.tests,
|
181
180
|
...studentViewSettingsLabelComponent.tests,
|
182
181
|
...autoScoredStudentViewSettings.tests,
|
183
|
-
...specifyRowsAndColumnsComponent.tests,
|
182
|
+
...specifyRowsAndColumnsComponent.tests,
|
184
183
|
...commonComponents.tests,
|
185
184
|
...createQuestionBasePage.tests,
|
186
185
|
...additionalSettingsPanel.tests,
|
187
186
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
188
187
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
189
|
-
//TODO need to remove once Save as you go is available for all questions
|
190
|
-
/**
|
191
|
-
* @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
|
192
|
-
* in the 'Specify correct answer' section for alternative answers in auto-scored questions.
|
193
|
-
* @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
|
194
|
-
* @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
195
|
-
*/
|
196
|
-
verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
|
197
|
-
it('\'+ Add alternative answer\' button should be present', () => {
|
198
|
-
utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
|
199
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
|
200
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
201
|
-
.verifyPseudoClassBeforeProperty('content', '""');
|
202
|
-
});
|
203
|
-
|
204
|
-
it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
|
205
|
-
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
|
206
|
-
'color': css.color.activeButtons,
|
207
|
-
'font-size': css.fontSize.default,
|
208
|
-
'font-weight': css.fontWeight.regular
|
209
|
-
});
|
210
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
211
|
-
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
212
|
-
});
|
213
|
-
|
214
|
-
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
|
215
|
-
utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
216
|
-
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
217
|
-
});
|
218
|
-
|
219
|
-
it('CSS of warning popup', { tags: 'css' }, () => {
|
220
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
|
221
|
-
'color': css.color.flyoutTitle,
|
222
|
-
'font-size': css.fontSize.heading,
|
223
|
-
'font-weight': css.fontWeight.semibold
|
224
|
-
});
|
225
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
|
226
|
-
'color': css.color.labels,
|
227
|
-
'font-size': css.fontSize.default,
|
228
|
-
'font-weight': css.fontWeight.regular
|
229
|
-
});
|
230
|
-
utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
|
231
|
-
'fill': css.color.closeIcon
|
232
|
-
});
|
233
|
-
});
|
234
|
-
|
235
|
-
it('Accessibility of warning popup', { tags: 'a11y' }, () => {
|
236
|
-
cy.checkAccessibility(dialogBoxBase.dialogBox());
|
237
|
-
dialogBoxBase.steps.closeWarningPopup();
|
238
|
-
});
|
239
|
-
},
|
240
|
-
|
241
|
-
//TODO need to remove once Save as you go is available for all questions
|
242
|
-
verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
|
243
|
-
it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
|
244
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
245
|
-
.click();
|
246
|
-
dialogBoxBase.steps.closeWarningPopup();
|
247
|
-
//TODO: Need to add error message according to question types
|
248
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
249
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
250
|
-
.eq(1)
|
251
|
-
.should('have.attr', 'aria-expanded', 'true');
|
252
|
-
});
|
253
|
-
},
|
254
|
-
|
255
188
|
/**
|
256
189
|
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
257
190
|
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
@@ -719,110 +719,6 @@ const tests = {
|
|
719
719
|
...autoScoredStudentViewSettings.tests,
|
720
720
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
721
721
|
...mcqAdditionalSettingsBase.tests,
|
722
|
-
|
723
|
-
//TODO need to remove once Save as you go is available for all questions
|
724
|
-
/**
|
725
|
-
* @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
|
726
|
-
* in the 'Specify correct answer' section for alternative answers in auto-scored questions.
|
727
|
-
* @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
|
728
|
-
* @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
729
|
-
*/
|
730
|
-
verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
|
731
|
-
it('\'+ Add alternative answer\' button should be present', () => {
|
732
|
-
utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
|
733
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
|
734
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
735
|
-
.verifyPseudoClassBeforeProperty('content', '""');
|
736
|
-
});
|
737
|
-
|
738
|
-
it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
|
739
|
-
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
|
740
|
-
'color': css.color.activeButtons,
|
741
|
-
'font-size': css.fontSize.default,
|
742
|
-
'font-weight': css.fontWeight.regular
|
743
|
-
});
|
744
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
745
|
-
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
746
|
-
});
|
747
|
-
|
748
|
-
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
|
749
|
-
utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
750
|
-
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
751
|
-
});
|
752
|
-
|
753
|
-
it('CSS of warning popup', { tags: 'css' }, () => {
|
754
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
|
755
|
-
'color': css.color.flyoutTitle,
|
756
|
-
'font-size': css.fontSize.heading,
|
757
|
-
'font-weight': css.fontWeight.semibold
|
758
|
-
});
|
759
|
-
utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
|
760
|
-
'color': css.color.labels,
|
761
|
-
'font-size': css.fontSize.default,
|
762
|
-
'font-weight': css.fontWeight.regular
|
763
|
-
});
|
764
|
-
utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
|
765
|
-
'fill': css.color.closeIcon
|
766
|
-
});
|
767
|
-
});
|
768
|
-
|
769
|
-
it('Accessibility of warning popup', { tags: 'a11y' }, () => {
|
770
|
-
cy.checkAccessibility(dialogBoxBase.dialogBox());
|
771
|
-
dialogBoxBase.steps.closeWarningPopup();
|
772
|
-
});
|
773
|
-
},
|
774
|
-
|
775
|
-
//TODO need to remove once Save as you go is available for all questions
|
776
|
-
verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
|
777
|
-
it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
|
778
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
779
|
-
.click();
|
780
|
-
dialogBoxBase.steps.closeWarningPopup();
|
781
|
-
//TODO: Need to add error message according to question types
|
782
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
783
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
784
|
-
.eq(1)
|
785
|
-
.should('have.attr', 'aria-expanded', 'true');
|
786
|
-
});
|
787
|
-
},
|
788
|
-
|
789
|
-
verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
|
790
|
-
it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
|
791
|
-
utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
|
792
|
-
utilities.verifyInnerText(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), 'Grading view');
|
793
|
-
autoScoredScoringPreviewTab.studentViewRadioButton()
|
794
|
-
.should('be.checked');
|
795
|
-
autoScoredScoringPreviewTab.gradingViewRadioButton()
|
796
|
-
.should('not.be.checked');
|
797
|
-
autoScoredScoringPreviewTab.steps.checkManuallyScoredScoringLabel();
|
798
|
-
autoScoredScoringPreviewTab.steps.verifyCorrectIncorrectIconsNotExist();
|
799
|
-
});
|
800
|
-
|
801
|
-
it('CSS of Preview mode contents', { tags: 'css' }, () => {
|
802
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), {
|
803
|
-
'color': css.color.labelText,
|
804
|
-
'font-size': css.fontSize.normal,
|
805
|
-
'font-weight': css.fontWeight.regular
|
806
|
-
});
|
807
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButtonLabel(), {
|
808
|
-
'color': css.color.labelText,
|
809
|
-
'font-size': css.fontSize.normal,
|
810
|
-
'font-weight': css.fontWeight.regular
|
811
|
-
});
|
812
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.scoreLabelPreviewTab(), {
|
813
|
-
'color': css.color.codeBlockText,
|
814
|
-
'font-size': css.fontSize.default,
|
815
|
-
'font-weight': css.fontWeight.bold
|
816
|
-
});
|
817
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.studentViewRadioButton().parent().find('svg'), {
|
818
|
-
'fill': css.color.activeButtons
|
819
|
-
});
|
820
|
-
utilities.verifyCSS(autoScoredScoringPreviewTab.gradingViewRadioButton().parent().find('svg path'), {
|
821
|
-
'fill': css.color.uncheckedCheckbox
|
822
|
-
});
|
823
|
-
});
|
824
|
-
},
|
825
|
-
|
826
722
|
verifyContentsOfSpecifyCorrectAnswerSection: () => {
|
827
723
|
it('In the \'Correct\' accordion, all options with checkboxes should be displayed', () => {
|
828
724
|
utilities.verifyElementCount(singleSelectionPage.optionWrapperSpecifyCorrectAnswerSection(), 4);
|
@@ -1216,7 +1216,27 @@ const steps = {
|
|
1216
1216
|
optionsTextArray.forEach((option, optionIndex) => {
|
1217
1217
|
utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.optionsInputFieldInQuestionPreviewTab(), optionIndex), option);
|
1218
1218
|
});
|
1219
|
-
}
|
1219
|
+
},
|
1220
|
+
|
1221
|
+
verifyAnswerStatusBannerNotExist: () => {
|
1222
|
+
textSelectionPage.correctIncorrectAnswerLabelWrapper()
|
1223
|
+
.should('not.exist');
|
1224
|
+
},
|
1225
|
+
|
1226
|
+
verifyAnswerStatusBannerExist: () => {
|
1227
|
+
textSelectionPage.correctIncorrectAnswerLabelWrapper()
|
1228
|
+
.should('be.visible');
|
1229
|
+
},
|
1230
|
+
|
1231
|
+
verifyCorrectAnswerSectionExist: () => {
|
1232
|
+
textSelectionPage.correctAnswerSection()
|
1233
|
+
.should('be.visible');
|
1234
|
+
},
|
1235
|
+
|
1236
|
+
verifyCorrectAnswerSectionNotExist: () => {
|
1237
|
+
textSelectionPage.correctAnswerSection()
|
1238
|
+
.should('not.exist');
|
1239
|
+
},
|
1220
1240
|
}
|
1221
1241
|
|
1222
1242
|
const tests = {
|
@@ -1257,19 +1277,18 @@ const tests = {
|
|
1257
1277
|
textSelectionPage.steps.verifySelectedStateOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0], 'blue');
|
1258
1278
|
});
|
1259
1279
|
|
1260
|
-
it(`When the user deselects all the selected options in the ${accordionName} accordion,
|
1280
|
+
it(`When the user deselects all the selected options in the ${accordionName} accordion, 'Error: Please set a correct answer.' error message should be thrown along with an error icon on the '${accordionName}' accordion`, () => {
|
1261
1281
|
textSelectionPage.steps.deselectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
|
1262
|
-
utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), '
|
1263
|
-
utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
|
1282
|
+
utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
|
1264
1283
|
if (accordionName == 'Correct') {
|
1265
1284
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1266
1285
|
.within(() => {
|
1267
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1286
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1268
1287
|
});
|
1269
1288
|
} else {
|
1270
1289
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1271
1290
|
.within(() => {
|
1272
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
1291
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1273
1292
|
});
|
1274
1293
|
};
|
1275
1294
|
});
|