itemengine-cypress-automation 1.0.189-e2e-execution-crash-83cdbd4.0 → 1.0.190-repoUpdate3May-f180558.0
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
package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
ADDED
@@ -0,0 +1,229 @@
|
|
1
|
+
import { numberLineLabelPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
const range = 20.75;
|
4
|
+
|
5
|
+
describe('Create Item page - Number line: All or nothing with alternative answer', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('All or nothing scoring with correct answer points equal to alternative answer points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
16
|
+
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
|
17
|
+
for (let i = 0; i < 3; i++) {
|
18
|
+
numberLineLabelPage.steps.addLabel();
|
19
|
+
}
|
20
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3', 'Label 4', 'Label 5', 'Label 6']);
|
21
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
22
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
23
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
|
24
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
25
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, -9);
|
26
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-9]);
|
27
|
+
numberLineLabelPage.steps.allotPoints(20);
|
28
|
+
//Alternative answer
|
29
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
30
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
31
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
32
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 4', 'horizontal', range, 6);
|
33
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [6]);
|
34
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 5', 'horizontal', range, -6);
|
35
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-6]);
|
36
|
+
numberLineLabelPage.steps.allotPoints(20);
|
37
|
+
numberLineLabelPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
38
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
39
|
+
});
|
40
|
+
|
41
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section number line and a status message \'Your answer is incorrect\' is displayed', () => {
|
42
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
43
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
44
|
+
numberLineLabelPage.steps.switchToGradingView();
|
45
|
+
//Preview tab
|
46
|
+
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [0, 9, -9]);
|
47
|
+
//Correct answer section
|
48
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
49
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
50
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
51
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
52
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
53
|
+
|
54
|
+
cy.log('When the user clicks on \'Check answer\' button without attempting the question, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
55
|
+
numberLineLabelPage.steps.checkAnswer();
|
56
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
57
|
+
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [0, 9, -9]);
|
58
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' should be displayed above the question preview, correct answer section should not be displayed', () => {
|
62
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
63
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
64
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
65
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
66
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
67
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, -9);
|
68
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
|
69
|
+
numberLineLabelPage.steps.verifyPreviewScore(20, 20);
|
70
|
+
numberLineLabelPage.steps.switchToGradingView();
|
71
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
72
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
73
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
74
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
75
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
76
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
77
|
+
|
78
|
+
cy.log('When the user attempts the question with responses from the correct accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
79
|
+
numberLineLabelPage.steps.checkAnswer();
|
80
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
81
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
82
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
83
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
84
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
85
|
+
});
|
86
|
+
|
87
|
+
it('When the user attempts the question with alternative accordion response, then the user should be awarded with full points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
88
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
89
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
90
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
91
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
92
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
93
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 5', 'horizontal', range, -6);
|
94
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-6]);
|
95
|
+
numberLineLabelPage.steps.verifyPreviewScore(20, 20);
|
96
|
+
numberLineLabelPage.steps.switchToGradingView();
|
97
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
98
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
99
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
100
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
101
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
102
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
103
|
+
|
104
|
+
cy.log('When the user attempts the question with responses from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
105
|
+
numberLineLabelPage.steps.checkAnswer();
|
106
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
107
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
108
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
109
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
110
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
114
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
115
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
116
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
117
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, -9);
|
118
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
|
119
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
120
|
+
numberLineLabelPage.steps.switchToGradingView();
|
121
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
122
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
123
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
124
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
125
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
126
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
127
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
128
|
+
|
129
|
+
cy.log('When the user attempts the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
130
|
+
numberLineLabelPage.steps.checkAnswer();
|
131
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
132
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
133
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
134
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
138
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
139
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
140
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
141
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 5', 'horizontal', range, -6);
|
142
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-6]);
|
143
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
144
|
+
numberLineLabelPage.steps.switchToGradingView();
|
145
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
146
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
147
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
149
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
150
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
151
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
|
+
|
153
|
+
cy.log('When the user attempts the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
154
|
+
numberLineLabelPage.steps.checkAnswer();
|
155
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
156
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
157
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
158
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
159
|
+
});
|
160
|
+
|
161
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
162
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
163
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
164
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
165
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
166
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
167
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
168
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
169
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
170
|
+
numberLineLabelPage.steps.switchToGradingView();
|
171
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
172
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
173
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
174
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
175
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
176
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
177
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
178
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
179
|
+
|
180
|
+
cy.log('When the user attempts the question with equal number responses from the correct and alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
181
|
+
numberLineLabelPage.steps.checkAnswer();
|
182
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
183
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
184
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
185
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
190
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
191
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
192
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
193
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
194
|
+
numberLineLabelPage.steps.switchToGradingView();
|
195
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
196
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
197
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
198
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
199
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
200
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
|
+
|
202
|
+
cy.log('When the user attempts the question with common response from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
203
|
+
numberLineLabelPage.steps.checkAnswer();
|
204
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
205
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
207
|
+
});
|
208
|
+
|
209
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
210
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
211
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 6', 'horizontal', range, 5);
|
212
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [5]);
|
213
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
214
|
+
numberLineLabelPage.steps.switchToGradingView();
|
215
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 6', range, 5);
|
216
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
217
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
218
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
219
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
220
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
221
|
+
|
222
|
+
cy.log('When the user has attempted the question with incorrect responses and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
223
|
+
numberLineLabelPage.steps.checkAnswer();
|
224
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 6', range, 5);
|
225
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
226
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
227
|
+
});
|
228
|
+
});
|
229
|
+
});
|
@@ -0,0 +1,229 @@
|
|
1
|
+
import { numberLineLabelPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
const range = 20.75;
|
4
|
+
|
5
|
+
describe('Create Item page - Number line: All or nothing with alternative answer', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('All or nothing scoring with correct answer points greater than alternative answer points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
numberLineLabelPage.steps.navigateToLabelNumberLineTab();
|
16
|
+
numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
|
17
|
+
for (let i = 0; i < 3; i++) {
|
18
|
+
numberLineLabelPage.steps.addLabel();
|
19
|
+
}
|
20
|
+
numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3', 'Label 4', 'Label 5', 'Label 6']);
|
21
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
22
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
23
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 9);
|
24
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [9]);
|
25
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, -9);
|
26
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-9]);
|
27
|
+
numberLineLabelPage.steps.allotPoints(20);
|
28
|
+
//Alternative answer
|
29
|
+
numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
|
30
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
|
31
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
|
32
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 4', 'horizontal', range, 6);
|
33
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [6]);
|
34
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 5', 'horizontal', range, -6);
|
35
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-6]);
|
36
|
+
numberLineLabelPage.steps.allotPoints(12);
|
37
|
+
numberLineLabelPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
38
|
+
numberLineLabelPage.steps.switchToPreviewTab();
|
39
|
+
});
|
40
|
+
|
41
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section number line and a status message \'Your answer is incorrect\' is displayed', () => {
|
42
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
43
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
44
|
+
numberLineLabelPage.steps.switchToGradingView();
|
45
|
+
//Preview tab
|
46
|
+
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [0, 9, -9]);
|
47
|
+
//Correct answer section
|
48
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
49
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
50
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
51
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
52
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
53
|
+
|
54
|
+
cy.log('When the user clicks on \'Check answer\' button without attempting the question, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
55
|
+
numberLineLabelPage.steps.checkAnswer();
|
56
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
57
|
+
numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [0, 9, -9]);
|
58
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' should be displayed above the question preview, correct answer section should not be displayed', () => {
|
62
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
63
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
64
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
65
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
66
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
67
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, -9);
|
68
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
|
69
|
+
numberLineLabelPage.steps.verifyPreviewScore(20, 20);
|
70
|
+
numberLineLabelPage.steps.switchToGradingView();
|
71
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
72
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
73
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
74
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
75
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
76
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
77
|
+
|
78
|
+
cy.log('When the user attempts the question with responses from the correct accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
79
|
+
numberLineLabelPage.steps.checkAnswer();
|
80
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
81
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
82
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
83
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
84
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
85
|
+
});
|
86
|
+
|
87
|
+
it('When the user attempts the question with alternative accordion response, then the user should be awarded with less than full points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
88
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
89
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
90
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
91
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
92
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
93
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 5', 'horizontal', range, -6);
|
94
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-6]);
|
95
|
+
numberLineLabelPage.steps.verifyPreviewScore(12, 20);
|
96
|
+
numberLineLabelPage.steps.switchToGradingView();
|
97
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
98
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
99
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
100
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
101
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
102
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
103
|
+
|
104
|
+
cy.log('When the user attempts the question with responses from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
105
|
+
numberLineLabelPage.steps.checkAnswer();
|
106
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
107
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
108
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
109
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
110
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
114
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
115
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
116
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
117
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, -9);
|
118
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-9]);
|
119
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
120
|
+
numberLineLabelPage.steps.switchToGradingView();
|
121
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
122
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
123
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
124
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
125
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
126
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
127
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
128
|
+
|
129
|
+
cy.log('When the user attempts the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
130
|
+
numberLineLabelPage.steps.checkAnswer();
|
131
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
132
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 3', range, -9);
|
133
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
134
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
138
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
139
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
140
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
141
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 5', 'horizontal', range, -6);
|
142
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-6]);
|
143
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
144
|
+
numberLineLabelPage.steps.switchToGradingView();
|
145
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
146
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
147
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
148
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
149
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
150
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
151
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
152
|
+
|
153
|
+
cy.log('When the user attempts the question with partially correct responses exclusively from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
154
|
+
numberLineLabelPage.steps.checkAnswer();
|
155
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
156
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 5', range, -6);
|
157
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
158
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
159
|
+
});
|
160
|
+
|
161
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
162
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
163
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
164
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
165
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 9);
|
166
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [9]);
|
167
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 6);
|
168
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
169
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
170
|
+
numberLineLabelPage.steps.switchToGradingView();
|
171
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
172
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
173
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
174
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
175
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
176
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
177
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
178
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
179
|
+
|
180
|
+
cy.log('When the user attempts the question with equal number responses from the correct and alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
181
|
+
numberLineLabelPage.steps.checkAnswer();
|
182
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
183
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 2', range, 9);
|
184
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 4', range, 6);
|
185
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
187
|
+
});
|
188
|
+
|
189
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
|
190
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
191
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
|
192
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
193
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
194
|
+
numberLineLabelPage.steps.switchToGradingView();
|
195
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
196
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
197
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
198
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
199
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
200
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
201
|
+
|
202
|
+
cy.log('When the user attempts the question with common response from the alternative accordion and clicks on \'Check answer\' button, the attempted number line should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
203
|
+
numberLineLabelPage.steps.checkAnswer();
|
204
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLinePreviewTab('Label 1', range, 0);
|
205
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
206
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
207
|
+
});
|
208
|
+
|
209
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
210
|
+
numberLineLabelPage.steps.resetQuestionPreview();
|
211
|
+
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 6', 'horizontal', range, 5);
|
212
|
+
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [5]);
|
213
|
+
numberLineLabelPage.steps.verifyPreviewScore(0, 20);
|
214
|
+
numberLineLabelPage.steps.switchToGradingView();
|
215
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 6', range, 5);
|
216
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
217
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 1', range, 0);
|
218
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 2', range, 9);
|
219
|
+
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
220
|
+
numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
221
|
+
|
222
|
+
cy.log('When the user has attempted the question with incorrect responses and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed')
|
223
|
+
numberLineLabelPage.steps.checkAnswer();
|
224
|
+
numberLineLabelPage.steps.verifyIncorrectResponseOnNumberLinePreviewTab('Label 6', range, 5);
|
225
|
+
numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
226
|
+
numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
|
227
|
+
});
|
228
|
+
});
|
229
|
+
});
|