itemengine-cypress-automation 1.0.70 → 1.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponse/{audioResponseMinimalPreviewSection.js → audioResponseMinimalPreviewSection.smoke.js} +263 -254
- package/cypress/e2e/ILC/AudioResponse/{audioResponseStandardPreviewSection.js → audioResponseStandardPreviewSection.smoke.js} +100 -97
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.smoke.js +121 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachCell.js → groupedOptionsPartialScoreForEachCell.smoke.js} +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{groupedOptionsPartialScoreForEachResponse.js → groupedOptionsPartialScoreForEachResponse.smoke.js} +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.smoke.js +164 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/{standardTotalScoreDividedBetweenResponse.js → standardTotalScoreDividedBetweenResponse.smoke.js} +21 -18
- package/cypress/e2e/ILC/EditTabSettingPage/ItemPreviewSettingsTabContent.js +753 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.smoke.js +943 -0
- package/cypress/e2e/ILC/EssayResponse/{essayResponseCustomizeFormattingOptions1.js → essayResponseCustomizeFormattingOptions1.smoke.js} +113 -110
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +581 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.smoke.js +111 -0
- package/cypress/e2e/ILC/EssayResponse/{essayResponsePreviewContentsForAllViews.js → essayResponsePreviewContentsForAllViews.smoke.js} +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropEditTabBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.smoke.js +81 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/{fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.js → fillInTheGapsDragAndDropGroupedOptionsAllOrNothingScoring.smoke.js} +25 -22
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsAllOrNothingWithAlternateAnswer.js +6 -18
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsScoring.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialDifferentWeightsWithAlternateAnswer.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedOptionsPartialEqualWeightsScoring.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedSetCorrectAnswerCheckboxes.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropSetCorrectAnswerCheckboxes.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsScoring.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionPartialDifferentWeightsWithAlternateAnswer.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsManualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsScoring.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropStandardOptionsPartialEqualWeightsWithAlternateAnswer.js +0 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAdditionalSettingsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdown/{fillInTheGapsDropdownAllOrNothingScoring.js → fillInTheGapsDropdownAllOrNothingScoring.smoke.js} +18 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownAllOrNothingScoringWithAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownManuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialDifferentWeights.js +5 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialDifferentWeightsWithAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeights.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdown/fillInTheGapsDropdownPartialEqualWeightsWithAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAddResponseContainer.smoke.js} +80 -74
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettingsBasic.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.smoke.js +361 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingWithAlternateAnswer.js +6 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.smoke.js +137 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.smoke.js +171 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsWithAlternateAnswer.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsWithAlternateAnswer.js +6 -3
- package/cypress/e2e/ILC/{fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.js → FillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAddResponseContainer.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsBasic.js +12 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsMultilineResponse.js +4 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsStudentResponseAreaAndLayout.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextAllOrNothingScoring.js → fillInTheGapsOverImageTextAllOrNothingScoring.smoke.js} +32 -29
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextCheckAnswerForAllViews.js → fillInTheGapsOverImageTextCheckAnswerForAllViews.smoke.js} +5 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.smoke.js +137 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.smoke.js +146 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextManualAndNonScored.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsScoring.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswer.js +0 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswer.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewContentsForAllViews.js → fillInTheGapsOverImageTextPreviewContentsForAllViews.smoke.js} +5 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextPreviewTab.js → fillInTheGapsOverImageTextPreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/{fillInTheGapsOverImageTextShowCorrectAnswerForAllView.js → fillInTheGapsOverImageTextShowCorrectAnswerForAllView.smoke.js} +6 -4
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAdditionalSettingsAdvanceSettingsForAllResponseAreas.js +17 -0
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAdditionalSettingsBasic.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextAllOrNothingWithAlternateAnswer.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsText/{fillInTheGapsTextAutoScoredScoring.js → fillInTheGapsTextAutoScoredScoring.smoke.js} +14 -9
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextCaseSensitiveAndIgnoreExtraSpacesCheckboxes.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextManuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialDifferentWeights.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialDifferentWeightsWithAlternateAnswer.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialEqualWeights.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialEqualWeightsWithAlternateAnswer.js +2 -0
- package/cypress/e2e/ILC/Highlight/HighlightScoring/{allOrNothingScoring.js → allOrNothingScoring.smoke.js} +36 -34
- package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.smoke.js +462 -0
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.smoke.js +148 -0
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.smoke.js +185 -0
- package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.smoke.js +138 -0
- package/cypress/e2e/ILC/HighlightImage/{highlightImagePreviewTab.js → highlightImagePreviewTab.smoke.js} +1 -1
- package/cypress/e2e/ILC/HighlightImage/{highlightImageToolsFunctionalityPreviewTab.js → highlightImageToolsFunctionalityPreviewTab.smoke.js} +4 -4
- package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.smoke.js +122 -0
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsManualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferentWeightsScoring.js +2 -3
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialDifferrentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsScorings.js +2 -2
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsManualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialDifferentWeightsScoring.js +2 -3
- package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsScoring.js +2 -2
- package/cypress/e2e/ILC/ListMatching/listMatchingAdditionalSettingsBasic.js +2 -2
- package/cypress/e2e/ILC/ListMatching/{listMatchingAlternateAnswer.js → listMatchingAlternateAnswer.smoke.js} +47 -43
- package/cypress/e2e/ILC/ListMatching/listMatchingEditTabScoringTypes.js +1 -1
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.smoke.js +211 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.smoke.js +254 -0
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.smoke.js +191 -0
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring/allOrNothingScoring.js → ListOrderingScoring/allOrNothingScoring.smoke.js} +34 -32
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/manuallyAndNonScoredScoring.js +3 -3
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +4 -3
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialDifferentWeightsScoring.js +14 -13
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +2 -2
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/partialEqualWeightsScoring.js +0 -1
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsAnswerNumerationAndOptionLabel.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsBasic.js +2 -2
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsOptionStyleDropdown.js +1 -1
- package/cypress/e2e/ILC/ListOrdering/listOrderingAdditionalSettingsSetPointsPopup.js +3 -7
- package/cypress/e2e/ILC/ListOrdering/listOrderingEditTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring/allOrNothingScoring.js → ListSortingScoring/allOrNothingScoring.smoke.js} +41 -38
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/manuallyAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialDifferentWeightsScoring.js +12 -12
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -1
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/partialEqualWeightsScoring.js +13 -13
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettingsBasic.js +2 -2
- package/cypress/e2e/ILC/ListSorting/listSortingEditTabScoringSection.js +6 -6
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.smoke.js +269 -0
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionAdditionalSettingsGridOptions.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAdditionalSettingsBasic.js +16 -19
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGrid/{multipleSelectionGridAutoScoredScoring.js → multipleSelectionGridAutoScoredScoring.smoke.js} +40 -38
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridEditTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridEditTabScoringSection.js +2 -2
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridManuallyAndNonScoredScoring.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeights.js +12 -12
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +25 -26
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +23 -24
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +25 -26
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeights.js +14 -13
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +23 -24
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +21 -22
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +23 -24
- package/cypress/e2e/ILC/MultipleSelectionGrid/multipleSelectionGridSetCorrectAnswerSection.js +7 -7
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAdditionalSettingsBasic.js +10 -10
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.smoke.js +407 -0
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseConditionalCheckboxes.js +3 -3
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseContainsConditionalRadioButton.js +4 -4
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseEditTabScoringSection.js +7 -19
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseExactConditionalRadioButton.js +4 -4
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseManuallyScoredNonScoredScoringSection.js +9 -15
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAdditionalSettingsBasic.js +16 -18
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGrid/{singleSelectionGridAutoScoredScoring.js → singleSelectionGridAutoScoredScoring.smoke.js} +36 -33
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridEditTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridEditTabScoringSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridManuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeights.js +11 -10
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +16 -16
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +18 -18
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeights.js +10 -9
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +14 -14
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +16 -17
- package/cypress/e2e/ILC/SingleSelectionGrid/singleSelectionGridSetCorrectAnswerSection.js +31 -31
- package/cypress/e2e/ILC/UploadResponse/{uploadResponsePreview.js → uploadResponsePreview.smoke.js} +64 -59
- package/cypress/e2e/ILC/VideoResponse/{videoResponsePreviewTab.js → videoResponsePreviewTab.smoke.js} +290 -281
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAdditionalSettings.js +2 -2
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownManualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialDifferentWeightsScoring.js +8 -2
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownPartialEqualWeightsScoring.js +10 -4
- package/cypress/pages/components/additionalSettingsPanel.js +0 -27
- package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +321 -0
- package/cypress/pages/components/createQuestionBasePage.js +1 -7
- package/cypress/pages/components/essayResponseCommonComponents.js +0 -6
- package/cypress/pages/components/fillInTheGapsCommonComponents.js +0 -13
- package/cypress/pages/components/index.js +2 -1
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -10
- package/cypress/pages/components/scoringSectionBase.js +3 -2
- package/cypress/pages/createItemPage.js +3 -79
- package/cypress/pages/dialogBoxBase.js +8 -23
- package/cypress/pages/index.js +1 -4
- package/cypress/pages/itemPreviewSettingsPage.js +446 -0
- package/cypress/pages/multipleSelectionPage.js +113 -64
- package/cypress/pages/selectQuestionResourceToolPage.js +0 -5
- package/cypress/pages/shortTextResponsePage.js +0 -6
- package/cypress/pages/singleSelectionPage.js +0 -1
- package/package.json +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsAllOrNothing.js +0 -116
- package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.js +0 -160
- package/cypress/e2e/ILC/EssayResponse/essayResponseCreateCustomCategory.js +0 -932
- package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.js +0 -572
- package/cypress/e2e/ILC/EssayResponse/essayResponseGradingViewAndCorrectAnswerViewContents.js +0 -106
- package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropGroupedEditTab.js +0 -76
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditAriaLabelCheckbox.js +0 -134
- package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +0 -133
- package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.js +0 -457
- package/cypress/e2e/ILC/Highlight/highlightColorLibraryFlyout.js +0 -143
- package/cypress/e2e/ILC/Highlight/highlightQuestionInstructionsAndQuestion.js +0 -178
- package/cypress/e2e/ILC/HighlightImage/highlightImageEditTabBasic.js +0 -125
- package/cypress/e2e/ILC/ListMatching/Scoring/groupedOptionsAllOrNothingScoring.js +0 -117
- package/cypress/e2e/ILC/ListMatching/listMatchingGroupedOptionsSection.js +0 -207
- package/cypress/e2e/ILC/ListMatching/listMatchingQuestionInstructionsAndStemsSection.js +0 -246
- package/cypress/e2e/ILC/ListMatching/listMatchingStandardOptionsSetCorrectAnswerCheckboxesPreviewTab.js +0 -185
- package/cypress/e2e/ILC/ListSorting/listSortingAdditionalSettings.js +0 -820
- package/cypress/e2e/ILC/ListSorting/listSortingAutoScoredScoring.js +0 -936
- package/cypress/e2e/ILC/ListSorting/listSortingSetCorrectAnswerCheckboxes.js +0 -263
- package/cypress/e2e/ILC/ShortTextResponse/shortTextResponseAutoScoredScoring.js +0 -418
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownAllOrNothingScoring.js +0 -352
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownEditAriaLabelCheckbox.js +0 -134
- package/cypress/e2e/ILC/fillInTheGapsOverImageDropdown/fillInTheGapsOverImageDropdownImageProperties.js +0 -156
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/groupedOptionsPartialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsAllOrNothingScoring.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsAlternatePointsMoreThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListMatching/{Scoring → ListMatchingScoring}/standardOptionsPartialEqualWeightsCorrectPointsMoreThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/ListSorting/{Scoring → ListSortingScoring}/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -0
@@ -18,11 +18,11 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
|
|
18
18
|
fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
|
19
19
|
fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([5.4, 4.8]);
|
20
20
|
fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
21
|
-
fillInTheGapsTextPage.rounddownScoreCheckbox()
|
22
|
-
.click();
|
23
21
|
fillInTheGapsTextPage.steps.expandAdditonalSettings();
|
24
22
|
fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
|
25
23
|
.click();
|
24
|
+
fillInTheGapsTextPage.steps.expandMinimumScoringDropdown();
|
25
|
+
fillInTheGapsTextPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
26
26
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
27
27
|
});
|
28
28
|
|
@@ -39,6 +39,8 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
|
|
39
39
|
fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
|
40
40
|
fillInTheGapsTextPage.steps.addPartialDifferentWeightsPoints([1.36, 2.89]);
|
41
41
|
fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
42
|
+
fillInTheGapsTextPage.steps.expandRoundingDropdown();
|
43
|
+
fillInTheGapsTextPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.99');
|
42
44
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
43
45
|
});
|
44
46
|
|
@@ -7,7 +7,7 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
|
|
7
7
|
before(() => {
|
8
8
|
cy.loginAs('admin');
|
9
9
|
});
|
10
|
-
|
10
|
+
|
11
11
|
describe('Question Preview: AutoScored - Partial different weights with alternate answer with \'Match from all responses - \"false\"', () => {
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
@@ -27,6 +27,8 @@ describe('Fill in the gaps - text: Partial Different scoring', () => {
|
|
27
27
|
fillInTheGapsTextPage.steps.expandAdditonalSettings();
|
28
28
|
fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
|
29
29
|
.click();
|
30
|
+
fillInTheGapsTextPage.steps.expandMinimumScoringDropdown();
|
31
|
+
fillInTheGapsTextPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
30
32
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
31
33
|
});
|
32
34
|
|
@@ -20,6 +20,8 @@ describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () =
|
|
20
20
|
.click();
|
21
21
|
fillInTheGapsTextPage.partialEqualWeightsCheckbox()
|
22
22
|
.click();
|
23
|
+
fillInTheGapsTextPage.steps.expandMinimumScoringDropdown();
|
24
|
+
fillInTheGapsTextPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
23
25
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
24
26
|
});
|
25
27
|
|
@@ -37,6 +39,8 @@ describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () =
|
|
37
39
|
fillInTheGapsTextPage.steps.setCorrectAnswerResponses(['Response 1', 'Response 2']);
|
38
40
|
fillInTheGapsTextPage.pointsInputField()
|
39
41
|
.type('8.5');
|
42
|
+
fillInTheGapsTextPage.steps.expandRoundingDropdown();
|
43
|
+
fillInTheGapsTextPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.99');
|
40
44
|
fillInTheGapsTextPage.steps.verifySetCorrectAnswerErrorIconIsNotDisplayed();
|
41
45
|
});
|
42
46
|
|
package/cypress/e2e/ILC/FillInTheGapsText/fillInTheGapsTextPartialEqualWeightsWithAlternateAnswer.js
CHANGED
@@ -25,6 +25,8 @@ describe('Fill in the gaps - Text Scoring Section Partial - equal weights', () =
|
|
25
25
|
fillInTheGapsTextPage.steps.expandAdditonalSettings();
|
26
26
|
fillInTheGapsTextPage.allowStudentsToCheckAnswerCheckbox()
|
27
27
|
.click();
|
28
|
+
fillInTheGapsTextPage.steps.expandMinimumScoringDropdown();
|
29
|
+
fillInTheGapsTextPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
28
30
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
29
31
|
});
|
30
32
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { highlightPage } from "../../../../pages";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
|
3
|
+
const grepTags = Cypress.env('grepTags');
|
4
4
|
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
5
5
|
|
6
6
|
describe('Create Item page - Highlight: Preview tab Scoring Section - All or nothing scoring', () => {
|
@@ -8,44 +8,46 @@ describe('Create Item page - Highlight: Preview tab Scoring Section - All or not
|
|
8
8
|
cy.loginAs('admin');
|
9
9
|
});
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
11
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
12
|
+
describe('Show correct answer', () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
cy.log('Navigating to Highlight question type');
|
16
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
highlightPage.steps.clearQuestionInputField();
|
19
|
+
paragraphTextArray.forEach((paragraphText) => {
|
20
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
21
|
+
});
|
22
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
23
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
20
24
|
});
|
21
|
-
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
22
|
-
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Paragraph');
|
23
|
-
});
|
24
25
|
|
25
|
-
|
26
|
+
highlightPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet();
|
27
|
+
|
28
|
+
it('When the user has set correct answer responses and alloted points \'Show correct answer\' checkbox should be displayed and it should be unchecked by default and points for the question should be displayed beside it', () => {
|
29
|
+
highlightPage.steps.switchToEditTab();
|
30
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[0]);
|
31
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(paragraphTextArray[1]);
|
32
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphTextArray[2]);
|
33
|
+
highlightPage.steps.verifyOptionIsNotSelectedInSetCorrectAnswerSection(paragraphTextArray[3]);
|
34
|
+
highlightPage.steps.allotPoints(10);
|
35
|
+
highlightPage.steps.switchToPreviewTab();
|
36
|
+
highlightPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
37
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 10);
|
38
|
+
});
|
26
39
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
highlightPage.steps.switchToPreviewTab();
|
35
|
-
highlightPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
36
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 10);
|
40
|
+
it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab users response should not persist', () => {
|
41
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
42
|
+
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
43
|
+
highlightPage.steps.resetQuestionPreview();
|
44
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
45
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
46
|
+
});
|
37
47
|
});
|
48
|
+
}
|
38
49
|
|
39
|
-
|
40
|
-
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
41
|
-
highlightPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
42
|
-
highlightPage.steps.resetQuestionPreview();
|
43
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[1]);
|
44
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
|
45
|
-
});
|
46
|
-
});
|
47
|
-
|
48
|
-
describe('Question Preview: AutoScored - All or Nothing', () => {
|
50
|
+
describe('Question Preview: AutoScored - All or Nothing', { tags: 'smoke' }, () => {
|
49
51
|
abortEarlySetup();
|
50
52
|
before(() => {
|
51
53
|
cy.log('Navigating to Highlight question type');
|
@@ -0,0 +1,462 @@
|
|
1
|
+
import { highlightPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const grepTags = Cypress.env('grepTags');
|
4
|
+
|
5
|
+
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.']
|
6
|
+
const sentenceTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water.', 'As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology.'];
|
7
|
+
const wordTextArray = ['animals', 'species', 'existence', 'birth'];
|
8
|
+
const anyTextSelectionArray = ['All animals have a unique', 'purpose for their existence', 'Mammals are ones which', 'Amphibians are those which can live'];
|
9
|
+
|
10
|
+
describe('Create Item page - Highlight - Basic scoring for all text selection types', () => {
|
11
|
+
before(() => {
|
12
|
+
cy.loginAs('admin');
|
13
|
+
});
|
14
|
+
|
15
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
16
|
+
describe('Question Preview: Any text selection type with All or nothing scoring', () => {
|
17
|
+
abortEarlySetup();
|
18
|
+
before(() => {
|
19
|
+
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
20
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
21
|
+
cy.barsPreLoaderWait();
|
22
|
+
highlightPage.steps.addQuestionInstructions();
|
23
|
+
highlightPage.steps.clearQuestionInputField();
|
24
|
+
paragraphTextArray.forEach((paragraphText) => {
|
25
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
26
|
+
});
|
27
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
28
|
+
anyTextSelectionArray.forEach((text) => {
|
29
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', text);
|
30
|
+
});
|
31
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anyTextSelectionArray[0]);
|
32
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anyTextSelectionArray[1]);
|
33
|
+
highlightPage.steps.allotPoints(20);
|
34
|
+
highlightPage.steps.expandAdditonalSettings();
|
35
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
36
|
+
highlightPage.steps.switchToPreviewTab();
|
37
|
+
});
|
38
|
+
|
39
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-mark icon should be displayed besides the correct answer option', () => {
|
40
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
41
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
42
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
43
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
44
|
+
for (let index = 2; index < anyTextSelectionArray.length; index++) {
|
45
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[index]);
|
46
|
+
};
|
47
|
+
});
|
48
|
+
|
49
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
50
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
51
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
52
|
+
highlightPage.steps.checkAnswer();
|
53
|
+
for (let index = 0; index < anyTextSelectionArray.length; index++) {
|
54
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[index]);
|
55
|
+
};
|
56
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
57
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
58
|
+
});
|
59
|
+
|
60
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-mark should be displayed besides correct answers', () => {
|
61
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[2]);
|
62
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[3]);
|
63
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
64
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
65
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
66
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
67
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
68
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[3]);
|
69
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
70
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
71
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
72
|
+
|
73
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-marks should not be displayed besides correct answer options')
|
74
|
+
highlightPage.steps.checkAnswer();
|
75
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[0]);
|
76
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
77
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
78
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[3]);
|
79
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
80
|
+
});
|
81
|
+
|
82
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
83
|
+
highlightPage.steps.resetQuestionPreview();
|
84
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
85
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
86
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
87
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
88
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
89
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
90
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
91
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
92
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
93
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
94
|
+
|
95
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview');
|
96
|
+
highlightPage.steps.checkAnswer();
|
97
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
98
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
99
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
100
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
101
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
102
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
103
|
+
});
|
104
|
+
|
105
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
106
|
+
highlightPage.steps.resetQuestionPreview();
|
107
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
108
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[2]);
|
109
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
110
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
111
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
112
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
113
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
114
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
115
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
116
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
117
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
118
|
+
|
119
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
120
|
+
highlightPage.steps.checkAnswer();
|
121
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
122
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
123
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
124
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
125
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
126
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
127
|
+
});
|
128
|
+
|
129
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
130
|
+
highlightPage.steps.resetQuestionPreview();
|
131
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
132
|
+
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[1]);
|
133
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
134
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
135
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
136
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
137
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
138
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
139
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
140
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
141
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
142
|
+
|
143
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview')
|
144
|
+
highlightPage.steps.checkAnswer();
|
145
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
146
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
147
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
148
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
149
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
150
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
151
|
+
});
|
152
|
+
});
|
153
|
+
}
|
154
|
+
|
155
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
156
|
+
describe('Question Preview: Word text selection type with All or nothing scoring', () => {
|
157
|
+
abortEarlySetup();
|
158
|
+
before(() => {
|
159
|
+
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
160
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
161
|
+
cy.barsPreLoaderWait();
|
162
|
+
highlightPage.steps.addQuestionInstructions();
|
163
|
+
highlightPage.steps.clearQuestionInputField();
|
164
|
+
paragraphTextArray.forEach((paragraphText) => {
|
165
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
166
|
+
});
|
167
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
168
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
169
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
170
|
+
for (let index = 0; index < wordTextArray.length; index++) {
|
171
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', wordTextArray[index]);
|
172
|
+
};
|
173
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[0]);
|
174
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[1]);
|
175
|
+
highlightPage.steps.allotPoints(20);
|
176
|
+
highlightPage.steps.expandAdditonalSettings();
|
177
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
178
|
+
highlightPage.steps.switchToPreviewTab();
|
179
|
+
});
|
180
|
+
|
181
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-mark icon should be displayed besides the correct answer option', () => {
|
182
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
183
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
184
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
185
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
186
|
+
for (let index = 2; index < wordTextArray.length; index++) {
|
187
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
188
|
+
};
|
189
|
+
});
|
190
|
+
|
191
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
192
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
193
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
194
|
+
highlightPage.steps.checkAnswer();
|
195
|
+
for (let index = 0; index < wordTextArray.length; index++) {
|
196
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
197
|
+
};
|
198
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
199
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
200
|
+
});
|
201
|
+
|
202
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-mark should be displayed besides correct answers', () => {
|
203
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[2]);
|
204
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[3]);
|
205
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
206
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
207
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
208
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
209
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
210
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[3]);
|
211
|
+
for (let index = 4; index < wordTextArray.length; index++) {
|
212
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
213
|
+
}
|
214
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
215
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
216
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
217
|
+
|
218
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-marks should not be displayed besides correct answer options')
|
219
|
+
highlightPage.steps.checkAnswer();
|
220
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[0]);
|
221
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[1]);
|
222
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
223
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[3]);
|
224
|
+
for (let index = 4; index < wordTextArray.length; index++) {
|
225
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
226
|
+
}
|
227
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
228
|
+
});
|
229
|
+
|
230
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
231
|
+
highlightPage.steps.resetQuestionPreview();
|
232
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
233
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
234
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
235
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
236
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
237
|
+
for (let index = 2; index < wordTextArray.length; index++) {
|
238
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
239
|
+
}
|
240
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
241
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
242
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
243
|
+
|
244
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview');
|
245
|
+
highlightPage.steps.checkAnswer();
|
246
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
247
|
+
for (let index = 1; index < wordTextArray.length; index++) {
|
248
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
249
|
+
}
|
250
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
251
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
252
|
+
});
|
253
|
+
|
254
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
255
|
+
highlightPage.steps.resetQuestionPreview();
|
256
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
257
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[2]);
|
258
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
259
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
260
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
261
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
262
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
263
|
+
for (let index = 3; index < wordTextArray.length; index++) {
|
264
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
265
|
+
}
|
266
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
267
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
268
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
269
|
+
|
270
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
271
|
+
highlightPage.steps.checkAnswer();
|
272
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
273
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[1]);
|
274
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
275
|
+
for (let index = 3; index < wordTextArray.length; index++) {
|
276
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
277
|
+
}
|
278
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
279
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
280
|
+
});
|
281
|
+
|
282
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
283
|
+
highlightPage.steps.resetQuestionPreview();
|
284
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
285
|
+
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[1]);
|
286
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
287
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
288
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
289
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
290
|
+
for (let index = 2; index < wordTextArray.length; index++) {
|
291
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
292
|
+
}
|
293
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
294
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
295
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
296
|
+
|
297
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview')
|
298
|
+
highlightPage.steps.checkAnswer();
|
299
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
300
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
301
|
+
for (let index = 2; index < wordTextArray.length; index++) {
|
302
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
303
|
+
}
|
304
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
305
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
306
|
+
});
|
307
|
+
});
|
308
|
+
}
|
309
|
+
|
310
|
+
describe('Question Preview: Sentence text selection type with All or nothing scoring', { tags: 'smoke' }, () => {
|
311
|
+
abortEarlySetup();
|
312
|
+
before(() => {
|
313
|
+
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
314
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
315
|
+
cy.barsPreLoaderWait();
|
316
|
+
highlightPage.steps.addQuestionInstructions();
|
317
|
+
highlightPage.steps.clearQuestionInputField();
|
318
|
+
paragraphTextArray.forEach((paragraphText) => {
|
319
|
+
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
320
|
+
});
|
321
|
+
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
322
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Sentence');
|
323
|
+
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
324
|
+
for (let index = 0; index < sentenceTextArray.length; index++) {
|
325
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[index]);
|
326
|
+
};
|
327
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[0]);
|
328
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[1]);
|
329
|
+
highlightPage.steps.allotPoints(20);
|
330
|
+
highlightPage.steps.expandAdditonalSettings();
|
331
|
+
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
332
|
+
highlightPage.steps.switchToPreviewTab();
|
333
|
+
});
|
334
|
+
|
335
|
+
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect border should not be displayed, the correct answer should be highlighted and green check-mark icon should be displayed besides the correct answer option', () => {
|
336
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
337
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
338
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
339
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
340
|
+
for (let index = 2; index < sentenceTextArray.length; index++) {
|
341
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
342
|
+
};
|
343
|
+
});
|
344
|
+
|
345
|
+
it('When user selects Check answer button without attempting the question, correct/incorrect label and border should not be displayed below and check-mark or cross-mark should not be displayed for any option', () => {
|
346
|
+
cy.log('Pre-step: Deselect the show correct checkbox')
|
347
|
+
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
348
|
+
highlightPage.steps.checkAnswer();
|
349
|
+
for (let index = 0; index < sentenceTextArray.length; index++) {
|
350
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
351
|
+
};
|
352
|
+
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
353
|
+
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
354
|
+
});
|
355
|
+
|
356
|
+
it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-mark should be displayed besides correct answers', () => {
|
357
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
358
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
|
359
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
360
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
361
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
362
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
363
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
364
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[3]);
|
365
|
+
for (let index = 4; index < sentenceTextArray.length; index++) {
|
366
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
367
|
+
};
|
368
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
369
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
370
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
371
|
+
|
372
|
+
cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed besides incorrectly answered options, a label \'Incorrect answer\' and border should be displayed and green check-marks should not be displayed besides correct answer options')
|
373
|
+
highlightPage.steps.checkAnswer();
|
374
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[0]);
|
375
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[1]);
|
376
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
377
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[3]);
|
378
|
+
for (let index = 4; index < sentenceTextArray.length; index++) {
|
379
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
380
|
+
};
|
381
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
382
|
+
});
|
383
|
+
|
384
|
+
it('When user attempts the question partially correct without incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
385
|
+
highlightPage.steps.resetQuestionPreview();
|
386
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
387
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
388
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
389
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
390
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
391
|
+
for (let index = 2; index < sentenceTextArray.length; index++) {
|
392
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
393
|
+
};
|
394
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
395
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
396
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
397
|
+
|
398
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should not be displayed beside any option and a label \'Incorrect answer\' and border should be displayed below the question preview');
|
399
|
+
highlightPage.steps.checkAnswer();
|
400
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
401
|
+
for (let index = 1; index < sentenceTextArray.length; index++) {
|
402
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
403
|
+
};
|
404
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
405
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
406
|
+
});
|
407
|
+
|
408
|
+
it('When user attempts the question partially correct with incorrect answer, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark should be displayed besides correct answer options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview', () => {
|
409
|
+
highlightPage.steps.resetQuestionPreview();
|
410
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
411
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
412
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
413
|
+
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
414
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
415
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
416
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
417
|
+
for (let index = 3; index < sentenceTextArray.length; index++) {
|
418
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
419
|
+
};
|
420
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
421
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
422
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
423
|
+
|
424
|
+
cy.log('When user attempts the question partially correct and clicks on the \'Check Answer\' button, green check-mark should be displayed besides correctly attempted options, red cross-mark should be displayed besides incorrectly answered option and a label \'Incorrect answer\' and border should be displayed below the question preview')
|
425
|
+
highlightPage.steps.checkAnswer();
|
426
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
427
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[1]);
|
428
|
+
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
429
|
+
for (let index = 3; index < sentenceTextArray.length; index++) {
|
430
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
431
|
+
};
|
432
|
+
highlightPage.steps.verifyIncorrectAttemptBorder();
|
433
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
434
|
+
});
|
435
|
+
|
436
|
+
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview', () => {
|
437
|
+
highlightPage.steps.resetQuestionPreview();
|
438
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
439
|
+
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
|
440
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
441
|
+
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
442
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
443
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
444
|
+
for (let index = 2; index < sentenceTextArray.length; index++) {
|
445
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
446
|
+
};
|
447
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
448
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
449
|
+
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
450
|
+
|
451
|
+
cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, green check-mark icons should be displayed besides the correctly answered options and a label \'Correct answer\' and border should be displayed below the question preview')
|
452
|
+
highlightPage.steps.checkAnswer();
|
453
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
454
|
+
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
455
|
+
for (let index = 2; index < sentenceTextArray.length; index++) {
|
456
|
+
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
457
|
+
};
|
458
|
+
highlightPage.steps.verifyCorrectAttemptBorder();
|
459
|
+
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
460
|
+
});
|
461
|
+
});
|
462
|
+
});
|