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,215 @@
|
|
1
|
+
import { highlightPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
5
|
+
|
6
|
+
describe('Create Item page - Highlight: Preview tab Scoring Section - All or nothing scoring with alternate answer', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are more than Alternate Answer points', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to Highlight question type');
|
15
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
highlightPage.steps.clearQuestionInputField();
|
18
|
+
paragraphTextArray.forEach((paragraphText) => {
|
19
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
20
|
+
});
|
21
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
22
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
23
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
24
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
25
|
+
highlightPage.steps.allotPoints(20);
|
26
|
+
highlightPage.steps.clickOnAddAlternateAnswerButton();
|
27
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
28
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[2]);
|
29
|
+
highlightPage.steps.allotPoints(12);
|
30
|
+
highlightPage.steps.expandAdditonalSettings();
|
31
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
32
|
+
highlightPage.steps.switchToPreviewTab();
|
33
|
+
});
|
34
|
+
|
35
|
+
it('The points displayed should be equal to correct answer points', () => {
|
36
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question then, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-marks should be displayed beside the correct answer options from the correct tab', () => {
|
40
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
41
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
42
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
43
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
44
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
45
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
46
|
+
cy.log('Post step: Unchecking the show correct answer checkbox')
|
47
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox();
|
48
|
+
});
|
49
|
+
|
50
|
+
it('When the user attempts the question according to the correct tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the correct tab and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
51
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
52
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
53
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
54
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
55
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
56
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
57
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
58
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
59
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
60
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
61
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
62
|
+
|
63
|
+
cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the correct tab and a label \'Correct answer\' and border should be displayed below the question preview')
|
64
|
+
highlightPage.steps.checkAnswer();
|
65
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
66
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
67
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
68
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
69
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
70
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
71
|
+
});
|
72
|
+
|
73
|
+
it('When the user attempts the question according to the alternate tab then user should be awarded with points of the alternate tab(less than full points) and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed besides the correctly answered options from the alternate tab and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
74
|
+
highlightPage.steps.resetQuestionPreview();
|
75
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
76
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
77
|
+
highlightPage.steps.verifyPreviewTabScoreText(12, 20);
|
78
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
79
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
80
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
81
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
82
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
83
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
84
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
85
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
86
|
+
|
87
|
+
cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed besides the correctly answered options from the alternate tab and a label \'Correct answer\' and border should be displayed below the question preview')
|
88
|
+
highlightPage.steps.checkAnswer();
|
89
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
90
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
91
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
92
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
93
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
94
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
95
|
+
});
|
96
|
+
|
97
|
+
it('When the user attempts the question partially correct exclusively according to the correct tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
98
|
+
highlightPage.steps.resetQuestionPreview();
|
99
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
100
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
101
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
102
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
103
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
104
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
105
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
106
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
107
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
108
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
109
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
110
|
+
|
111
|
+
cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the correctly attempted options from the correct tab and red cross-mark icons should be displayed beside the incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
112
|
+
highlightPage.steps.checkAnswer()
|
113
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
114
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
115
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
116
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
117
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
118
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
119
|
+
});
|
120
|
+
|
121
|
+
it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the correct options from the correct tab and correctly answered options from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
122
|
+
highlightPage.steps.resetQuestionPreview();
|
123
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
124
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
125
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
126
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
127
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
128
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
129
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
130
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
131
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
132
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
133
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
134
|
+
|
135
|
+
cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the correctly attempted option from the alternate tab, red cross-mark icons should be displayed beside the incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
136
|
+
highlightPage.steps.checkAnswer();
|
137
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
138
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
139
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[2]);
|
140
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
141
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
142
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
143
|
+
});
|
144
|
+
|
145
|
+
it('When the user attempts the question partially correct with equal number of options form the correct and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the correct options from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
146
|
+
highlightPage.steps.resetQuestionPreview();
|
147
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
148
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
149
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
150
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
151
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
152
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
153
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
154
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
155
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
156
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
157
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
158
|
+
|
159
|
+
cy.log('When the user attempts the question partially correct with equal number of options form the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the correctly attempted options from the correct tab, red cross-mark icons should be displayed beside the incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
160
|
+
highlightPage.steps.checkAnswer()
|
161
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
162
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
163
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
164
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
165
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
166
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
167
|
+
});
|
168
|
+
|
169
|
+
it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and correct tab options and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
170
|
+
highlightPage.steps.resetQuestionPreview();
|
171
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
172
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
173
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
174
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
175
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
176
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
177
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
178
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
179
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
180
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
181
|
+
|
182
|
+
cy.log('Race condition:When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
183
|
+
highlightPage.steps.checkAnswer();
|
184
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
185
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
186
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
187
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
188
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
189
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be beside incorrectly answered options, green check-marks should be displayed beside correct answer options from the correct tab and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
193
|
+
highlightPage.steps.resetQuestionPreview();
|
194
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
195
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
196
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
197
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
198
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
199
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
200
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
201
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
202
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
203
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
204
|
+
|
205
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be beside incorrectly answered options and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
206
|
+
highlightPage.steps.checkAnswer();
|
207
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
208
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
209
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
210
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
211
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
212
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
213
|
+
});
|
214
|
+
});
|
215
|
+
});
|
@@ -0,0 +1,187 @@
|
|
1
|
+
import { highlightPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
5
|
+
|
6
|
+
describe('Create Item page - Highlight: Preview tab Scoring Section - All or nothing scoring', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Show correct answer', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigating to Highlight question type');
|
15
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
highlightPage.steps.clearQuestionInputField();
|
18
|
+
paragraphTextArray.forEach((paragraphText) => {
|
19
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
20
|
+
});
|
21
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
22
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
23
|
+
});
|
24
|
+
|
25
|
+
highlightPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet();
|
26
|
+
|
27
|
+
it('When the user has set correct answer responses and alloted points \'Show correct answer\' checkbox should be displayed and it should be unchecked by default and points for the question should be displayed beside it', () => {
|
28
|
+
highlightPage.steps.switchToEditTab();
|
29
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
30
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
31
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphTextArray[2]);
|
32
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphTextArray[3]);
|
33
|
+
highlightPage.steps.allotPoints(10);
|
34
|
+
highlightPage.steps.switchToPreviewTab();
|
35
|
+
highlightPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
36
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 10);
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab users response should not persist', () => {
|
40
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
41
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
42
|
+
highlightPage.steps.resetQuestionPreview();
|
43
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
44
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
45
|
+
});
|
46
|
+
});
|
47
|
+
|
48
|
+
describe('Question Preview: AutoScored - All or Nothing', () => {
|
49
|
+
abortEarlySetup();
|
50
|
+
before(() => {
|
51
|
+
cy.log('Navigating to Highlight question type');
|
52
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
53
|
+
cy.barsPreLoaderWait();
|
54
|
+
highlightPage.steps.clearQuestionInputField();
|
55
|
+
paragraphTextArray.forEach((paragraphText) => {
|
56
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
57
|
+
});
|
58
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
59
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
60
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
61
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
62
|
+
highlightPage.steps.allotPoints(20);
|
63
|
+
highlightPage.steps.expandAdditonalSettings();
|
64
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
65
|
+
highlightPage.steps.switchToPreviewTab();
|
66
|
+
});
|
67
|
+
|
68
|
+
highlightPage.tests.verifyCSSOfPreviewAndEditTabAndScoringContents();
|
69
|
+
|
70
|
+
highlightPage.tests.verifya11yOfCreateItemWrapperContents();
|
71
|
+
|
72
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-mark icon should be displayed besides the highlighted option', () => {
|
73
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
74
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
75
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
76
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
77
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
78
|
+
});
|
79
|
+
|
80
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
81
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
82
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
83
|
+
highlightPage.steps.checkAnswer();
|
84
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
85
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
86
|
+
});
|
87
|
+
|
88
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-mark should be displayed besides correct answers', () => {
|
89
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
90
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
91
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
92
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
93
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
94
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
95
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
96
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
97
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
98
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
99
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
100
|
+
|
101
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-marks should not be displayed besides correct answer options');
|
102
|
+
highlightPage.steps.checkAnswer();
|
103
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
104
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
105
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
106
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
107
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
108
|
+
});
|
109
|
+
|
110
|
+
highlightPage.tests.verifyCSSAndA11yOfIncorrectAnswerLabel('highlight');
|
111
|
+
|
112
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
113
|
+
highlightPage.steps.resetQuestionPreview();
|
114
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
115
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
116
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
117
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
118
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
119
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
120
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
121
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
122
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
123
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
124
|
+
|
125
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview');
|
126
|
+
highlightPage.steps.checkAnswer();
|
127
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
128
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
129
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
130
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
131
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
132
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
133
|
+
});
|
134
|
+
|
135
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
136
|
+
highlightPage.steps.resetQuestionPreview();
|
137
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
138
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
139
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
140
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
141
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
142
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
143
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
144
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
145
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
146
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
147
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
148
|
+
|
149
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
150
|
+
highlightPage.steps.checkAnswer();
|
151
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
152
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
153
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
154
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
155
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
156
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
160
|
+
highlightPage.steps.resetQuestionPreview();
|
161
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
162
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
163
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
164
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
165
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
166
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
167
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
168
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
169
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
170
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
171
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
172
|
+
|
173
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview')
|
174
|
+
highlightPage.steps.checkAnswer();
|
175
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
176
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
177
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
178
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
179
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
180
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
181
|
+
});
|
182
|
+
|
183
|
+
highlightPage.tests.verifyCSSAndA11yOfFullScoreTextAndCorrectAnswerLabel('highlight');
|
184
|
+
|
185
|
+
highlightPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(20);
|
186
|
+
});
|
187
|
+
});
|
@@ -0,0 +1,162 @@
|
|
1
|
+
import { highlightPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
5
|
+
|
6
|
+
describe('Create Item page - Highlight - Manually and Non-scored', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Question Preview: Manually scored', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigate to question, add input to stems and options, select manually scored scoring type and switch to preview tab');
|
15
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
highlightPage.steps.addQuestionInstructions();
|
18
|
+
highlightPage.steps.clearQuestionInputField();
|
19
|
+
paragraphTextArray.forEach((paragraphText) => {
|
20
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
21
|
+
});
|
22
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
23
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
24
|
+
highlightPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored');
|
25
|
+
highlightPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
it('When user switches to the Preview tab, the question instruction and options should be displayed in the preview tab', () => {
|
29
|
+
highlightPage.steps.verifyQuestionInstructionsText();
|
30
|
+
highlightPage.steps.verifyOptionInPreviewTab(paragraphTextArray);
|
31
|
+
});
|
32
|
+
|
33
|
+
highlightPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
|
34
|
+
});
|
35
|
+
|
36
|
+
describe('Question Preview: Non scored', () => {
|
37
|
+
abortEarlySetup();
|
38
|
+
before(() => {
|
39
|
+
cy.log('Navigate to question, add input to stems and options, select manually scored scoring type and switch to preview tab');
|
40
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
41
|
+
cy.barsPreLoaderWait();
|
42
|
+
highlightPage.steps.addQuestionInstructions();
|
43
|
+
highlightPage.steps.clearQuestionInputField();
|
44
|
+
paragraphTextArray.forEach((paragraphText) => {
|
45
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
46
|
+
});
|
47
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
48
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
49
|
+
highlightPage.steps.selectAScoringTypeFromScoringTypeDropdown('Non scored');
|
50
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
51
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
52
|
+
highlightPage.steps.expandAdditonalSettings();
|
53
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
54
|
+
highlightPage.steps.switchToPreviewTab();
|
55
|
+
});
|
56
|
+
|
57
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-mark icon should be displayed besides the highlighted option', () => {
|
58
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
59
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
60
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
61
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
62
|
+
});
|
63
|
+
|
64
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
65
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
66
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
67
|
+
highlightPage.steps.checkAnswer();
|
68
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
69
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
70
|
+
});
|
71
|
+
|
72
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, red cross-mark icons should be displayed besides incorrectly answered options, green check-mark should be displayed besides correct answers, a label \'Incorrect answer\' and border should be displayed', () => {
|
73
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
74
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
75
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
76
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
77
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
78
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
79
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
80
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
81
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
82
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
83
|
+
|
84
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed')
|
85
|
+
highlightPage.steps.checkAnswer();
|
86
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[0]);
|
87
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
88
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
89
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[3]);
|
90
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
91
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
92
|
+
});
|
93
|
+
|
94
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed', () => {
|
95
|
+
highlightPage.steps.resetQuestionPreview();
|
96
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
97
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
98
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
99
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
100
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
101
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
102
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
103
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
104
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
105
|
+
|
106
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed');
|
107
|
+
highlightPage.steps.checkAnswer();
|
108
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
109
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
110
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
111
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
112
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
113
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed', () => {
|
117
|
+
highlightPage.steps.resetQuestionPreview();
|
118
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
119
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
120
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
121
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
122
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
123
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
124
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
125
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
126
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
127
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
128
|
+
|
129
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed')
|
130
|
+
highlightPage.steps.checkAnswer();
|
131
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
132
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
133
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(paragraphTextArray[2]);
|
134
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
135
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
136
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
137
|
+
});
|
138
|
+
|
139
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed', () => {
|
140
|
+
highlightPage.steps.resetQuestionPreview();
|
141
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
142
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
143
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
144
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
145
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
146
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
147
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
148
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
149
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
150
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
151
|
+
|
152
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed')
|
153
|
+
highlightPage.steps.checkAnswer();
|
154
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[0]);
|
155
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(paragraphTextArray[1]);
|
156
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
157
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
158
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
159
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
160
|
+
});
|
161
|
+
});
|
162
|
+
});
|