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,624 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
|
5
|
+
const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
6
|
+
const optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
7
|
+
const optionsForResponse3 = ['Flower', 'Leaf', 'Stem', 'Roots']; //Common answer
|
8
|
+
const correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
9
|
+
const alternateTabAnswerArray = ['Petal', 'Leaves', 'Stem'];
|
10
|
+
const incorrectAnswerArray = ['Branch', 'Seed', 'Roots'];
|
11
|
+
|
12
|
+
describe('Create item page - Fill in the gaps over image - dropdown: All or nothing scoring', () => {
|
13
|
+
before(() => {
|
14
|
+
cy.loginAs('admin');
|
15
|
+
});
|
16
|
+
|
17
|
+
describe('Question preview: Auto scored - All or nothing with alternate answer (Match from all responses - false): When \'Correct answer\' points are more than \'Alternate answer\' points', () => {
|
18
|
+
abortEarlySetup();
|
19
|
+
before(() => {
|
20
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
21
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
22
|
+
cy.barsPreLoaderWait();
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
24
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
27
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
29
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
30
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(2, optionsForResponse3);
|
31
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
32
|
+
correctTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
33
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
34
|
+
});
|
35
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnAddAlternateAnswerButton();
|
36
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
37
|
+
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
38
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
39
|
+
});
|
40
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
41
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
42
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
43
|
+
});
|
44
|
+
|
45
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
46
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
48
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
53
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
54
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, correctTabAnswerArray[2]);
|
55
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
56
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
57
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
58
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
59
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
60
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
62
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
63
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
64
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns and label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
65
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
66
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
67
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
68
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
69
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
71
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
72
|
+
});
|
73
|
+
|
74
|
+
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
76
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
77
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
78
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, alternateTabAnswerArray[2]);
|
79
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10, 20);
|
80
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
82
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
83
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
84
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
85
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
88
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
94
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
95
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
96
|
+
});
|
97
|
+
|
98
|
+
it('When the user attempts the question with partially correct responses exclusively from the correct tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
99
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
101
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
102
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
103
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
104
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
105
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
106
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
107
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
109
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
112
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
113
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
114
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
115
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
116
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
117
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
118
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
119
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
120
|
+
});
|
121
|
+
|
122
|
+
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
123
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
124
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
125
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
126
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
127
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
128
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
129
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
131
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
132
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
133
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
134
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
135
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
136
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
137
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
138
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
139
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
140
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
141
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
142
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
143
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
144
|
+
});
|
145
|
+
|
146
|
+
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdown with correct tab answer, red cross-mark icon should be displayed beside response dropdown with alternate tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
147
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
148
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
149
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
151
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
152
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
153
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
155
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
156
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
157
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
158
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
159
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
160
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdown with correct tab answer, red cross-mark icon should be displayed beside response dropdown with alternate tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
166
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
167
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
168
|
+
});
|
169
|
+
|
170
|
+
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
171
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
172
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, correctTabAnswerArray[2]);
|
173
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
174
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
175
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
176
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
177
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
178
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
179
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
180
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
181
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
182
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
183
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed');
|
184
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
185
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
186
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
187
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
188
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
189
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
190
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
191
|
+
});
|
192
|
+
|
193
|
+
it('When the 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 beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab', () => {
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
196
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
197
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, incorrectAnswerArray[2]);
|
198
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
205
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
206
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
207
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
208
|
+
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
209
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
210
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
211
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
212
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
213
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
214
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
215
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
216
|
+
});
|
217
|
+
});
|
218
|
+
|
219
|
+
describe('Question preview: Auto scored - All or nothing with alternate answer (Match from all responses - false): When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
220
|
+
abortEarlySetup();
|
221
|
+
before(() => {
|
222
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
223
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
224
|
+
cy.barsPreLoaderWait();
|
225
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
226
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
227
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
228
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
229
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
230
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
231
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
232
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(2, optionsForResponse3);
|
233
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(10);
|
234
|
+
correctTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
235
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
236
|
+
});
|
237
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnAddAlternateAnswerButton();
|
238
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
239
|
+
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
240
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
241
|
+
});
|
242
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
243
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
244
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
245
|
+
});
|
246
|
+
|
247
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the alternate tab', () => {
|
248
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
249
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['1', '2', '3']);
|
250
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
251
|
+
});
|
252
|
+
|
253
|
+
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
254
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
255
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
256
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, correctTabAnswerArray[2]);
|
257
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10, 20);
|
258
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
259
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
260
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
261
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
262
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
263
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
264
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
265
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
266
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns and label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
267
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
268
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
269
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
270
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
271
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
272
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
273
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
274
|
+
});
|
275
|
+
|
276
|
+
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
277
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
278
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
279
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
280
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, alternateTabAnswerArray[2]);
|
281
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
282
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
283
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
284
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
285
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
286
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
287
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
288
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
289
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
290
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
291
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
292
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
293
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
294
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
295
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
296
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
297
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
298
|
+
});
|
299
|
+
|
300
|
+
it('When the user attempts the question with partially correct responses exclusively from the correct tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
301
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
302
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
303
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
304
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
305
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
306
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
307
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
308
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
309
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
310
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
311
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
312
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
313
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
314
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
315
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
316
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
317
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
318
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
319
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
320
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
321
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
322
|
+
});
|
323
|
+
|
324
|
+
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
325
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
326
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
327
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
328
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
329
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
330
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
331
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
332
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
333
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
334
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
335
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
336
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
337
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
338
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
339
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
340
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
341
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
342
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
343
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
344
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
345
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
346
|
+
});
|
347
|
+
|
348
|
+
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdown with alternate tab answer, red cross-mark icon should be displayed beside response dropdown with correct tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
349
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
350
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
351
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
352
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
353
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
354
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
355
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
356
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
357
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
358
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
359
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[2]], ['1', '3']);
|
360
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
361
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
362
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdown with correct tab answer, red cross-mark icon should be displayed beside response dropdown with alternate tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
363
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
364
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
365
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
366
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
367
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
368
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
369
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
370
|
+
});
|
371
|
+
|
372
|
+
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
373
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
374
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, alternateTabAnswerArray[2]);
|
375
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
376
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
377
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
378
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
379
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
380
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
381
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
382
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1]], ['1', '2']);
|
383
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
384
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
385
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed');
|
386
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
387
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
388
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
389
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
390
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
391
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
392
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
393
|
+
});
|
394
|
+
|
395
|
+
it('When the 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 beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab', () => {
|
396
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
397
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
398
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
399
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, incorrectAnswerArray[2]);
|
400
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
401
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
402
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
403
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
404
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
405
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
406
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
407
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[0], alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['1', '2', '3']);
|
408
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
409
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
410
|
+
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
411
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
412
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
413
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
414
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
415
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
416
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
417
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
418
|
+
});
|
419
|
+
});
|
420
|
+
|
421
|
+
describe('Question preview: Auto scored - All or nothing with alternate answer (Match from all responses - false): When \'Correct answer\' points are equal to \'Alternate answer\' points', () => {
|
422
|
+
abortEarlySetup();
|
423
|
+
before(() => {
|
424
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
425
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
426
|
+
cy.barsPreLoaderWait();
|
427
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
428
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
429
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
430
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
431
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
432
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
433
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
434
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(2, optionsForResponse3);
|
435
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
436
|
+
correctTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
437
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
438
|
+
});
|
439
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnAddAlternateAnswerButton();
|
440
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
441
|
+
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
442
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
443
|
+
});
|
444
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
445
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
446
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
447
|
+
});
|
448
|
+
|
449
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
450
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
451
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
452
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
453
|
+
});
|
454
|
+
|
455
|
+
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
456
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
457
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
458
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, correctTabAnswerArray[2]);
|
459
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
460
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
461
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
462
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
463
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
464
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
465
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
466
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
467
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
468
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns and label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
469
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
470
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
471
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
472
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
473
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
474
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
475
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
476
|
+
});
|
477
|
+
|
478
|
+
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
479
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
480
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
481
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
482
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, alternateTabAnswerArray[2]);
|
483
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
484
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
485
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
486
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
487
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
488
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
489
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
490
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
491
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
492
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
493
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
494
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
495
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
496
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
497
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
498
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
499
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
500
|
+
});
|
501
|
+
|
502
|
+
it('When the user attempts the question with partially correct responses exclusively from the correct tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
503
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
504
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
505
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
506
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
507
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
508
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
509
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
510
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
511
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
512
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
513
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
514
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
515
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
516
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
517
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
518
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
519
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
520
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
521
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
522
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
523
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
524
|
+
});
|
525
|
+
|
526
|
+
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
527
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
528
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
529
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
530
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
531
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
532
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
533
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
534
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
535
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
536
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
537
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1], alternateTabAnswerArray[2]], ['2', '3']);
|
538
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
539
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
540
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
541
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
542
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
543
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
544
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
545
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
546
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
547
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
548
|
+
});
|
549
|
+
|
550
|
+
it('When the user attempts the question with equal number of correct responses from correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdown with correct tab answer, red cross-mark icon should be displayed beside response dropdown with alternate tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
551
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
552
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
553
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
554
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
555
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
556
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
557
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
558
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
559
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
560
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
561
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1], correctTabAnswerArray[2]], ['2', '3']);
|
562
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
563
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
564
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdown with correct tab answer, red cross-mark icon should be displayed beside response dropdown with alternate tab answer, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
565
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
566
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
567
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
568
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(2);
|
569
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
570
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
571
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
572
|
+
});
|
573
|
+
|
574
|
+
it('Race condition : When the user attempts the question with the common response between correct tab and alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
575
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
576
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, correctTabAnswerArray[2]);
|
577
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
578
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
579
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
580
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
581
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
582
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
583
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
584
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
585
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
586
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
587
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be besides the common response, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed');
|
588
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
589
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(0);
|
590
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCheckmarkOrCrossmarkNotVisible(1);
|
591
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(2);
|
592
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
593
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
594
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
595
|
+
});
|
596
|
+
|
597
|
+
it('When the 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 beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab', () => {
|
598
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
599
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
600
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
601
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(2, incorrectAnswerArray[2]);
|
602
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
603
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
604
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
605
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
606
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
607
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
608
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
609
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1], correctTabAnswerArray[2]], ['1', '2', '3']);
|
610
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
611
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
612
|
+
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
613
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
614
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
615
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
616
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
617
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
618
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
619
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
620
|
+
});
|
621
|
+
|
622
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 20);
|
623
|
+
});
|
624
|
+
});
|