itemengine-cypress-automation 1.0.189-e2e-execution-crash-83cdbd4.0 → 1.0.190-7thMayFixes-fcaf7b8.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 +81 -0
- package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +620 -0
- package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +402 -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 +2 -2
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editAndPreviewTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +1 -0
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +4 -20
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +2 -11
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +366 -0
- package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +181 -0
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +283 -0
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +625 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +0 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +0 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabScoring.js +0 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +6 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +4 -24
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -9
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +418 -29
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseSpecialCharacters.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/headerSection.js +3 -18
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +0 -1
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +0 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +29 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +0 -5
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +5 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +0 -4
- 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/editTabScoringSection.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -3
- 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/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +11 -3
- package/cypress/e2e/ILC/GridFill/headerSection.js +4 -5
- 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/ImageHighlight/allOrNothingForAllViews.smoke.js +276 -0
- package/cypress/e2e/ILC/ImageHighlight/checkAnswerFunctionalityForAllViews.smoke.js +141 -0
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +150 -0
- 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/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/Matching/headerSection.js +2 -2
- 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 +23 -21
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +5 -3
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +8 -6
- 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 +60 -3
- package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +3 -2
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +2 -9
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -4
- 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 +3 -3
- 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 +697 -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 +231 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +231 -0
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +231 -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 +289 -0
- package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +154 -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/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +1 -7
- package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +5 -5
- 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 +192 -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 +669 -445
- package/cypress/pages/audioResponsePage.js +10 -80
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +517 -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 +19 -26
- package/cypress/pages/components/autoScoredStudentViewSettings.js +7 -7
- package/cypress/pages/components/barAndLineChartComponent.js +123 -0
- package/cypress/pages/components/chartsCommonComponent.js +138 -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 +5 -4
- package/cypress/pages/components/index.js +8 -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/questionInputFieldComponent.js +2 -1
- package/cypress/pages/components/questionInstructionsComponent.js +3 -19
- package/cypress/pages/components/resetPopupComponent.js +7 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +6 -17
- package/cypress/pages/components/singleMultipleSelectionModeComponent.js +16 -0
- package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +46 -0
- package/cypress/pages/components/toolSettingsComponent.js +6 -0
- package/cypress/pages/contentBlocksPage.js +19 -3
- package/cypress/pages/createItemPage.js +75 -8
- package/cypress/pages/dialogBoxBase.js +2 -2
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +22 -24
- package/cypress/pages/drawingResponsePage.js +25 -4
- package/cypress/pages/feedbackScalePage.js +3 -0
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +14 -0
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/graphingPage.js +19 -1
- package/cypress/pages/gridFillPage.js +47 -59
- package/cypress/pages/imageHighlightPage.js +364 -0
- package/cypress/pages/index.js +6 -1
- package/cypress/pages/itemPreviewSettingsPage.js +4 -0
- package/cypress/pages/listOrderingPage.js +561 -555
- package/cypress/pages/matchingPage.js +3 -2
- package/cypress/pages/multipleSelectionPage.js +23 -1
- package/cypress/pages/numberLineLabelPage.js +1093 -0
- package/cypress/pages/numberLinePage.js +696 -78
- package/cypress/pages/protractorPage.js +1 -1
- package/cypress/pages/readingRulerPage.js +1 -1
- package/cypress/pages/rulerPage.js +9 -5
- package/cypress/pages/textEntryMathPage.js +2 -2
- package/cypress/pages/textSelectionPage.js +461 -23
- package/cypress/pages/videoResponsePage.js +396 -83
- package/package.json +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +0 -432
- package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +0 -134
@@ -0,0 +1,625 @@
|
|
1
|
+
import { chartsBarPage, itemPreviewPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view'];
|
7
|
+
const views = utilities.getViews(previewContentViews);
|
8
|
+
var itemReferenceID = "";
|
9
|
+
const barBackgroundColor = ['rgb(46, 169, 89)', 'rgb(6, 117, 244)', 'rgb(219, 124, 0)', 'rgb(156, 105, 39)', 'rgb(219, 60, 0)'];
|
10
|
+
|
11
|
+
describe('Create item page: Charts - Bar - Preview contents in all views', () => {
|
12
|
+
before(() => {
|
13
|
+
cy.loginAs('admin');
|
14
|
+
});
|
15
|
+
|
16
|
+
views.forEach((view) => {
|
17
|
+
describe(`Preview tab contents - Edit bar graphs, graph labels, locked graph ${view}`, { tags: 'smoke' }, () => {
|
18
|
+
abortEarlySetup();
|
19
|
+
before(() => {
|
20
|
+
switch (view) {
|
21
|
+
case 'Question preview':
|
22
|
+
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
23
|
+
cy.barsPreLoaderWait();
|
24
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
|
25
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
26
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
27
|
+
chartsBarPage.steps.setGraphTitle('Graph of profits');
|
28
|
+
chartsBarPage.steps.setYAxisLabel('Profit');
|
29
|
+
chartsBarPage.steps.setXAxisLabel('Year');
|
30
|
+
chartsBarPage.steps.setMaxYValue(20);
|
31
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 20 });
|
32
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 20 });
|
33
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 20 });
|
34
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 20 });
|
35
|
+
chartsBarPage.steps.lockBar(1);
|
36
|
+
chartsBarPage.steps.allotPoints(10);
|
37
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 20 });
|
38
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 20 });
|
39
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 20 });
|
40
|
+
chartsBarPage.steps.addBarOrPointInChartInSpecifyCorrectAnswerSection();
|
41
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 4, value: 8, range: 20 });
|
42
|
+
chartsBarPage.steps.switchToPreviewTab();
|
43
|
+
break;
|
44
|
+
case 'Item view':
|
45
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
46
|
+
break;
|
47
|
+
case 'Item preview':
|
48
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
49
|
+
chartsBarPage.steps.switchToPreviewTab();
|
50
|
+
break;
|
51
|
+
case 'Student view':
|
52
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
53
|
+
break;
|
54
|
+
default:
|
55
|
+
throw new Error('Invalid view');
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
after(() => {
|
60
|
+
if (view === 'Question preview') {
|
61
|
+
chartsBarPage.steps.clickOnSaveQuestionButton();
|
62
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
63
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
64
|
+
}
|
65
|
+
});
|
66
|
+
|
67
|
+
it('Question instructions should be visible', () => {
|
68
|
+
utilities.verifyInnerText(chartsBarPage.questionInstructionsText(), 'Set the bar on the chart for the profits of the years');
|
69
|
+
utilities.verifyElementVisibilityState(chartsBarPage.questionInstructionsText(), 'visible');
|
70
|
+
});
|
71
|
+
|
72
|
+
it('The toolbar options - Add bar, Undo, Redo and Reset should be displayed in the preview tab and only Add bar button should be enabled', () => {
|
73
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsAddBarOrPointButton(), 'visible');
|
74
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
75
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsUndoButton(), 'visible');
|
76
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
77
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsRedoButton(), 'visible');
|
78
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
79
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsResetButton(), 'visible');
|
80
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
|
81
|
+
});
|
82
|
+
|
83
|
+
it('The graph title, Y axis label, X axis label and bar labels should be displayed', () => {
|
84
|
+
utilities.verifyInnerText(chartsBarPage.previewTabGraphTitle(), 'Graph of profits');
|
85
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabGraphTitle(), 'visible');
|
86
|
+
utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Profit');
|
87
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabYAxisLabelButton(), 'visible');
|
88
|
+
utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Year');
|
89
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabXAxisLabelButton(), 'visible');
|
90
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
|
91
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 1), 'Bar 2');
|
92
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 2), 'Bar 3');
|
93
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Bar 4');
|
94
|
+
});
|
95
|
+
|
96
|
+
it('The graph max value should be as set in the Max Y input field and it should affect the chart division', () => {
|
97
|
+
utilities.verifyTextContent(utilities.getNthElement(chartsBarPage.previewTabYAxisCoordinate(), 0), 20);
|
98
|
+
utilities.verifyElementCount(chartsBarPage.previewTabChartRowHeaderContainer(), 21);
|
99
|
+
});
|
100
|
+
|
101
|
+
it('User should be able to edit the Y axis and X axis labels in preview tab', () => {
|
102
|
+
chartsBarPage.steps.editYAxisLabelInPreviewTab('Edited Y axis label');
|
103
|
+
utilities.verifyInnerText(chartsBarPage.previewTabYAxisLabelButton(), 'Edited Y axis label');
|
104
|
+
chartsBarPage.steps.editXAxisLabelInPreviewTab('Edited X axis label');
|
105
|
+
utilities.verifyInnerText(chartsBarPage.previewTabXAxisLabelButton(), 'Edited X axis label');
|
106
|
+
});
|
107
|
+
|
108
|
+
it('The charts and graphs should be visible as set by the user in select chart type section', () => {
|
109
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 1, range: 20 });
|
110
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
|
111
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 20 });
|
112
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 20 });
|
113
|
+
});
|
114
|
+
|
115
|
+
it('The locked bar should be displayed in the locked state in preview tab and it should not have a drag handle', () => {
|
116
|
+
chartsBarPage.steps.verifyBarIsLockedInPreviewTab(1);
|
117
|
+
});
|
118
|
+
|
119
|
+
it('User should not be able to edit the locked bar height', () => {
|
120
|
+
chartsBarPage.steps.verifyLockedBarIsUneditableInPreviewTab(1);
|
121
|
+
});
|
122
|
+
|
123
|
+
it('User should be able to increase the bar height in preview tab', () => {
|
124
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 20, range: 20 });
|
125
|
+
});
|
126
|
+
|
127
|
+
it('User should be able to decrease the height of the bar in preview tab', () => {
|
128
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 2, value: 0, range: 20 });
|
129
|
+
});
|
130
|
+
|
131
|
+
it('When bar is at the topmost value and the user still tries to increase its value, then the bar value should not increase', () => {
|
132
|
+
chartsBarPage.steps.keyBoardUpBarInPreviewTab(0);
|
133
|
+
chartsBarPage.steps.keyBoardUpBarInPreviewTab(0);
|
134
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 20, range: 20 });
|
135
|
+
});
|
136
|
+
|
137
|
+
it('When bar is at the bottommost value and the user still tries to decrease its value, then the bar value should not decrease', () => {
|
138
|
+
chartsBarPage.steps.keyBoardDownBarInPreviewTab(2);
|
139
|
+
chartsBarPage.steps.keyBoardDownBarInPreviewTab(2);
|
140
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 0, range: 20 });
|
141
|
+
});
|
142
|
+
|
143
|
+
chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('0', barBackgroundColor[0], 'Bar 1');
|
144
|
+
|
145
|
+
chartsBarPage.tests.verifyBarTooltipContentsCSSAndA11yInPreviewTab('3', barBackgroundColor[3], 'Bar 4');
|
146
|
+
|
147
|
+
it('User should be able to edit the label a bar', () => {
|
148
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
|
149
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
|
150
|
+
});
|
151
|
+
|
152
|
+
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
153
|
+
utilities.verifyCSS(chartsBarPage.previewTabToolsAddBarOrPointButton(), {
|
154
|
+
'background-color': css.color.activeButtons
|
155
|
+
});
|
156
|
+
utilities.verifyCSS(chartsBarPage.previewTabGraphTitle(), {
|
157
|
+
'color': css.color.text,
|
158
|
+
'font-size': css.fontSize.default,
|
159
|
+
'font-weight': css.fontWeight.bold
|
160
|
+
});
|
161
|
+
utilities.verifyCSS(chartsBarPage.previewTabYAxisLabelButton(), {
|
162
|
+
'color': css.color.activeButtons,
|
163
|
+
'font-size': css.fontSize.default,
|
164
|
+
'font-weight': css.fontWeight.bold
|
165
|
+
});
|
166
|
+
utilities.verifyCSS(chartsBarPage.previewTabXAxisLabelButton(), {
|
167
|
+
'color': css.color.activeButtons,
|
168
|
+
'font-size': css.fontSize.default,
|
169
|
+
'font-weight': css.fontWeight.bold
|
170
|
+
});
|
171
|
+
utilities.verifyCSS(chartsBarPage.previewTabBarLabel(), {
|
172
|
+
'color': css.color.text,
|
173
|
+
'font-size': css.fontSize.default,
|
174
|
+
'font-weight': css.fontWeight.semibold
|
175
|
+
});
|
176
|
+
utilities.verifyCSS(chartsBarPage.previewTabYAxisCoordinate(), {
|
177
|
+
'color': css.color.text,
|
178
|
+
'font-size': css.fontSize.normal,
|
179
|
+
'font-weight': css.fontWeight.semibold
|
180
|
+
});
|
181
|
+
utilities.verifyCSS(chartsBarPage.previewTabBarDragHandle().find('svg'), {
|
182
|
+
'background-color': css.color.defaultBackground
|
183
|
+
});
|
184
|
+
utilities.verifyCSS(chartsBarPage.previewTabBarDragHandle().find('path').eq(1), {
|
185
|
+
'fill': css.color.secondaryBtn
|
186
|
+
});
|
187
|
+
utilities.verifyCSS(chartsBarPage.previewTabBar().eq(0), {
|
188
|
+
'background-color': barBackgroundColor[0]
|
189
|
+
});
|
190
|
+
utilities.verifyCSS(chartsBarPage.previewTabBar().eq(1), {
|
191
|
+
'background-color': barBackgroundColor[1]
|
192
|
+
});
|
193
|
+
utilities.verifyCSS(chartsBarPage.previewTabBar().eq(2), {
|
194
|
+
'background-color': barBackgroundColor[2]
|
195
|
+
});
|
196
|
+
utilities.verifyCSS(chartsBarPage.previewTabBar().eq(3), {
|
197
|
+
'background-color': barBackgroundColor[3]
|
198
|
+
});
|
199
|
+
utilities.verifyCSS(chartsBarPage.barLockIcon(), {
|
200
|
+
'background-color': css.color.defaultBackground,
|
201
|
+
});
|
202
|
+
});
|
203
|
+
|
204
|
+
it('Accessibility of preview tab contents', { tags: 'a11y' }, () => {
|
205
|
+
cy.checkAccessibility(chartsBarPage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
|
206
|
+
});
|
207
|
+
});
|
208
|
+
});
|
209
|
+
|
210
|
+
views.forEach((view) => {
|
211
|
+
describe(`Preview tab contents - Add and delete bar ${view}`, { tags: 'smoke' }, () => {
|
212
|
+
abortEarlySetup();
|
213
|
+
before(() => {
|
214
|
+
switch (view) {
|
215
|
+
case 'Question preview':
|
216
|
+
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
217
|
+
cy.barsPreLoaderWait();
|
218
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
|
219
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
220
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
221
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
|
222
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
|
223
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
|
224
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
|
225
|
+
chartsBarPage.steps.allotPoints(10);
|
226
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 10 });
|
227
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 4, range: 10 });
|
228
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 10 });
|
229
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 10 });
|
230
|
+
chartsBarPage.steps.switchToPreviewTab();
|
231
|
+
break;
|
232
|
+
case 'Item view':
|
233
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
234
|
+
break;
|
235
|
+
case 'Item preview':
|
236
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
237
|
+
chartsBarPage.steps.switchToPreviewTab();
|
238
|
+
break;
|
239
|
+
case 'Student view':
|
240
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
241
|
+
break;
|
242
|
+
default:
|
243
|
+
throw new Error('Invalid view');
|
244
|
+
}
|
245
|
+
});
|
246
|
+
|
247
|
+
after(() => {
|
248
|
+
if (view === 'Question preview') {
|
249
|
+
chartsBarPage.steps.clickOnSaveQuestionButton();
|
250
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
251
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
252
|
+
}
|
253
|
+
});
|
254
|
+
|
255
|
+
it('When user hovers on the enabled add bar button, then tooltip \'Add bar\' should be displayed', () => {
|
256
|
+
chartsBarPage.previewTabToolsAddBarOrPointButton()
|
257
|
+
.verifyTooltip('Add bar');
|
258
|
+
});
|
259
|
+
|
260
|
+
it('CSS of the tooltip text', { tags: 'css' }, () => {
|
261
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
262
|
+
utilities.verifyCSS(chartsBarPage.tooltipText(), {
|
263
|
+
'color': css.color.whiteText,
|
264
|
+
'font-size': css.fontSize.small,
|
265
|
+
'font-weight': css.fontWeight.regular,
|
266
|
+
'background-color': css.color.tooltipBg
|
267
|
+
});
|
268
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
269
|
+
});
|
270
|
+
|
271
|
+
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
272
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
273
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
|
274
|
+
cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
|
275
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
276
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
|
277
|
+
});
|
278
|
+
|
279
|
+
it('User should be able to add a bar in chart and the added bar should be displayed at 0 height with the label \'Bar 5\'', () => {
|
280
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
281
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 5);
|
282
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 4, barValue: 0, range: 20 });
|
283
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 4), 'Bar 5');
|
284
|
+
});
|
285
|
+
|
286
|
+
it('CSS of newly added bar in preview tab', { tags: 'css' }, () => {
|
287
|
+
utilities.verifyCSS(chartsBarPage.previewTabBar().eq(4), {
|
288
|
+
'background-color': barBackgroundColor[4]
|
289
|
+
});
|
290
|
+
});
|
291
|
+
|
292
|
+
it('Accessibility of newly added bar in preview tab', { tags: 'a11y' }, () => {
|
293
|
+
cy.checkAccessibility(chartsBarPage.previewTabGraphTitle().parents('[class*="ChartsPreviewstyles__PreviewWrapper"]'));
|
294
|
+
});
|
295
|
+
|
296
|
+
it('When add bar limit is set to 1 and user has added a bar, then the add bar toolbar button should be disabled', () => {
|
297
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
298
|
+
});
|
299
|
+
|
300
|
+
it('When user deletes a bar, then that bar should be deleted and the add bar button should be enabled again', () => {
|
301
|
+
chartsBarPage.steps.deleteBarInPreviewTab(3);
|
302
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
|
303
|
+
utilities.verifyElementVisibilityState(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 4), 'notExist');
|
304
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
305
|
+
});
|
306
|
+
|
307
|
+
it('When user has deleted 2 bars and adds a bar, then the add bar button should still be enabled', () => {
|
308
|
+
chartsBarPage.steps.deleteBarInPreviewTab(2);
|
309
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
310
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
311
|
+
});
|
312
|
+
|
313
|
+
it('When user adds a bar again and the number of extra bars reaches the maximum set value i.e. 1, then the add bar button should be disabled', () => {
|
314
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
315
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
316
|
+
});
|
317
|
+
});
|
318
|
+
});
|
319
|
+
|
320
|
+
views.forEach((view) => {
|
321
|
+
describe(`Preview tab contents - Undo, Redo and Reset buttons ${view}`, { tags: 'smoke' }, () => {
|
322
|
+
abortEarlySetup();
|
323
|
+
before(() => {
|
324
|
+
switch (view) {
|
325
|
+
case 'Question preview':
|
326
|
+
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
327
|
+
cy.barsPreLoaderWait();
|
328
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
|
329
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
330
|
+
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
331
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
|
332
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
|
333
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
|
334
|
+
chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
|
335
|
+
chartsBarPage.steps.setMaxBarCountValue(2);
|
336
|
+
chartsBarPage.steps.allotPoints(10);
|
337
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 0, value: 2, range: 10 });
|
338
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 1, value: 4, range: 10 });
|
339
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 2, value: 5, range: 10 });
|
340
|
+
chartsBarPage.steps.setBarValueInSpecifyCorrectAnswerSection({ barIndex: 3, value: 1, range: 10 });
|
341
|
+
chartsBarPage.steps.switchToPreviewTab();
|
342
|
+
break;
|
343
|
+
case 'Item view':
|
344
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
345
|
+
break;
|
346
|
+
case 'Item preview':
|
347
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
348
|
+
chartsBarPage.steps.switchToPreviewTab();
|
349
|
+
break;
|
350
|
+
case 'Student view':
|
351
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
352
|
+
break;
|
353
|
+
default:
|
354
|
+
throw new Error('Invalid view');
|
355
|
+
}
|
356
|
+
});
|
357
|
+
|
358
|
+
after(() => {
|
359
|
+
if (view === 'Question preview') {
|
360
|
+
chartsBarPage.steps.clickOnSaveQuestionButton();
|
361
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
362
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
363
|
+
}
|
364
|
+
});
|
365
|
+
|
366
|
+
//Bar labels
|
367
|
+
it('When user updates a bar label, then the undo and reset button should be displayed in enabled state', () => {
|
368
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
|
369
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
370
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsResetButton());
|
371
|
+
});
|
372
|
+
|
373
|
+
it('When user hovers on the enabled undo and reset button, then tooltips \'Undo\' and \'Reset\' should be displayed', () => {
|
374
|
+
chartsBarPage.previewTabToolsUndoButton()
|
375
|
+
.verifyTooltip('Undo');
|
376
|
+
chartsBarPage.previewTabToolsResetButton()
|
377
|
+
.verifyTooltip('Reset');
|
378
|
+
});
|
379
|
+
|
380
|
+
it('CSS of the tooltip text', { tags: 'css' }, () => {
|
381
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsUndoButton());
|
382
|
+
utilities.verifyCSS(chartsBarPage.tooltipText(), {
|
383
|
+
'color': css.color.whiteText,
|
384
|
+
'font-size': css.fontSize.small,
|
385
|
+
'font-weight': css.fontWeight.regular,
|
386
|
+
'background-color': css.color.tooltipBg
|
387
|
+
});
|
388
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsUndoButton());
|
389
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsResetButton());
|
390
|
+
utilities.verifyCSS(chartsBarPage.tooltipText(), {
|
391
|
+
'color': css.color.whiteText,
|
392
|
+
'font-size': css.fontSize.small,
|
393
|
+
'font-weight': css.fontWeight.regular,
|
394
|
+
'background-color': css.color.tooltipBg
|
395
|
+
});
|
396
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsResetButton());
|
397
|
+
});
|
398
|
+
|
399
|
+
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
400
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsUndoButton());
|
401
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
|
402
|
+
cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
|
403
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsUndoButton());
|
404
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
|
405
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsResetButton());
|
406
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
|
407
|
+
cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
|
408
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsResetButton());
|
409
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
|
410
|
+
});
|
411
|
+
|
412
|
+
it('When user clicks on a undo button, then the previously performed action should be reverted', () => {
|
413
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
414
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
|
415
|
+
});
|
416
|
+
|
417
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
418
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
|
419
|
+
});
|
420
|
+
|
421
|
+
it('When user hovers on the enabled redo button, then tooltip \'Redo\' should be displayed', () => {
|
422
|
+
chartsBarPage.previewTabToolsRedoButton()
|
423
|
+
.verifyTooltip('Redo');
|
424
|
+
});
|
425
|
+
|
426
|
+
it('CSS of the tooltip text', { tags: 'css' }, () => {
|
427
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsRedoButton());
|
428
|
+
utilities.verifyCSS(chartsBarPage.tooltipText(), {
|
429
|
+
'color': css.color.whiteText,
|
430
|
+
'font-size': css.fontSize.small,
|
431
|
+
'font-weight': css.fontWeight.regular,
|
432
|
+
'background-color': css.color.tooltipBg
|
433
|
+
});
|
434
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsRedoButton());
|
435
|
+
});
|
436
|
+
|
437
|
+
it('Accessibility of the tooltip text', { tags: 'a11y' }, () => {
|
438
|
+
utilities.triggerMouseover(chartsBarPage.previewTabToolsRedoButton());
|
439
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'visible');
|
440
|
+
cy.checkAccessibility(chartsBarPage.tooltipText().parents('[role="tooltip"]'));
|
441
|
+
utilities.triggerMouseout(chartsBarPage.previewTabToolsRedoButton());
|
442
|
+
utilities.verifyElementVisibilityState(chartsBarPage.tooltipText(), 'notExist');
|
443
|
+
});
|
444
|
+
|
445
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
446
|
+
chartsBarPage.steps.clickOnRedoButtonPreviewTab();
|
447
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Edited bar 1');
|
448
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
449
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
450
|
+
});
|
451
|
+
|
452
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
|
453
|
+
cy.log('Pre-step: Reset the chart');
|
454
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
455
|
+
chartsBarPage.steps.confirmReset();
|
456
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(0, 'Edited bar 1');
|
457
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(1, 'Edited bar 2');
|
458
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
459
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
460
|
+
});
|
461
|
+
|
462
|
+
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
|
463
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
464
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
465
|
+
});
|
466
|
+
|
467
|
+
//Bar value/height
|
468
|
+
it('When user updates a bar value and clicks on undo button, then the previously performed action should be reverted', () => {
|
469
|
+
cy.log('Pre-step: Reset the chart');
|
470
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
471
|
+
chartsBarPage.steps.confirmReset();
|
472
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 4, range: 10 });
|
473
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
474
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 3, range: 10 });
|
475
|
+
});
|
476
|
+
|
477
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
478
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
|
479
|
+
});
|
480
|
+
|
481
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
482
|
+
chartsBarPage.steps.clickOnRedoButtonPreviewTab();
|
483
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 4, range: 10 });
|
484
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
485
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
486
|
+
});
|
487
|
+
|
488
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
|
489
|
+
cy.log('Reset the chart');
|
490
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
491
|
+
chartsBarPage.steps.confirmReset();
|
492
|
+
chartsBarPage.steps.setBarValueInPreviewTab({ barIndex: 0, value: 3, range: 10 });
|
493
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
494
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
495
|
+
});
|
496
|
+
|
497
|
+
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
|
498
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
499
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
500
|
+
});
|
501
|
+
|
502
|
+
//Add bar
|
503
|
+
it('When user adds a bar and and clicks on undo button, then the previously performed action should be reverted', () => {
|
504
|
+
cy.log('Pre-step: Reset the chart');
|
505
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
506
|
+
chartsBarPage.steps.confirmReset();
|
507
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
508
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
509
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
|
510
|
+
});
|
511
|
+
|
512
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
513
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
|
514
|
+
});
|
515
|
+
|
516
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
517
|
+
chartsBarPage.steps.clickOnRedoButtonPreviewTab();
|
518
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 5);
|
519
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
520
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
521
|
+
});
|
522
|
+
|
523
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
|
524
|
+
cy.log('Reset the chart');
|
525
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
526
|
+
chartsBarPage.steps.confirmReset();
|
527
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
528
|
+
chartsBarPage.steps.addBarOrPointInChartInPreviewTab();
|
529
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
530
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
531
|
+
});
|
532
|
+
|
533
|
+
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
|
534
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
535
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
536
|
+
});
|
537
|
+
|
538
|
+
//Delete bar
|
539
|
+
it('When user deletes a bar and clicks on a undo button, then the previously performed action should be reverted', () => {
|
540
|
+
cy.log('Pre-step: Reset the chart');
|
541
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
542
|
+
chartsBarPage.steps.confirmReset();
|
543
|
+
chartsBarPage.steps.deleteBarInPreviewTab(0);
|
544
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
545
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 4);
|
546
|
+
});
|
547
|
+
|
548
|
+
it('When user has clicked on undo button, then the redo button should be enabled', () => {
|
549
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsRedoButton());
|
550
|
+
});
|
551
|
+
|
552
|
+
it('When the user clicks on redo button, then the last reverted action should be performed again and the button should be disabled and undo button should be enabled', () => {
|
553
|
+
chartsBarPage.steps.clickOnRedoButtonPreviewTab();
|
554
|
+
utilities.verifyElementCount(chartsBarPage.previewTabBar(), 3);
|
555
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
556
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
557
|
+
});
|
558
|
+
|
559
|
+
it('When user performs more than 1 actions and then clicks on undo button, then undo button should be enabled' ,() => {
|
560
|
+
cy.log('Reset the chart');
|
561
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
562
|
+
chartsBarPage.steps.confirmReset();
|
563
|
+
chartsBarPage.steps.deleteBarInPreviewTab(0);
|
564
|
+
chartsBarPage.steps.deleteBarInPreviewTab(0);
|
565
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
566
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsUndoButton());
|
567
|
+
});
|
568
|
+
|
569
|
+
it('When the user clicks on undo button until the graph reaches its initial state, then the undo button should be disabled', () => {
|
570
|
+
chartsBarPage.steps.clickOnUndoButtonPreviewTab();
|
571
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
572
|
+
});
|
573
|
+
|
574
|
+
//Reset button
|
575
|
+
it('When the user clicks on Reset button then reset popup should be displayed', () => {
|
576
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
577
|
+
utilities.verifyElementVisibilityState(chartsBarPage.dialogBox(), 'visible');
|
578
|
+
});
|
579
|
+
|
580
|
+
chartsBarPage.tests.verifyResetPopupContentWithCSSAndA11y('chart');
|
581
|
+
|
582
|
+
it('When user clicks on cancel button in reset popup, then reset popup should close and chart should not be reset', () => {
|
583
|
+
chartsBarPage.steps.cancelReset();
|
584
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(0, '2000');
|
585
|
+
chartsBarPage.steps.editBarLabelInPreviewTab(1, '2001');
|
586
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 20, range: 20 });
|
587
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 20 });
|
588
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 0, range: 20 });
|
589
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 20 });
|
590
|
+
});
|
591
|
+
|
592
|
+
it('When the user clicks on Reset button and confirms reset, then all the chart actions should be reverted and chart should be reverted to default state', () => {
|
593
|
+
chartsBarPage.steps.clickOnResetButtonPreviewTab();
|
594
|
+
chartsBarPage.steps.confirmReset();
|
595
|
+
utilities.verifyElementNotDisabled(chartsBarPage.previewTabToolsAddBarOrPointButton());
|
596
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsUndoButton(), 'visible');
|
597
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsUndoButton());
|
598
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsRedoButton(), 'visible');
|
599
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsRedoButton());
|
600
|
+
utilities.verifyElementVisibilityState(chartsBarPage.previewTabToolsResetButton(), 'visible');
|
601
|
+
utilities.verifyElementDisabled(chartsBarPage.previewTabToolsResetButton());
|
602
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 0), 'Bar 1');
|
603
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 1), 'Bar 2');
|
604
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 2), 'Bar 3');
|
605
|
+
utilities.verifyInnerText(utilities.getNthElement(chartsBarPage.previewTabBarLabel(), 3), 'Bar 4');
|
606
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 0, barValue: 1, range: 10 });
|
607
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 1, barValue: 2, range: 10 });
|
608
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 2, barValue: 3, range: 10 });
|
609
|
+
chartsBarPage.steps.verifyBarHeightInPreviewTab({ barIndex: 3, barValue: 4, range: 10 });
|
610
|
+
});
|
611
|
+
|
612
|
+
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
613
|
+
utilities.verifyCSS(chartsBarPage.previewTabToolsUndoButton().find('svg'), {
|
614
|
+
'fill': css.color.secondaryBtnDisabled
|
615
|
+
});
|
616
|
+
utilities.verifyCSS(chartsBarPage.previewTabToolsRedoButton().find('svg'), {
|
617
|
+
'fill': css.color.secondaryBtnDisabled
|
618
|
+
});
|
619
|
+
utilities.verifyCSS(chartsBarPage.previewTabToolsUndoButton().find('svg'), {
|
620
|
+
'fill': css.color.secondaryBtnDisabled
|
621
|
+
});
|
622
|
+
});
|
623
|
+
});
|
624
|
+
});
|
625
|
+
});
|
@@ -62,8 +62,8 @@ describe('Drag and drop into categories - Additional settings', () => {
|
|
62
62
|
cy.barsPreLoaderWait();
|
63
63
|
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop into categories');
|
64
64
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
|
65
|
-
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
|
66
65
|
dragAndDropIntoCategoriesPage.steps.expandAdditionalSettings();
|
66
|
+
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1 });
|
67
67
|
});
|
68
68
|
|
69
69
|
Object.keys(fontSizes).forEach((option) => {
|
@@ -327,7 +327,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
327
327
|
|
328
328
|
it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
|
329
329
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerPreviewTab('Eagle', 0);
|
330
|
-
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['
|
330
|
+
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Parrot', 'Whale', 'Eagle']);
|
331
331
|
});
|
332
332
|
});
|
333
333
|
|