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
@@ -0,0 +1,148 @@
|
|
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
|
+
const grepTags = Cypress.env('grepTags');
|
7
|
+
|
8
|
+
describe('Create Item page - Highlight: Color library', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
14
|
+
describe('Color library popup: Contents', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
cy.log('Navigating to Highlight question type');
|
18
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
19
|
+
cy.barsPreLoaderWait();
|
20
|
+
});
|
21
|
+
|
22
|
+
it('When user clicks on color library button, then the color library popup should be displayed with \'Color library\' title', () => {
|
23
|
+
highlightPage.steps.clickOnColorLibraryButton();
|
24
|
+
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'visible');
|
25
|
+
utilities.verifyInnerText(highlightPage.dialogBoxTitle(), 'Color library');
|
26
|
+
});
|
27
|
+
|
28
|
+
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', () => {
|
29
|
+
highlightPage.steps.verifyColorLibraryPopupColors();
|
30
|
+
highlightPage.steps.verifyColorLibraryPopupColorSelected(0);
|
31
|
+
});
|
32
|
+
|
33
|
+
it('CSS of the Color library popup', { tags: 'css' }, () => {
|
34
|
+
utilities.verifyCSS(highlightPage.dialogBoxTitle().find('span'), {
|
35
|
+
'color': css.color.flyoutTitle,
|
36
|
+
'font-size': css.fontSize.normal,
|
37
|
+
'font-weight': css.fontWeight.bold
|
38
|
+
});
|
39
|
+
utilities.verifyCSS(highlightPage.colorLibrarySelectedColorIcon().find('g path').eq(2), {
|
40
|
+
'fill': css.color.activeButtons
|
41
|
+
});
|
42
|
+
});
|
43
|
+
|
44
|
+
it('Accessibility of the Color library popup', { tags: 'a11y' }, () => {
|
45
|
+
cy.checkAccessibility(highlightPage.dialogBox());
|
46
|
+
});
|
47
|
+
|
48
|
+
it('User should be able to switch to a different color inside the color library popup', () => {
|
49
|
+
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
50
|
+
cy.log('Reopen color library popup to check whether the new color is displayed as selected');
|
51
|
+
highlightPage.steps.clickOnColorLibraryButton();
|
52
|
+
highlightPage.steps.verifyColorLibraryPopupColorSelected(4);
|
53
|
+
});
|
54
|
+
|
55
|
+
it('When user clicks outside the \'Color library popup\', then the popup should be closed', () => {
|
56
|
+
highlightPage.steps.clickingAwayFromColorLibraryPopup();
|
57
|
+
utilities.verifyElementVisibilityState(highlightPage.dialogBox(), 'notExist');
|
58
|
+
});
|
59
|
+
});
|
60
|
+
}
|
61
|
+
|
62
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
63
|
+
describe('Color library in Highlight options section and Set correct answer section', () => {
|
64
|
+
abortEarlySetup();
|
65
|
+
before(() => {
|
66
|
+
cy.log('Navigating to Highlight question type');
|
67
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
68
|
+
cy.barsPreLoaderWait();
|
69
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
70
|
+
highlightPage.steps.clickOnColorLibraryButton();
|
71
|
+
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
72
|
+
});
|
73
|
+
|
74
|
+
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', () => {
|
75
|
+
cy.log('Pre-step: Deselect an option in highlight options section');
|
76
|
+
highlightPage.steps.deselectOptionInHighlightOptionsSection('Word', 'Lorem');
|
77
|
+
highlightPage.steps.hoverOnDeselectedOptionInHighlightOptionsSection('Lorem');
|
78
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
79
|
+
'background-color': colorLibrary[4].hoverBackground,
|
80
|
+
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
81
|
+
});
|
82
|
+
});
|
83
|
+
|
84
|
+
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', () => {
|
85
|
+
highlightPage.steps.selectOptionInHighlightOptionsSection('Word', 'Lorem');
|
86
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
87
|
+
'background-color': colorLibrary[4].background,
|
88
|
+
'border': `1px solid ${colorLibrary[4].border}`
|
89
|
+
});
|
90
|
+
});
|
91
|
+
|
92
|
+
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', () => {
|
93
|
+
highlightPage.steps.hoverOnDeselectedOptionInSetCorrectAnswerSection('Lorem');
|
94
|
+
utilities.verifyCSS(highlightPage.setCorrectAnswerOption(), {
|
95
|
+
'background-color': colorLibrary[4].hoverBackground,
|
96
|
+
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
97
|
+
});
|
98
|
+
});
|
99
|
+
|
100
|
+
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', () => {
|
101
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection('Lorem');
|
102
|
+
utilities.verifyCSS(highlightPage.highlightOptionsSpans().contains('Lorem'), {
|
103
|
+
'background-color': colorLibrary[4].background,
|
104
|
+
'border': `1px solid ${colorLibrary[4].border}`
|
105
|
+
});
|
106
|
+
});
|
107
|
+
});
|
108
|
+
}
|
109
|
+
|
110
|
+
describe('Color library in Preview tab', { tags: 'smoke' }, () => {
|
111
|
+
abortEarlySetup();
|
112
|
+
before(() => {
|
113
|
+
cy.log('Navigating to Highlight question type');
|
114
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
115
|
+
cy.barsPreLoaderWait();
|
116
|
+
highlightPage.steps.switchTextSelectionTypeInTextSelectionDropdown('Word');
|
117
|
+
highlightPage.steps.clickOnColorLibraryButton();
|
118
|
+
highlightPage.steps.switchColorInColorLibraryPopup(4);
|
119
|
+
highlightPage.steps.selectOptionInSetCorrectAnswerSection('ipsum');
|
120
|
+
highlightPage.steps.allotPoints(2);
|
121
|
+
highlightPage.steps.switchToPreviewTab();
|
122
|
+
});
|
123
|
+
|
124
|
+
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', () => {
|
125
|
+
highlightPage.steps.hoverOnDeselectedOptionInPreviewTab('Lorem');
|
126
|
+
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
127
|
+
'background-color': colorLibrary[4].hoverBackground,
|
128
|
+
'border': `1px solid ${colorLibrary[4].hoverBorder}`
|
129
|
+
});
|
130
|
+
});
|
131
|
+
|
132
|
+
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', () => {
|
133
|
+
highlightPage.steps.selectOptionInPreviewTab('Lorem');
|
134
|
+
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
135
|
+
'background-color': colorLibrary[4].background,
|
136
|
+
'border': `1px solid ${colorLibrary[4].border}`
|
137
|
+
});
|
138
|
+
});
|
139
|
+
|
140
|
+
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', () => {
|
141
|
+
highlightPage.steps.checkShowCorrectAnswerCheckbox();
|
142
|
+
utilities.verifyCSS(highlightPage.previewTabOption().contains('Lorem'), {
|
143
|
+
'background-color': colorLibrary[4].background,
|
144
|
+
'border': `1px solid ${colorLibrary[4].border}`
|
145
|
+
});
|
146
|
+
});
|
147
|
+
});
|
148
|
+
})
|
@@ -0,0 +1,185 @@
|
|
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 grepTags = Cypress.env('grepTags');
|
6
|
+
|
7
|
+
describe('Create Item page - Highlight: Question Instructions and Question section', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
13
|
+
describe('Question Instructions input field - Edit tab', () => {
|
14
|
+
abortEarlySetup();
|
15
|
+
before(() => {
|
16
|
+
cy.log('Navigating to Highlight question type');
|
17
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
});
|
20
|
+
|
21
|
+
highlightPage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
describe('Question Instructions input field - Preview tab', { tags: 'smoke' }, () => {
|
26
|
+
abortEarlySetup();
|
27
|
+
before(() => {
|
28
|
+
cy.log('Navigating to Highlight question type');
|
29
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
30
|
+
cy.barsPreLoaderWait();
|
31
|
+
});
|
32
|
+
|
33
|
+
highlightPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
34
|
+
});
|
35
|
+
|
36
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
37
|
+
describe('Question input field - Edit tab', () => {
|
38
|
+
abortEarlySetup();
|
39
|
+
before(() => {
|
40
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
41
|
+
cy.barsPreLoaderWait();
|
42
|
+
});
|
43
|
+
|
44
|
+
it('\'Question\' label and input field should be displayed and by default in the question input field, sample \'Lorem Ipsum\' text should be present', () => {
|
45
|
+
utilities.verifyInnerText(highlightPage.questionLabel(), 'Question');
|
46
|
+
utilities.verifyInnerText(highlightPage.questionInputField(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n\n\n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n\n\n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
47
|
+
});
|
48
|
+
|
49
|
+
it('The default sample \'Lorem Ipsum\' text in the question input field should also be displayed in Highlight options section and Set correct answer section in the Edit tab.', () => {
|
50
|
+
utilities.verifyInnerText(highlightPage.highlightOptionsSectionTextWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
51
|
+
utilities.verifyInnerText(highlightPage.setCorrectAnswerTextWrapper(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
52
|
+
});
|
53
|
+
|
54
|
+
it('When the user removes all the text from the question input field and focuses out of it, an error message \'Error: Question is required.\' should be displayed', () => {
|
55
|
+
highlightPage.steps.clearQuestionInputField();
|
56
|
+
highlightPage.steps.focusOutOfQuestionInputField();
|
57
|
+
utilities.verifyInnerText(highlightPage.errorMessage(), 'Error: Question is required.');
|
58
|
+
highlightPage.steps.verifyErroredStateOfQuestionInputField();
|
59
|
+
});
|
60
|
+
|
61
|
+
highlightPage.tests.verifyCSSAnda11yOfErrorMessage();
|
62
|
+
|
63
|
+
it('The user should be able to give input in the question input field, then the error message should disappear and the updated question should be displayed in Highlight options section and Set correct answer section in the Edit tab', () => {
|
64
|
+
cy.log('Add Image to Question input field')
|
65
|
+
highlightPage.steps.focusInQuestionInputField();
|
66
|
+
highlightPage.steps.selectImageOptionFromCKEditorToolbar();
|
67
|
+
highlightPage.steps.addImageToInputField();
|
68
|
+
highlightPage.steps.verifyImageAndAltTextInQuestionInputField();
|
69
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
70
|
+
cy.log('Add equation to Question input field')
|
71
|
+
highlightPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
72
|
+
highlightPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
73
|
+
highlightPage.steps.verifyEquationInQuestionInputField();
|
74
|
+
highlightPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
|
75
|
+
cy.log('Add bold text to input field')
|
76
|
+
highlightPage.steps.focusInQuestionInputField();
|
77
|
+
highlightPage.steps.selectBoldOptionFromCKEditorToolbar();
|
78
|
+
highlightPage.steps.addInputToQuestionInputField('This is Bold text input.');
|
79
|
+
highlightPage.steps.verifyBoldTextInQuestionInputField();
|
80
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
81
|
+
cy.log('Add link to Question input field')
|
82
|
+
highlightPage.steps.selectLinkOptionFromCKEditorToolbar();
|
83
|
+
highlightPage.steps.addLinkToInputField();
|
84
|
+
highlightPage.steps.verifyLinkInQuestionInputField();
|
85
|
+
utilities.verifyElementVisibilityState(highlightPage.errorMessage(), 'notExist');
|
86
|
+
highlightPage.steps.focusOutOfQuestionInputField();
|
87
|
+
});
|
88
|
+
|
89
|
+
it('CSS of Question label and Question input field contents', { tags: 'css' }, () => {
|
90
|
+
utilities.verifyCSS(highlightPage.questionLabel(), {
|
91
|
+
'color': css.color.sectionHeading,
|
92
|
+
'font-size': css.fontSize.normal,
|
93
|
+
'font-weight': css.fontWeight.semibold
|
94
|
+
});
|
95
|
+
utilities.verifyCSS(highlightPage.questionInputField(), {
|
96
|
+
'color': css.color.text,
|
97
|
+
'font-size': css.fontSize.default,
|
98
|
+
'font-weight': css.fontWeight.regular,
|
99
|
+
'border': `1px solid ${css.color.figDefaultComponentBorder}`
|
100
|
+
});
|
101
|
+
utilities.verifyCSS(highlightPage.questionInputField().find('a'), {
|
102
|
+
'color': css.color.linkText,
|
103
|
+
'font-size': css.fontSize.default,
|
104
|
+
'font-weight': css.fontWeight.bold
|
105
|
+
});
|
106
|
+
});
|
107
|
+
|
108
|
+
it('Image, equation, bold text and link added in Question input field should be properly displayed in highlight options section', () => {
|
109
|
+
highlightPage.steps.verifyImageAndAltTextInHighlightOptionsSection();
|
110
|
+
highlightPage.steps.verifyEquationInHighlightOptionsSection();
|
111
|
+
highlightPage.steps.verifyBoldTextInHighlightOptionsSection();
|
112
|
+
highlightPage.steps.verifyLinkInHighlightOptionsSection();
|
113
|
+
});
|
114
|
+
|
115
|
+
it('Image, equation, bold text and link added in Question input field should be properly displayed in set correct answer section', () => {
|
116
|
+
highlightPage.steps.verifyImageAndAltTextInSetCorrectAnswerSection();
|
117
|
+
highlightPage.steps.verifyEquationInSetCorrectAnswerSection();
|
118
|
+
highlightPage.steps.verifyBoldTextInSetCorrectAnswerSection();
|
119
|
+
highlightPage.steps.verifyLinkInSetCorrectAnswerSection();
|
120
|
+
});
|
121
|
+
});
|
122
|
+
}
|
123
|
+
|
124
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
125
|
+
describe('Question field - Preview tab', () => {
|
126
|
+
abortEarlySetup();
|
127
|
+
before(() => {
|
128
|
+
highlightPage.steps.navigateToCreateQuestion('highlight');
|
129
|
+
cy.barsPreLoaderWait();
|
130
|
+
});
|
131
|
+
|
132
|
+
it('In Preview tab, the sample \'Lorem Ipsum\' text should be displayed in the question field', () => {
|
133
|
+
highlightPage.steps.switchToPreviewTab()
|
134
|
+
utilities.verifyInnerText(highlightPage.previewTabQuestionContainer(), 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\n\n \n\nUt enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n\n \n\nExcepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.');
|
135
|
+
});
|
136
|
+
|
137
|
+
it('The user should be able to edit text in the question input field and the updated question should be displayed in the preview tab', () => {
|
138
|
+
cy.log('Switching to edit tab')
|
139
|
+
highlightPage.steps.switchToEditTab();
|
140
|
+
highlightPage.steps.clearQuestionInputField();
|
141
|
+
cy.log('Add Image to Question input field')
|
142
|
+
highlightPage.steps.focusInQuestionInputField();
|
143
|
+
highlightPage.steps.selectImageOptionFromCKEditorToolbar();
|
144
|
+
highlightPage.steps.addImageToInputField();
|
145
|
+
highlightPage.steps.verifyImageAndAltTextInQuestionInputField();
|
146
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
147
|
+
cy.log('Add equation to Question input field')
|
148
|
+
highlightPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
|
149
|
+
highlightPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
|
150
|
+
highlightPage.steps.verifyEquationInQuestionInputField();
|
151
|
+
highlightPage.steps.addInputToQuestionInputField('{rightarrow}{enter}');
|
152
|
+
cy.log('Add bold text to input field')
|
153
|
+
highlightPage.steps.focusInQuestionInputField();
|
154
|
+
highlightPage.steps.selectBoldOptionFromCKEditorToolbar();
|
155
|
+
highlightPage.steps.addInputToQuestionInputField('This is Bold text input.');
|
156
|
+
highlightPage.steps.verifyBoldTextInQuestionInputField();
|
157
|
+
highlightPage.steps.addInputToQuestionInputField('{enter}');
|
158
|
+
cy.log('Add link to Question input field')
|
159
|
+
highlightPage.steps.selectLinkOptionFromCKEditorToolbar();
|
160
|
+
highlightPage.steps.addLinkToInputField();
|
161
|
+
highlightPage.steps.verifyLinkInQuestionInputField();
|
162
|
+
cy.log('Switching to preview tab')
|
163
|
+
highlightPage.steps.switchToPreviewTab();
|
164
|
+
highlightPage.steps.verifyImageAndAltTextInPreviewTab();
|
165
|
+
highlightPage.steps.verifyEquationInPreviewTab();
|
166
|
+
highlightPage.steps.verifyBoldTextInPreviewTab();
|
167
|
+
highlightPage.steps.verifyLinkInPreviewTab();
|
168
|
+
});
|
169
|
+
|
170
|
+
//Failing due to https://redmine.zeuslearning.com/issues/537907
|
171
|
+
it('CSS of \'Preview tab\' when image, equation, bold text and link are added', { tags: 'css' }, () => {
|
172
|
+
utilities.verifyCSS(highlightPage.previewTabQuestionContainer().find('strong'), {
|
173
|
+
'color': css.color.labels,
|
174
|
+
'font-size': css.fontSize.default,
|
175
|
+
'font-weight': css.fontWeight.bold
|
176
|
+
});
|
177
|
+
utilities.verifyCSS(highlightPage.previewTabQuestionContainer().find('a'), {
|
178
|
+
'color': css.color.linkText,
|
179
|
+
'font-size': css.fontSize.default,
|
180
|
+
'font-weight': css.fontWeight.bold
|
181
|
+
});
|
182
|
+
});
|
183
|
+
});
|
184
|
+
}
|
185
|
+
});
|
@@ -0,0 +1,138 @@
|
|
1
|
+
import constants from "../../../fixtures/constants";
|
2
|
+
import { highlightImagePage } from "../../../pages";
|
3
|
+
import { uploadImageSectionComponent } from "../../../pages/components/uploadImageSectionComponent";
|
4
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
5
|
+
import utilities from "../../../support/helpers/utilities";
|
6
|
+
const grepTags = Cypress.env('grepTags');
|
7
|
+
|
8
|
+
describe('Create Item page - Highlight image: Question instructions, edit tab contents and image popup', () => {
|
9
|
+
before(() => {
|
10
|
+
cy.loginAs('admin');
|
11
|
+
});
|
12
|
+
|
13
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
14
|
+
describe('Question instructions input field - Edit tab', () => {
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
cy.log('Navigating to highlight image question type');
|
18
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
19
|
+
});
|
20
|
+
|
21
|
+
highlightImagePage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
26
|
+
describe('Question instructions input field - Preview tab', () => {
|
27
|
+
abortEarlySetup();
|
28
|
+
before(() => {
|
29
|
+
cy.log('Navigating to Highlight image question type');
|
30
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
31
|
+
});
|
32
|
+
|
33
|
+
highlightImagePage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
34
|
+
});
|
35
|
+
}
|
36
|
+
|
37
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
38
|
+
describe('Highlight image - Edit tab default contents', () => {
|
39
|
+
abortEarlySetup();
|
40
|
+
before(() => {
|
41
|
+
cy.log('Navigating to highlight image question type');
|
42
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
43
|
+
});
|
44
|
+
|
45
|
+
it('\'Highlight image\' title should be displayed', () => {
|
46
|
+
utilities.verifyInnerText(highlightImagePage.highlightImageLabel(), 'Highlight image');
|
47
|
+
utilities.verifyElementVisibilityState(highlightImagePage.highlightImageLabel(), 'visible');
|
48
|
+
});
|
49
|
+
|
50
|
+
uploadImageSectionComponent.tests.uploadImageEditTabContents();
|
51
|
+
});
|
52
|
+
}
|
53
|
+
|
54
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
55
|
+
describe('Upload image - device popup contents', () => {
|
56
|
+
abortEarlySetup();
|
57
|
+
before(() => {
|
58
|
+
cy.log('Navigating to highlight image question type');
|
59
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
60
|
+
});
|
61
|
+
|
62
|
+
uploadImageSectionComponent.tests.verifyUploadImagePopupImageTitle();
|
63
|
+
|
64
|
+
uploadImageSectionComponent.tests.uploadImagePopupContents(500, 500);
|
65
|
+
|
66
|
+
uploadImageSectionComponent.tests.verifyButtonReplaceInImagePopup();
|
67
|
+
});
|
68
|
+
}
|
69
|
+
|
70
|
+
//Failing due to https://redmine.zeuslearning.com/issues/547305
|
71
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
72
|
+
describe('Upload image popup contents functionality', () => {
|
73
|
+
abortEarlySetup();
|
74
|
+
before(() => {
|
75
|
+
cy.log('Navigating to highlight image question type');
|
76
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
77
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
78
|
+
});
|
79
|
+
|
80
|
+
uploadImageSectionComponent.tests.uploadImageHeightWidthAspectRatioAndResetDimensionsFunctionality(500, 500);
|
81
|
+
|
82
|
+
uploadImageSectionComponent.tests.uploadImageReplaceButtonFunctionality();
|
83
|
+
|
84
|
+
it('When user selects the \'Cancel\' button the image should not be uploaded', () => {
|
85
|
+
uploadImageSectionComponent.steps.clickOnImagePopupCancelButton();
|
86
|
+
utilities.verifyElementVisibilityState(highlightImagePage.highlighImageCanvas(), 'notExist');
|
87
|
+
});
|
88
|
+
|
89
|
+
it('When user uploads an image and selects \'Ok\' button the image should be displayed in the highlight image section', () => {
|
90
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
91
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
92
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
93
|
+
utilities.verifyElementVisibilityState(highlightImagePage.highlighImageCanvas(), 'visible');
|
94
|
+
});
|
95
|
+
});
|
96
|
+
}
|
97
|
+
|
98
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
99
|
+
describe('Upload image - source URL popup contents', () => {
|
100
|
+
abortEarlySetup();
|
101
|
+
before(() => {
|
102
|
+
cy.log('Navigating to highlight image question type');
|
103
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
104
|
+
});
|
105
|
+
|
106
|
+
uploadImageSectionComponent.tests.verifyUploadImageSourceURLTitle();
|
107
|
+
|
108
|
+
uploadImageSectionComponent.tests.verifyUploadImageSourceURLDefaultLabelAndInputField();
|
109
|
+
|
110
|
+
uploadImageSectionComponent.tests.uploadImagePopupContents(650, 684);
|
111
|
+
});
|
112
|
+
}
|
113
|
+
|
114
|
+
describe('Upload image \'Source URL\' popup contents functionality', { tags: 'smoke' }, () => {
|
115
|
+
abortEarlySetup();
|
116
|
+
before(() => {
|
117
|
+
cy.log('Navigating to highlight image question type');
|
118
|
+
highlightImagePage.steps.navigateToCreateQuestion('highlight image');
|
119
|
+
uploadImageSectionComponent.steps.clickOnSourceURL();
|
120
|
+
uploadImageSectionComponent.steps.uploadImageUsingSourceURL(constants.flowerImage);
|
121
|
+
});
|
122
|
+
|
123
|
+
uploadImageSectionComponent.tests.uploadImageHeightWidthAspectRatioAndResetDimensionsFunctionality(650, 684);
|
124
|
+
|
125
|
+
it('When user selects the \'Cancel\' button the image should not be uploaded', () => {
|
126
|
+
uploadImageSectionComponent.steps.clickOnImagePopupCancelButton();
|
127
|
+
utilities.verifyElementVisibilityState(highlightImagePage.highlighImageCanvas(), 'notExist');
|
128
|
+
});
|
129
|
+
|
130
|
+
it('When user uploads an image and selects \'Ok\' button the image should be displayed in the highlight image section', () => {
|
131
|
+
uploadImageSectionComponent.steps.clickOnSourceURL();
|
132
|
+
uploadImageSectionComponent.steps.uploadImageUsingSourceURL(constants.flowerImage);
|
133
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
134
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
135
|
+
utilities.verifyElementVisibilityState(highlightImagePage.highlighImageCanvas(), 'visible');
|
136
|
+
});
|
137
|
+
});
|
138
|
+
});
|
@@ -13,7 +13,7 @@ describe('Create Item page - Highlight image: Preview tab', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
describe('Preview tab contents with uploading image', () => {
|
16
|
+
describe('Preview tab contents with uploading image', { tags: 'smoke' }, () => {
|
17
17
|
abortEarlySetup();
|
18
18
|
before(() => {
|
19
19
|
cy.log('Navigating to Highlight image question type');
|
@@ -12,7 +12,7 @@ describe('Create Item page - Highlight image: Tools functionality preview tab',
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
describe('\'Pen\' tool functionality - Preview tab', () => {
|
15
|
+
describe('\'Pen\' tool functionality - Preview tab', { tags: 'smoke' }, () => {
|
16
16
|
abortEarlySetup();
|
17
17
|
before(() => {
|
18
18
|
cy.log('Navigating to Highlight image question type');
|
@@ -55,7 +55,7 @@ describe('Create Item page - Highlight image: Tools functionality preview tab',
|
|
55
55
|
});
|
56
56
|
});
|
57
57
|
|
58
|
-
describe('\'Undo\' and \'Redo\' tool functionality - Preview tab', () => {
|
58
|
+
describe('\'Undo\' and \'Redo\' tool functionality - Preview tab', { tags: 'smoke' }, () => {
|
59
59
|
abortEarlySetup();
|
60
60
|
before(() => {
|
61
61
|
cy.log('Navigating to Highlight image question type');
|
@@ -113,7 +113,7 @@ describe('Create Item page - Highlight image: Tools functionality preview tab',
|
|
113
113
|
});
|
114
114
|
});
|
115
115
|
|
116
|
-
describe('\'Item eraser\' tool functionality - Preview tab', () => {
|
116
|
+
describe('\'Item eraser\' tool functionality - Preview tab', { tags: 'smoke' }, () => {
|
117
117
|
abortEarlySetup();
|
118
118
|
before(() => {
|
119
119
|
cy.log('Navigating to Highlight image question type');
|
@@ -137,7 +137,7 @@ describe('Create Item page - Highlight image: Tools functionality preview tab',
|
|
137
137
|
});
|
138
138
|
});
|
139
139
|
|
140
|
-
describe('\'Clear all\' tool functionality - Preview tab', () => {
|
140
|
+
describe('\'Clear all\' tool functionality - Preview tab', { tags: 'smoke' }, () => {
|
141
141
|
abortEarlySetup();
|
142
142
|
before(() => {
|
143
143
|
cy.log('Navigating to Highlight image question type');
|
package/cypress/e2e/ILC/ListMatching/ListMatchingScoring/groupedOptionsAllOrNothingScoring.smoke.js
ADDED
@@ -0,0 +1,122 @@
|
|
1
|
+
import { listMatchingPage, listMatchingScoring } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
const grepTags = Cypress.env('grepTags');
|
4
|
+
|
5
|
+
describe('Create Item page - List Matching - grouped options layout - All or nothing scoring', () => {
|
6
|
+
before(() => {
|
7
|
+
cy.loginAs('admin');
|
8
|
+
});
|
9
|
+
|
10
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
11
|
+
describe('Show correct answer', () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
cy.log('Navigate to list matching question type and fill the option input fields in grouped options layout');
|
15
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
18
|
+
listMatchingPage.steps.switchToPreviewTab();
|
19
|
+
});
|
20
|
+
|
21
|
+
listMatchingScoring.tests.verifyShowCorrectAnswerBasicFunctionality();
|
22
|
+
});
|
23
|
+
}
|
24
|
+
|
25
|
+
describe('Question Preview: AutoScored - All or Nothing - grouped options layout', { tags: 'smoke' }, () => {
|
26
|
+
abortEarlySetup();
|
27
|
+
before(() => {
|
28
|
+
cy.log('Navigate to List matching question type, fill the necessary details and points and switch to preview tab');
|
29
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
30
|
+
cy.barsPreLoaderWait();
|
31
|
+
listMatchingPage.steps.setQuestionStemsAndGroupedOptionsForScoringWithoutAlternateTab();
|
32
|
+
listMatchingPage.steps.allotPoints(20);
|
33
|
+
listMatchingPage.steps.setCorrectAnswersForScoringWithoutAlternateTab();
|
34
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
35
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
36
|
+
listMatchingPage.steps.switchToPreviewTab();
|
37
|
+
});
|
38
|
+
|
39
|
+
listMatchingScoring.tests.verifyAutoScoredAllOrNothingScoring();
|
40
|
+
|
41
|
+
listMatchingScoring.tests.verifyMinimumScoreAwardedIfAttemptedForIncorrectAnswer('20');
|
42
|
+
});
|
43
|
+
|
44
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
45
|
+
describe('Question Preview: AutoScored - All or Nothing grouped options layout with identical response options', () => {
|
46
|
+
abortEarlySetup();
|
47
|
+
before(() => {
|
48
|
+
cy.log('Navigate to List Matching question type, fill the necessary details and points and switch to preview tab');
|
49
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
50
|
+
cy.barsPreLoaderWait();
|
51
|
+
listMatchingPage.steps.deleteStem(2);
|
52
|
+
listMatchingPage.steps.addInputToAllStemFields(['Stem 1', 'Stem 2']);
|
53
|
+
listMatchingPage.steps.selectResponseOptionsLayout('Grouped');
|
54
|
+
listMatchingPage.steps.addGroupTitle(0, 'Group 1');
|
55
|
+
listMatchingPage.steps.deleteResponseOptionInputField(2);
|
56
|
+
listMatchingPage.steps.addInputToOptionsForGroupedResponseLayout(0, ['Identical correct answer for stem 1', 'Incorrect answer 1']);
|
57
|
+
listMatchingPage.steps.addGroup();
|
58
|
+
listMatchingPage.steps.addGroupTitle(1, 'Group 2');
|
59
|
+
listMatchingPage.steps.addInputToOptionsForGroupedResponseLayout(1, ['Identical correct answer for stem 1', 'Correct answer for stem 2']);
|
60
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Identical correct answer for stem 1', 0);
|
61
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Correct answer for stem 2', 1);
|
62
|
+
listMatchingPage.steps.allotPoints(20);
|
63
|
+
listMatchingPage.steps.expandAdditonalSettings();
|
64
|
+
listMatchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
65
|
+
listMatchingPage.steps.switchToPreviewTab();
|
66
|
+
});
|
67
|
+
|
68
|
+
it('Case: When user has identical options to give as input', () => {
|
69
|
+
cy.log('Both the identical options should be visible in the response options section and when user clicks on \'Show correct answer\' checkbox only one of the identical options should be displayed in the correct answer container as the correct answer');
|
70
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(['Identical correct answer for stem 1', 'Incorrect answer 1', 'Identical correct answer for stem 1', 'Correct answer for stem 2']);
|
71
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
72
|
+
listMatchingPage.steps.verifyCorrectAnswerStemOptionsInCorrectAnswerContainerAndCount(['Identical correct answer for stem 1', 'Correct answer for stem 2'], ['1', '2']);
|
73
|
+
|
74
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
75
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
76
|
+
|
77
|
+
cy.log('When the user gives the correct answer as input and user selects the show correct answer checkbox, green check-mark icon should be displayed besides both the responses, correct answer container should not be displayed and user should be awarded with full points');
|
78
|
+
|
79
|
+
cy.log('Answering the stem 1 with the correct identical option');
|
80
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Identical correct answer for stem 1', 0);
|
81
|
+
|
82
|
+
cy.log('Answering the response 2 with the correct option');
|
83
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 2', 1);
|
84
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
85
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
86
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
87
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
88
|
+
listMatchingPage.previewScoreText()
|
89
|
+
.verifyInnerText('20/20');
|
90
|
+
|
91
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
92
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
93
|
+
|
94
|
+
cy.log('When user clicks on \'Check answer\' button, then green check-mark icon should be displayed besides responses and correct answer container should not be displayed');
|
95
|
+
listMatchingPage.steps.checkAnswer();
|
96
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
97
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
98
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
99
|
+
|
100
|
+
cy.log('When the user gives correct input to the response but with a different identical option and user selects the show correct answer checkbox, then red cross-mark icon should be displayed besides the different identical response, correct answer container should be displayed with the user response marked incorrect and user should be awarded with zero points');
|
101
|
+
|
102
|
+
cy.log('Answering the response 1 with a different correct identical option');
|
103
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Identical correct answer for stem 1', 0);
|
104
|
+
listMatchingPage.steps.checkShowCorrectAnswerCheckbox();
|
105
|
+
listMatchingPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
106
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
107
|
+
listMatchingPage.previewScoreText()
|
108
|
+
.verifyInnerText('0/20');
|
109
|
+
listMatchingPage.steps.verifyCorrectAnswerStemOptionsInCorrectAnswerContainerAndCount(['Identical correct answer for stem 1'], ['1']);
|
110
|
+
|
111
|
+
cy.log('Post-step: Unchecking show correct answer checkbox');
|
112
|
+
listMatchingPage.steps.uncheckShowCorrectAnswerCheckbox();
|
113
|
+
|
114
|
+
cy.log('When user clicks on \'Check answer\' button, then then red cross-mark icon should be displayed besides the different identical response and correct answer container should not be displayed')
|
115
|
+
listMatchingPage.steps.checkAnswer()
|
116
|
+
listMatchingPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
117
|
+
listMatchingPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
118
|
+
listMatchingPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
119
|
+
});
|
120
|
+
});
|
121
|
+
}
|
122
|
+
});
|
@@ -26,7 +26,7 @@ describe('Create Item page - List Matching - grouped options layout - Manually s
|
|
26
26
|
listMatchingPage.steps.verifyGroupedResponseOptionsInPreviewTab(1, 'Group 2', ['Correct answer for stem 2', 'Incorrect answer 2']);
|
27
27
|
});
|
28
28
|
|
29
|
-
listMatchingPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
|
29
|
+
listMatchingPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Manually scored');
|
30
30
|
});
|
31
31
|
|
32
32
|
describe('Question Preview: Non scored grouped options layout', () => {
|