itemengine-cypress-automation 1.0.50 → 1.0.62
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTab.js +342 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +218 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerEditTabTitleDescriptionAndTranscript.js +187 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerHeaderSection.js +73 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTab.js +302 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabPlaybackPlayer.js +245 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +78 -0
- package/cypress/e2e/ILC/AudioPlayer/audioPlayerPreviewTabTitleDescriptionAndTranscript.js +248 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +222 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsResponseAccordions.js +366 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsStudentResponseAndLayout.js +206 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +624 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +865 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +763 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSupportedFileTypes.js +86 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +213 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +215 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/allOrNothingScoring.js +187 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/manualAndNonScored.js +162 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsAlternatePointsMoreThanCorrectPoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectEqualToAlternatePoints.js +385 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsCorrectPointsMoreThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialDifferentWeightsScoring.js +245 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointEqualToAlternatePoints.js +266 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +250 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/partialEqualWeightsScoring.js +226 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsBasic.js +221 -0
- package/cypress/e2e/ILC/Highlight/highlightAdditionalSettingsMaximumNumberOfAnswers.js +137 -0
- package/cypress/e2e/ILC/Highlight/highlightBasicScoringForTextSelectionTypes.js +457 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +143 -0
- package/cypress/e2e/ILC/Highlight/highlightEditTabScoringSection.js +361 -0
- package/cypress/e2e/ILC/Highlight/highlightHeaderSection.js +91 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +178 -0
- package/cypress/e2e/ILC/Highlight/highlightScoringSectionBasic.js +21 -0
- package/cypress/e2e/ILC/Highlight/highlightSetCorrectAnswerSection.js +204 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionDropdownAndHighlightOptionsSection.js +175 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInPreviewTab.js +237 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypeInSetCorrectAnswerSection.js +341 -0
- package/cypress/e2e/ILC/Highlight/highlightTextSelectionTypesInHighlightOptionsSection.js +375 -0
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsAllOrNothingScoring.js → Scoring/groupedOptionsAllOrNothingScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsManualAndNonScoredScoring.js → Scoring/groupedOptionsManualAndNonScoredScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScorings.js → Scoring/groupedOptionsPartialDifferentWeightsScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialDifferentScoringWithAlternateTab.js → Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoringWithAlternateTab.js → Scoring/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingGroupedOptionsPartialEqualWeightsScoring.js → Scoring/groupedOptionsPartialEqualWeightsScorings.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +28 -0
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoringWithAlternateAnswer.js → Scoring/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js} +5 -7
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsAllOrNothingScoring.js → Scoring/standardOptionsAllOrNothingScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsManualAndNonScoredScoring.js → Scoring/standardOptionsManualAndNonScoredScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDifferentScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialDIfferentScoring.js → Scoring/standardOptionsPartialDifferentWeightsScoring.js} +2 -2
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +29 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoringWithAlternateAnswer.js → Scoring/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js} +6 -6
- package/cypress/e2e/ILC/ListMatching/Scoring/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +29 -0
- package/cypress/e2e/ILC/ListMatching/{listMatchingStandardOptionsPartialEqualScoring.js → Scoring/standardOptionsPartialEqualWeightsScoring.js} +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridQuestionStemAdditionalSettings.js → multipleSelectionGridAdditionalSettingsQuestionStem.js} +0 -11
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +263 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +340 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +310 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +313 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +285 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +185 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerHeaderSection.js +55 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerPreviewTab.js +257 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +173 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +179 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +174 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +247 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +219 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +246 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +197 -0
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +226 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettings.js +135 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseAdditionalSettingsBasic.js +88 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseEditTabBasic.js +78 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseHeaderSection.js +74 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponsePreviewTab.js +627 -0
- package/cypress/e2e/ILC/VideoResponse/videoResponseScoringSection.js +76 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js +230 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +247 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +352 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownConditionalCheckboxes.js +258 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +134 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabBasicSection.js +132 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditTabScoringSection.js +237 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownHeaderSection.js +113 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +156 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +165 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownOptionsForResponse.js +303 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +372 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +371 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js +77 -0
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownSetCorrectAnswerSection.js +117 -0
- package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +1 -1
- package/cypress/pages/listMatchingScoring.js +16 -105
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -731
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -942
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsWithAlternateAnswer.js +0 -864
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingWithAlternateAnswer.js +0 -472
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsWithAlternateAnswer.js +0 -662
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsWIthAlternateAnswer.js +0 -595
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponses.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothing.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardPartialScoreForEachResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCell.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponse.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/DragAndDropIntoCategories/{dragAndDropIntoCategoriesScoringFiles → dragAndDropIntoCategoriesScoring}/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListOrdering/{ListOrderingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/allOrNothingScoring.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/manuallyAndNonScoredScoring.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialDifferentWeightsScoring.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{ListSortingScoringFiles → Scoring}/partialEqualWeightsScoring.js +0 -0
@@ -0,0 +1,361 @@
|
|
1
|
+
import { highlightPage } from "../../../pages/highlightPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const paragraphTextArray = ['Horses cannot breath through their mouth. Cows can sleep standing up.', 'Dogs have excellent hearing.', 'Deers possess nearly 300 degree field of vision.'];
|
7
|
+
|
8
|
+
describe('Create item page - Highlight: Edit tab scoring types and set correct answer section (Correct answer tab)', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Edit tab \'Set correct answer\' section (Correct answer tab) and \'Scoring\' section for Auto-scored: All or Nothing scoring type', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigating to Highlight question type, switch to paragraph text selection');
|
17
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
highlightPage.steps.clearQuestionInputField();
|
20
|
+
paragraphTextArray.forEach((paragraphText) => {
|
21
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
22
|
+
});
|
23
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
24
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
25
|
+
});
|
26
|
+
|
27
|
+
highlightPage.tests.verifyAutoScoredAllOrNothingPointsAndMinimumScoreAwardedLabelAndInputField();
|
28
|
+
|
29
|
+
highlightPage.tests.verifyContentsOfSetCorrectAnswerSectionForScoringType('All or nothing', paragraphTextArray);
|
30
|
+
|
31
|
+
highlightPage.tests.verifyPointsFieldErrorState(10);
|
32
|
+
|
33
|
+
highlightPage.tests.verifyMinimumScoreIfAttemptedFieldErrorState(10, 20, 10);
|
34
|
+
});
|
35
|
+
|
36
|
+
describe('Edit tab \'Set correct answer\' section (Correct answer tab) and \'Scoring\' section for Auto-scored: Partial equal weights scoring type', () => {
|
37
|
+
abortEarlySetup();
|
38
|
+
before(() => {
|
39
|
+
cy.log('Navigating to Highlight question type, switch to paragraph text selection');
|
40
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
41
|
+
cy.barsPreLoaderWait();
|
42
|
+
highlightPage.steps.clearQuestionInputField();
|
43
|
+
paragraphTextArray.forEach((paragraphText) => {
|
44
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
45
|
+
});
|
46
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
47
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
48
|
+
});
|
49
|
+
|
50
|
+
it('When Scoring type dropdown has Auto scored selected then user should be able to select \'Partial - equal weights\' scoring type', () => {
|
51
|
+
utilities.verifyInnerText(highlightPage.scoringTypeDropdown(), 'Auto scored')
|
52
|
+
highlightPage.steps.selectPartialEqualWeightsCheckbox();
|
53
|
+
});
|
54
|
+
|
55
|
+
//Failing due to https://redmine.zeuslearning.com/issues/542344
|
56
|
+
it('When the Points input field is empty and the user has switched to \'Partial - equal weights\' scoring, then \'Points per response\' label should be displayed and a \'-\' should be displayed beside it, \'Penalty Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed and \'Round down score\' label and checkbox should be displayed and by default it should be checked', () => {
|
57
|
+
highlightPage.steps.verifyDefaultPointsLabelAndInputField();
|
58
|
+
utilities.verifyInnerText(highlightPage.pointsPerResponseLabel(), 'Points per response:');
|
59
|
+
utilities.verifyInnerText(highlightPage.pointsPerResponseScore(), '-');
|
60
|
+
utilities.verifyElementVisibilityState(highlightPage.pointsPerResponseLabel(), 'visible');
|
61
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('-');
|
62
|
+
highlightPage.steps.verifyDefaultPenaltyPointsInputFieldAndLabel();
|
63
|
+
highlightPage.steps.verifyDefaultMinimumScoreIfAttemptedLabelAndPointsField();
|
64
|
+
highlightPage.steps.verifyDefaultRoundDownScoreCheckboxCheckedAndLabel();
|
65
|
+
});
|
66
|
+
|
67
|
+
highlightPage.tests.verifyContentsOfSetCorrectAnswerSectionForScoringType('Partial equal weights', paragraphTextArray);
|
68
|
+
|
69
|
+
it('When user gives a score input to \'Points\' input field and no options are selected in set correct answer section, then the \'Points per response\' score should be displayed as \'-\'', () => {
|
70
|
+
highlightPage.steps.allotPoints('20');
|
71
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('-');
|
72
|
+
});
|
73
|
+
|
74
|
+
it('When user selects options in set correct answer section, then the \'Points per response\' score should be equally divided and displayed as per the number of selected options', () => {
|
75
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
76
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('20');
|
77
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
78
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
79
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('6.67');
|
80
|
+
});
|
81
|
+
|
82
|
+
it('When user deselects an option then the Points per response should be updated accordingly', () => {
|
83
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
84
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('10');
|
85
|
+
});
|
86
|
+
|
87
|
+
it('User should be able to enter points in \'Penalty Points\' and \'Minimum score awarded (if attempted)\' input fields', () => {
|
88
|
+
highlightPage.steps.allotPenaltyPoints(2);
|
89
|
+
highlightPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
90
|
+
});
|
91
|
+
|
92
|
+
//Add separate css verification for points per response label and score after https://redmine.zeuslearning.com/issues/542344 is fixed
|
93
|
+
it('CSS of \'Points per response\' label and its displayed score, \'Penalty Points\' and \'Minimum score awarded (if attempted)\' and \'Round down score\' checkbox', { tags: 'css' }, () => {
|
94
|
+
utilities.verifyCSS(highlightPage.pointsPerResponseLabel(), {
|
95
|
+
'color': css.color.labels,
|
96
|
+
'font-size': css.fontSize.normal,
|
97
|
+
});
|
98
|
+
utilities.verifyCSS(highlightPage.penaltyPointsLabel(), {
|
99
|
+
'color': css.color.labels,
|
100
|
+
'font-size': css.fontSize.normal,
|
101
|
+
'font-weight': css.fontWeight.semibold
|
102
|
+
});
|
103
|
+
utilities.verifyCSS(highlightPage.minimumScoreIfAttemptedLabel(), {
|
104
|
+
'color': css.color.labels,
|
105
|
+
'font-size': css.fontSize.normal,
|
106
|
+
'font-weight': css.fontWeight.semibold
|
107
|
+
});
|
108
|
+
utilities.verifyCSS(highlightPage.rounddownScoreCheckboxLabel(), {
|
109
|
+
'color': css.color.labelText,
|
110
|
+
'font-size': css.fontSize.normal,
|
111
|
+
'font-weight': css.fontWeight.regular
|
112
|
+
});
|
113
|
+
});
|
114
|
+
|
115
|
+
it('Accessibility of \'Penalty Points\' and \'Minimum score awarded (if attempted)\' input field and \'Round down score\' checkbox', { tags: 'a11y' }, () => {
|
116
|
+
cy.checkAccessibility(highlightPage.penaltyPointsInputField().parents('.points-container'));
|
117
|
+
cy.checkAccessibility(highlightPage.rounddownScoreCheckbox().parents('[data-ngie-testid="round-down-score-checkbox"]'));
|
118
|
+
});
|
119
|
+
|
120
|
+
it('When the user switches to \'All or nothing\' scoring, the \'Points per response\' label and the points displayed for individual responses should not be displayed and the points displayed in \'Points\' input field should remain unchanged', () => {
|
121
|
+
highlightPage.steps.selectAllOrNothingCheckbox()
|
122
|
+
utilities.verifyElementVisibilityState(highlightPage.pointsPerResponseLabel(), 'notExist');
|
123
|
+
utilities.verifyElementVisibilityState(highlightPage.pointsPerResponseScore(), 'notExist');
|
124
|
+
highlightPage.steps.verifyPointsFieldValue('20');
|
125
|
+
});
|
126
|
+
|
127
|
+
it('When user has entered points in \'All or nothing\' scoring type and switches to \'Partial equal weights\' scoring type, then the score should be equally divided and displayed beside the \'Points per response\' label', () => {
|
128
|
+
highlightPage.steps.allotPoints('9');
|
129
|
+
highlightPage.steps.selectPartialEqualWeightsCheckbox();
|
130
|
+
highlightPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('4.5');
|
131
|
+
});
|
132
|
+
});
|
133
|
+
|
134
|
+
describe('Edit tab \'Set correct answer\' section (Correct answer tab) and \'Scoring\' section for AutoScored: Partial different weights scoring type', () => {
|
135
|
+
abortEarlySetup();
|
136
|
+
before(() => {
|
137
|
+
cy.log('Navigating to Highlight question type, switch to paragraph text selection');
|
138
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
139
|
+
cy.barsPreLoaderWait();
|
140
|
+
highlightPage.steps.clearQuestionInputField();
|
141
|
+
paragraphTextArray.forEach((paragraphText) => {
|
142
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
143
|
+
});
|
144
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
145
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
146
|
+
});
|
147
|
+
|
148
|
+
it('When scoring type dropdown has Auto scored selected then user should be able to select \'Partial - different weights\' scoring', () => {
|
149
|
+
utilities.verifyInnerText(highlightPage.scoringTypeDropdown(), 'Auto scored');
|
150
|
+
highlightPage.steps.selectPartialDifferentWeightsCheckbox();
|
151
|
+
});
|
152
|
+
|
153
|
+
it('When the user has switched to \'Partial - different weights\' scoring, then \'Set points\' button should be displayed and it should be disabled, \'Penalty Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed and \'Round down score\' checkbox should be displayed and by default it should be checked', () => {
|
154
|
+
highlightPage.steps.verifyDefaultSetPointsButtonLabelAndDisabledState();
|
155
|
+
highlightPage.steps.verifyDefaultPenaltyPointsInputFieldAndLabel();
|
156
|
+
highlightPage.steps.verifyDefaultMinimumScoreIfAttemptedLabelAndPointsField()
|
157
|
+
highlightPage.steps.verifyDefaultRoundDownScoreCheckboxCheckedAndLabel();
|
158
|
+
});
|
159
|
+
|
160
|
+
it('When user selects an option in set correct answer section, then the \'Set points\' button should be enabled', () => {
|
161
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
162
|
+
highlightPage.steps.verifySetPointsButtonLabelAndEnabledState();
|
163
|
+
});
|
164
|
+
|
165
|
+
it('CSS of \'Set points\' button', { tags: 'css' }, () => {
|
166
|
+
utilities.verifyCSS(highlightPage.setPointsButton(), {
|
167
|
+
'color': css.color.activeButtons,
|
168
|
+
'font-size': css.fontSize.default,
|
169
|
+
'font-weight': css.fontWeight.regular
|
170
|
+
});
|
171
|
+
utilities.verifyCSS(highlightPage.setPointsButton().find('svg'), {
|
172
|
+
'color': css.color.activeButtons
|
173
|
+
});
|
174
|
+
});
|
175
|
+
|
176
|
+
it('Accessibility of \'Set points\' button', { tags: 'a11y' }, () => {
|
177
|
+
cy.checkAccessibility(highlightPage.setPointsButton());
|
178
|
+
});
|
179
|
+
|
180
|
+
it('When user clicks on \'Set points\' button, then the popup should be displayed with \'Set points\' title,', () => {
|
181
|
+
highlightPage.steps.clickOnSetPointsButton();
|
182
|
+
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'visible');
|
183
|
+
utilities.verifyInnerText(highlightPage.dialogBoxTitle(), 'Set points');
|
184
|
+
});
|
185
|
+
|
186
|
+
it('When user has opened \'Set points\' popup and focuses in and out of the points input field then an error message \'Error: Please enter points.\' should be displayed', () => {
|
187
|
+
highlightPage.steps.focusInAndFocusOutOfPointsInputField(0);
|
188
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Please enter points.');
|
189
|
+
});
|
190
|
+
|
191
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
192
|
+
|
193
|
+
it('When user enters points then the error message should disappear', () => {
|
194
|
+
highlightPage.steps.allotPointsToSetPointsPopupPointsInputField([10]);
|
195
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
196
|
+
});
|
197
|
+
|
198
|
+
it('When user clicks on Cancel button then the popup should close and on opening the popup again empty points fields should be displayed', () => {
|
199
|
+
highlightPage.steps.cancelSetPointsPopup();
|
200
|
+
highlightPage.steps.clickOnSetPointsButton();
|
201
|
+
utilities.verifyInnerText(highlightPage.pointsInputField(), '');
|
202
|
+
cy.log('Post-step: Close the Set points popup')
|
203
|
+
highlightPage.steps.cancelSetPointsPopup();
|
204
|
+
});
|
205
|
+
|
206
|
+
it('When user selects an option in the set correct answer section then it should be displayed in the \'Set points\' popup with an empty points field under a \'Points\' label', () => {
|
207
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
208
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
209
|
+
highlightPage.steps.clickOnSetPointsButton();
|
210
|
+
highlightPage.steps.verifySetPointsPopupOptions(paragraphTextArray);
|
211
|
+
utilities.verifyInnerText(highlightPage.setPointsPopupPointsLabel(), 'Points');
|
212
|
+
utilities.verifyInnerText(highlightPage.pointsInputField(), '');
|
213
|
+
});
|
214
|
+
|
215
|
+
it('CSS of \'Set points\' popup', { tags: 'css' }, () => {
|
216
|
+
utilities.verifyCSS(highlightPage.dialogBoxTitle(), {
|
217
|
+
'color': css.color.flyoutTitle,
|
218
|
+
'font-size': css.fontSize.heading,
|
219
|
+
'font-weight': css.fontWeight.semibold
|
220
|
+
});
|
221
|
+
utilities.verifyCSS(highlightPage.setPointsPopupPointsLabel(), {
|
222
|
+
'color': css.color.labels,
|
223
|
+
'font-size': css.fontSize.normal,
|
224
|
+
'font-weight': css.fontWeight.semibold
|
225
|
+
});
|
226
|
+
utilities.verifyCSS(highlightPage.setPointsPopupOptions(), {
|
227
|
+
'color': css.color.text,
|
228
|
+
'font-size': css.fontSize.default,
|
229
|
+
'font-weight': css.fontWeight.regular,
|
230
|
+
'background-color': css.color.figActiveComponentBg,
|
231
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
232
|
+
});
|
233
|
+
utilities.verifyCSS(highlightPage.pointsInputField(), {
|
234
|
+
'color': css.color.text,
|
235
|
+
'font-size': css.fontSize.default,
|
236
|
+
'font-weight': css.fontWeight.regular
|
237
|
+
});
|
238
|
+
utilities.verifyCSS(highlightPage.setPointsPopupSaveButton(), {
|
239
|
+
'color': css.color.whiteText,
|
240
|
+
'font-size': css.fontSize.default,
|
241
|
+
'font-weight': css.fontWeight.semibold,
|
242
|
+
'background-color': css.color.primaryBtnBg
|
243
|
+
});
|
244
|
+
utilities.verifyCSS(highlightPage.setPointsPopupCancelButton(), {
|
245
|
+
'color': css.color.secondaryBtn,
|
246
|
+
'font-size': css.fontSize.default,
|
247
|
+
'font-weight': css.fontWeight.semibold,
|
248
|
+
'background-color': css.color.transparent
|
249
|
+
});
|
250
|
+
});
|
251
|
+
|
252
|
+
it('Accessibility of \'Set points\' popup', { tags: 'a11y' }, () => {
|
253
|
+
cy.checkAccessibility(highlightPage.dialogBox());
|
254
|
+
});
|
255
|
+
|
256
|
+
it('When user de-selects an option in the set correct answer section then it should not be displayed in the \'Set points\' popup', () => {
|
257
|
+
cy.log('Pre-step: Close the set points popup');
|
258
|
+
highlightPage.steps.cancelSetPointsPopup();
|
259
|
+
highlightPage.steps.deselectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
260
|
+
highlightPage.steps.clickOnSetPointsButton();
|
261
|
+
highlightPage.steps.verifySetPointsPopupOptions([`${paragraphTextArray[0]}`, `${paragraphTextArray[1]}`]);
|
262
|
+
});
|
263
|
+
|
264
|
+
it('When user adds points to the options and clicks on \'Save\' button then the popup should close and opening the popup again the points should be prefilled', () => {
|
265
|
+
highlightPage.steps.allotPointsToSetPointsPopupPointsInputField([4.8]);
|
266
|
+
highlightPage.steps.savePointsAllotedInSetPointsPopup();
|
267
|
+
highlightPage.steps.clickOnSetPointsButton();
|
268
|
+
highlightPage.steps.verifyPointsAllotedInSetPointsPopup(['4.8', '']);
|
269
|
+
cy.log('Close the Set points popup')
|
270
|
+
highlightPage.steps.cancelSetPointsPopup();
|
271
|
+
});
|
272
|
+
|
273
|
+
it('When user tries to add \'Alternate\' tab without adding points to all options points field then a warning popup should be displayed with \'Warning!\' title and \'Please fill required details.\' should be displayed', () => {
|
274
|
+
highlightPage.steps.clickOnAddAlternateAnswerButton();
|
275
|
+
highlightPage.steps.allFieldsRequiredWarningPopupContents();
|
276
|
+
});
|
277
|
+
|
278
|
+
it('Warning popup should close on clicking the Close icon button', () => {
|
279
|
+
highlightPage.steps.closeWarningPopup();
|
280
|
+
});
|
281
|
+
|
282
|
+
it('\'Error: Please enter points.\' error message should be displayed below the Set points button with error icon on the Correct tab', () => {
|
283
|
+
highlightPage.steps.verifySetCorrectAnswerErrorIconIsDisplayed();
|
284
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Please enter points.');
|
285
|
+
});
|
286
|
+
|
287
|
+
it('When user opens the Set points popup an error message should be displayed below the empty points input field and on entering points the error message should disappear', () => {
|
288
|
+
highlightPage.steps.clickOnSetPointsButton();
|
289
|
+
highlightPage.steps.verifyPointsErrorMessageInSetPointsPopup(1);
|
290
|
+
highlightPage.steps.allotPointsToSetPointsPopupPointsInputField([4, 3]);
|
291
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
292
|
+
});
|
293
|
+
|
294
|
+
it('When user has alloted points to all options then the error message and error icon should not be displayed', () => {
|
295
|
+
highlightPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
296
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
297
|
+
});
|
298
|
+
|
299
|
+
it('User should be able to add \'Alternate\' tab', () => {
|
300
|
+
highlightPage.steps.savePointsAllotedInSetPointsPopup();
|
301
|
+
highlightPage.steps.addAlternateTab(1);
|
302
|
+
});
|
303
|
+
});
|
304
|
+
|
305
|
+
describe('Edit tab \'Set correct answer\' section (Correct answer tab) and \'Scoring\' section for Manually Scored scoring type', () => {
|
306
|
+
abortEarlySetup();
|
307
|
+
before(() => {
|
308
|
+
cy.log('Navigating to Highlight question type, switch to paragraph text selection');
|
309
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
310
|
+
cy.barsPreLoaderWait();
|
311
|
+
highlightPage.steps.clearQuestionInputField();
|
312
|
+
paragraphTextArray.forEach((paragraphText) => {
|
313
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
314
|
+
});
|
315
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
316
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
317
|
+
});
|
318
|
+
|
319
|
+
it('User should be able to select \'Manually scored\' scoring type from scoring type dropdown', () => {
|
320
|
+
highlightPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored')
|
321
|
+
});
|
322
|
+
|
323
|
+
it('When the user has selected \'Manually Scored\' option from the Scoring Type dropdown then the \'Set Correct Answer\' section should not be displayed, \'All or Nothing\', \'Partial - equal weights\' and \'Partial - different weights\' radio buttons should not be displayed, \'Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed, round down score label and checkbox should not be displayed and inside Additional Settings accordion Check Answer section i.e. \'Allow students to check answer\' checkbox should not be displayed', () => {
|
324
|
+
utilities.verifyElementVisibilityState(highlightPage.setCorrectAnswerLabel(), 'notExist');
|
325
|
+
utilities.verifyElementVisibilityState(highlightPage.allOrNothingCheckbox(), 'notExist');
|
326
|
+
utilities.verifyElementVisibilityState(highlightPage.partialEqualWeightsCheckbox(), 'notExist');
|
327
|
+
utilities.verifyElementVisibilityState(highlightPage.partialDifferentWeightsCheckbox(), 'notExist');
|
328
|
+
utilities.verifyElementVisibilityState(highlightPage.penaltyPointsInputField(), 'notExist');
|
329
|
+
utilities.verifyElementVisibilityState(highlightPage.penaltyPointsLabel(), 'notExist');
|
330
|
+
utilities.verifyElementVisibilityState(highlightPage.rounddownScoreCheckbox(), 'notExist');
|
331
|
+
utilities.verifyElementVisibilityState(highlightPage.rounddownScoreCheckboxLabel(), 'notExist');
|
332
|
+
highlightPage.steps.verifyDefaultMinimumScoreIfAttemptedLabelAndPointsField();
|
333
|
+
highlightPage.steps.expandAdditonalSettings()
|
334
|
+
utilities.verifyElementVisibilityState(highlightPage.checkAnswerLabel(), 'notExist');
|
335
|
+
utilities.verifyElementVisibilityState(highlightPage.allowStudentsToCheckAnswerLabel(), 'notExist');
|
336
|
+
});
|
337
|
+
|
338
|
+
highlightPage.tests.verifyPointsFieldErrorState(10);
|
339
|
+
|
340
|
+
highlightPage.tests.verifyMinimumScoreIfAttemptedFieldErrorState(10, 20, 10);
|
341
|
+
});
|
342
|
+
|
343
|
+
describe('Edit tab \'Set correct answer\' section (Correct answer tab) and \'Scoring\' section for Non Scored scoring type', () => {
|
344
|
+
abortEarlySetup();
|
345
|
+
before(() => {
|
346
|
+
cy.log('Navigating to Highlight question type, switch to paragraph text selection');
|
347
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
348
|
+
cy.barsPreLoaderWait();
|
349
|
+
highlightPage.steps.clearQuestionInputField();
|
350
|
+
paragraphTextArray.forEach((paragraphText) => {
|
351
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
352
|
+
});
|
353
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
354
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
355
|
+
});
|
356
|
+
|
357
|
+
highlightPage.tests.verifyEditTabNonScoredScoringSectionContents();
|
358
|
+
|
359
|
+
highlightPage.tests.verifyContentsOfSetCorrectAnswerSectionForScoringType('Non scored', paragraphTextArray);
|
360
|
+
});
|
361
|
+
});
|
@@ -0,0 +1,91 @@
|
|
1
|
+
import { dialogBoxBase, highlightPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
|
5
|
+
describe('Create question page - Highlight: Header section and Saving question', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Header section contents', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigating to highlight question type');
|
14
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
});
|
17
|
+
|
18
|
+
highlightPage.tests.verifyCreateQuestionPageQuestionTypeHeader('Highlight');
|
19
|
+
});
|
20
|
+
|
21
|
+
describe('Tabs section', () => {
|
22
|
+
abortEarlySetup();
|
23
|
+
before(() => {
|
24
|
+
cy.log('Navigating to highlight question type');
|
25
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
26
|
+
cy.barsPreLoaderWait();
|
27
|
+
});
|
28
|
+
|
29
|
+
highlightPage.tests.verifyTabsSection();
|
30
|
+
});
|
31
|
+
|
32
|
+
describe('Cancel button', () => {
|
33
|
+
abortEarlySetup();
|
34
|
+
before(() => {
|
35
|
+
cy.log('Navigating to highlight question type');
|
36
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
37
|
+
cy.barsPreLoaderWait();
|
38
|
+
});
|
39
|
+
|
40
|
+
highlightPage.tests.verifyCancelButton('highlight');
|
41
|
+
});
|
42
|
+
|
43
|
+
describe('Save Question button', () => {
|
44
|
+
abortEarlySetup();
|
45
|
+
before(() => {
|
46
|
+
cy.log('Navigating to highlight question type');
|
47
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
48
|
+
cy.barsPreLoaderWait();
|
49
|
+
});
|
50
|
+
|
51
|
+
describe('Validation error messages', () => {
|
52
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
53
|
+
|
54
|
+
it('Validation error messages should be displayed below required input fields (Question instructions, Highlight options section, Points input field, set correct answer section)', () => {
|
55
|
+
highlightPage.steps.verifyQuestionInstructionsErrorMessage();
|
56
|
+
highlightPage.steps.verifyHighlightOptionsFieldErrorMessage();
|
57
|
+
highlightPage.steps.verifyPointsFieldErrorMessage();
|
58
|
+
highlightPage.steps.verifySetCorrectAnswerErrorIconIsDisplayed();
|
59
|
+
highlightPage.steps.verifySetCorrectAnswerErrorMessage();
|
60
|
+
});
|
61
|
+
|
62
|
+
it('When the user has made no changes and switches to the preview tab and clicks on \'Save question\' button, the user should get a warning popup and on closing the warning popup, the user should be on the edit tab', () => {
|
63
|
+
highlightPage.steps.switchToPreviewTab();
|
64
|
+
highlightPage.steps.clickOnSaveQuestionButton();
|
65
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
66
|
+
dialogBoxBase.steps.closeWarningPopup();
|
67
|
+
highlightPage.steps.verifyEditTabSelectedState();
|
68
|
+
highlightPage.steps.verifyPreviewTabNotSelectedState();
|
69
|
+
});
|
70
|
+
|
71
|
+
it('Validation error messages should disappear when all required input fields are filled', () => {
|
72
|
+
highlightPage.steps.addQuestionInstructions();
|
73
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
74
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection('Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.');
|
75
|
+
highlightPage.steps.allotPoints(10);
|
76
|
+
highlightPage.steps.verifyErrorMessageIsNotDisplayed();
|
77
|
+
highlightPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
78
|
+
});
|
79
|
+
|
80
|
+
highlightPage.tests.verifya11yOfCreateItemWrapperContents();
|
81
|
+
});
|
82
|
+
});
|
83
|
+
|
84
|
+
describe('Saving a question', () => {
|
85
|
+
it('When user has filled all the mandatory fields then on clicking on Save Question button the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
86
|
+
highlightPage.steps.saveAQuestionAndVerifySnackbar();
|
87
|
+
});
|
88
|
+
|
89
|
+
highlightPage.tests.verifySavedSuccessfullySnackbarCSSanda11y();
|
90
|
+
});
|
91
|
+
});
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import { highlightPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
describe('Create Item page - Highlight: Question Instructions and Question section', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question Instructions input field - Edit tab', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to Highlight question type');
|
15
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
});
|
18
|
+
|
19
|
+
highlightPage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
20
|
+
});
|
21
|
+
|
22
|
+
describe('Question Instructions input field - Preview tab', () => {
|
23
|
+
abortEarlySetup();
|
24
|
+
before(() => {
|
25
|
+
cy.log('Navigating to Highlight question type');
|
26
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
27
|
+
cy.barsPreLoaderWait();
|
28
|
+
});
|
29
|
+
|
30
|
+
highlightPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
describe('Question input field - Edit tab', () => {
|
34
|
+
abortEarlySetup();
|
35
|
+
before(() => {
|
36
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
37
|
+
cy.barsPreLoaderWait();
|
38
|
+
});
|
39
|
+
|
40
|
+
it('\'Question\' label and input field should be displayed and by default in the question input field, sample \'Lorem Ipsum\' text should be present', () => {
|
41
|
+
utilities.verifyInnerText(highlightPage.questionLabel(), 'Question');
|
42
|
+
utilities.verifyInnerText(highlightPage.questionInputField(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n\n\n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n\n\n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
43
|
+
});
|
44
|
+
|
45
|
+
it('The default sample \'Lorem Ipsum\' text in the question input field should also be displayed in Highlight options section and Set correct answer section in the Edit tab.', () => {
|
46
|
+
utilities.verifyInnerText(highlightPage.highlightOptionsSectionTextWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
47
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerTextWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
48
|
+
});
|
49
|
+
|
50
|
+
it('When the user removes all the text from the question input field and focuses out of it, an error message \'Error: Question is required.\' should be displayed', () => {
|
51
|
+
highlightPage.steps.clearQuestionInputField();
|
52
|
+
highlightPage.steps.focusOutOfQuestionInputField();
|
53
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Question is required.');
|
54
|
+
highlightPage.steps.verifyErroredStateOfQuestionInputField();
|
55
|
+
});
|
56
|
+
|
57
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
58
|
+
|
59
|
+
it('The user should be able to give input in the question input field, then the error message should disappear and the updated question should be displayed in Highlight options section and Set correct answer section in the Edit tab', () => {
|
60
|
+
cy.log('Add Image to Question input field')
|
61
|
+
highlightPage.steps.focusInQuestionInputField();
|
62
|
+
highlightPage.steps.selectImageOptionFromCKEditorToolbar();
|
63
|
+
highlightPage.steps.addImageToInputField();
|
64
|
+
highlightPage.steps.verifyImageAndAltTextInQuestionInputField();
|
65
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
66
|
+
cy.log('Add equation to Question input field')
|
67
|
+
highlightPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
68
|
+
highlightPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
69
|
+
highlightPage.steps.verifyEquationInQuestionInputField();
|
70
|
+
highlightPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
|
71
|
+
cy.log('Add bold text to input field')
|
72
|
+
highlightPage.steps.focusInQuestionInputField();
|
73
|
+
highlightPage.steps.selectBoldOptionFromCKEditorToolbar();
|
74
|
+
highlightPage.steps.addInputToQuestionInputField('This is Bold text input.');
|
75
|
+
highlightPage.steps.verifyBoldTextInQuestionInputField();
|
76
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
77
|
+
cy.log('Add link to Question input field')
|
78
|
+
highlightPage.steps.selectLinkOptionFromCKEditorToolbar();
|
79
|
+
highlightPage.steps.addLinkToInputField();
|
80
|
+
highlightPage.steps.verifyLinkInQuestionInputField();
|
81
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
82
|
+
highlightPage.steps.focusOutOfQuestionInputField();
|
83
|
+
});
|
84
|
+
|
85
|
+
it('CSS of Question label and Question input field contents', { tags: 'css' }, () => {
|
86
|
+
utilities.verifyCSS(highlightPage.questionLabel(), {
|
87
|
+
'color': css.color.sectionHeading,
|
88
|
+
'font-size': css.fontSize.normal,
|
89
|
+
'font-weight': css.fontWeight.semibold
|
90
|
+
});
|
91
|
+
utilities.verifyCSS(highlightPage.questionInputField(), {
|
92
|
+
'color': css.color.text,
|
93
|
+
'font-size': css.fontSize.default,
|
94
|
+
'font-weight': css.fontWeight.regular,
|
95
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`
|
96
|
+
});
|
97
|
+
utilities.verifyCSS(highlightPage.questionInputField().find('a'), {
|
98
|
+
'color': css.color.linkText,
|
99
|
+
'font-size': css.fontSize.default,
|
100
|
+
'font-weight': css.fontWeight.bold
|
101
|
+
});
|
102
|
+
});
|
103
|
+
|
104
|
+
it('Image, equation, bold text and link added in Question input field should be properly displayed in highlight options section', () => {
|
105
|
+
highlightPage.steps.verifyImageAndAltTextInHighlightOptionsSection();
|
106
|
+
highlightPage.steps.verifyEquationInHighlightOptionsSection();
|
107
|
+
highlightPage.steps.verifyBoldTextInHighlightOptionsSection();
|
108
|
+
highlightPage.steps.verifyLinkInHighlightOptionsSection();
|
109
|
+
});
|
110
|
+
|
111
|
+
it('Image, equation, bold text and link added in Question input field should be properly displayed in set correct answer section', () => {
|
112
|
+
highlightPage.steps.verifyImageAndAltTextInSetCorrectAnswerSection();
|
113
|
+
highlightPage.steps.verifyEquationInSetCorrectAnswerSection();
|
114
|
+
highlightPage.steps.verifyBoldTextInSetCorrectAnswerSection();
|
115
|
+
highlightPage.steps.verifyLinkInSetCorrectAnswerSection();
|
116
|
+
});
|
117
|
+
});
|
118
|
+
|
119
|
+
describe('Question field - Preview tab', () => {
|
120
|
+
abortEarlySetup();
|
121
|
+
before(() => {
|
122
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
123
|
+
cy.barsPreLoaderWait();
|
124
|
+
});
|
125
|
+
|
126
|
+
it('In Preview tab, the sample \'Lorem Ipsum\' text should be displayed in the question field', () => {
|
127
|
+
highlightPage.steps.switchToPreviewTab()
|
128
|
+
utilities.verifyInnerText(highlightPage.previewTabQuestionContainer(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
129
|
+
});
|
130
|
+
|
131
|
+
it('The user should be able to edit text in the question input field and the updated question should be displayed in the preview tab', () => {
|
132
|
+
cy.log('Switching to edit tab')
|
133
|
+
highlightPage.steps.switchToEditTab();
|
134
|
+
highlightPage.steps.clearQuestionInputField();
|
135
|
+
cy.log('Add Image to Question input field')
|
136
|
+
highlightPage.steps.focusInQuestionInputField();
|
137
|
+
highlightPage.steps.selectImageOptionFromCKEditorToolbar();
|
138
|
+
highlightPage.steps.addImageToInputField();
|
139
|
+
highlightPage.steps.verifyImageAndAltTextInQuestionInputField();
|
140
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
141
|
+
cy.log('Add equation to Question input field')
|
142
|
+
highlightPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
143
|
+
highlightPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
144
|
+
highlightPage.steps.verifyEquationInQuestionInputField();
|
145
|
+
highlightPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
|
146
|
+
cy.log('Add bold text to input field')
|
147
|
+
highlightPage.steps.focusInQuestionInputField();
|
148
|
+
highlightPage.steps.selectBoldOptionFromCKEditorToolbar();
|
149
|
+
highlightPage.steps.addInputToQuestionInputField('This is Bold text input.');
|
150
|
+
highlightPage.steps.verifyBoldTextInQuestionInputField();
|
151
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
152
|
+
cy.log('Add link to Question input field')
|
153
|
+
highlightPage.steps.selectLinkOptionFromCKEditorToolbar();
|
154
|
+
highlightPage.steps.addLinkToInputField();
|
155
|
+
highlightPage.steps.verifyLinkInQuestionInputField();
|
156
|
+
cy.log('Switching to preview tab')
|
157
|
+
highlightPage.steps.switchToPreviewTab();
|
158
|
+
highlightPage.steps.verifyImageAndAltTextInPreviewTab();
|
159
|
+
highlightPage.steps.verifyEquationInPreviewTab();
|
160
|
+
highlightPage.steps.verifyBoldTextInPreviewTab();
|
161
|
+
highlightPage.steps.verifyLinkInPreviewTab();
|
162
|
+
});
|
163
|
+
|
164
|
+
//Failing due to https://redmine.zeuslearning.com/issues/537907
|
165
|
+
it('CSS of \'Preview tab\' when image, equation, bold text and link are added', { tags: 'css' }, () => {
|
166
|
+
utilities.verifyCSS(highlightPage.previewTabQuestionContainer().find('strong'), {
|
167
|
+
'color': css.color.labels,
|
168
|
+
'font-size': css.fontSize.default,
|
169
|
+
'font-weight': css.fontWeight.bold
|
170
|
+
});
|
171
|
+
utilities.verifyCSS(highlightPage.previewTabQuestionContainer().find('a'), {
|
172
|
+
'color': css.color.linkText,
|
173
|
+
'font-size': css.fontSize.default,
|
174
|
+
'font-weight': css.fontWeight.bold
|
175
|
+
});
|
176
|
+
});
|
177
|
+
});
|
178
|
+
});
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { highlightPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - Fill in the gaps - drag and drop: Scoring Section basic: Labels, dropdown, checkboxes', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Scoring Section contents', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigating to Highlight question type');
|
13
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
});
|
16
|
+
|
17
|
+
highlightPage.tests.verifyScoringTypeLabelAndDropdown('autoScored');
|
18
|
+
|
19
|
+
highlightPage.tests.verifyAutoScoredScoringTypeSectionWithCSSAnda11y();
|
20
|
+
});
|
21
|
+
});
|