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,371 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
let optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
7
|
+
let optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
8
|
+
let optionsForResponse3 = ['Flower', 'Leaf', 'Stem', 'Roots']; //Common answer
|
9
|
+
let correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
10
|
+
let alternateTabAnswerArray = ['Petal', 'Leaves', 'Stem'];
|
11
|
+
let incorrectAnswerArray = ['Branch', 'Seed', 'Roots'];
|
12
|
+
|
13
|
+
describe('Create item page - Fill in the gaps over image - dropdown: Partial equal weights scoring', () => {
|
14
|
+
before(() => {
|
15
|
+
cy.loginAs('admin');
|
16
|
+
});
|
17
|
+
|
18
|
+
describe('Question preview: Auto scored - Partial equal weights', () => {
|
19
|
+
abortEarlySetup();
|
20
|
+
before(() => {
|
21
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
22
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
23
|
+
cy.barsPreLoaderWait();
|
24
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
27
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
29
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
30
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
31
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
32
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
33
|
+
fillInTheGapsOverImageDropdownPage.steps.selectPartialEqualWeightsCheckbox();
|
34
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
35
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
36
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
37
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
38
|
+
});
|
39
|
+
|
40
|
+
it('When the user checks \'Show correct answer\' checkbox without attempting the question, correct/incorrect icons or label should not be displayed, correct answer container along with \'Correct answers:\' label and correct responses with numeric count should be displayed below the question preview', () => {
|
41
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
42
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
43
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
45
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerLabel(), 'Correct answers:');
|
46
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
48
|
+
});
|
49
|
+
|
50
|
+
it('When the user selects \'Check answer\' button without attempting the question, then red cross-mark icon or green check-mark icons, correct/incorrect answer label and border and correct answer container should not be displayed', () => {
|
51
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
52
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
53
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
54
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
55
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
56
|
+
});
|
57
|
+
|
58
|
+
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, correct/incorrect answer label and its border should not be displayed and the correct answer container with all correct answers along with numeration should be displayed', () => {
|
59
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
60
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
62
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
63
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
64
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
65
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
66
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
67
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
68
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
69
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
71
|
+
cy.log('When the user clicks on \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
72
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
73
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
74
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
75
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
76
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
77
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
78
|
+
});
|
79
|
+
|
80
|
+
it('When the user attempts the question partially correct, then on selecting \'Show correct answer\' checkbox, the user should be awarded points as per the correctly attempted response, green check-mark icons should be displayed beside the correct response dropdowns, red cross-mark icons should be displayed beside the incorrect response dropdowns, correct/incorrect answer label and its border should not be displayed and the correct answer container with correct answers for responses marked incorrect along with numeration should be displayed', () => {
|
81
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
82
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
83
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
84
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10, 20);
|
85
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
86
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1]], ['2']);
|
92
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
93
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
94
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside the correct response dropdowns, red cross-mark icons should be displayed beside the incorrect response dropdowns, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
95
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
96
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
97
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
98
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
99
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed beside all the response dropdowns, correct/incorrect answer label and its border and the correct answer container should not be displayed', () => {
|
104
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
105
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
106
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
107
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
109
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
112
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
113
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
114
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
115
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icons should be displayed beside all the response dropdowns, correct/incorrect answer label and its border, correct answer container should not be displayed')
|
116
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
117
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
118
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
119
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
120
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
121
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
122
|
+
});
|
123
|
+
|
124
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 20);
|
125
|
+
|
126
|
+
it('When user has defined penalty points', () => {
|
127
|
+
cy.log('Pre-step: Switch to edit tab, clear the minimum score if attempted points and set penalty points');
|
128
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
129
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPenaltyPoints(3);
|
130
|
+
fillInTheGapsOverImageDropdownPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
131
|
+
|
132
|
+
cy.log('After switching to preview tab, when user adds an incorrect answer input, then 0 points should be awarded(no negative points)');
|
133
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
134
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
135
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
136
|
+
|
137
|
+
cy.log('When user adds a partially correct answer input, the points should be updated accordingly with deducted penalty points');
|
138
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
139
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(7, 20);
|
140
|
+
});
|
141
|
+
|
142
|
+
it('When user has defined both penalty points and minimum score awarded (if attempted) points', () => {
|
143
|
+
cy.log('Pre-step: Switch to edit tab and set minimum score awarded (if attempted) points');
|
144
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
145
|
+
fillInTheGapsOverImageDropdownPage.steps.allotMinimumScoreAwardedIfAttempted(1);
|
146
|
+
|
147
|
+
cy.log('Switch to preview tab and give incorrect answer input to check that minimum points are displayed');
|
148
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
149
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(1, 20);
|
151
|
+
|
152
|
+
cy.log('When user adds a partially correct answer such that the points of the attempt(with penalty points deducted) is more than the minimum score awarded(if attempted) points');
|
153
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
154
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(7, 20);
|
155
|
+
|
156
|
+
cy.log('When user switches to edit tab and increases the minimum score awarded (if attempted) points to check the case for an attempt in which points of the attempt is less than minimum score awarded (if attempted) points, then the minimum score awarded (if attempted) points should be displayed to the user');
|
157
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
158
|
+
fillInTheGapsOverImageDropdownPage.steps.clearMinimumScoreIfAttemptedPointsField();
|
159
|
+
fillInTheGapsOverImageDropdownPage.steps.allotMinimumScoreAwardedIfAttempted(9)
|
160
|
+
cy.log('Switching to preview tab');
|
161
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
163
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(9, 20);
|
165
|
+
});
|
166
|
+
});
|
167
|
+
|
168
|
+
describe('Question preview: Auto scored - Partial equal weights with alternate answer (Match from all responses - true)', () => {
|
169
|
+
abortEarlySetup();
|
170
|
+
before(() => {
|
171
|
+
cy.log('Navigate to fill in the gaps over image - text question type');
|
172
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
173
|
+
cy.barsPreLoaderWait();
|
174
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
175
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
176
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
177
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
178
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
179
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
180
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
181
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
182
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(21);
|
183
|
+
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
184
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
|
185
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, alternateTabAnswerArray[1]);
|
186
|
+
fillInTheGapsOverImageDropdownPage.steps.checkMatchFromAllResponsesCheckbox();
|
187
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
188
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
189
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
190
|
+
});
|
191
|
+
|
192
|
+
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', () => {
|
193
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
194
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
195
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
196
|
+
});
|
197
|
+
|
198
|
+
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, correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed', () => {
|
199
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
200
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
201
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
202
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
203
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
204
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
205
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
206
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
207
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
208
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
209
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed')
|
210
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
211
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
212
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
213
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
214
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
215
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
216
|
+
});
|
217
|
+
|
218
|
+
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, correct/incorrect answer label and its border should not be displayed below the question preview and correct answer container should not be displayed', () => {
|
219
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
220
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
221
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
222
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
223
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
224
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
225
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
226
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
227
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
228
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
229
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
230
|
+
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')
|
231
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
232
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
233
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
234
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
235
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
236
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
237
|
+
});
|
238
|
+
|
239
|
+
it('When the user attempts the question with partially correct responses exclusively from the correct tab, the user should be awarded points as per the correctly attempted response 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, correct/incorrect answer label and its border should not 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', () => {
|
240
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
241
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
242
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
243
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10, 20);
|
244
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
245
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
246
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
247
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
248
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
249
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1]], ['2']);
|
250
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
251
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
252
|
+
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, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
253
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
254
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
255
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
256
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
257
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
258
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
259
|
+
});
|
260
|
+
|
261
|
+
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, the user should be awarded points as per the correctly attempted response, 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, correct/incorrect answer label and its border should not 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', () => {
|
262
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
263
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
264
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
265
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(10, 20);
|
266
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
267
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
268
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
269
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
270
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
271
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1]], ['2']);
|
272
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
273
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
274
|
+
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, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
275
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
276
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
277
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
278
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
279
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
280
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
281
|
+
});
|
282
|
+
|
283
|
+
it('When the user attempts the question with a combination of correct responses from correct tab and alternate tab, then the user should be awarded with full points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed', () => {
|
284
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
285
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
286
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
287
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
288
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
289
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
290
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
291
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
292
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
293
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
294
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
295
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
296
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
297
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
298
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
299
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
300
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
301
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
302
|
+
});
|
303
|
+
|
304
|
+
it('When the user attempts the question incorrectly, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, red cross-mark icon should be displayed beside response dropdowns, correct/incorrect answer label and its border should not 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', () => {
|
305
|
+
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
306
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[1]);
|
307
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[0]);
|
308
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
309
|
+
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
310
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
311
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
312
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
313
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
314
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1','2']);
|
315
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
316
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
317
|
+
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, correct/incorrect answer label and its border should not be displayed below the question preview and the correct answer container should not be displayed')
|
318
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
319
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
320
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
321
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
322
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
323
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
324
|
+
});
|
325
|
+
|
326
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 20);
|
327
|
+
});
|
328
|
+
|
329
|
+
describe('Partial equal weights: Round down score', () => {
|
330
|
+
abortEarlySetup();
|
331
|
+
before(() => {
|
332
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
333
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
334
|
+
cy.barsPreLoaderWait();
|
335
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
336
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
337
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
338
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
339
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
340
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
341
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
342
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
343
|
+
fillInTheGapsOverImageDropdownPage.steps.selectPartialEqualWeightsCheckbox();
|
344
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(12.5);
|
345
|
+
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
346
|
+
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
347
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
348
|
+
});
|
349
|
+
|
350
|
+
it('When the \'Round down score\' checkbox is selected, then in Preview tab when user enters partially or fully correct answers responses the score displayed should be rounded down to the nearest whole number', () => {
|
351
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
352
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(6, 12.5);
|
353
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
354
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
355
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(12, 12.5);
|
356
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
357
|
+
});
|
358
|
+
|
359
|
+
it('When the \'Round down score\' checkbox is not selected, then in Preview tab when user selects partially or fully correct answers the points should be displayed in decimal points if applicable as per the options selected by the user', () => {
|
360
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
361
|
+
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
362
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
363
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
364
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(6.25, 12.5);
|
365
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
366
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
367
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(12.5, 12.5);
|
368
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
369
|
+
});
|
370
|
+
});
|
371
|
+
});
|
package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js
ADDED
@@ -0,0 +1,77 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
7
|
+
const optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
8
|
+
|
9
|
+
describe('Create item page - Fill in the gaps over image - dropdown: Preview tab file', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
describe('Preview tab contents', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
cy.log('Navigating to Fill in the gaps over image - dropdown question type');
|
18
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
19
|
+
cy.barsPreLoaderWait();
|
20
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
21
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
22
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
23
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
24
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
25
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
26
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse1[0]);
|
27
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, optionsForResponse2[1]);
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
29
|
+
});
|
30
|
+
|
31
|
+
it('When user uploads an image in the \'Image\' section then the uploaded image should be displayed in the preview tab', () => {
|
32
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.imagePreviewTab(), 'visible');
|
33
|
+
});
|
34
|
+
|
35
|
+
it('The added response dropdowns should be displayed in the preview tab and they should be empty', () => {
|
36
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.responseDropdownPreviewTab(), 2);
|
37
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTextDisplayedInDropdownInPreviewTab(0, '');
|
38
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTextDisplayedInDropdownInPreviewTab(1, '');
|
39
|
+
});
|
40
|
+
|
41
|
+
it('When the user clicks on the response dropdown, a list of dropdown options should be displayed', () => {
|
42
|
+
fillInTheGapsOverImageDropdownPage.steps.expandResponseDropdownInPreviewTab(0);
|
43
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyResponseDropdownOptions(optionsForResponse1);
|
44
|
+
});
|
45
|
+
|
46
|
+
it('CSS of preview tab contents', { tags: 'css' }, () => {
|
47
|
+
fillInTheGapsOverImageDropdownPage.responseDropdownPreviewTab()
|
48
|
+
.verifyPseudoClassBeforeProperty('color', css.color.secondaryBtn);
|
49
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseContainerPointer().find('circle'), {
|
50
|
+
'fill': css.color.responseContainerPointer,
|
51
|
+
'font-size': css.fontSize.normal,
|
52
|
+
'font-weight': css.fontWeight.regular,
|
53
|
+
});
|
54
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownPreviewTab().eq(0), {
|
55
|
+
'border': `1px solid ${css.color.activeButtons}`
|
56
|
+
});
|
57
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownPreviewTab().eq(1), {
|
58
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`
|
59
|
+
});
|
60
|
+
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseDropdownOptions(), {
|
61
|
+
'color': css.color.liText,
|
62
|
+
'font-size': css.fontSize.default,
|
63
|
+
'font-weight': css.fontWeight.regular,
|
64
|
+
})
|
65
|
+
});
|
66
|
+
|
67
|
+
it('Accessibility of preview tab', { tags: 'a11y' }, () => {
|
68
|
+
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.previewTabQuestionWrapper());
|
69
|
+
});
|
70
|
+
|
71
|
+
it('User should be able to set answer in the response dropdown from the available dropdown options', () => {
|
72
|
+
fillInTheGapsOverImageDropdownPage.steps.selectOptionFromResponseDropdown(optionsForResponse1[0]);
|
73
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTextDisplayedInDropdownInPreviewTab(0, optionsForResponse1[0]);
|
74
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyTextDisplayedInDropdownInPreviewTab(1, '');
|
75
|
+
});
|
76
|
+
});
|
77
|
+
});
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
let optionsForResponse = ['changing', 'progressively', 'healthy', 'new'];
|
7
|
+
|
8
|
+
describe('Create item page - fill in the gaps over image - dropdown: Set correct answer section, Alternate answer tab, Correct response conditions section', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
describe('Set correct answer section', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
17
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
20
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
21
|
+
});
|
22
|
+
|
23
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAutoScoredSetCorrectAnswerHeaderSectionContents('fill in the gaps over image - dropdown');
|
24
|
+
|
25
|
+
fillInTheGapsOverImageDropdownPage.tests.verifySetCorrectAnswerSectionDefaultState();
|
26
|
+
|
27
|
+
it('When the user adds a response container over the uploaded image, a response dropdown with label \'Response 1\' should be displayed in the set correct answer section', () => {
|
28
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
29
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseDropdownSetCorrectAnswerSection(), 'visible');
|
30
|
+
utilities.verifyElementCount(fillInTheGapsOverImageDropdownPage.responseDropdownSetCorrectAnswerSection(), 1);
|
31
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.responseFieldLabelSetCorrectAnswerSection(), 'Response 1');
|
32
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.responseFieldLabelSetCorrectAnswerSection(), 'visible');
|
33
|
+
});
|
34
|
+
});
|
35
|
+
|
36
|
+
describe('Set correct answer section - Correct tab', () => {
|
37
|
+
abortEarlySetup();
|
38
|
+
before(() => {
|
39
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
40
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
41
|
+
cy.barsPreLoaderWait();
|
42
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
43
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
46
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse);
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse);
|
48
|
+
});
|
49
|
+
|
50
|
+
fillInTheGapsOverImageDropdownPage.tests.verifySetCorrectAnswerTabContentsAndFunctionality('Correct tab');
|
51
|
+
});
|
52
|
+
|
53
|
+
describe('Set correct answer section - Alternate tab', () => {
|
54
|
+
abortEarlySetup();
|
55
|
+
before(() => {
|
56
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
57
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
58
|
+
cy.barsPreLoaderWait();
|
59
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
60
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
61
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
62
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
63
|
+
});
|
64
|
+
|
65
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyAutoScoredAlternateAnswer();
|
66
|
+
|
67
|
+
it('When user has added points and set correct answer option in the \'Correct\' tab dropdown, then the user should be able to add alternate answer for the question using \'Add alternate answer\' button and \'Match from all responses\' functionality label and checkbox should get enabled and the checkbox should be in unchecked state', () => {
|
68
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse[0]);
|
69
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, optionsForResponse[1]);
|
70
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
71
|
+
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
72
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyMatchFromAllResponsesLabelAndCheckboxEnabledState();
|
73
|
+
});
|
74
|
+
|
75
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyA11yOfAlternateAnswerTab();
|
76
|
+
|
77
|
+
fillInTheGapsOverImageDropdownPage.tests.verifySetCorrectAnswerTabContentsAndFunctionality('Alternate tab');
|
78
|
+
|
79
|
+
it('User should be able to add another alternate answer for the question using \'Add alternate answer\' button and the name for this new tab should be \'Alternate 2\'', () => {
|
80
|
+
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(2);
|
81
|
+
});
|
82
|
+
|
83
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyWarningPopupAndTabNavigationWhenNoPointsAddedInAlternateTab();
|
84
|
+
|
85
|
+
it('User should be able to remove alternate correct answer by clicking on the \'Close\' icon button alongside alternate answer tab and the name of the alternate answer tabs should get updated accordingly', () => {
|
86
|
+
cy.log('Set correct answer and points in alternate 2 tab, then switch to Alternate 1 tab and click delete icon button');
|
87
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse[1]);
|
88
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, optionsForResponse[2]);
|
89
|
+
fillInTheGapsOverImageDropdownPage.steps.allotPoints(5);
|
90
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToAlternateTab(1);
|
91
|
+
fillInTheGapsOverImageDropdownPage.steps.deleteAlternateTab();
|
92
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.alternateAnswerTab(2), 'notExist');
|
93
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.alternateAnswerTab(1), 'Alternate 1');
|
94
|
+
});
|
95
|
+
|
96
|
+
it('When the user removes all the \'Alternate\' tabs, \'Match from all responses\' functionality should get disabled', () => {
|
97
|
+
fillInTheGapsOverImageDropdownPage.steps.deleteAlternateTab();
|
98
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.alternateAnswerTab(1), 'notExist');
|
99
|
+
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.matchFromAllResponsesLabel(), 'Match from all responses');
|
100
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyMatchFromAllResponsesLabelAndCheckboxDisabledState();
|
101
|
+
});
|
102
|
+
});
|
103
|
+
|
104
|
+
describe('Correct response conditions section', () => {
|
105
|
+
abortEarlySetup();
|
106
|
+
before(() => {
|
107
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
108
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
109
|
+
cy.barsPreLoaderWait();
|
110
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
111
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
112
|
+
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
113
|
+
});
|
114
|
+
|
115
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyCorrectResponseConditionSectionDefaultState();
|
116
|
+
});
|
117
|
+
});
|
@@ -586,7 +586,7 @@ const tests = {
|
|
586
586
|
});
|
587
587
|
},
|
588
588
|
|
589
|
-
|
589
|
+
verifyAutoScoredAllOrNothingWithAlternateAnswerWhenAlternatePointsAreGreaterThanCorrectPoints: () => {
|
590
590
|
it('Alternate answer case: When \'Alternate answer\' points are more than \'Correct answer\' points', () => {
|
591
591
|
cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
|
592
592
|
previewScoringAndShowCorrectAnswerComponent.previewScoreText()
|