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,254 @@
|
|
1
|
+
import { listMatchingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const css = Cypress.env('css');
|
4
|
+
const grepTags = Cypress.env('grepTags');
|
5
|
+
const stems = ['Land pollution', 'Water pollution', 'Air pollution'];
|
6
|
+
|
7
|
+
describe('Create Item page - List Matching: Question Instructions and Stems 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 List Matching question type');
|
17
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
18
|
+
cy.barsPreLoaderWait();
|
19
|
+
});
|
20
|
+
|
21
|
+
listMatchingPage.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 List Matching question type');
|
30
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
31
|
+
cy.barsPreLoaderWait();
|
32
|
+
});
|
33
|
+
|
34
|
+
listMatchingPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
35
|
+
});
|
36
|
+
}
|
37
|
+
|
38
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
39
|
+
describe('Stems - Edit tab stems section contents', () => {
|
40
|
+
abortEarlySetup();
|
41
|
+
before(() => {
|
42
|
+
cy.log('Navigating to List Matching question type');
|
43
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
44
|
+
cy.barsPreLoaderWait();
|
45
|
+
});
|
46
|
+
|
47
|
+
it('\'Stems\' label should be displayed', () => {
|
48
|
+
listMatchingPage.stemsLabel()
|
49
|
+
.verifyInnerText('Stems');
|
50
|
+
});
|
51
|
+
|
52
|
+
it('By default, 3 \'Stem\' input fields should be displayed with placeholder text and numeration, Drag handle and Delete option icon buttons should be displayed besides each input field', () => {
|
53
|
+
for (let index = 0; index < 3; index++) {
|
54
|
+
listMatchingPage.steps.verifyStemContents(index)
|
55
|
+
}
|
56
|
+
listMatchingPage.stemWrapper()
|
57
|
+
.eq(3)
|
58
|
+
.should('not.exist');
|
59
|
+
});
|
60
|
+
|
61
|
+
it('CSS of Stems section', { tags: 'css' }, () => {
|
62
|
+
listMatchingPage.stemsLabel()
|
63
|
+
.verifyCSS(css.color.sectionHeading, css.fontSize.normal, css.fontWeight.semibold);
|
64
|
+
listMatchingPage.stemWrapper()
|
65
|
+
.eq(0)
|
66
|
+
.within(() => {
|
67
|
+
listMatchingPage.dragHandleButton()
|
68
|
+
.verifyCSS(css.color.secondaryBtnActive, css.fontSize.normal, css.fontWeight.regular);
|
69
|
+
listMatchingPage.buttonDeleteStem()
|
70
|
+
.verifyPseudoClassBeforeProperty('color', css.color.deleteIcon);
|
71
|
+
listMatchingPage.stemInputField()
|
72
|
+
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
73
|
+
listMatchingPage.optionNumeration()
|
74
|
+
.verifyCSS(css.color.labels, css.fontSize.default, css.fontWeight.semibold);
|
75
|
+
});
|
76
|
+
listMatchingPage.addStemButton()
|
77
|
+
.verifyCSS(css.color.secondaryBtnActive, css.fontSize.default, css.fontWeight.medium);
|
78
|
+
});
|
79
|
+
|
80
|
+
it('On hovering over the drag handle of the stem, \'Drag to reorder\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the drag handle', () => {
|
81
|
+
listMatchingPage.steps.verifyDragHandleTooltipForStem();
|
82
|
+
});
|
83
|
+
|
84
|
+
it('When the user hovers over the enabled \'Delete\' icon buttons then, \'Delete stem\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Delete\' icon button', () => {
|
85
|
+
listMatchingPage.steps.verifyDeleteButtonTooltipForStem();
|
86
|
+
});
|
87
|
+
|
88
|
+
it('When user clicks on the \'Delete\' question stem button then the respective options input field should get deleted, option numeration should change accordingly', () => {
|
89
|
+
listMatchingPage.steps.deleteStem(0);
|
90
|
+
for (let index = 0; index < 2; index++) {
|
91
|
+
listMatchingPage.steps.verifyStemContents(index)
|
92
|
+
}
|
93
|
+
listMatchingPage.stemWrapper()
|
94
|
+
.eq(2)
|
95
|
+
.should('not.exist');
|
96
|
+
});
|
97
|
+
|
98
|
+
it('When number of stem is equal to 1, then the Delete option icon buttons should be displayed in disabled state', () => {
|
99
|
+
listMatchingPage.steps.deleteStem(0);
|
100
|
+
listMatchingPage.steps.verifyDisabledDeleteStemButton(0);
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When the user hovers over the disabled \'Delete\' icon buttons then, \'Minimum one stem is required\' message should be displayed on a tooltip and the tooltip should disappear if focus is removed from the \'Delete\' icon button', () => {
|
104
|
+
listMatchingPage.steps.verifyDisabledDeleteStemButtonTooltip();
|
105
|
+
});
|
106
|
+
|
107
|
+
it('\'Add stem\' button should be present', () => {
|
108
|
+
listMatchingPage.addStemButton()
|
109
|
+
.verifyInnerText('Add stem')
|
110
|
+
.should('be.visible');
|
111
|
+
});
|
112
|
+
|
113
|
+
it('When user adds a question stem using the \'Add stem\' button then added stem should be displayed with drag handle, placeholder text, option numeration and delete button', () => {
|
114
|
+
listMatchingPage.steps.addStem()
|
115
|
+
listMatchingPage.steps.verifyStemContents(1)
|
116
|
+
});
|
117
|
+
|
118
|
+
it('When user focus in and out of any of the \'Stem\' input field without typing anything, an error message should be thrown', () => {
|
119
|
+
listMatchingPage.steps.focusInAndFocusOutOfStemInputField(1);
|
120
|
+
listMatchingPage.steps.verifyStemErrorMessageIsDisplayed(1);
|
121
|
+
});
|
122
|
+
|
123
|
+
it('CSS of error message', { tags: 'css' }, () => {
|
124
|
+
listMatchingPage.stemWrapper()
|
125
|
+
.eq(1)
|
126
|
+
.within(() => {
|
127
|
+
listMatchingPage.errorMessage()
|
128
|
+
.verifyCSS(css.color.errorText, css.fontSize.small, css.fontWeight.regular);
|
129
|
+
});
|
130
|
+
});
|
131
|
+
|
132
|
+
it('Accessibility of error message', { tags: 'a11y' }, () => {
|
133
|
+
cy.checkAccessibility(listMatchingPage.errorMessage());
|
134
|
+
});
|
135
|
+
|
136
|
+
it('When user enters text in question stem input field the \'Error: Question stem is required.\' error message should disappear', () => {
|
137
|
+
listMatchingPage.steps.addInputToStemField(1, stems[1]);
|
138
|
+
listMatchingPage.steps.verifyStemErrorMessageIsNotDisplayed(1);
|
139
|
+
});
|
140
|
+
});
|
141
|
+
}
|
142
|
+
|
143
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
144
|
+
describe('Stems - set correct answer section', () => {
|
145
|
+
abortEarlySetup();
|
146
|
+
before(() => {
|
147
|
+
cy.log('Navigating to List Matching question type');
|
148
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
149
|
+
cy.barsPreLoaderWait();
|
150
|
+
});
|
151
|
+
|
152
|
+
it('When user clicks on the \'Delete\' question stem button then deleted stem should not be displayed in the \'Set Correct Answer\' section table', () => {
|
153
|
+
listMatchingPage.steps.deleteStem(0);
|
154
|
+
listMatchingPage.setCorrectAnswerStemRow()
|
155
|
+
.eq(2)
|
156
|
+
.should('not.exist');
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When user adds a question stem using the \'Add stem\' button then added stem should be displayed in the \'Set Correct Answer\' section table', () => {
|
160
|
+
listMatchingPage.steps.addStem();
|
161
|
+
listMatchingPage.setCorrectAnswerStemRow()
|
162
|
+
.eq(2)
|
163
|
+
.should('exist');
|
164
|
+
});
|
165
|
+
|
166
|
+
it('When user adds text to all the stem input field, the added text should be displayed in the set correct answer section section in the stem fields', () => {
|
167
|
+
listMatchingPage.steps.addInputToAllStemFields(stems);
|
168
|
+
listMatchingPage.steps.verifyAllStemTextInSetCorrectAnswerSection(stems);
|
169
|
+
});
|
170
|
+
|
171
|
+
it('When user removes text from a stem input field, the text should also be removed from the stem field in the set correct answer section', () => {
|
172
|
+
listMatchingPage.steps.clearStemInputField(0);
|
173
|
+
listMatchingPage.steps.verifyAllStemTextInSetCorrectAnswerSection(['', 'Water pollution', 'Air pollution']);
|
174
|
+
});
|
175
|
+
|
176
|
+
it('CSS of \'Set Correct Answer\' section stems', { tags: 'css' }, () => {
|
177
|
+
listMatchingPage.setCorrectAnswerStemLabel()
|
178
|
+
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
179
|
+
listMatchingPage.setCorrectAnswerStemField()
|
180
|
+
.should('have.css', 'border', `1px solid ${css.color.figDefaultComponentBorder}`);
|
181
|
+
listMatchingPage.setCorrectAnswerStemResponseArea()
|
182
|
+
.should('have.css', 'border', `2px dashed ${css.color.figDefaultComponentBorder}`);
|
183
|
+
});
|
184
|
+
});
|
185
|
+
}
|
186
|
+
|
187
|
+
describe('Stem - Preview tab section', { tags: 'smoke' }, () => {
|
188
|
+
abortEarlySetup();
|
189
|
+
before(() => {
|
190
|
+
cy.log('Navigating to List Matching question type');
|
191
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
192
|
+
cy.barsPreLoaderWait();
|
193
|
+
cy.log('Switching to Preview tab')
|
194
|
+
listMatchingPage.steps.switchToPreviewTab();
|
195
|
+
});
|
196
|
+
|
197
|
+
it('When user deletes a question stem then the deleted stem should not be displayed in the \'Preview\' tab table', () => {
|
198
|
+
cy.log('Switching to Edit tab')
|
199
|
+
listMatchingPage.steps.switchToEditTab();
|
200
|
+
listMatchingPage.steps.deleteStem(0);
|
201
|
+
cy.log('Switching to Preview tab')
|
202
|
+
listMatchingPage.steps.switchToPreviewTab();
|
203
|
+
listMatchingPage.previewTabStemRow()
|
204
|
+
.eq(2)
|
205
|
+
.should('not.exist');
|
206
|
+
});
|
207
|
+
|
208
|
+
it('When user adds a question stem using the \'Add stem\' button then added stem should be displayed in the \'Preview\' tab table', () => {
|
209
|
+
cy.log('Switching to Edit tab')
|
210
|
+
listMatchingPage.steps.switchToEditTab();
|
211
|
+
listMatchingPage.steps.addStem();
|
212
|
+
cy.log('Switching to Preview tab')
|
213
|
+
listMatchingPage.steps.switchToPreviewTab();
|
214
|
+
listMatchingPage.previewTabStemRow()
|
215
|
+
.eq(2)
|
216
|
+
.should('exist');
|
217
|
+
});
|
218
|
+
|
219
|
+
it('When user adds text to all the question stem input field, the added text should be displayed in the Preview tab table under the Question stem column', () => {
|
220
|
+
cy.log('Switching to Edit tab')
|
221
|
+
listMatchingPage.steps.switchToEditTab();
|
222
|
+
listMatchingPage.steps.addInputToAllStemFields(stems);
|
223
|
+
cy.log('Switching to Preview tab')
|
224
|
+
listMatchingPage.steps.switchToPreviewTab();
|
225
|
+
listMatchingPage.steps.verifyAllStemTextInPreviewTab(stems);
|
226
|
+
});
|
227
|
+
|
228
|
+
it('When user removes text from a stem input field, the text should also be removed from the stem field in the preview tab', () => {
|
229
|
+
cy.log('Switching to Edit tab')
|
230
|
+
listMatchingPage.steps.switchToEditTab();
|
231
|
+
listMatchingPage.stemInputField()
|
232
|
+
.eq(0)
|
233
|
+
.clear();
|
234
|
+
cy.log('Switching to Preview tab')
|
235
|
+
listMatchingPage.steps.switchToPreviewTab();
|
236
|
+
listMatchingPage.previewTabStemLabel()
|
237
|
+
.eq(0)
|
238
|
+
.verifyInnerText('');
|
239
|
+
});
|
240
|
+
|
241
|
+
it('CSS of added stems in \'Preview\' tab table', { tags: 'css' }, () => {
|
242
|
+
listMatchingPage.previewTabStemLabel()
|
243
|
+
.verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
|
244
|
+
listMatchingPage.previewTabStemField()
|
245
|
+
.should('have.css', 'border', `1px solid ${css.color.figDefaultComponentBorder}`);
|
246
|
+
listMatchingPage.previewTabStemResponseArea()
|
247
|
+
.should('have.css', 'border', `2px dashed ${css.color.figDefaultComponentBorder}`);
|
248
|
+
});
|
249
|
+
|
250
|
+
it('Accessibility of \'Preview\' tab stem fields', { tags: 'a11y' }, () => {
|
251
|
+
cy.checkAccessibility(listMatchingPage.previewTabStemLabel().parents('[class*="ClozeWithDragAndDropstyles__QuestionItemContainer"]'));
|
252
|
+
});
|
253
|
+
});
|
254
|
+
});
|
@@ -0,0 +1,191 @@
|
|
1
|
+
import { listMatchingPage } from "../../../pages";
|
2
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
+
const grepTags = Cypress.env('grepTags');
|
4
|
+
let stems = ['Stem 1', 'Stem 2', 'Stem 3'];
|
5
|
+
let optionsForResponses = ['Correct answer for stem 1', 'Correct answer for stem 2', 'Correct answer for stem 3'];
|
6
|
+
|
7
|
+
describe('Create Item page - List Matching: Randomize options, Reuse options, Hide drag handle functionalities for \'Standard\' response option layout in preview tab', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe('Randomize options - Functionality : Preview tab', { tags: 'smoke' }, () => {
|
13
|
+
let optionsArray = [];
|
14
|
+
let stemsArray = [];
|
15
|
+
abortEarlySetup();
|
16
|
+
before(() => {
|
17
|
+
cy.log('Navigating to List Matching question type');
|
18
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
19
|
+
cy.barsPreLoaderWait();
|
20
|
+
listMatchingPage.steps.addInputToAllStemFields(stems);
|
21
|
+
listMatchingPage.steps.addInputToOptionsForDragAndDropFields(optionsForResponses);
|
22
|
+
listMatchingPage.steps.allotPoints('10');
|
23
|
+
listMatchingPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
it('When the \'Randomize options\' functionality is disabled, then the draggable options in the response container should be displayed in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
|
27
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
28
|
+
});
|
29
|
+
|
30
|
+
it('When the \'Randomize options\' functionality is disabled, the stem fields should be displayed in the order in which the user has set them in the Stems section', () => {
|
31
|
+
listMatchingPage.steps.verifyStemFieldsInPreviewTab(stems);
|
32
|
+
});
|
33
|
+
|
34
|
+
it('When the user enables the \'Randomize options\' functionality, then the draggable options in the response container should be displayed in a random order', () => {
|
35
|
+
listMatchingPage.steps.switchToEditTab();
|
36
|
+
listMatchingPage.steps.checkRandomizeOptionsCheckbox();
|
37
|
+
cy.log('Added wait here to prevent cypress from switching to preview tab just after checking randomize options checkbox');
|
38
|
+
cy.wait(1000);
|
39
|
+
listMatchingPage.steps.switchToPreviewTab();
|
40
|
+
listMatchingPage.steps.verifyRandomizeOptionOrder(optionsForResponses, 'List matching');
|
41
|
+
optionsArray = listMatchingPage.steps.getOptionsArray('List Matching');
|
42
|
+
});
|
43
|
+
|
44
|
+
it('When the user enables the \'Randomize options\' functionality, then the stem fields should be displayed in a random order', () => {
|
45
|
+
listMatchingPage.steps.verifyRandomizedStemsOrder(stems);
|
46
|
+
stemsArray = listMatchingPage.steps.getStemsArray();
|
47
|
+
});
|
48
|
+
|
49
|
+
it('When the user switches to \'Edit tab\' and does not modify any question properties, then the order of the draggable options should not change in the response container', () => {
|
50
|
+
listMatchingPage.steps.switchToEditTab();
|
51
|
+
listMatchingPage.steps.switchToPreviewTab();
|
52
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsArray);
|
53
|
+
});
|
54
|
+
|
55
|
+
it('When the user switches to \'Edit tab\' and does not modify any question properties, then the order of the stem fields should not change in the response container', () => {
|
56
|
+
listMatchingPage.steps.switchToEditTab();
|
57
|
+
listMatchingPage.steps.switchToPreviewTab();
|
58
|
+
listMatchingPage.steps.verifyStemFieldsInPreviewTab(stemsArray);
|
59
|
+
});
|
60
|
+
|
61
|
+
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the draggable options should change in the response container', () => {
|
62
|
+
listMatchingPage.steps.switchToEditTab();
|
63
|
+
listMatchingPage.steps.allotPoints(5);
|
64
|
+
cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
|
65
|
+
cy.wait(1000);
|
66
|
+
listMatchingPage.steps.switchToPreviewTab();
|
67
|
+
listMatchingPage.steps.verifyRandomizeOptionOrder(optionsForResponses, 'List matching');
|
68
|
+
listMatchingPage.steps.verifyRerandomizedOptionsOrder(optionsArray, 'List matching')
|
69
|
+
});
|
70
|
+
|
71
|
+
it('When the user switches to \'Edit tab\' and modifies any of question properties, then the order of the stem fields should change in the response container', () => {
|
72
|
+
listMatchingPage.steps.switchToEditTab();
|
73
|
+
listMatchingPage.steps.selectPartialEqualWeightsCheckbox();
|
74
|
+
cy.log('Added wait here to prevent cypress from switching to preview tab just after modifying the question');
|
75
|
+
cy.wait(1000);
|
76
|
+
listMatchingPage.steps.switchToPreviewTab();
|
77
|
+
listMatchingPage.steps.verifyRandomizedStemsOrder(stems);
|
78
|
+
listMatchingPage.steps.verifyRerandomizedStemsOrder(stemsArray);
|
79
|
+
});
|
80
|
+
|
81
|
+
it('When the user disables the \'Randomize options\' functionality, then the draggable options in the response container should be displayed in the order in which the user has set them in the \'Options for drag & drop\' section', () => {
|
82
|
+
listMatchingPage.steps.switchToEditTab();
|
83
|
+
listMatchingPage.steps.uncheckRandomizeOptionsCheckbox();
|
84
|
+
listMatchingPage.steps.switchToPreviewTab();
|
85
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
86
|
+
});
|
87
|
+
|
88
|
+
it('When the user has disabled the \'Randomize options\' functionality, then the stem fields should be displayed in the order in which the user has set them in the set correct answer section', () => {
|
89
|
+
listMatchingPage.steps.verifyStemFieldsInPreviewTab(stems)
|
90
|
+
});
|
91
|
+
});
|
92
|
+
|
93
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
94
|
+
describe('Reuse options - Functionality: Preview tab', () => {
|
95
|
+
abortEarlySetup();
|
96
|
+
before(() => {
|
97
|
+
cy.log('Navigating to List Matching question type');
|
98
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
99
|
+
cy.barsPreLoaderWait();
|
100
|
+
listMatchingPage.steps.addInputToOptionsForDragAndDropFields(optionsForResponses);
|
101
|
+
});
|
102
|
+
|
103
|
+
it('When the \'Reuse options\' functionality is disabled, then on attempting the question, the draggable options should get removed from the response container', () => {
|
104
|
+
listMatchingPage.steps.switchToPreviewTab();
|
105
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 0);
|
106
|
+
listMatchingPage.steps.verifyFilledOptionResponseAreaInPreviewTab(0, 'Correct answer for stem 1')
|
107
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab([optionsForResponses[1], optionsForResponses[2]]);
|
108
|
+
});
|
109
|
+
|
110
|
+
it('When the \'Reuse options\' functionality is enabled, then on attempting the question, the draggable options should persist in the response container', () => {
|
111
|
+
listMatchingPage.steps.switchToEditTab();
|
112
|
+
listMatchingPage.steps.checkReuseOptionsCheckbox();
|
113
|
+
listMatchingPage.steps.switchToPreviewTab();
|
114
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 0);
|
115
|
+
listMatchingPage.steps.verifyFilledOptionResponseAreaInPreviewTab(0, 'Correct answer for stem 1');
|
116
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
117
|
+
});
|
118
|
+
|
119
|
+
it('The user should be able to use the same draggable option for multiple response areas', () => {
|
120
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 0);
|
121
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 1);
|
122
|
+
listMatchingPage.steps.verifyFilledOptionResponseAreaInPreviewTab(0, 'Correct answer for stem 1');
|
123
|
+
listMatchingPage.steps.verifyFilledOptionResponseAreaInPreviewTab(1, 'Correct answer for stem 1');
|
124
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
125
|
+
});
|
126
|
+
|
127
|
+
it('When the user removes the option from the response area and moves it into the grouped container, only one option should be displayed in the respective group', () => {
|
128
|
+
listMatchingPage.steps.clickAndDropOptionFromResponseAreaToDraggableOptionsContainerInPreviewTab(0);
|
129
|
+
listMatchingPage.steps.clickAndDropOptionFromResponseAreaToDraggableOptionsContainerInPreviewTab(1);
|
130
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
131
|
+
});
|
132
|
+
|
133
|
+
it('When the user disables the \'Reuse options\' functionality, then on attempting the question, the draggable options should get removed from the response container', () => {
|
134
|
+
listMatchingPage.steps.switchToEditTab();
|
135
|
+
listMatchingPage.steps.uncheckReuseOptionsCheckbox();
|
136
|
+
listMatchingPage.steps.switchToPreviewTab();
|
137
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 0);
|
138
|
+
listMatchingPage.steps.verifyFilledOptionResponseAreaInPreviewTab(0, 'Correct answer for stem 1');
|
139
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab([optionsForResponses[1], optionsForResponses[2]]);
|
140
|
+
});
|
141
|
+
});
|
142
|
+
}
|
143
|
+
|
144
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
145
|
+
describe('Reuse options - Scoring', () => {
|
146
|
+
abortEarlySetup();
|
147
|
+
before(() => {
|
148
|
+
cy.log('Navigating to List Matching question type');
|
149
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
150
|
+
cy.barsPreLoaderWait();
|
151
|
+
listMatchingPage.steps.addInputToOptionsForDragAndDropFields(optionsForResponses);
|
152
|
+
listMatchingPage.steps.checkReuseOptionsCheckbox();
|
153
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Correct answer for stem 1', 0);
|
154
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInSetCorrectAnswerSection('Correct answer for stem 1', 1);
|
155
|
+
listMatchingPage.steps.allotPoints(5);
|
156
|
+
listMatchingPage.steps.switchToPreviewTab();
|
157
|
+
});
|
158
|
+
|
159
|
+
it('When the user has set same answer options in the \'Set correct answer\' section, then the user should be awarded full points on attempting the question with reused options', () => {
|
160
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 0);
|
161
|
+
listMatchingPage.steps.clickAndDropOptionInStemResponseAreaInPreviewTab('Correct answer for stem 1', 1);
|
162
|
+
listMatchingPage.previewScoreText()
|
163
|
+
.verifyInnerText('5/5');
|
164
|
+
listMatchingPage.steps.verifyOptionsInPreviewTab(optionsForResponses);
|
165
|
+
});
|
166
|
+
});
|
167
|
+
}
|
168
|
+
|
169
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
170
|
+
describe('Hide drag handle - Functionality: Preview tab', () => {
|
171
|
+
abortEarlySetup();
|
172
|
+
before(() => {
|
173
|
+
cy.log('Navigating to List Matching question type');
|
174
|
+
listMatchingPage.steps.navigateToCreateQuestion('list matching');
|
175
|
+
cy.barsPreLoaderWait();
|
176
|
+
});
|
177
|
+
|
178
|
+
it('When the \'Hide drag handle\' functionality is disabled, then the draggable options displayed in response container of the preview tab should have a drag handle', () => {
|
179
|
+
listMatchingPage.steps.switchToPreviewTab();
|
180
|
+
listMatchingPage.steps.verifyDragIconVisibleInOptionsInPreviewTab('list matching');
|
181
|
+
});
|
182
|
+
|
183
|
+
it('When the \'Hide drag handle\' functionality is enabled, then the draggable options displayed in response container of the preview tab should not have a drag handle', () => {
|
184
|
+
listMatchingPage.steps.switchToEditTab();
|
185
|
+
listMatchingPage.steps.checkHideDragHandleCheckbox();
|
186
|
+
listMatchingPage.steps.switchToPreviewTab();
|
187
|
+
listMatchingPage.steps.verifyDragIconNotVisibleInOptionsInPreviewTab('list matching');
|
188
|
+
});
|
189
|
+
});
|
190
|
+
}
|
191
|
+
});
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../../support/helpers/utilities";
|
4
3
|
|
5
4
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
6
5
|
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
@@ -134,6 +133,7 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
134
133
|
|
135
134
|
it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
|
136
135
|
listOrderingPage.steps.resetQuestionPreview(options);
|
136
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 0);
|
137
137
|
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
|
138
138
|
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
139
139
|
listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
|
@@ -131,6 +131,7 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
131
131
|
|
132
132
|
it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
|
133
133
|
listOrderingPage.steps.resetQuestionPreview(options);
|
134
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 0);
|
134
135
|
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
|
135
136
|
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
136
137
|
listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
|
@@ -141,7 +142,7 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
141
142
|
listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
142
143
|
listOrderingPage.steps.verifyIncorrectAttemptBorder();
|
143
144
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
144
|
-
listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '4']);
|
145
|
+
listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'sprout', 'plant', 'flower'], ['1', '2', '3', '4']);
|
145
146
|
|
146
147
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
147
148
|
|
@@ -133,6 +133,7 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
133
133
|
|
134
134
|
it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the correct tab with numeration', () => {
|
135
135
|
listOrderingPage.steps.resetQuestionPreview(options);
|
136
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 0);
|
136
137
|
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
|
137
138
|
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
138
139
|
listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
|
@@ -143,7 +144,7 @@ describe('Create Item page - List ordering: All or nothing scoring with alternat
|
|
143
144
|
listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
|
144
145
|
listOrderingPage.steps.verifyIncorrectAttemptBorder();
|
145
146
|
listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
146
|
-
listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '4']);
|
147
|
+
listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'sprout', 'plant', 'flower'], ['1', '2', '3', '4']);
|
147
148
|
|
148
149
|
listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
149
150
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
4
|
-
|
4
|
+
const grepTags = Cypress.env('grepTags');
|
5
5
|
let options = ['sprout', 'plant', 'flower', 'seed'];
|
6
6
|
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
7
7
|
let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
|
@@ -11,39 +11,41 @@ describe('Create Item page - List ordering: All or nothing scoring', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
14
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
15
|
+
describe('Show correct answer', () => {
|
16
|
+
abortEarlySetup();
|
17
|
+
before(() => {
|
18
|
+
cy.log('Navigating to list ordering question type');
|
19
|
+
listOrderingPage.steps.navigateToCreateQuestion('list ordering');
|
20
|
+
cy.barsPreLoaderWait();
|
21
|
+
listOrderingPage.steps.addQuestionInstructions();
|
22
|
+
listOrderingPage.steps.addInputToOptionsInputField(options);
|
23
|
+
});
|
24
|
+
|
25
|
+
listOrderingPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet()
|
26
|
+
|
27
|
+
it('When the user has set correct answer options and alloted points \'Show correct answer\' checkbox should be displayed and it should be unchecked by default and points for the question should be displayed beside it', () => {
|
28
|
+
listOrderingPage.steps.switchToEditTab();
|
29
|
+
listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
|
30
|
+
listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('sprout', 1);
|
31
|
+
listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
|
32
|
+
listOrderingPage.steps.allotPoints('15');
|
33
|
+
listOrderingPage.steps.switchToPreviewTab();
|
34
|
+
listOrderingPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
35
|
+
listOrderingPage.steps.verifyPreviewTabScoreText(0, 15);
|
36
|
+
});
|
37
|
+
|
38
|
+
it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab users response should not persist', () => {
|
39
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
|
40
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
|
41
|
+
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(correctAnswerArray)
|
42
|
+
listOrderingPage.steps.resetQuestionPreview(options);
|
43
|
+
listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
44
|
+
});
|
35
45
|
});
|
46
|
+
}
|
36
47
|
|
37
|
-
|
38
|
-
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
|
39
|
-
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
|
40
|
-
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(correctAnswerArray)
|
41
|
-
listOrderingPage.steps.resetQuestionPreview(options);
|
42
|
-
listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
43
|
-
});
|
44
|
-
});
|
45
|
-
|
46
|
-
describe('Question Preview: AutoScored - All or Nothing scoring', () => {
|
48
|
+
describe('Question Preview: AutoScored - All or Nothing scoring', { tags: 'smoke' }, () => {
|
47
49
|
abortEarlySetup();
|
48
50
|
before(() => {
|
49
51
|
cy.log('Navigating to list ordering question type');
|
package/cypress/e2e/ILC/ListOrdering/{Scoring → ListOrderingScoring}/manuallyAndNonScoredScoring.js
RENAMED
@@ -2,7 +2,7 @@ import { listOrderingPage } from "../../../../pages/listOrderingPage";
|
|
2
2
|
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../../support/helpers/utilities";
|
4
4
|
|
5
|
-
let options = ['plant', '
|
5
|
+
let options = ['plant', 'flower', 'sprout', 'seed'];
|
6
6
|
let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
7
7
|
|
8
8
|
describe('Create item page - List sorting: Preview tab \'Scoring\' section', () => {
|
@@ -35,7 +35,7 @@ describe('Create item page - List sorting: Preview tab \'Scoring\' section', ()
|
|
35
35
|
utilities.verifyElementCount(listOrderingPage.previewTabOption(), 4);
|
36
36
|
});
|
37
37
|
|
38
|
-
listOrderingPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
|
38
|
+
listOrderingPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Manually scored');
|
39
39
|
});
|
40
40
|
|
41
41
|
describe('Question Preview: Non Scored', () => {
|
@@ -70,7 +70,7 @@ describe('Create item page - List sorting: Preview tab \'Scoring\' section', ()
|
|
70
70
|
cy.log('Pre-step: Deselect the show correct checkbox')
|
71
71
|
listOrderingPage.steps.uncheckShowCorrectAnswerCheckbox()
|
72
72
|
listOrderingPage.steps.checkAnswer();
|
73
|
-
listOrderingPage.steps.
|
73
|
+
listOrderingPage.steps.verifyCorrectIncorrectBorderNotVisible();
|
74
74
|
listOrderingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
75
75
|
listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
|
76
76
|
});
|
@@ -30,7 +30,6 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
30
30
|
listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('flower', 1);
|
31
31
|
listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(alternateCorrectAnswerArray);
|
32
32
|
listOrderingPage.steps.allotPartialDifferentWeightsToAllPointsFields([4, 9, 10, 6]);
|
33
|
-
listOrderingPage.steps.uncheckRoundDownScoreCheckbox();
|
34
33
|
listOrderingPage.steps.expandAdditonalSettings();
|
35
34
|
listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
36
35
|
listOrderingPage.steps.switchToPreviewTab();
|
@@ -135,6 +134,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
|
|
135
134
|
|
136
135
|
it('When the user attempts the question partially correct exclusively according to the alternate tab then points of the correctly ordered options should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
|
137
136
|
listOrderingPage.steps.resetQuestionPreview(options);
|
137
|
+
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 0);
|
138
138
|
listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
|
139
139
|
listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
|
140
140
|
listOrderingPage.steps.verifyPreviewTabScoreText(19, 29);
|