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,375 @@
|
|
1
|
+
import { highlightPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../support/helpers/utilities";
|
4
|
+
const css = Cypress.env('css');
|
5
|
+
|
6
|
+
const paragraphTextArray = ['Horses cannot breat& through their mouth! Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
|
7
|
+
const sentenceTextArray = ['Horses cannot breat& through their mouth! ', 'Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
|
8
|
+
const wordTextArray = ['Horses', 'cannot', 'breat&', 'through', 'their', 'mouth', 'Cows', 'can', 'sleep', 'standing', 'up', 'Dogs', 'have', 'e#cellent', 'hearing', 'Deers', 'possess', 'nearly', '300', 'degree', 'field', 'of', 'vision'];
|
9
|
+
const anySelectionArray = ['Cows can sleep', 'Dogs have e#cellent \'hearing\'', 'nearly, 300 degree field of vision.'];
|
10
|
+
|
11
|
+
describe('Create Item page - Highlight: Text selection in Highlight options section', () => {
|
12
|
+
before(() => {
|
13
|
+
cy.loginAs('admin');
|
14
|
+
});
|
15
|
+
|
16
|
+
describe('Highlight options section: Any', () => {
|
17
|
+
abortEarlySetup();
|
18
|
+
before(() => {
|
19
|
+
cy.log('Navigating to Highlight question type');
|
20
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
21
|
+
cy.barsPreLoaderWait();
|
22
|
+
highlightPage.steps.clearQuestionInputField();
|
23
|
+
paragraphTextArray.forEach((paragraphText) => {
|
24
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
25
|
+
});
|
26
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
27
|
+
});
|
28
|
+
|
29
|
+
it('By default \'Any\' should be selected in text selection dropdown.', () => {
|
30
|
+
utilities.verifyInnerText(highlightPage.textSelectionDropdown(), 'Any');
|
31
|
+
});
|
32
|
+
|
33
|
+
it('When \'Any\' text selection type is selected, the added input should be displayed in the highlight options section and no options should be displayed', () => {
|
34
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
35
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist');
|
36
|
+
});
|
37
|
+
|
38
|
+
it('The highlight count should be displayed as \'0\'.', () => {
|
39
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(0);
|
40
|
+
});
|
41
|
+
|
42
|
+
it('When user selects any texts, then that text should be highlighted and the highlight count should be increased to 1.', () => {
|
43
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
44
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
45
|
+
});
|
46
|
+
|
47
|
+
it('CSS of the response option in selected state', { tags: 'css' }, () => {
|
48
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans(), {
|
49
|
+
'color': css.color.text,
|
50
|
+
'font-size': css.fontSize.default,
|
51
|
+
'font-weight': css.fontWeight.regular,
|
52
|
+
'background-color': css.color.figActiveComponentBg,
|
53
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
54
|
+
});
|
55
|
+
});
|
56
|
+
|
57
|
+
it('Accessibility of the response option', { tags: 'a11y' }, () => {
|
58
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parents('.highlight-tab-wrapper'));
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
62
|
+
highlightPage.steps.clickOnOptionInHighlightOptionsSection(anySelectionArray[0]);
|
63
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist')
|
64
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(0);
|
65
|
+
});
|
66
|
+
|
67
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
68
|
+
cy.log('Pre-step: Selecting multiple texts to create options');
|
69
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[0]);
|
70
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[1]);
|
71
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
72
|
+
utilities.verifyElementVisibilityState(highlightPage.highlightOptionsSpans(), 'notExist');
|
73
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
74
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
75
|
+
});
|
76
|
+
|
77
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
78
|
+
|
79
|
+
it('When user selects any text again, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
80
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', anySelectionArray[2]);
|
81
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
82
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
83
|
+
});
|
84
|
+
});
|
85
|
+
|
86
|
+
describe('Highlight options section: Paragraph', () => {
|
87
|
+
abortEarlySetup();
|
88
|
+
before(() => {
|
89
|
+
cy.log('Navigating to Highlight question type');
|
90
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
91
|
+
cy.barsPreLoaderWait();
|
92
|
+
highlightPage.steps.clearQuestionInputField();
|
93
|
+
paragraphTextArray.forEach((paragraphText) => {
|
94
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
95
|
+
});
|
96
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
97
|
+
});
|
98
|
+
|
99
|
+
it('User should be able to switch to \'Paragraph\' in text selection dropdown.', () => {
|
100
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When user has switched to \'Paragraph\' text selection type, the previously added input should be divided into options as per \'Paragraph\' text selection type and all the options should be in selected state', () => {
|
104
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
105
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 3);
|
106
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(paragraphTextArray);
|
107
|
+
paragraphTextArray.forEach((paragraphText) => {
|
108
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphText);
|
109
|
+
});
|
110
|
+
});
|
111
|
+
|
112
|
+
it('The highlight count should be displayed as per the number of \'Paragraph\'.', () => {
|
113
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(3);
|
114
|
+
});
|
115
|
+
|
116
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
117
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Paragraph', paragraphTextArray[0]);
|
118
|
+
for (let arrayIndex = 1; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
119
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
120
|
+
}
|
121
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(2);
|
122
|
+
});
|
123
|
+
|
124
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
125
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(paragraphTextArray[1]), {
|
126
|
+
'color': css.color.text,
|
127
|
+
'font-size': css.fontSize.default,
|
128
|
+
'font-weight': css.fontWeight.regular,
|
129
|
+
'background-color': css.color.figActiveComponentBg,
|
130
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
131
|
+
});
|
132
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(paragraphTextArray[0]), {
|
133
|
+
'color': css.color.text,
|
134
|
+
'font-size': css.fontSize.default,
|
135
|
+
'font-weight': css.fontWeight.regular,
|
136
|
+
'background-color': css.color.defaultBackground
|
137
|
+
});
|
138
|
+
});
|
139
|
+
|
140
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
141
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
142
|
+
});
|
143
|
+
|
144
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
145
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(paragraphTextArray[0])
|
146
|
+
});
|
147
|
+
|
148
|
+
//Clear button reset popup verification
|
149
|
+
it('When user clicks on \'Clear button\', Reset popup should be displayed with the text \'Are you sure you want to clear all highlights? This action will not delete template content but clear all highlights.\', Cancel and Confirm button', () => {
|
150
|
+
highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
|
151
|
+
highlightPage.steps.verifyResetPopupForClearingOptionSelection();
|
152
|
+
});
|
153
|
+
|
154
|
+
it('CSS of Reset popup', { tags: 'css' }, () => {
|
155
|
+
utilities.verifyCSS(highlightPage.dialogBoxTitle().find('span'), {
|
156
|
+
'color': css.color.flyoutTitle,
|
157
|
+
'font-size': css.fontSize.default,
|
158
|
+
'font-weight': css.fontWeight.bold
|
159
|
+
});
|
160
|
+
utilities.verifyCSS(highlightPage.dialogBoxContent(), {
|
161
|
+
'color': css.color.labels,
|
162
|
+
'font-size': css.fontSize.default,
|
163
|
+
'font-weight': css.fontWeight.regular
|
164
|
+
});
|
165
|
+
utilities.verifyCSS(highlightPage.buttonAccept(), {
|
166
|
+
'color': css.color.primaryBtn,
|
167
|
+
'font-size': css.fontSize.default,
|
168
|
+
'font-weight': css.fontWeight.regular,
|
169
|
+
'background-color': css.color.primaryBtnBg
|
170
|
+
});
|
171
|
+
utilities.verifyCSS(highlightPage.buttonReject(), {
|
172
|
+
'color': css.color.secondaryBtn,
|
173
|
+
'font-size': css.fontSize.default,
|
174
|
+
'font-weight': css.fontWeight.regular,
|
175
|
+
'background-color': css.color.secondaryBtnBg
|
176
|
+
});
|
177
|
+
});
|
178
|
+
|
179
|
+
it('Accessibility of Reset popup', { tags: 'a11y' }, () => {
|
180
|
+
cy.checkAccessibility(highlightPage.dialogBox());
|
181
|
+
});
|
182
|
+
|
183
|
+
it('When user clicks on \'Cancel\' button of the Reset popup, then the popup should be closed and the earlier state of highlight options should persist', () => {
|
184
|
+
highlightPage.steps.clickOnRejectButtonInDialogBox();
|
185
|
+
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'notExist');
|
186
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(paragraphTextArray[0]);
|
187
|
+
for (let arrayIndex = 1; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
188
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
189
|
+
}
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When user clicks on \'Confirm\' button of the Reset popup, then the popup should be closed and all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
193
|
+
cy.log('Pre-step: Again clicking on Clear button to open Reset popup');
|
194
|
+
highlightPage.steps.clickOnClearHighlightButtonInHighlightOptionsSection();
|
195
|
+
highlightPage.steps.clickOnAcceptButtonInDialogBox();
|
196
|
+
for (let arrayIndex = 0; arrayIndex < paragraphTextArray.length; arrayIndex++) {
|
197
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(paragraphTextArray[arrayIndex]);
|
198
|
+
}
|
199
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
200
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
201
|
+
});
|
202
|
+
|
203
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
204
|
+
|
205
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
206
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Paragraph', paragraphTextArray[0]);
|
207
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
208
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
209
|
+
});
|
210
|
+
});
|
211
|
+
|
212
|
+
describe('Highlight options section: Sentence', () => {
|
213
|
+
abortEarlySetup();
|
214
|
+
before(() => {
|
215
|
+
cy.log('Navigating to Highlight question type');
|
216
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
217
|
+
cy.barsPreLoaderWait();
|
218
|
+
highlightPage.steps.clearQuestionInputField();
|
219
|
+
paragraphTextArray.forEach((paragraphText) => {
|
220
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
221
|
+
});
|
222
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
223
|
+
});
|
224
|
+
|
225
|
+
it('User should be able to switch to \'Sentence\' in text selection dropdown.', () => {
|
226
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Sentence');
|
227
|
+
});
|
228
|
+
|
229
|
+
it('When user has switched to \'Sentence\' text selection type, the previously added input should be divided into options as per \'Sentence\' text selection type and all the options should be in selected state', () => {
|
230
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
231
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 4);
|
232
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(0, 2);
|
233
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(sentenceTextArray);
|
234
|
+
sentenceTextArray.forEach((sentenceText) => {
|
235
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(sentenceText);
|
236
|
+
});
|
237
|
+
});
|
238
|
+
|
239
|
+
it('The highlight count should be displayed as per the number of \'Sentence\'.', () => {
|
240
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(4);
|
241
|
+
});
|
242
|
+
|
243
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
244
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[0])
|
245
|
+
for (let arrayIndex = 1; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
246
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(sentenceTextArray[arrayIndex]);
|
247
|
+
}
|
248
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(3);
|
249
|
+
});
|
250
|
+
|
251
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
252
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(sentenceTextArray[1]), {
|
253
|
+
'color': css.color.text,
|
254
|
+
'font-size': css.fontSize.default,
|
255
|
+
'font-weight': css.fontWeight.regular,
|
256
|
+
'background-color': css.color.figActiveComponentBg,
|
257
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
258
|
+
});
|
259
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(sentenceTextArray[0]), {
|
260
|
+
'color': css.color.text,
|
261
|
+
'font-size': css.fontSize.default,
|
262
|
+
'font-weight': css.fontWeight.regular,
|
263
|
+
'background-color': css.color.defaultBackground
|
264
|
+
});
|
265
|
+
});
|
266
|
+
|
267
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
268
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
269
|
+
});
|
270
|
+
|
271
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
272
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(sentenceTextArray[0])
|
273
|
+
});
|
274
|
+
|
275
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
276
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
277
|
+
for (let arrayIndex = 0; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
278
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(sentenceTextArray[arrayIndex]);
|
279
|
+
}
|
280
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
281
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
282
|
+
});
|
283
|
+
|
284
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
285
|
+
|
286
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
287
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[0])
|
288
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
289
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
290
|
+
});
|
291
|
+
});
|
292
|
+
|
293
|
+
describe('Highlight options section: Word', () => {
|
294
|
+
abortEarlySetup();
|
295
|
+
before(() => {
|
296
|
+
cy.log('Navigating to Highlight question type');
|
297
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
298
|
+
cy.barsPreLoaderWait();
|
299
|
+
highlightPage.steps.clearQuestionInputField();
|
300
|
+
paragraphTextArray.forEach((paragraphText) => {
|
301
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
302
|
+
});
|
303
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
304
|
+
});
|
305
|
+
|
306
|
+
it('User should be able to switch to \'Word\' in text selection dropdown.', () => {
|
307
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
308
|
+
});
|
309
|
+
|
310
|
+
it('When user has switched to \'Word\' text selection type, the previously added input should be divided into options as per \'Word\' text selection type and all the options should be in selected state', () => {
|
311
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsParagraphs(), 3);
|
312
|
+
utilities.verifyElementCount(highlightPage.highlightOptionsSpans(), 23);
|
313
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(0, 11);
|
314
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(1, 4);
|
315
|
+
highlightPage.steps.verifyNumberOfOptionsInsideAParagraphInHighlightOptionsSection(2, 8);
|
316
|
+
highlightPage.steps.verifyOptionsInHighlightOptionsSection(wordTextArray);
|
317
|
+
wordTextArray.forEach((wordText) => {
|
318
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(wordText);
|
319
|
+
});
|
320
|
+
});
|
321
|
+
|
322
|
+
it('The highlight count should be displayed as per the number of \'Word\'.', () => {
|
323
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(23);
|
324
|
+
});
|
325
|
+
|
326
|
+
it('When user clicks on a highlighted option, then the highlighted option should be deselected and the highlight count should reduce by 1.', () => {
|
327
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Word', wordTextArray[0])
|
328
|
+
for (let arrayIndex = 1; arrayIndex < wordTextArray.length; arrayIndex++) {
|
329
|
+
highlightPage.steps.verifyOptionIsSelectedInHighlightOptionsSection(wordTextArray[arrayIndex]);
|
330
|
+
}
|
331
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(22);
|
332
|
+
});
|
333
|
+
|
334
|
+
it('CSS of the response option in selected and deselected state', { tags: 'css' }, () => {
|
335
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(wordTextArray[1]), {
|
336
|
+
'color': css.color.text,
|
337
|
+
'font-size': css.fontSize.default,
|
338
|
+
'font-weight': css.fontWeight.regular,
|
339
|
+
'background-color': css.color.figActiveComponentBg,
|
340
|
+
'border': `1px solid ${css.color.activeComponentBorder}`
|
341
|
+
});
|
342
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains(wordTextArray[0]), {
|
343
|
+
'color': css.color.text,
|
344
|
+
'font-size': css.fontSize.default,
|
345
|
+
'font-weight': css.fontWeight.regular,
|
346
|
+
'background-color': css.color.defaultBackground
|
347
|
+
});
|
348
|
+
});
|
349
|
+
|
350
|
+
it('Accessibility of the response options', { tags: 'a11y' }, () => {
|
351
|
+
cy.checkAccessibility(highlightPage.highlightOptionsSpans().parent('[class*="Highlightstyles__HighLightWrapper"] [data-testid="question-instruction-element"]'));
|
352
|
+
});
|
353
|
+
|
354
|
+
it('When the user hovers over the deselected option, then that option should be displayed in hover state', () => {
|
355
|
+
highlightPage.steps.verifyHoverStateOfDeselectedOptionInHighlightOptionsSection(wordTextArray[0])
|
356
|
+
});
|
357
|
+
|
358
|
+
it('When user clears all selected options with the \'Clear\' button, then all the selected highlight options should be deselected and the Highlight options field should be in errored state with the error message \'Error: Minimum one highlight option is required.\'', () => {
|
359
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
360
|
+
for (let arrayIndex = 0; arrayIndex < sentenceTextArray.length; arrayIndex++) {
|
361
|
+
highlightPage.steps.verifyOptionIsNotSelectedInHighlightOptionsSection(wordTextArray[arrayIndex]);
|
362
|
+
}
|
363
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Minimum one highlight option is required.');
|
364
|
+
highlightPage.steps.verifyErroredStateOfHighlightOptionsSection();
|
365
|
+
});
|
366
|
+
|
367
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
368
|
+
|
369
|
+
it('When user click on a deselected option, the option should be selected and the error message should disappear and highlight counter should display 1 count', () => {
|
370
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', wordTextArray[0]);
|
371
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
372
|
+
highlightPage.steps.verifyHighlightCounterTextAndValue(1);
|
373
|
+
});
|
374
|
+
});
|
375
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
|
16
|
+
listMatchingPage.steps.allotPoints(7);
|
17
|
+
listMatchingPage.steps.setCorrectAnswersForCorrectTab();
|
18
|
+
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
19
|
+
listMatchingPage.steps.allotPoints(10);
|
20
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
22
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
23
|
+
listMatchingPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints();
|
27
|
+
});
|
28
|
+
});
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When correct answer points are more than alternate answer points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
|
16
|
+
listMatchingPage.steps.allotPoints(7);
|
17
|
+
listMatchingPage.steps.setCorrectAnswersForCorrectTab();
|
18
|
+
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
19
|
+
listMatchingPage.steps.allotPoints(7);
|
20
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
22
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
23
|
+
listMatchingPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreEqualToAlternatePoints();
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer(7);
|
29
|
+
});
|
30
|
+
});
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { listMatchingPage, listMatchingScoring } from "
|
2
|
-
import abortEarlySetup from "
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
|
-
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer', () => {
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
|
5
5
|
before(() => {
|
6
6
|
cy.loginAs('admin');
|
7
7
|
});
|
8
8
|
|
9
|
-
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer', () => {
|
9
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
12
|
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - all or nothing scoring, adding points and switch to preview tab');
|
@@ -23,8 +23,6 @@ describe('Create Item page - List Matching - grouped options layout - All or not
|
|
23
23
|
listMatchingPage.steps.switchToPreviewTab();
|
24
24
|
});
|
25
25
|
|
26
|
-
listMatchingScoring.tests.
|
27
|
-
|
28
|
-
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer(7);
|
26
|
+
listMatchingScoring.tests.verifyAllOrNothingScoringWithAlternateAnswerWhenCorrectPointsAreMoreThanAlternatePoints();
|
29
27
|
});
|
30
28
|
});
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { listMatchingPage, listMatchingScoring } from "
|
2
|
-
import abortEarlySetup from "
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
4
|
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring', () => {
|
5
5
|
before(() => {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { listMatchingPage, listMatchingScoring } from "
|
2
|
-
import abortEarlySetup from "
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
const css = Cypress.env('css');
|
4
4
|
|
5
5
|
describe('Create Item page - List Matching - grouped options layout - Manually scored', () => {
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { listMatchingPage, listMatchingScoring } from "
|
2
|
-
import abortEarlySetup from "
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
4
|
describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring', () => {
|
5
5
|
before(() => {
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
|
16
|
+
listMatchingPage.steps.setCorrectAnswersForCorrectTab();
|
17
|
+
listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
|
18
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
|
19
|
+
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
20
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([4, 9, 6, 10]);
|
22
|
+
listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
|
23
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
24
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
|
+
listMatchingPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenAlternatePointsMoreThanCorrectPoints('grouped');
|
29
|
+
});
|
30
|
+
});
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { listMatchingPage, listMatchingScoring } from "
|
2
|
-
import abortEarlySetup from "
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
|
4
|
-
describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer', () => {
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When correct answer points are equal to alternate answer points', () => {
|
5
5
|
before(() => {
|
6
6
|
cy.loginAs('admin');
|
7
7
|
});
|
8
8
|
|
9
|
-
describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer', () => {
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When correct answer points are equal to alternate answer points', () => {
|
10
10
|
abortEarlySetup();
|
11
11
|
before(() => {
|
12
12
|
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
|
@@ -18,14 +18,14 @@ describe('Create Item page - List Matching - grouped options layout - Partial di
|
|
18
18
|
listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
|
19
19
|
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
20
20
|
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
-
listMatchingPage.steps.addPartialDifferentWeightsPoints([
|
21
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([6, 9, 4, 5]);
|
22
22
|
listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
|
23
23
|
listMatchingPage.steps.expandAdditonalSettings();
|
24
24
|
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
25
|
listMatchingPage.steps.switchToPreviewTab();
|
26
26
|
});
|
27
27
|
|
28
|
-
listMatchingScoring.tests.
|
28
|
+
listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsEqualToAlternatePoints('grouped');
|
29
29
|
|
30
30
|
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('24');
|
31
31
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
|
4
|
+
describe('Create Item page - List Matching - grouped options layout - Partial different weights scoring with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
|
5
|
+
before(() => {
|
6
|
+
cy.loginAs('admin');
|
7
|
+
});
|
8
|
+
|
9
|
+
describe('Question Preview: AutoScored - Partial different weights grouped options layout with alternate answer - When Correct Answer points are more than Alternate Answer points', () => {
|
10
|
+
abortEarlySetup();
|
11
|
+
before(() => {
|
12
|
+
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial different scoring, adding points and switch to preview tab');
|
13
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
14
|
+
cy.barsPreLoaderWait();
|
15
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
|
16
|
+
listMatchingPage.steps.setCorrectAnswersForCorrectTab();
|
17
|
+
listMatchingPage.steps.selectPartialDifferentWeightsCheckbox();
|
18
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([5, 7, 4, 8]);
|
19
|
+
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
20
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
21
|
+
listMatchingPage.steps.addPartialDifferentWeightsPoints([3, 9, 2, 6]);
|
22
|
+
listMatchingPage.steps.uncheckRoundDownScoreCheckbox();
|
23
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
24
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
|
+
listMatchingPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyPartialDifferentWeightWithAlternateAnswerWhenCorrectPointsMoreThanAlternatePoints('grouped');
|
29
|
+
});
|
30
|
+
});
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
|
5
|
+
describe('Create Item page - List Matching - standard options layout - Partial equal weights scoring with alternate answer - When alternate answer points are more than correct answer points', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
describe('Question Preview: AutoScored - Partial equal weights grouped options layout with alternate answer - When alternate answer points are more than correct answer points', () => {
|
11
|
+
abortEarlySetup();
|
12
|
+
before(() => {
|
13
|
+
cy.log('Navigate to List Matching question type, adding correct answer responses and alternate answer responses for autoscored - partial equal scoring, adding points and switch to preview tab');
|
14
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithAlternateTab();
|
17
|
+
listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
|
18
|
+
listMatchingPage.steps.allotPoints(20);
|
19
|
+
listMatchingPage.steps.setCorrectAnswersForCorrectTab();
|
20
|
+
listMatchingPage.steps.clickOnAddAlternateAnswerButton();
|
21
|
+
listMatchingPage.steps.allotPoints(24);
|
22
|
+
listMatchingPage.steps.setCorrectAnswersForAlternateTab();
|
23
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
24
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
25
|
+
listMatchingPage.steps.switchToPreviewTab();
|
26
|
+
});
|
27
|
+
|
28
|
+
listMatchingScoring.tests.verifyPartialEqualWeightsWithAlternateAnswerWhenAlternatePointsAreMoreThanCorrectPoints('grouped');
|
29
|
+
});
|
30
|
+
});
|