itemengine-cypress-automation 1.0.189-e2e-execution-crash-fbb0d92.0 → 1.0.189
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +79 -0
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +647 -0
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +429 -0
- package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +596 -0
- package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +162 -0
- package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +792 -0
- package/cypress/e2e/ILC/AudioPlayerNew/studentViewSettings.js +253 -0
- package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +313 -0
- package/cypress/e2e/ILC/AudioResponseNew/additionalSettingsBasic.js +1 -22
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +2 -11
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +359 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -8
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +417 -28
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
- package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +2 -2
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +143 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +132 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +143 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +144 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +143 -0
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +131 -0
- package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +87 -0
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +446 -0
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +194 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +274 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +48 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +144 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +252 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +102 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +256 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +253 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +308 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +151 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +227 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/additionalSettings.js +91 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +230 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +124 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +221 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabScoring.js +203 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +71 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +197 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +201 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +115 -0
- package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +183 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +216 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +214 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +273 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +128 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +279 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +109 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +278 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +278 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +335 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +250 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +161 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +216 -0
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +252 -0
- package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +118 -0
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +243 -0
- package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +128 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +155 -0
- package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +195 -0
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +78 -0
- package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +69 -0
- package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +194 -0
- package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +176 -0
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +112 -0
- package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +244 -0
- package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +209 -0
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +58 -2
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +33 -0
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +50 -0
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +2 -1
- package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +696 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +173 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +211 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +75 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +204 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +229 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +229 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +229 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/manualAndNonScoredScoring.js +169 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +274 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsBasic.js +433 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +274 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +274 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +249 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsBasic.js +135 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +210 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +248 -0
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +115 -0
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +288 -0
- package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +153 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +326 -0
- package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +234 -0
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +164 -0
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +80 -0
- package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +204 -0
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +79 -0
- package/cypress/e2e/ILC/NumberLineLabel/minimumScoringPenaltyPointsAndRoundingDropdown.js +85 -0
- package/cypress/e2e/ILC/NumberLineLabel/numberLineSection.js +51 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +120 -0
- package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +74 -0
- package/cypress/e2e/ILC/NumberLineLabel/studentViewSettings.js +183 -0
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +76 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +292 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/checkAnswerFunctionalityForAllViews.smoke.js +155 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +166 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/layoutSection.js +360 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +80 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +111 -0
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +49 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +0 -1
- package/cypress/e2e/ILC/TextSelection/additionalSettings.js +125 -0
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +5 -4
- package/cypress/e2e/ILC/TextSelection/headerSection.js +73 -0
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +6 -7
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +179 -0
- package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +89 -0
- package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +436 -0
- package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +277 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +222 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +260 -0
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +380 -0
- package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/additionalSettingsBasic.js +77 -0
- package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControls.js +313 -0
- package/cypress/e2e/ILC/VideoResponseNew/editAndPreviewTabScoringSection.js +99 -0
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +171 -0
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +179 -0
- package/cypress/e2e/ILC/VideoResponseNew/headerSection.js +79 -0
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +201 -0
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +567 -0
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettings.js +194 -0
- package/cypress/fixtures/constants.js +1 -1
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
- package/cypress/fixtures/theme/ilc.json +22 -18
- package/cypress/pages/audioPlayerPage.js +668 -446
- package/cypress/pages/audioResponsePage.js +8 -80
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +231 -0
- package/cypress/pages/chartsDotPlotPage.js +8 -0
- package/cypress/pages/chartsLinePage.js +42 -0
- package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +58 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +13 -23
- package/cypress/pages/components/autoScoredStudentViewSettings.js +6 -6
- package/cypress/pages/components/barAndLineChartComponent.js +120 -0
- package/cypress/pages/components/chartsCommonComponent.js +105 -0
- package/cypress/pages/components/commonComponents.js +1 -0
- package/cypress/pages/components/draggableOptionContainer.js +2 -1
- package/cypress/pages/components/equationEditorFlyout.js +3 -2
- package/cypress/pages/components/essayResponseCommonComponents.js +8 -2
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
- package/cypress/pages/components/imageCanvasComponent.js +2 -1
- package/cypress/pages/components/index.js +7 -0
- package/cypress/pages/components/layoutSectionComponent.js +1156 -0
- package/cypress/pages/components/limitNumberOfRetakeComponent.js +90 -0
- package/cypress/pages/components/numberLineCommonComponent.js +685 -0
- package/cypress/pages/components/optionsWrapperComponent.js +13 -2
- package/cypress/pages/components/playbackControlsBaseComponent.js +20 -13
- package/cypress/pages/components/questionInstructionsComponent.js +3 -19
- package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
- package/cypress/pages/components/toolSettingsComponent.js +6 -0
- package/cypress/pages/contentBlocksPage.js +18 -2
- package/cypress/pages/createItemPage.js +75 -8
- package/cypress/pages/dialogBoxBase.js +2 -2
- package/cypress/pages/drawingResponsePage.js +24 -4
- package/cypress/pages/feedbackScalePage.js +3 -0
- package/cypress/pages/graphingPage.js +19 -1
- package/cypress/pages/gridFillPage.js +47 -59
- package/cypress/pages/index.js +5 -1
- package/cypress/pages/itemPreviewSettingsPage.js +4 -0
- package/cypress/pages/listOrderingPage.js +561 -555
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +23 -1
- package/cypress/pages/numberLineLabelPage.js +1086 -0
- package/cypress/pages/numberLinePage.js +696 -78
- package/cypress/pages/rulerPage.js +6 -2
- package/cypress/pages/textSelectionPage.js +461 -23
- package/cypress/pages/videoResponsePage.js +393 -81
- package/package.json +1 -1
@@ -0,0 +1,685 @@
|
|
1
|
+
import utilities from "../../support/helpers/utilities";
|
2
|
+
import { createQuestionBasePage } from "./createQuestionBasePage";
|
3
|
+
import { layoutSectionComponent } from "./layoutSectionComponent";
|
4
|
+
const lineSettingsOptions = ['Whole numbers', 'Decimals', 'Fractions', 'Mixed fractions'];
|
5
|
+
const numbers = ['-10', '-10.00', "−\n10\n1", "−\n10\n0\n1"]
|
6
|
+
|
7
|
+
const selectors = {
|
8
|
+
...layoutSectionComponent,
|
9
|
+
numberLineSpecifyCorrectAnswer: () => cy.get('.ngie-accordion .ngie-jxgbox svg').eq(0),
|
10
|
+
numberLineTitleSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-accordion [class*="LineGraphstyles__TitleText"]'),
|
11
|
+
numberLineAxisSpecifyCorrectAnswer: () => cy.get('.ngie-accordion .ngie-jxgbox svg line'),
|
12
|
+
numberLineTitleCorrectAnswerSection: () => cy.get('[class*="LineGraphstyles__TitleText"]').last(),
|
13
|
+
numberLinePreviewTab: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg').eq(0),
|
14
|
+
numberLinePointPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox').eq(0).find('svg ellipse[display="inline"]'),
|
15
|
+
numberLineTitlePreviewTab: () => cy.get('.edit-question-preview-wrapper [class*="LineGraphstyles__TitleText"]'),
|
16
|
+
numberLineAxisPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .ngie-jxgbox svg line').eq(0),
|
17
|
+
correctAnswersLabel: () => cy.get('[class*="AnswerLabel"]:visible'),
|
18
|
+
correctIcon: () => cy.get('[data-icon="CorrectAnswer"]'),
|
19
|
+
incorrectIcon: () => cy.get('[data-icon="Incorrect"]'),
|
20
|
+
correctIncorrectAnswerTextWrapper: () => cy.get('[class*="CorrectIncorrectWrapper"]'),
|
21
|
+
warningMessage: () => cy.get('.disabled-wrapper-cls [class*="DisabledTextWrapper"]'),
|
22
|
+
warningMessageContainer: () => cy.get('.disabled-wrapper-cls'),
|
23
|
+
}
|
24
|
+
|
25
|
+
const steps = {
|
26
|
+
...layoutSectionComponent.steps,
|
27
|
+
...createQuestionBasePage.steps,
|
28
|
+
/**
|
29
|
+
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
30
|
+
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
31
|
+
* If the answer is correct, it also verifies the visibility of the correct icon;
|
32
|
+
* otherwise, it verifies the visibility of the incorrect icon.
|
33
|
+
*/
|
34
|
+
verifyCorrectIncorrectAnswerLabel: (answerStatus) => {
|
35
|
+
utilities.verifyInnerText(numberLineCommonComponent.correctIncorrectAnswerTextWrapper(), `Your answer is\n${answerStatus}`)
|
36
|
+
numberLineCommonComponent.correctIncorrectAnswerTextWrapper()
|
37
|
+
.within(() => {
|
38
|
+
if (answerStatus === 'correct') {
|
39
|
+
utilities.verifyElementVisibilityState(numberLineCommonComponent.correctIcon(), 'visible');
|
40
|
+
} else {
|
41
|
+
utilities.verifyElementVisibilityState(numberLineCommonComponent.incorrectIcon(), 'visible');
|
42
|
+
}
|
43
|
+
});
|
44
|
+
},
|
45
|
+
|
46
|
+
/**
|
47
|
+
* Verifies the orientation and size of the specify correct answer section.
|
48
|
+
* @param {string} orientation - The orientation of the specify correct answer section ('Horizontal' or 'Vertical').
|
49
|
+
* @param {string} value - The value representing the width or height of the specify correct answer section.
|
50
|
+
*/
|
51
|
+
verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection: (orientation, value) => {
|
52
|
+
if (orientation === 'Horizontal') {
|
53
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
54
|
+
.should('have.attr', 'width', value)
|
55
|
+
} else {
|
56
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
57
|
+
.should('have.attr', 'height', value);
|
58
|
+
}
|
59
|
+
},
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Verifies the margin for the specify correct answer section of the number line.
|
63
|
+
* @param {number} value - The expected margin value in pixels.
|
64
|
+
*/
|
65
|
+
verifyMarginForNumberLineSpecifyCorrectAnswerSection: (value) => {
|
66
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
67
|
+
.parents('[class*="LineGraphstyles__GraphContainer"]')
|
68
|
+
.should('have.css', 'padding', `${value}px`);
|
69
|
+
},
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Verifies the response spacing for the specify correct answer section of the number line.
|
73
|
+
* @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
|
74
|
+
* @param {number} value - The expected response spacing value.
|
75
|
+
*/
|
76
|
+
verifyResponseSpacingSpecifyCorrectAnswerSection: (orientation, value) => {
|
77
|
+
const attribute = orientation === 'Horizontal' ? 'height' : 'width';
|
78
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
79
|
+
.should('have.attr', attribute, value * 4);
|
80
|
+
},
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Verifies the visibility of the minimum arrow .
|
84
|
+
* @param {string} visibility - The expected visibility ('visible' or 'hidden').
|
85
|
+
* @throws {Error} Throws an error if the provided visibility string is invalid.
|
86
|
+
*/
|
87
|
+
verifyMinArrowVisibilitySpecifyCorrectAnswerSection: (visibility) => {
|
88
|
+
if (visibility === 'visible') {
|
89
|
+
numberLineCommonComponent.numberLineAxisSpecifyCorrectAnswer()
|
90
|
+
.should('have.attr', 'marker-start');
|
91
|
+
}
|
92
|
+
else if (visibility === 'hidden') {
|
93
|
+
numberLineCommonComponent.numberLineAxisSpecifyCorrectAnswer()
|
94
|
+
.should('not.have.attr', 'marker-start');
|
95
|
+
}
|
96
|
+
else {
|
97
|
+
throw new Error('invalid state string');
|
98
|
+
}
|
99
|
+
},
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Verifies the visibility of the maximum arrow
|
103
|
+
* @param {string} visibility - The expected visibility ('visible' or 'hidden').
|
104
|
+
* @throws {Error} Throws an error if the provided visibility string is invalid.
|
105
|
+
*/
|
106
|
+
verifyMaxArrowVisibilitySpecifyCorrectAnswerSection: (visibility) => {
|
107
|
+
if (visibility === 'visible') {
|
108
|
+
numberLineCommonComponent.numberLineAxisSpecifyCorrectAnswer()
|
109
|
+
.should('have.attr', 'marker-end');
|
110
|
+
}
|
111
|
+
else if (visibility === 'hidden') {
|
112
|
+
numberLineCommonComponent.numberLineAxisSpecifyCorrectAnswer()
|
113
|
+
.should('not.have.attr', 'marker-end');
|
114
|
+
}
|
115
|
+
else {
|
116
|
+
throw new Error('invalid state string');
|
117
|
+
}
|
118
|
+
},
|
119
|
+
|
120
|
+
|
121
|
+
verifyLabelsNotVisibleOnNumberLineSpecifyCorrectAnswerSection: () => {
|
122
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
123
|
+
.parents('.ngie-jxgbox')
|
124
|
+
.find('.number-line-tick-font')
|
125
|
+
.should('not.exist');
|
126
|
+
},
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Verifies the visibility and text of labels on the specify correct answer section of the number line.
|
130
|
+
* @param {string} value - The initial value of the labels.
|
131
|
+
* @param {number} interval - The interval between consecutive labels.
|
132
|
+
*/
|
133
|
+
verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection: (value, interval) => {
|
134
|
+
cy.log('Wait added to make sure all the labels are visible after checking the checkbox')
|
135
|
+
cy.wait(3000)
|
136
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
137
|
+
.parents('.ngie-jxgbox')
|
138
|
+
.find('.number-line-tick-font')
|
139
|
+
.its('length').then((len) => {
|
140
|
+
for (let index = 0; index < len; index++) {
|
141
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
142
|
+
.parents('.ngie-jxgbox')
|
143
|
+
.find('.number-line-tick-font')
|
144
|
+
.eq(index)
|
145
|
+
.should('have.text', value);
|
146
|
+
value += interval;
|
147
|
+
}
|
148
|
+
});
|
149
|
+
},
|
150
|
+
|
151
|
+
/**
|
152
|
+
* Verifies the orientation and size of the preview tab of the number line.
|
153
|
+
* @param {string} orientation - The orientation of the preview tab ('Horizontal' or 'Vertical').
|
154
|
+
* @param {string} value - The value representing the width or height of the preview tab.
|
155
|
+
*/
|
156
|
+
verifyNumberLineOrientationAndSizePreviewTab: (orientation, value) => {
|
157
|
+
if (orientation === 'Horizontal') {
|
158
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
159
|
+
.should('have.attr', 'width', value)
|
160
|
+
} else {
|
161
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
162
|
+
.should('have.attr', 'height', value);
|
163
|
+
}
|
164
|
+
},
|
165
|
+
|
166
|
+
/**
|
167
|
+
* Verifies the margin for the preview tab of the number line.
|
168
|
+
* @param {number} value - The expected margin value in pixels.
|
169
|
+
*/
|
170
|
+
verifyMarginForNumberLinePreviewTab: (value) => {
|
171
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
172
|
+
.parents('[class*="LineGraphstyles__GraphContainer"]')
|
173
|
+
.should('have.css', 'padding', `${value}px`);
|
174
|
+
},
|
175
|
+
|
176
|
+
/**
|
177
|
+
* Verifies the response spacing for the preview tab of the number line.
|
178
|
+
* @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
|
179
|
+
* @param {number} value - The expected response spacing value.
|
180
|
+
*/
|
181
|
+
verifyResponseSpacingPreviewTab: (orientation, value) => {
|
182
|
+
const attribute = orientation === 'Horizontal' ? 'height' : 'width';
|
183
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
184
|
+
.should('have.attr', attribute, value * 4);
|
185
|
+
},
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Verifies the visibility of the minimum arrow
|
189
|
+
* @param {string} visibility - The expected visibility ('visible' or 'hidden').
|
190
|
+
* @throws {Error} Throws an error if the provided visibility string is invalid.
|
191
|
+
*/
|
192
|
+
verifyMinArrowVisibilityPreviewTab: (visibility) => {
|
193
|
+
if (visibility === 'visible') {
|
194
|
+
numberLineCommonComponent.numberLineAxisPreviewTab()
|
195
|
+
.should('have.attr', 'marker-start');
|
196
|
+
}
|
197
|
+
else if (visibility === 'hidden') {
|
198
|
+
numberLineCommonComponent.numberLineAxisPreviewTab()
|
199
|
+
.should('not.have.attr', 'marker-start');
|
200
|
+
}
|
201
|
+
else {
|
202
|
+
throw new Error('invalid state string');
|
203
|
+
}
|
204
|
+
},
|
205
|
+
|
206
|
+
/**
|
207
|
+
* Verifies the visibility of the maximum arrow
|
208
|
+
* @param {string} visibility - The expected visibility ('visible' or 'hidden').
|
209
|
+
* @throws {Error} Throws an error if the provided visibility string is invalid.
|
210
|
+
*/
|
211
|
+
verifyMaxArrowVisibilityPreviewTab: (visibility) => {
|
212
|
+
if (visibility === 'visible') {
|
213
|
+
numberLineCommonComponent.numberLineAxisPreviewTab()
|
214
|
+
.should('have.attr', 'marker-end');
|
215
|
+
}
|
216
|
+
else if (visibility === 'hidden') {
|
217
|
+
numberLineCommonComponent.numberLineAxisPreviewTab()
|
218
|
+
.should('not.have.attr', 'marker-end');
|
219
|
+
}
|
220
|
+
else {
|
221
|
+
throw new Error('invalid state string');
|
222
|
+
}
|
223
|
+
},
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Verifies the visibility and text of labels on the preview tab of the number line.
|
227
|
+
* @param {string} value - The initial value of the labels.
|
228
|
+
* @param {number} interval - The interval between consecutive labels.
|
229
|
+
*/
|
230
|
+
verifyLabelsVisibleOnNumberLinePreviewTab: (value, interval) => {
|
231
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
232
|
+
.parents('.ngie-jxgbox')
|
233
|
+
.find('.number-line-tick-font')
|
234
|
+
.its('length').then((len) => {
|
235
|
+
for (let index = 0; index < len; index++) {
|
236
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
237
|
+
.parents('.ngie-jxgbox')
|
238
|
+
.find('.number-line-tick-font')
|
239
|
+
.eq(index)
|
240
|
+
.should('have.text', value);
|
241
|
+
value += interval;
|
242
|
+
}
|
243
|
+
});
|
244
|
+
},
|
245
|
+
|
246
|
+
verifyLabelsNotVisibleOnNumberLinePreviewTab: () => {
|
247
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
248
|
+
.parents('.ngie-jxgbox')
|
249
|
+
.find('.number-line-tick-font')
|
250
|
+
.should('not.exist');
|
251
|
+
},
|
252
|
+
|
253
|
+
/**
|
254
|
+
* Verifies the label on the number line.
|
255
|
+
* @param {Array} values - An array of objects containing the value and index of each label.
|
256
|
+
*/
|
257
|
+
verifyLabelOnNumberLineSpecifyCorrectAnswerSection: (values) => {
|
258
|
+
values.forEach(({ value, index }) => {
|
259
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
260
|
+
.parents('.ngie-jxgbox')
|
261
|
+
.find('.number-line-tick-font')
|
262
|
+
.eq(index)
|
263
|
+
.then(($el) => {
|
264
|
+
const innerText = $el[0].innerText;
|
265
|
+
expect(innerText.trim()).to.equal(value.toString());
|
266
|
+
});
|
267
|
+
});
|
268
|
+
},
|
269
|
+
|
270
|
+
/**
|
271
|
+
* Verifies the annotated labels on the number line.
|
272
|
+
* @param {string} value - The value of the annotated label.
|
273
|
+
* @param {number} annotateEvery - The frequency of annotation.
|
274
|
+
*/
|
275
|
+
verifyAnnotatedLabelsOnNumberLineSpecifyCorrectAnswerSection: (value, annotateEvery) => {
|
276
|
+
cy.wait(3000);
|
277
|
+
numberLineCommonComponent.numberLineSpecifyCorrectAnswer()
|
278
|
+
.parents('.ngie-jxgbox')
|
279
|
+
.find('.number-line-tick-font')
|
280
|
+
.each(($element, index) => {
|
281
|
+
if (index % annotateEvery === 0) {
|
282
|
+
cy.wrap($element).should('have.text', value);
|
283
|
+
value += annotateEvery;
|
284
|
+
}
|
285
|
+
});
|
286
|
+
},
|
287
|
+
|
288
|
+
/**
|
289
|
+
* Verifies the label on the number line.
|
290
|
+
* @param {Array} values - An array of objects containing the value and index of each label.
|
291
|
+
*/
|
292
|
+
verifyLabelOnNumberLinePreviewTab: (values) => {
|
293
|
+
values.forEach(({ value, index }) => {
|
294
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
295
|
+
.parents('.ngie-jxgbox')
|
296
|
+
.find('.number-line-tick-font')
|
297
|
+
.eq(index)
|
298
|
+
.then(($el) => {
|
299
|
+
const innerText = $el[0].innerText;
|
300
|
+
expect(innerText.trim()).to.equal(value.toString());
|
301
|
+
});
|
302
|
+
});
|
303
|
+
},
|
304
|
+
|
305
|
+
/**
|
306
|
+
* Verifies the annotated labels on the number line.
|
307
|
+
* @param {string} value - The value of the annotated label.
|
308
|
+
* @param {number} annotateEvery - The frequency of annotation.
|
309
|
+
*/
|
310
|
+
verifyAnnotatedLabelsOnNumberLinePreviewTab: (value, annotateEvery) => {
|
311
|
+
numberLineCommonComponent.numberLinePreviewTab()
|
312
|
+
.parents('.ngie-jxgbox')
|
313
|
+
.find('.number-line-tick-font')
|
314
|
+
.each(($element, index) => {
|
315
|
+
if (index % annotateEvery === 0) {
|
316
|
+
cy.wrap($element).should('have.text', value);
|
317
|
+
value += annotateEvery;
|
318
|
+
}
|
319
|
+
});
|
320
|
+
}
|
321
|
+
}
|
322
|
+
|
323
|
+
const tests = {
|
324
|
+
/**
|
325
|
+
* Verifies the functionality of the layout section in the edit tab.
|
326
|
+
* @param {('Horizontal'|'Vertical')} orientation - The orientation of the number line
|
327
|
+
*/
|
328
|
+
verifyLayoutSectionEditTabFunctionality: (orientation) => {
|
329
|
+
it(`When user selects ${orientation} orientation, then number line in Number line section and Specify correct answer section should be updated to ${orientation} number line`, () => {
|
330
|
+
numberLineCommonComponent.steps.selectOrientationToggleButton(orientation);
|
331
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeNumberLineSection(orientation, '640');
|
332
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection(orientation, '640');
|
333
|
+
});
|
334
|
+
|
335
|
+
if (orientation === "Horizontal") {
|
336
|
+
it('When user updates value for Width input field, it should get updated in Number line section and Specify correct answer section', () => {
|
337
|
+
numberLineCommonComponent.steps.enterTextInWidthInputField(600);
|
338
|
+
numberLineCommonComponent.steps.verifyTextInWidthInputField(600);
|
339
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeNumberLineSection(orientation, '600');
|
340
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection(orientation, '600');
|
341
|
+
numberLineCommonComponent.steps.enterTextInWidthInputField(640);
|
342
|
+
});
|
343
|
+
} else {
|
344
|
+
it('When user updates value for Height input field, it should get updated in Number line section and Specify correct answer section', () => {
|
345
|
+
numberLineCommonComponent.steps.enterTextInHeightInputField(600);
|
346
|
+
numberLineCommonComponent.steps.verifyTextInHeightInputField(600);
|
347
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeNumberLineSection(orientation, '600');
|
348
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizeSpecifyCorrectAnswerSection(orientation, '600');
|
349
|
+
numberLineCommonComponent.steps.enterTextInHeightInputField(640);
|
350
|
+
});
|
351
|
+
}
|
352
|
+
|
353
|
+
it('When user updates value for Margin input field, it should get updated in Specify correct answer section', () => {
|
354
|
+
numberLineCommonComponent.steps.enterTextInMarginInputField(12);
|
355
|
+
numberLineCommonComponent.steps.verifyTextInMarginInputField(12);
|
356
|
+
numberLineCommonComponent.steps.verifyMarginForNumberLineSpecifyCorrectAnswerSection(12);
|
357
|
+
numberLineCommonComponent.steps.enterTextInMarginInputField(10);
|
358
|
+
});
|
359
|
+
|
360
|
+
it('When user checks Show min arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
|
361
|
+
numberLineCommonComponent.steps.checkCheckbox('Show min arrow');
|
362
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilitySpecifyCorrectAnswerSection('visible');
|
363
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilityNumberLineSection('visible');
|
364
|
+
});
|
365
|
+
|
366
|
+
it('When user unchecks Show min arrow checkbox, then arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
|
367
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show min arrow');
|
368
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilitySpecifyCorrectAnswerSection('hidden');
|
369
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilityNumberLineSection('hidden');
|
370
|
+
});
|
371
|
+
|
372
|
+
it('When user checks Show max arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in number line section and specify correct answer section', () => {
|
373
|
+
numberLineCommonComponent.steps.checkCheckbox('Show max arrow');
|
374
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilitySpecifyCorrectAnswerSection('visible');
|
375
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilityNumberLineSection('visible');
|
376
|
+
});
|
377
|
+
|
378
|
+
it('When user unchecks Show max arrow checkbox, then arrow should not be displayed on right end of number line in number line section and specify correct answer section', () => {
|
379
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show max arrow');
|
380
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilitySpecifyCorrectAnswerSection('hidden');
|
381
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilityNumberLineSection('hidden');
|
382
|
+
});
|
383
|
+
|
384
|
+
//Note: Only for Label number line
|
385
|
+
it('When user unchecks Stagger response checkbox', () => {
|
386
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Stagger response');
|
387
|
+
});
|
388
|
+
|
389
|
+
//Note: Only for Label number line
|
390
|
+
it('When user uncheck Stagger response checkbox', () => {
|
391
|
+
numberLineCommonComponent.steps.checkCheckbox('Stagger response');
|
392
|
+
});
|
393
|
+
|
394
|
+
it('When user unchecks Show labels checkbox, then labels on number line should disappear in number line section and specify correct answer section', () => {
|
395
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show labels');
|
396
|
+
numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLineNumberLineSection();
|
397
|
+
numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLineSpecifyCorrectAnswerSection();
|
398
|
+
});
|
399
|
+
|
400
|
+
it('When Show labels checkbox is unchecked, then Line settings and Display numbers section should be in disabled state', () => {
|
401
|
+
numberLineCommonComponent.steps.verifyDisplayNumbersAndLineSettingsSectionDisabled();
|
402
|
+
});
|
403
|
+
|
404
|
+
it('When user checks Show labels checkbox, then labels on number line should be displayed in number line section and specify correct answer section', () => {
|
405
|
+
numberLineCommonComponent.steps.checkCheckbox('Show labels');
|
406
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineNumberLineSection(-10, 1);
|
407
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection(-10, 1);
|
408
|
+
});
|
409
|
+
|
410
|
+
it('When Show labels checkbox is checked, then Line settings and Display numbers section should be in enabled state', () => {
|
411
|
+
numberLineCommonComponent.steps.verifyDisplayNumbersAndLineSettingsSectionEnabled();
|
412
|
+
});
|
413
|
+
|
414
|
+
//Note: Unable to check on cypress, added to manual sheet
|
415
|
+
it('When user unchecks Show ticks checkbox, then ticks on number line should disappear in number line section and specify correct answer section', () => {
|
416
|
+
|
417
|
+
});
|
418
|
+
|
419
|
+
//Note: Unable to check on cypress, added to manual sheet
|
420
|
+
it('When user checks Show ticks checkbox, then ticks on number line should be displayed in number line section and specify correct answer section', () => {
|
421
|
+
|
422
|
+
});
|
423
|
+
},
|
424
|
+
|
425
|
+
/**
|
426
|
+
* Verifies the functionality of the layout section in the preview tab.
|
427
|
+
* @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
|
428
|
+
*/
|
429
|
+
verifyLayoutSectionPreviewTabFunctionality: (orientation) => {
|
430
|
+
it(`When user selects ${orientation} orientation, then ${orientation} number line should be displayed in preview tab`, () => {
|
431
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
432
|
+
numberLineCommonComponent.steps.selectOrientationToggleButton(orientation);
|
433
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
434
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizePreviewTab(orientation, '640');
|
435
|
+
});
|
436
|
+
|
437
|
+
if (orientation === "Horizontal") {
|
438
|
+
it('When user updates value for Width input field, it should get updated in preview tab', () => {
|
439
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
440
|
+
numberLineCommonComponent.steps.enterTextInWidthInputField(600);
|
441
|
+
numberLineCommonComponent.steps.verifyTextInWidthInputField(600);
|
442
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
443
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizePreviewTab(orientation, '600');
|
444
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
445
|
+
numberLineCommonComponent.steps.enterTextInWidthInputField(640);
|
446
|
+
});
|
447
|
+
} else {
|
448
|
+
it('When user updates value for Height input field, it should get updated in preview tab', () => {
|
449
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
450
|
+
numberLineCommonComponent.steps.enterTextInHeightInputField(600);
|
451
|
+
numberLineCommonComponent.steps.verifyTextInHeightInputField(600);
|
452
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
453
|
+
numberLineCommonComponent.steps.verifyNumberLineOrientationAndSizePreviewTab(orientation, '600');
|
454
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
455
|
+
numberLineCommonComponent.steps.enterTextInHeightInputField(640);
|
456
|
+
});
|
457
|
+
}
|
458
|
+
|
459
|
+
it('When user updates value for Margin input field, it should get updated in preview tab', () => {
|
460
|
+
numberLineCommonComponent.steps.enterTextInMarginInputField(12);
|
461
|
+
numberLineCommonComponent.steps.verifyTextInMarginInputField(12);
|
462
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
463
|
+
numberLineCommonComponent.steps.verifyMarginForNumberLinePreviewTab(12);
|
464
|
+
});
|
465
|
+
|
466
|
+
it('When user checks Show min arrow checkbox, then arrow should be displayed on left end of number line and arrow should not be displayed on right end of number line in preview tab', () => {
|
467
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
468
|
+
numberLineCommonComponent.steps.enterTextInMarginInputField(10);
|
469
|
+
numberLineCommonComponent.steps.checkCheckbox('Show min arrow');
|
470
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
471
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilityPreviewTab('visible');
|
472
|
+
});
|
473
|
+
|
474
|
+
it('When user unchecks Show min arrow checkbox, then arrow should not be displayed on left end of number line in preview tab', () => {
|
475
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
476
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show min arrow');
|
477
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
478
|
+
numberLineCommonComponent.steps.verifyMinArrowVisibilityPreviewTab('hidden');
|
479
|
+
});
|
480
|
+
|
481
|
+
it('When user checks Show max arrow checkbox, then arrow should be displayed on right end of number line and arrow should not be displayed on left end of number line in preview tab', () => {
|
482
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
483
|
+
numberLineCommonComponent.steps.checkCheckbox('Show max arrow');
|
484
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
485
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilityPreviewTab('visible');
|
486
|
+
});
|
487
|
+
|
488
|
+
it('When user unchecks Show max arrow checkbox, then arrow should not be displayed on right end of number line in preview tab', () => {
|
489
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
490
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show max arrow');
|
491
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
492
|
+
numberLineCommonComponent.steps.verifyMaxArrowVisibilityPreviewTab('hidden');
|
493
|
+
});
|
494
|
+
|
495
|
+
it('When user unchecks Show labels checkbox, then labels on number line should disappear in preview tab', () => {
|
496
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
497
|
+
numberLineCommonComponent.steps.uncheckCheckbox('Show labels');
|
498
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
499
|
+
numberLineCommonComponent.steps.verifyLabelsNotVisibleOnNumberLinePreviewTab();
|
500
|
+
});
|
501
|
+
|
502
|
+
it('When user checks Show labels checkbox, then labels on number line should be displayed in preview tab', () => {
|
503
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
504
|
+
numberLineCommonComponent.steps.checkCheckbox('Show labels');
|
505
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
506
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLinePreviewTab(-10, 1);
|
507
|
+
});
|
508
|
+
|
509
|
+
//Note: Unable to check on cypress, added to manual sheet
|
510
|
+
it('When user unchecks Show ticks checkbox, then ticks on number line should disappear in preview tab', () => {
|
511
|
+
|
512
|
+
});
|
513
|
+
|
514
|
+
//Note: Unable to check on cypress, added to manual sheet
|
515
|
+
it('When user checks Show ticks checkbox, then ticks on number line should be displayed in preview tab', () => {
|
516
|
+
|
517
|
+
});
|
518
|
+
},
|
519
|
+
|
520
|
+
/**
|
521
|
+
* Verifies the functionality of the number line title popup in the edit tab.
|
522
|
+
* @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
|
523
|
+
*/
|
524
|
+
verifyNumberLineTitlePopupEditTabFunctionality: (title) => {
|
525
|
+
it('When the user edits the Number line title and clicks on \'Cancel\' button then the changes should not be displayed in the Number line section and \'Specify correct answer\' section Number line', () => {
|
526
|
+
layoutSectionComponent.steps.enterTextInTitlePopupAddLabelInputField(title);
|
527
|
+
layoutSectionComponent.steps.clickOnTitlePopupCancelButton();
|
528
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitleNumberLineSection(), 'Number line title');
|
529
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitleSpecifyCorrectAnswerSection(), 'Number line title');
|
530
|
+
});
|
531
|
+
|
532
|
+
it('When the user clicks on the \'Number line title\' then the original text should be displayed in the popup', () => {
|
533
|
+
layoutSectionComponent.steps.clickOnNumberLineTitle();
|
534
|
+
layoutSectionComponent.steps.verifyTextInTitlePopupAddLabelInputField('Number line title');
|
535
|
+
});
|
536
|
+
|
537
|
+
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the Number line section and \'Specify correct answer\' section Number line', () => {
|
538
|
+
layoutSectionComponent.steps.enterTextInTitlePopupAddLabelInputField(title);
|
539
|
+
layoutSectionComponent.steps.clickOnTitlePopupSaveButton();
|
540
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitleNumberLineSection(), title);
|
541
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitleSpecifyCorrectAnswerSection(), title);
|
542
|
+
});
|
543
|
+
},
|
544
|
+
|
545
|
+
verifyNumberLineSectionEditTabFunctionality: () => {
|
546
|
+
it('When user updates value in Min input field then it should be updated in Specify correct answer section', () => {
|
547
|
+
numberLineCommonComponent.steps.enterTextInMinInputField(-12);
|
548
|
+
numberLineCommonComponent.steps.verifyTextInMinInputField(-12);
|
549
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: -12, index: 0 }]);
|
550
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: -12, index: 0 }]);
|
551
|
+
});
|
552
|
+
|
553
|
+
it('When user updates value in Max input field then it should be updated in Specify correct answer section', () => {
|
554
|
+
numberLineCommonComponent.steps.enterTextInMaxInputField(12);
|
555
|
+
numberLineCommonComponent.steps.verifyTextInMaxInputField(12);
|
556
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: 12, index: 24 }]);
|
557
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: 12, index: 24 }]);
|
558
|
+
});
|
559
|
+
|
560
|
+
//Note- Can't check ticks are not annotated so adding it to manual sheet
|
561
|
+
it('When user updates value in Interval input field then interval of labels and ticks should be updated in number line section and specify correct answer section', () => {
|
562
|
+
numberLineCommonComponent.steps.enterTextInIntervalInputField(2);
|
563
|
+
numberLineCommonComponent.steps.verifyTextInIntervalInputField(2);
|
564
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineNumberLineSection(-12, 2);
|
565
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLineSpecifyCorrectAnswerSection(-12, 2);
|
566
|
+
});
|
567
|
+
|
568
|
+
//Note- Can't check ticks are not annotated so adding it to manual sheet
|
569
|
+
it('When user updates value in Annotate every input field then labels should be annotated appropriately and ticks should not get annotated for the number line in the number line section and the specify correct answer section.', () => {
|
570
|
+
cy.log('Changing interval input fields value to its default value');
|
571
|
+
numberLineCommonComponent.steps.enterTextInIntervalInputField(1);
|
572
|
+
numberLineCommonComponent.steps.enterTextInAnnotateEveryInputField(2);
|
573
|
+
numberLineCommonComponent.steps.verifyTextInAnnotateEveryInputField(2);
|
574
|
+
numberLineCommonComponent.steps.verifyAnnotatedLabelsOnNumberLineNumberLineSection(-12, 2);
|
575
|
+
numberLineCommonComponent.steps.verifyAnnotatedLabelsOnNumberLineSpecifyCorrectAnswerSection(-12, 2);
|
576
|
+
});
|
577
|
+
},
|
578
|
+
|
579
|
+
/**
|
580
|
+
* Verifies the functionality of the number line title popup in the preview tab.
|
581
|
+
* @param {string} orientation - The orientation of the number line ('Horizontal' or 'Vertical').
|
582
|
+
*/
|
583
|
+
verifyNumberLineTitlePopupPreviewTabFunctionality: (title) => {
|
584
|
+
it('When the user edits the number line title and clicks on \'Cancel\' button then the changes should not be displayed in the preview tab', () => {
|
585
|
+
numberLineCommonComponent.steps.clickOnNumberLineTitle();
|
586
|
+
numberLineCommonComponent.steps.enterTextInTitlePopupAddLabelInputField(title);
|
587
|
+
numberLineCommonComponent.steps.clickOnTitlePopupCancelButton();
|
588
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
589
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitlePreviewTab(), 'Number line title');
|
590
|
+
});
|
591
|
+
|
592
|
+
it('When the user clicks on \'Save\' after updating the input field the updated label should be displayed in the preview tab', () => {
|
593
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
594
|
+
numberLineCommonComponent.steps.clickOnNumberLineTitle();
|
595
|
+
numberLineCommonComponent.steps.enterTextInTitlePopupAddLabelInputField(title);
|
596
|
+
numberLineCommonComponent.steps.clickOnTitlePopupSaveButton();
|
597
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
598
|
+
utilities.verifyInnerText(numberLineCommonComponent.numberLineTitlePreviewTab(), title);
|
599
|
+
});
|
600
|
+
},
|
601
|
+
|
602
|
+
verifyNumberLineSectionPreviewTabFunctionality: () => {
|
603
|
+
it('When user updates value in Min input field then it should be updated in preview tab', () => {
|
604
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
605
|
+
numberLineCommonComponent.steps.enterTextInMinInputField(-12);
|
606
|
+
numberLineCommonComponent.steps.verifyTextInMinInputField(-12);
|
607
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
608
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: -12, index: 0 }]);
|
609
|
+
});
|
610
|
+
|
611
|
+
it('When user updates value in Max input field then it should be updated in preview tab', () => {
|
612
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
613
|
+
numberLineCommonComponent.steps.enterTextInMaxInputField(12);
|
614
|
+
numberLineCommonComponent.steps.verifyTextInMaxInputField(12);
|
615
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
616
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: 12, index: 24 }]);
|
617
|
+
});
|
618
|
+
|
619
|
+
//Note- Can't check ticks are not annotated so adding it to manual sheet
|
620
|
+
it('When user updates value in Interval input field then interval of labels and ticks should be updated in preview tab', () => {
|
621
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
622
|
+
numberLineCommonComponent.steps.enterTextInIntervalInputField(2);
|
623
|
+
numberLineCommonComponent.steps.verifyTextInIntervalInputField(2);
|
624
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
625
|
+
numberLineCommonComponent.steps.verifyLabelsVisibleOnNumberLinePreviewTab(-12, 2);
|
626
|
+
});
|
627
|
+
|
628
|
+
//Note- Can't check ticks are not annotated so adding it to manual sheet
|
629
|
+
it('When user updates value in Annotate every input field then labels should be annotated appropriately for the number line and ticks should not get annotated in the preview tab.', () => {
|
630
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
631
|
+
cy.log('Changing interval input fields value to its default value');
|
632
|
+
numberLineCommonComponent.steps.enterTextInIntervalInputField(1);
|
633
|
+
numberLineCommonComponent.steps.enterTextInAnnotateEveryInputField(2);
|
634
|
+
numberLineCommonComponent.steps.verifyTextInAnnotateEveryInputField(2);
|
635
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
636
|
+
numberLineCommonComponent.steps.verifyAnnotatedLabelsOnNumberLinePreviewTab(-12, 2);
|
637
|
+
});
|
638
|
+
},
|
639
|
+
|
640
|
+
verifyDisplaySpecificAnnotationAndLineSettingsEditTabFunctionality: () => {
|
641
|
+
lineSettingsOptions.forEach((option, index) => {
|
642
|
+
it(`When user selects ${option} in line settings section, then number displayed on number line should be ${option} in number line section and specify correct answer section`, () => {
|
643
|
+
numberLineCommonComponent.steps.selectLineSettingsToggleButton(option);
|
644
|
+
numberLineCommonComponent.steps.verifyLineSettingsToggleButtonSelected(option);
|
645
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: numbers[index], index: 0 }]);
|
646
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: numbers[index], index: 0 }]);
|
647
|
+
});
|
648
|
+
});
|
649
|
+
|
650
|
+
it('When user enters value in Display specific annotation (use semicolons to separate) input field then it should be displayed on number line in Number line section and Specify correct answer section', () => {
|
651
|
+
numberLineCommonComponent.steps.selectLineSettingsToggleButton(lineSettingsOptions[0]);
|
652
|
+
numberLineCommonComponent.steps.enterTextInDisplaySpecificAnnotationInputField('-9;');
|
653
|
+
numberLineCommonComponent.steps.verifyTextInDisplaySpecificAnnotationInputField('-9;');
|
654
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: -9, index: 1 }]);
|
655
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: -9, index: 1 }]);
|
656
|
+
});
|
657
|
+
},
|
658
|
+
|
659
|
+
verifyDisplaySpecificAnnotationAndLineSettingsPreviewTabFunctionality: () => {
|
660
|
+
lineSettingsOptions.forEach((option, index) => {
|
661
|
+
it(`When user selects ${option} in line settings section, then number displayed on number line should be ${option} in preview tab`, () => {
|
662
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
663
|
+
numberLineCommonComponent.steps.selectLineSettingsToggleButton(option);
|
664
|
+
numberLineCommonComponent.steps.verifyLineSettingsToggleButtonSelected(option);
|
665
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
666
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: numbers[index], index: 0 }]);
|
667
|
+
});
|
668
|
+
});
|
669
|
+
|
670
|
+
it('When user enters value in Display specific annotation (use semicolons to separate) input field then it should be displayed on number line in preview tab', () => {
|
671
|
+
numberLineCommonComponent.steps.switchToEditTab();
|
672
|
+
numberLineCommonComponent.steps.selectLineSettingsToggleButton(lineSettingsOptions[0]);
|
673
|
+
numberLineCommonComponent.steps.enterTextInDisplaySpecificAnnotationInputField('-9;');
|
674
|
+
numberLineCommonComponent.steps.verifyTextInDisplaySpecificAnnotationInputField('-9;');
|
675
|
+
numberLineCommonComponent.steps.switchToPreviewTab();
|
676
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: -9, index: 1 }]);
|
677
|
+
});
|
678
|
+
},
|
679
|
+
}
|
680
|
+
|
681
|
+
export const numberLineCommonComponent = {
|
682
|
+
...selectors,
|
683
|
+
steps,
|
684
|
+
tests
|
685
|
+
}
|