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,263 @@
|
|
1
|
+
import { multipleSelectionGridPage } from "../../../pages/multipleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const questionStems = ['Bat', 'Ostrich', 'Platypus', 'Eagle'];
|
5
|
+
const options = ['Is mammal', 'Lays eggs', 'Can fly'];
|
6
|
+
|
7
|
+
describe('Create Item page - Multiple Selection Grid: Preview tab Scoring Section', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question Preview: AutoScored - All or Nothing with alternate answer', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigating to multiple selection grid question type');
|
16
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
17
|
+
cy.log('Adding question instructions, question stems, options, setting correct answer and adding points for Autoscored scoring type and switching to Preview tab');
|
18
|
+
multipleSelectionGridPage.steps.addQuestionInstructions();
|
19
|
+
cy.barsPreLoaderWait()
|
20
|
+
multipleSelectionGridPage.steps.addOption();
|
21
|
+
multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
|
22
|
+
multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
|
23
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
24
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
25
|
+
multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
|
26
|
+
multipleSelectionGridPage.steps.allotPoints(25);
|
27
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
28
|
+
multipleSelectionGridPage.steps.expandAdditonalSettings();
|
29
|
+
multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
it('Alternate answer case: When Alternate Answer points are more than Correct Answer points', () => {
|
34
|
+
cy.log('Total points displayed besides Show correct answer checkbox should be of Alternate Answer points')
|
35
|
+
multipleSelectionGridPage.previewScoreText()
|
36
|
+
.verifyInnerText('0/25');
|
37
|
+
|
38
|
+
cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only alternate answer options')
|
39
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
40
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
41
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
42
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
43
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
44
|
+
multipleSelectionGridPage.incorrectIcon()
|
45
|
+
.should('not.exist');
|
46
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
47
|
+
.should('not.exist');
|
48
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
49
|
+
|
50
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
51
|
+
|
52
|
+
cy.log('When the user selects correct answer options, points specified for correct answers should be provided(less than overall points) and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides options from the correct tab and label \'Correct answer\' and border should be displayed below the table')
|
53
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
54
|
+
multipleSelectionGridPage.previewScoreText()
|
55
|
+
.verifyInnerText('20/25');
|
56
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
57
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
58
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
59
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
60
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
61
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
62
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
63
|
+
|
64
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
65
|
+
|
66
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides selected options from the correct tab and label \'Correct answer\' and border should be displayed below the table')
|
67
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
68
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
69
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
70
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
71
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
72
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
73
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
74
|
+
|
75
|
+
cy.log('When the user selects alternate correct answer options, full points specified for alternate correct answer should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
76
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
77
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
78
|
+
multipleSelectionGridPage.previewScoreText()
|
79
|
+
.verifyInnerText('25/25');
|
80
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
81
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
82
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
83
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
84
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
85
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
86
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
87
|
+
|
88
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
89
|
+
|
90
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides selected alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
91
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
92
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
93
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
94
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
95
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
96
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
97
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
98
|
+
|
99
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the alternate tab and red cross-mark icons should be displayed beside the selected options from the correct tab and \'Incorrect Answer\' label should be displayed below the table')
|
100
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
101
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
|
102
|
+
multipleSelectionGridPage.previewScoreText()
|
103
|
+
.verifyInnerText('0/25');
|
104
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
105
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
106
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
107
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
108
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [1]);
|
109
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
110
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
111
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
112
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
113
|
+
|
114
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
115
|
+
|
116
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the alternate tab and red cross-mark icons should be displayed beside the selected options from the correct tab \'Incorrect Answer\' label should be displayed below the table')
|
117
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
118
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
119
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [1]);
|
120
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
121
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
122
|
+
|
123
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the alternate tab and \'Incorrect Answer\' label should be displayed below the table')
|
124
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
125
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
|
126
|
+
multipleSelectionGridPage.previewScoreText()
|
127
|
+
.verifyInnerText('0/25');
|
128
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
129
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
130
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
131
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
132
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
133
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
134
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
135
|
+
|
136
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
137
|
+
|
138
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the alternate tab \'Incorrect Answer\' label should be displayed below the table')
|
139
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
140
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
141
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
142
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
143
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
144
|
+
|
145
|
+
cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the alternate tab and red cross-mark icon should be displayed beside the options from the correct tab and label \'Incorrect Answer\' should be displayed below the table')
|
146
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
147
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
|
148
|
+
multipleSelectionGridPage.previewScoreText()
|
149
|
+
.verifyInnerText('0/25');
|
150
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
151
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
152
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
153
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
154
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
155
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
156
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
157
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
158
|
+
|
159
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
160
|
+
|
161
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected options from the alternate tab and red cross-mark icon should be displayed beside the selected options from the correct tab and label \'Incorrect Answer\' should be displayed below the table')
|
162
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
163
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
164
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
165
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
166
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
167
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
168
|
+
|
169
|
+
cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green checkmark icon should be displayed for the alternate tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
170
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
171
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
|
172
|
+
multipleSelectionGridPage.previewScoreText()
|
173
|
+
.verifyInnerText('0/25');
|
174
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
175
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
176
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
177
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
178
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
179
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
180
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
181
|
+
|
182
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
183
|
+
|
184
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options and label \'Incorrect Answer\' should be displayed below the table')
|
185
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
186
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
187
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
188
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
189
|
+
|
190
|
+
cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) then green check-mark icons should be displayed for the alternate tab options and red cross-mark icon should not be displayed user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
191
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
192
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
|
193
|
+
multipleSelectionGridPage.previewScoreText()
|
194
|
+
.verifyInnerText('0/25');
|
195
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
196
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
197
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
198
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
199
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
200
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1]);
|
201
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
202
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
203
|
+
|
204
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
205
|
+
|
206
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the selected correct and alternate tab options and label \'Incorrect Answer\' should be displayed below the table')
|
207
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
208
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
209
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [1]);
|
210
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
211
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
212
|
+
|
213
|
+
cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in alternate tab and red cross-mark icon should be displayed for selected correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
214
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
215
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
|
216
|
+
multipleSelectionGridPage.previewScoreText()
|
217
|
+
.verifyInnerText('0/25');
|
218
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
219
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
220
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
221
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
222
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
223
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
224
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
225
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
226
|
+
|
227
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
228
|
+
|
229
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed for the selected options set in alternate tab and red cross-mark icon should be displayed for selected correct tab options and label \'Incorrect Answer\' should be displayed below the table')
|
230
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
231
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
232
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [0, 2]);
|
233
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
234
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
235
|
+
|
236
|
+
cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
|
237
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
238
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
|
239
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
|
240
|
+
multipleSelectionGridPage.previewScoreText()
|
241
|
+
.verifyInnerText('0/25');
|
242
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
243
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
244
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
245
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
246
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
247
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
248
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
249
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
250
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
251
|
+
|
252
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
253
|
+
|
254
|
+
cy.log('When the user clicks on \'Check answer\' button, red cross-mark icons should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
|
255
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
256
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
257
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
258
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
259
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
260
|
+
|
261
|
+
});
|
262
|
+
});
|
263
|
+
});
|
@@ -0,0 +1,263 @@
|
|
1
|
+
import { multipleSelectionGridPage } from "../../../pages/multipleSelectionGridPage";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
const questionStems = ['Bat', 'Ostrich', 'Platypus', 'Eagle'];
|
5
|
+
const options = ['Is mammal', 'Lays eggs', 'Can fly'];
|
6
|
+
|
7
|
+
describe('Create Item page - Multiple Selection Grid: Preview tab Scoring Section', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Question Preview: AutoScored - All or Nothing with alternate answer', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigating to multiple selection grid question type');
|
16
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
17
|
+
cy.log('Adding question instructions, question stems, options, setting correct answer and adding points for Autoscored scoring type and switching to Preview tab');
|
18
|
+
multipleSelectionGridPage.steps.addQuestionInstructions();
|
19
|
+
cy.barsPreLoaderWait()
|
20
|
+
multipleSelectionGridPage.steps.addOption();
|
21
|
+
multipleSelectionGridPage.steps.addInputToAllQuestionStemFields(questionStems);
|
22
|
+
multipleSelectionGridPage.steps.addInputToAllOptionsFields(options);
|
23
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
24
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
25
|
+
multipleSelectionGridPage.steps.clickOnAddAlternateAnswerButton();
|
26
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
27
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSetCorrectAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
28
|
+
multipleSelectionGridPage.steps.expandAdditonalSettings();
|
29
|
+
multipleSelectionGridPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
30
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
31
|
+
});
|
32
|
+
|
33
|
+
it('Alternate answer case: When Alternate Answer points and Correct Answer points both are equal', () => {
|
34
|
+
cy.log('Checking the total points displayed besides Show correct answer checkbox')
|
35
|
+
multipleSelectionGridPage.previewScoreText()
|
36
|
+
.verifyInnerText('0/20')
|
37
|
+
|
38
|
+
cy.log('When the user selects the Show correct answer checkbox without attempting the question, green check-mark icons should be displayed besides only correct answer options')
|
39
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
40
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
41
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
42
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
43
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
44
|
+
multipleSelectionGridPage.incorrectIcon()
|
45
|
+
.should('not.exist');
|
46
|
+
multipleSelectionGridPage.correctIncorectAnswerLabel()
|
47
|
+
.should('not.exist');
|
48
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
49
|
+
|
50
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
51
|
+
|
52
|
+
cy.log('When the user selects correct answer options, points specified for correct answers should be provided and on selecting \'Show correct answer\' checkbox green check-mark icon should be displayed besides correct tab options and label \'Correct answer\' and border should be displayed below the table')
|
53
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
54
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1], [0, 1], [1, 2]]);
|
55
|
+
multipleSelectionGridPage.previewScoreText()
|
56
|
+
.verifyInnerText('20/20');
|
57
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
58
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
59
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
60
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
61
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
62
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
63
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
64
|
+
|
65
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
66
|
+
|
67
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides selected correct tab options and label \'Correct answer\' should be displayed below the below the table')
|
68
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
69
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
70
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
71
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
72
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
73
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
74
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
75
|
+
|
76
|
+
cy.log('When the user selects alternate correct answer options, full points points for alternate correct answer should be provided and on selecting Show correct answer checkbox green check-mark icons should be displayed besides alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
77
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
78
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2], [0, 1], [2]]);
|
79
|
+
multipleSelectionGridPage.previewScoreText()
|
80
|
+
.verifyInnerText('20/20');
|
81
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox();
|
82
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
83
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
84
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
85
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
86
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
87
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
88
|
+
|
89
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
90
|
+
|
91
|
+
cy.log('When the user clicks on \'Check answer\' button, then green check-mark icons should be displayed besides selected alternate correct answer options and label \'Correct answer\' should be displayed below the table')
|
92
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
93
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
94
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
95
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
96
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
97
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
98
|
+
multipleSelectionGridPage.steps.verifyCorrectAttemptBorder();
|
99
|
+
|
100
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the correct tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
|
101
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
102
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [1]]);
|
103
|
+
multipleSelectionGridPage.previewScoreText()
|
104
|
+
.verifyInnerText('0/20');
|
105
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
106
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
107
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
108
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
109
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
110
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
111
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
112
|
+
|
113
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
114
|
+
|
115
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and label \'Incorrect Answer\' should be displayed below the table')
|
116
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
117
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
118
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
119
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
120
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
121
|
+
|
122
|
+
//Failing due to https://redmine.zeuslearning.com/issues/535509
|
123
|
+
cy.log('When user selects partially correct answer options such that user has selected correct options only from the alternate tab and user selects show correct answer checkbox then green check-mark icons should be displayed beside the options set in the correct tab and \'Incorrect Answer\' label should be displayed below the table')
|
124
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
125
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[1], [0, 2]]);
|
126
|
+
multipleSelectionGridPage.previewScoreText()
|
127
|
+
.verifyInnerText('0/20');
|
128
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
129
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
130
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
131
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
132
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [2]);
|
133
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
134
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
135
|
+
|
136
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
137
|
+
|
138
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the selected options set in the correct tab and label \'Incorrect Answer\' should be displayed below the table')
|
139
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
140
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [1]);
|
141
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [0, 2]);
|
142
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
143
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
144
|
+
|
145
|
+
cy.log('When user selects equal number of options from the correct tab and alternate tab then 0 points should be awarded and on selecting show correct answer checkbox green check-mark icon should be displayed beside options from the correct tab and red cross-mark icon should be displayed beside the options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
|
146
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
147
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInPreviewTabAnswerTable([[0, 2], [0, 2], [0, 1]]);
|
148
|
+
multipleSelectionGridPage.previewScoreText()
|
149
|
+
.verifyInnerText('0/20');
|
150
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
151
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
152
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
153
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
154
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
155
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
156
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
157
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
158
|
+
|
159
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
160
|
+
|
161
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed beside selected options from the correct tab and red cross-mark icon should be displayed beside the selected options from the alternate tab and label \'Incorrect Answer\' should be displayed below the table')
|
162
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
163
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
164
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(1, [0, 2]);
|
165
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
166
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
167
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
168
|
+
|
169
|
+
cy.log('Race condition 1: When user attempts a question stem with correct options of both correct and alternate tab (same options set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green checkmark icon should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
170
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
171
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [0, 1]);
|
172
|
+
multipleSelectionGridPage.previewScoreText()
|
173
|
+
.verifyInnerText('0/20');
|
174
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
175
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
176
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
177
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
178
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
179
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
180
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
181
|
+
|
182
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
183
|
+
|
184
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct tab answer options and label \'Incorrect Answer\' should be displayed below the table')
|
185
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
186
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
187
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
188
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
189
|
+
|
190
|
+
cy.log('Race condition 2: When user attempts a question stem with correct options of both correct and alternate tab (one common option set correct in both the correct and alternate tabs) and user selects show correct answer checkbox then green check-mark icons should be displayed for the correct tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
191
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
192
|
+
multipleSelectionGridPage.previewScoreText()
|
193
|
+
.verifyInnerText('0/20');
|
194
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
195
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [1, 2]);
|
196
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
197
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
198
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
199
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
200
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
201
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
202
|
+
|
203
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
204
|
+
|
205
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct tab answer options and label \'Incorrect Answer\' should be displayed below the table')
|
206
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
207
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
208
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
209
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
210
|
+
|
211
|
+
cy.log('Race condition 3: When user attempts a question stem with correct options of both correct and alternate tab (both the correct and alternate tabs have exclusive options set correct) and user selects show correct answer checkbox then green check-mark icons should be displayed for the options set in correct tab and red cross-mark icon should be displayed for selected alternate tab options and user should be awarded 0 points and label \'Incorrect Answer\' should be displayed below the table')
|
212
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
213
|
+
multipleSelectionGridPage.previewScoreText()
|
214
|
+
.verifyInnerText('0/20');
|
215
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
216
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(0, [0, 1, 2]);
|
217
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
218
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
|
219
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
220
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
221
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
222
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
223
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
224
|
+
|
225
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
226
|
+
|
227
|
+
cy.log('When the user clicks on \'Check answer\' button green check-mark icons should be displayed beside the selected correct answer options, red cross-mark icon should be displayed beside selected alternate tab options and label \'Incorrect Answer\' should be displayed below the table')
|
228
|
+
multipleSelectionGridPage.steps.checkAnswer()
|
229
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
230
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(0, [1]);
|
231
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
232
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
233
|
+
|
234
|
+
//Failing due to https://redmine.zeuslearning.com/issues/535509
|
235
|
+
cy.log('When user selects incorrect answer option, 0 points should be awarded and on selecting Show correct answer checkbox red cross-mark icons should be displayed besides the selected incorrect answer options and green checkmarks should be displayed beside correct tab answers and label \'Incorrect Answer\' should be displayed below the table')
|
236
|
+
multipleSelectionGridPage.steps.resetQuestionPreview()
|
237
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(2, [2]);
|
238
|
+
multipleSelectionGridPage.steps.setAnswersForQuestionStemInPreviewTabAnswerTable(3, [0]);
|
239
|
+
multipleSelectionGridPage.previewScoreText()
|
240
|
+
.verifyInnerText('0/20');
|
241
|
+
multipleSelectionGridPage.steps.checkShowCorrectAnswerCheckbox()
|
242
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(0, [0, 2]);
|
243
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(1, [1]);
|
244
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(2, [0, 1]);
|
245
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
246
|
+
multipleSelectionGridPage.steps.verifyCorrectOptionsCheckmarkIcon(3, [1, 2]);
|
247
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
248
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
249
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
250
|
+
|
251
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked()
|
252
|
+
|
253
|
+
cy.log('When the user clicks on \'Check answer\' button, red check-marks should be displayed besides the selected incorrect answer options and label \'Incorrect Answer\' should be displayed below the table')
|
254
|
+
multipleSelectionGridPage.steps.checkAnswer();
|
255
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(2, [2]);
|
256
|
+
multipleSelectionGridPage.steps.verifyIncorrectOptionsCrossmarkIcon(3, [0]);
|
257
|
+
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
258
|
+
multipleSelectionGridPage.steps.verifyIncorrectAttemptBorder();
|
259
|
+
});
|
260
|
+
|
261
|
+
multipleSelectionGridPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(20);
|
262
|
+
});
|
263
|
+
});
|