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
package/cypress/e2e/ILC/Highlight/HighlightScoring/highlightBasicScoringForTextSelectionTypes.js
DELETED
@@ -1,457 +0,0 @@
|
|
1
|
-
import { highlightPage } from "../../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
|
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
|
-
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.'];
|
6
|
-
const wordTextArray = ['animals', 'species', 'existence', 'birth'];
|
7
|
-
const anyTextSelectionArray = ['All animals have a unique', 'purpose for their existence', 'Mammals are ones which', 'Amphibians are those which can live'];
|
8
|
-
|
9
|
-
describe('Create Item page - Highlight - Basic scoring for all text selection types', () => {
|
10
|
-
before(() => {
|
11
|
-
cy.loginAs('admin');
|
12
|
-
});
|
13
|
-
|
14
|
-
describe('Question Preview: Any text selection type with All or nothing scoring', () => {
|
15
|
-
abortEarlySetup();
|
16
|
-
before(() => {
|
17
|
-
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
18
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
19
|
-
cy.barsPreLoaderWait();
|
20
|
-
highlightPage.steps.addQuestionInstructions();
|
21
|
-
highlightPage.steps.clearQuestionInputField();
|
22
|
-
paragraphTextArray.forEach((paragraphText) => {
|
23
|
-
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
24
|
-
});
|
25
|
-
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
26
|
-
anyTextSelectionArray.forEach((text) => {
|
27
|
-
highlightPage.steps.selectOptionInHighlightOptionsSection('Any', text);
|
28
|
-
});
|
29
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anyTextSelectionArray[0]);
|
30
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(anyTextSelectionArray[1]);
|
31
|
-
highlightPage.steps.allotPoints(20);
|
32
|
-
highlightPage.steps.expandAdditonalSettings();
|
33
|
-
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
34
|
-
highlightPage.steps.switchToPreviewTab();
|
35
|
-
});
|
36
|
-
|
37
|
-
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', () => {
|
38
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
39
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
40
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
41
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
42
|
-
for (let index = 2; index < anyTextSelectionArray.length; index++) {
|
43
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[index]);
|
44
|
-
};
|
45
|
-
});
|
46
|
-
|
47
|
-
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', () => {
|
48
|
-
cy.log('Pre-step: Deselect the show correct checkbox')
|
49
|
-
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
50
|
-
highlightPage.steps.checkAnswer();
|
51
|
-
for (let index = 0; index < anyTextSelectionArray.length; index++) {
|
52
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[index]);
|
53
|
-
};
|
54
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
55
|
-
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
56
|
-
});
|
57
|
-
|
58
|
-
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', () => {
|
59
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[2]);
|
60
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[3]);
|
61
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
62
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
63
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
64
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
65
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
66
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[3]);
|
67
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
68
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
69
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
70
|
-
|
71
|
-
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')
|
72
|
-
highlightPage.steps.checkAnswer();
|
73
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[0]);
|
74
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
75
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
76
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[3]);
|
77
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
78
|
-
});
|
79
|
-
|
80
|
-
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', () => {
|
81
|
-
highlightPage.steps.resetQuestionPreview();
|
82
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
83
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
84
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
85
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
86
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
87
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
88
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
89
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
90
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
91
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
92
|
-
|
93
|
-
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');
|
94
|
-
highlightPage.steps.checkAnswer();
|
95
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
96
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
97
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
98
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
99
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
100
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
101
|
-
});
|
102
|
-
|
103
|
-
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', () => {
|
104
|
-
highlightPage.steps.resetQuestionPreview();
|
105
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
106
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[2]);
|
107
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
108
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
109
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
110
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
111
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
112
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
113
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
114
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
115
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
116
|
-
|
117
|
-
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')
|
118
|
-
highlightPage.steps.checkAnswer();
|
119
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
120
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[1]);
|
121
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(anyTextSelectionArray[2]);
|
122
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
123
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
124
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
125
|
-
});
|
126
|
-
|
127
|
-
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', () => {
|
128
|
-
highlightPage.steps.resetQuestionPreview();
|
129
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[0]);
|
130
|
-
highlightPage.steps.selectOptionInPreviewTab(anyTextSelectionArray[1]);
|
131
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
132
|
-
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
133
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
134
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
135
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
136
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
137
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
138
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
139
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
140
|
-
|
141
|
-
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')
|
142
|
-
highlightPage.steps.checkAnswer();
|
143
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[0]);
|
144
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(anyTextSelectionArray[1]);
|
145
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[2]);
|
146
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(anyTextSelectionArray[3]);
|
147
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
148
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
149
|
-
});
|
150
|
-
});
|
151
|
-
|
152
|
-
describe('Question Preview: Word text selection type with All or nothing scoring', () => {
|
153
|
-
abortEarlySetup();
|
154
|
-
before(() => {
|
155
|
-
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
156
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
157
|
-
cy.barsPreLoaderWait();
|
158
|
-
highlightPage.steps.addQuestionInstructions();
|
159
|
-
highlightPage.steps.clearQuestionInputField();
|
160
|
-
paragraphTextArray.forEach((paragraphText) => {
|
161
|
-
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
162
|
-
});
|
163
|
-
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
164
|
-
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
165
|
-
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
166
|
-
for (let index = 0; index < wordTextArray.length; index++) {
|
167
|
-
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', wordTextArray[index]);
|
168
|
-
};
|
169
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[0]);
|
170
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(wordTextArray[1]);
|
171
|
-
highlightPage.steps.allotPoints(20);
|
172
|
-
highlightPage.steps.expandAdditonalSettings();
|
173
|
-
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
174
|
-
highlightPage.steps.switchToPreviewTab();
|
175
|
-
});
|
176
|
-
|
177
|
-
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', () => {
|
178
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
179
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
180
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
181
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
182
|
-
for (let index = 2; index < wordTextArray.length; index++) {
|
183
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
184
|
-
};
|
185
|
-
});
|
186
|
-
|
187
|
-
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', () => {
|
188
|
-
cy.log('Pre-step: Deselect the show correct checkbox')
|
189
|
-
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
190
|
-
highlightPage.steps.checkAnswer();
|
191
|
-
for (let index = 0; index < wordTextArray.length; index++) {
|
192
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
193
|
-
};
|
194
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
195
|
-
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
196
|
-
});
|
197
|
-
|
198
|
-
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', () => {
|
199
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[2]);
|
200
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[3]);
|
201
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
202
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
203
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
204
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
205
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
206
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[3]);
|
207
|
-
for (let index = 4; index < wordTextArray.length; index++) {
|
208
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
209
|
-
}
|
210
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
211
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
212
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
213
|
-
|
214
|
-
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')
|
215
|
-
highlightPage.steps.checkAnswer();
|
216
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[0]);
|
217
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[1]);
|
218
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
219
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[3]);
|
220
|
-
for (let index = 4; index < wordTextArray.length; index++) {
|
221
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
222
|
-
}
|
223
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
224
|
-
});
|
225
|
-
|
226
|
-
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', () => {
|
227
|
-
highlightPage.steps.resetQuestionPreview();
|
228
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
229
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
230
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
231
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
232
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
233
|
-
for (let index = 2; index < wordTextArray.length; index++) {
|
234
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
235
|
-
}
|
236
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
237
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
238
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
239
|
-
|
240
|
-
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');
|
241
|
-
highlightPage.steps.checkAnswer();
|
242
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
243
|
-
for (let index = 1; index < wordTextArray.length; index++) {
|
244
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
245
|
-
}
|
246
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
247
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
248
|
-
});
|
249
|
-
|
250
|
-
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', () => {
|
251
|
-
highlightPage.steps.resetQuestionPreview();
|
252
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
253
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[2]);
|
254
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
255
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
256
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
257
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
258
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
259
|
-
for (let index = 3; index < wordTextArray.length; index++) {
|
260
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
261
|
-
}
|
262
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
263
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
264
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
265
|
-
|
266
|
-
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')
|
267
|
-
highlightPage.steps.checkAnswer();
|
268
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
269
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[1]);
|
270
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(wordTextArray[2]);
|
271
|
-
for (let index = 3; index < wordTextArray.length; index++) {
|
272
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
273
|
-
}
|
274
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
275
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
276
|
-
});
|
277
|
-
|
278
|
-
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', () => {
|
279
|
-
highlightPage.steps.resetQuestionPreview();
|
280
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[0]);
|
281
|
-
highlightPage.steps.selectOptionInPreviewTab(wordTextArray[1]);
|
282
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
283
|
-
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
284
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
285
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
286
|
-
for (let index = 2; index < wordTextArray.length; index++) {
|
287
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
288
|
-
}
|
289
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
290
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
291
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
292
|
-
|
293
|
-
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')
|
294
|
-
highlightPage.steps.checkAnswer();
|
295
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[0]);
|
296
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(wordTextArray[1]);
|
297
|
-
for (let index = 2; index < wordTextArray.length; index++) {
|
298
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(wordTextArray[index]);
|
299
|
-
}
|
300
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
301
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
302
|
-
});
|
303
|
-
});
|
304
|
-
|
305
|
-
describe('Question Preview: Sentence text selection type with All or nothing scoring', () => {
|
306
|
-
abortEarlySetup();
|
307
|
-
before(() => {
|
308
|
-
cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
|
309
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
310
|
-
cy.barsPreLoaderWait();
|
311
|
-
highlightPage.steps.addQuestionInstructions();
|
312
|
-
highlightPage.steps.clearQuestionInputField();
|
313
|
-
paragraphTextArray.forEach((paragraphText) => {
|
314
|
-
highlightPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
|
315
|
-
});
|
316
|
-
highlightPage.steps.addInputToQuestionInputField('{backspace}');
|
317
|
-
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Sentence');
|
318
|
-
highlightPage.steps.clearSelectedOptionsInHighlightOptionsSection();
|
319
|
-
for (let index = 0; index < sentenceTextArray.length; index++) {
|
320
|
-
highlightPage.steps.selectOptionInHighlightOptionsSection('Sentence', sentenceTextArray[index]);
|
321
|
-
};
|
322
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[0]);
|
323
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection(sentenceTextArray[1]);
|
324
|
-
highlightPage.steps.allotPoints(20);
|
325
|
-
highlightPage.steps.expandAdditonalSettings();
|
326
|
-
highlightPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
327
|
-
highlightPage.steps.switchToPreviewTab();
|
328
|
-
});
|
329
|
-
|
330
|
-
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', () => {
|
331
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
332
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
333
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
334
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
335
|
-
for (let index = 2; index < sentenceTextArray.length; index++) {
|
336
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
337
|
-
};
|
338
|
-
});
|
339
|
-
|
340
|
-
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', () => {
|
341
|
-
cy.log('Pre-step: Deselect the show correct checkbox')
|
342
|
-
highlightPage.steps.uncheckShowCorrectAnswerCheckbox()
|
343
|
-
highlightPage.steps.checkAnswer();
|
344
|
-
for (let index = 0; index < sentenceTextArray.length; index++) {
|
345
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
346
|
-
};
|
347
|
-
highlightPage.steps.verifyCorrectIncorrectBorderNotExists();
|
348
|
-
highlightPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
349
|
-
});
|
350
|
-
|
351
|
-
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', () => {
|
352
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
353
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
|
354
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
355
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
356
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
357
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
358
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
359
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[3]);
|
360
|
-
for (let index = 4; index < sentenceTextArray.length; index++) {
|
361
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
362
|
-
};
|
363
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
364
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
365
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
366
|
-
|
367
|
-
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')
|
368
|
-
highlightPage.steps.checkAnswer();
|
369
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[0]);
|
370
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[1]);
|
371
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
372
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[3]);
|
373
|
-
for (let index = 4; index < sentenceTextArray.length; index++) {
|
374
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
375
|
-
};
|
376
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
377
|
-
});
|
378
|
-
|
379
|
-
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', () => {
|
380
|
-
highlightPage.steps.resetQuestionPreview();
|
381
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
382
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
383
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
384
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
385
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
386
|
-
for (let index = 2; index < sentenceTextArray.length; index++) {
|
387
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
388
|
-
};
|
389
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
390
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
391
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
392
|
-
|
393
|
-
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');
|
394
|
-
highlightPage.steps.checkAnswer();
|
395
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
396
|
-
for (let index = 1; index < sentenceTextArray.length; index++) {
|
397
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
398
|
-
};
|
399
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
400
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
401
|
-
});
|
402
|
-
|
403
|
-
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', () => {
|
404
|
-
highlightPage.steps.resetQuestionPreview();
|
405
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
406
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
407
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
408
|
-
highlightPage.steps.verifyPreviewTabScoreText(0, 20);
|
409
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
410
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
411
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
412
|
-
for (let index = 3; index < sentenceTextArray.length; index++) {
|
413
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
414
|
-
};
|
415
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
416
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
417
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
418
|
-
|
419
|
-
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')
|
420
|
-
highlightPage.steps.checkAnswer();
|
421
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
422
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[1]);
|
423
|
-
highlightPage.steps.verifyIncorrectAnswerCrossmarkIconForOption(sentenceTextArray[2]);
|
424
|
-
for (let index = 3; index < sentenceTextArray.length; index++) {
|
425
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
426
|
-
};
|
427
|
-
highlightPage.steps.verifyIncorrectAttemptBorder();
|
428
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
429
|
-
});
|
430
|
-
|
431
|
-
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', () => {
|
432
|
-
highlightPage.steps.resetQuestionPreview();
|
433
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
434
|
-
highlightPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
|
435
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
436
|
-
highlightPage.steps.verifyPreviewTabScoreText(20, 20);
|
437
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
438
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
439
|
-
for (let index = 2; index < sentenceTextArray.length; index++) {
|
440
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
441
|
-
};
|
442
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
443
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
444
|
-
highlightPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
445
|
-
|
446
|
-
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')
|
447
|
-
highlightPage.steps.checkAnswer();
|
448
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[0]);
|
449
|
-
highlightPage.steps.verifyCorrectAnswerCheckmarkIconForOption(sentenceTextArray[1]);
|
450
|
-
for (let index = 2; index < sentenceTextArray.length; index++) {
|
451
|
-
highlightPage.steps.verifyOptionIsNotSelectedInPreviewTab(sentenceTextArray[index]);
|
452
|
-
};
|
453
|
-
highlightPage.steps.verifyCorrectAttemptBorder();
|
454
|
-
highlightPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
455
|
-
});
|
456
|
-
});
|
457
|
-
});
|
@@ -1,143 +0,0 @@
|
|
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
|
-
const colorLibrary = css.highlightColorLibrary;
|
6
|
-
|
7
|
-
describe('Create Item page - Highlight: Color library', () => {
|
8
|
-
before(() => {
|
9
|
-
cy.loginAs('admin');
|
10
|
-
});
|
11
|
-
|
12
|
-
describe('Color library popup: Contents', () => {
|
13
|
-
abortEarlySetup();
|
14
|
-
before(() => {
|
15
|
-
cy.log('Navigating to Highlight question type');
|
16
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
17
|
-
cy.barsPreLoaderWait();
|
18
|
-
});
|
19
|
-
|
20
|
-
it('When user clicks on color library button, then the color library popup should be displayed with \'Color library\' title', () => {
|
21
|
-
highlightPage.steps.clickOnColorLibraryButton();
|
22
|
-
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'visible');
|
23
|
-
utilities.verifyInnerText(highlightPage.dialogBoxTitle(), 'Color library');
|
24
|
-
});
|
25
|
-
|
26
|
-
it('The popup should contain six different color options for the author to choose from and the first option(system color) should be selected by default', () => {
|
27
|
-
highlightPage.steps.verifyColorLibraryPopupColors();
|
28
|
-
highlightPage.steps.verifyColorLibraryPopupColorSelected(0);
|
29
|
-
});
|
30
|
-
|
31
|
-
it('CSS of the Color library popup', { tags: 'css' }, () => {
|
32
|
-
utilities.verifyCSS(highlightPage.dialogBoxTitle().find('span'), {
|
33
|
-
'color': css.color.flyoutTitle,
|
34
|
-
'font-size': css.fontSize.normal,
|
35
|
-
'font-weight': css.fontWeight.bold
|
36
|
-
});
|
37
|
-
utilities.verifyCSS(highlightPage.colorLibrarySelectedColorIcon().find('g path').eq(2), {
|
38
|
-
'fill': css.color.activeButtons
|
39
|
-
});
|
40
|
-
});
|
41
|
-
|
42
|
-
it('Accessibility of the Color library popup', { tags: 'a11y' }, () => {
|
43
|
-
cy.checkAccessibility(highlightPage.dialogBox());
|
44
|
-
});
|
45
|
-
|
46
|
-
it('User should be able to switch to a different color inside the color library popup', () => {
|
47
|
-
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
48
|
-
cy.log('Reopen color library popup to check whether the new color is displayed as selected');
|
49
|
-
highlightPage.steps.clickOnColorLibraryButton();
|
50
|
-
highlightPage.steps.verifyColorLibraryPopupColorSelected(4);
|
51
|
-
});
|
52
|
-
|
53
|
-
it('When user clicks outside the \'Color library popup\', then the popup should be closed', () => {
|
54
|
-
highlightPage.steps.clickingAwayFromColorLibraryPopup();
|
55
|
-
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'notExist');
|
56
|
-
});
|
57
|
-
});
|
58
|
-
|
59
|
-
describe('Color library in Highlight options section and Set correct answer section', () => {
|
60
|
-
abortEarlySetup();
|
61
|
-
before(() => {
|
62
|
-
cy.log('Navigating to Highlight question type');
|
63
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
64
|
-
cy.barsPreLoaderWait();
|
65
|
-
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
66
|
-
highlightPage.steps.clickOnColorLibraryButton();
|
67
|
-
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
68
|
-
});
|
69
|
-
|
70
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the highlight options section when user hovers on an option', () => {
|
71
|
-
cy.log('Pre-step: Deselect an option in highlight options section');
|
72
|
-
highlightPage.steps.deselectOptionInHighlightOptionsSection('Word', 'Lorem');
|
73
|
-
highlightPage.steps.hoverOnDeselectedOptionInHighlightOptionsSection('Lorem');
|
74
|
-
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
75
|
-
'background-color': colorLibrary[4].hoverBackground,
|
76
|
-
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
77
|
-
});
|
78
|
-
});
|
79
|
-
|
80
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the highlight options section when user selects an option', () => {
|
81
|
-
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', 'Lorem');
|
82
|
-
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
83
|
-
'background-color': colorLibrary[4].background,
|
84
|
-
'border': `1px solid ${colorLibrary[4].border}`
|
85
|
-
});
|
86
|
-
});
|
87
|
-
|
88
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the set correct answer section when user hovers on an option', () => {
|
89
|
-
highlightPage.steps.hoverOnDeselectedOptionInSetCorrectAnswerSection('Lorem');
|
90
|
-
utilities.verifyCSS(highlightPage.setCorrectAnswerOption(), {
|
91
|
-
'background-color': colorLibrary[4].hoverBackground,
|
92
|
-
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
93
|
-
});
|
94
|
-
});
|
95
|
-
|
96
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the set correct answer section when user selects an option', () => {
|
97
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection('Lorem');
|
98
|
-
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
99
|
-
'background-color': colorLibrary[4].background,
|
100
|
-
'border': `1px solid ${colorLibrary[4].border}`
|
101
|
-
});
|
102
|
-
});
|
103
|
-
});
|
104
|
-
|
105
|
-
describe('Color library in Preview tab', () => {
|
106
|
-
abortEarlySetup();
|
107
|
-
before(() => {
|
108
|
-
cy.log('Navigating to Highlight question type');
|
109
|
-
highlightPage.steps.navigateToCreateQuestion('highlight');
|
110
|
-
cy.barsPreLoaderWait();
|
111
|
-
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
112
|
-
highlightPage.steps.clickOnColorLibraryButton();
|
113
|
-
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
114
|
-
highlightPage.steps.selectOptionInSetCorrectAnswerSection('ipsum');
|
115
|
-
highlightPage.steps.allotPoints(2);
|
116
|
-
highlightPage.steps.switchToPreviewTab();
|
117
|
-
});
|
118
|
-
|
119
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the preview tab when user hovers on an option', () => {
|
120
|
-
highlightPage.steps.hoverOnDeselectedOptionInPreviewTab('Lorem');
|
121
|
-
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
122
|
-
'background-color': colorLibrary[4].hoverBackground,
|
123
|
-
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
124
|
-
});
|
125
|
-
});
|
126
|
-
|
127
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the preview tab when user selects an option', () => {
|
128
|
-
highlightPage.steps.selectOptionInPreviewTab('Lorem');
|
129
|
-
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
130
|
-
'background-color': colorLibrary[4].background,
|
131
|
-
'border': `1px solid ${colorLibrary[4].border}`
|
132
|
-
});
|
133
|
-
});
|
134
|
-
|
135
|
-
it('When the user has selected a different color in the color library popup, then the different color should be reflected in the preview tab when user clicks on \'Show correct answer\' checkbox', () => {
|
136
|
-
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
137
|
-
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
138
|
-
'background-color': colorLibrary[4].background,
|
139
|
-
'border': `1px solid ${colorLibrary[4].border}`
|
140
|
-
});
|
141
|
-
});
|
142
|
-
});
|
143
|
-
})
|