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,171 @@
|
|
1
|
+
import { dialogBoxBase, fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
+
import { uploadImageSectionComponent } from "../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
|
+
import constants from "../../../fixtures/constants";
|
5
|
+
import utilities from "../../../support/helpers/utilities";
|
6
|
+
const css = Cypress.env('css');
|
7
|
+
const grepTags = Cypress.env('grepTags');
|
8
|
+
|
9
|
+
describe('Create item page - fill in the gaps over image - dropdown: Image properties', () => {
|
10
|
+
before(() => {
|
11
|
+
cy.loginAs('admin');
|
12
|
+
});
|
13
|
+
|
14
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
15
|
+
describe('Edit image popup contents and functionality', () => {
|
16
|
+
abortEarlySetup();
|
17
|
+
before(() => {
|
18
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
19
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
20
|
+
cy.log('Uploading an image');
|
21
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
22
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
23
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
24
|
+
uploadImageSectionComponent.steps.clickOnEditImageButton();
|
25
|
+
});
|
26
|
+
|
27
|
+
uploadImageSectionComponent.tests.verifyUploadImagePopupImageTitle();
|
28
|
+
|
29
|
+
uploadImageSectionComponent.tests.uploadImagePopupContents(500, 500);
|
30
|
+
|
31
|
+
uploadImageSectionComponent.tests.verifyButtonReplaceInImagePopup();
|
32
|
+
|
33
|
+
uploadImageSectionComponent.tests.uploadImageHeightWidthAspectRatioAndResetDimensionsFunctionality(500, 500);
|
34
|
+
|
35
|
+
it('When user clicks on \'Cancel\' button the popup should close and image should not get edited', () => {
|
36
|
+
uploadImageSectionComponent.steps.clickOnImagePopupCancelButton();
|
37
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyWidthInputFieldValue(500);
|
38
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyHeightInputFieldValue(500);
|
39
|
+
cy.log('Post step: Clicking on edit image button')
|
40
|
+
uploadImageSectionComponent.steps.clickOnEditImageButton();
|
41
|
+
});
|
42
|
+
|
43
|
+
uploadImageSectionComponent.tests.uploadImageReplaceButtonFunctionality();
|
44
|
+
|
45
|
+
it('When user makes some edits and clicks on the \'Ok\' button the popup should close and the edited image should be uploaded', () => {
|
46
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
47
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyWidthInputFieldValue(225);
|
48
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyHeightInputFieldValue(225);
|
49
|
+
});
|
50
|
+
});
|
51
|
+
}
|
52
|
+
|
53
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
54
|
+
describe('Edit image pop up content - source URL', () => {
|
55
|
+
abortEarlySetup();
|
56
|
+
before(() => {
|
57
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
58
|
+
cy.log('Uploading an image using source url');
|
59
|
+
uploadImageSectionComponent.steps.clickOnSourceURL();
|
60
|
+
uploadImageSectionComponent.steps.uploadImageUsingSourceURL(constants.flowerImage);
|
61
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
62
|
+
uploadImageSectionComponent.steps.clickOnEditImageButton();
|
63
|
+
});
|
64
|
+
|
65
|
+
//Failing due to https://redmine.zeuslearning.com/issues/543833
|
66
|
+
uploadImageSectionComponent.tests.verifyUploadImageSourceURLTitle();
|
67
|
+
|
68
|
+
uploadImageSectionComponent.tests.verifyUploadImageSourceURLLabelAndInputFieldInEditSourceURLPopup();
|
69
|
+
|
70
|
+
uploadImageSectionComponent.tests.uploadImagePopupContents(650, 684);
|
71
|
+
});
|
72
|
+
}
|
73
|
+
|
74
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
75
|
+
describe('Delete image - Edit tab', () => {
|
76
|
+
abortEarlySetup();
|
77
|
+
before(() => {
|
78
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
79
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
80
|
+
cy.log('Uploading an image');
|
81
|
+
uploadImageSectionComponent.steps.uploadFile('highlightImage.jpg');
|
82
|
+
uploadImageSectionComponent.steps.verifyUploadedImageInImagePopup();
|
83
|
+
uploadImageSectionComponent.steps.clickOnImagePopupOkButton();
|
84
|
+
});
|
85
|
+
|
86
|
+
uploadImageSectionComponent.tests.verifyDeleteImagePopup();
|
87
|
+
|
88
|
+
it('When user clicks on \'Cancel\' button the popup should close and image should not get deleted', () => {
|
89
|
+
dialogBoxBase.steps.clickOnRejectButtonInDialogBox();
|
90
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.imageSectionImage(), 'visible');
|
91
|
+
});
|
92
|
+
|
93
|
+
it('When user clicks on \'Delete image\' button the popup should close and image should get deleted', () => {
|
94
|
+
uploadImageSectionComponent.steps.clickOnDeleteImageButton();
|
95
|
+
dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
|
96
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.imageSectionImage(), 'notExist')
|
97
|
+
});
|
98
|
+
});
|
99
|
+
}
|
100
|
+
|
101
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
102
|
+
describe('Image properties section contents', () => {
|
103
|
+
abortEarlySetup();
|
104
|
+
before(() => {
|
105
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
106
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
107
|
+
cy.barsPreLoaderWait();
|
108
|
+
});
|
109
|
+
|
110
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyImagePropertiesSectionContents();
|
111
|
+
});
|
112
|
+
}
|
113
|
+
|
114
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
115
|
+
describe('Image properties - \'Image hover text\' and \'Image alternative text\' : Edit tab', () => {
|
116
|
+
abortEarlySetup();
|
117
|
+
before(() => {
|
118
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
119
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
120
|
+
cy.barsPreLoaderWait();
|
121
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
122
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
123
|
+
});
|
124
|
+
|
125
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyImageHoverAndAlternativeTextFunctionalityInEditTab();
|
126
|
+
});
|
127
|
+
}
|
128
|
+
|
129
|
+
describe('Image properties - \'Image hover text\' and \'Image alternative text\' : Preview tab', { tags: 'smoke' }, () => {
|
130
|
+
abortEarlySetup();
|
131
|
+
before(() => {
|
132
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
133
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
134
|
+
cy.barsPreLoaderWait();
|
135
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
136
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
137
|
+
});
|
138
|
+
|
139
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyImageHoverAndAlternativeTextFunctionalityInPreviewTab();
|
140
|
+
});
|
141
|
+
|
142
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
143
|
+
describe('Image properties - \'Height and width (px)\' : Edit tab', () => {
|
144
|
+
abortEarlySetup();
|
145
|
+
before(() => {
|
146
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
147
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
148
|
+
cy.barsPreLoaderWait();
|
149
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
150
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
151
|
+
});
|
152
|
+
|
153
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyImagePropertiesHeightAndWidthInputFieldInEditTab();
|
154
|
+
});
|
155
|
+
}
|
156
|
+
|
157
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
158
|
+
describe('Image properties - \'Height and width (px)\' : Preview tab', () => {
|
159
|
+
abortEarlySetup();
|
160
|
+
before(() => {
|
161
|
+
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
162
|
+
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
163
|
+
cy.barsPreLoaderWait();
|
164
|
+
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
165
|
+
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
166
|
+
});
|
167
|
+
|
168
|
+
fillInTheGapsOverImageDropdownPage.tests.verifyImagePropertiesHeightAndWidthInputFieldInPreviewTab();
|
169
|
+
});
|
170
|
+
}
|
171
|
+
});
|
@@ -33,7 +33,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
33
33
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
34
34
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(2, correctTabAnswerArray[2]);
|
35
35
|
fillInTheGapsOverImageDropdownPage.steps.selectPartialDifferentWeightsCheckbox();
|
36
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
37
36
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([8, 4, 4]);
|
38
37
|
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
39
38
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
|
@@ -42,6 +41,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
42
41
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([5, 6, 4]);
|
43
42
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
44
43
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
45
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
45
46
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
46
47
|
});
|
47
48
|
|
@@ -298,7 +299,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
298
299
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
299
300
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(2, correctTabAnswerArray[2]);
|
300
301
|
fillInTheGapsOverImageDropdownPage.steps.selectPartialDifferentWeightsCheckbox();
|
301
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
302
302
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([5, 6, 4]);
|
303
303
|
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
304
304
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
|
@@ -307,6 +307,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
307
307
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([8, 4, 4]);
|
308
308
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
309
309
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
310
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
311
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
310
312
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
311
313
|
});
|
312
314
|
|
@@ -519,7 +521,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
519
521
|
fillInTheGapsOverImageDropdownPage.steps.switchToCorrectTab();
|
520
522
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(2, optionsForResponse3[3]);
|
521
523
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([2.2, 2.2, 6.6]);
|
522
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
523
524
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
524
525
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
525
526
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
@@ -563,7 +564,6 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
563
564
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
564
565
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(2, correctTabAnswerArray[2]);
|
565
566
|
fillInTheGapsOverImageDropdownPage.steps.selectPartialDifferentWeightsCheckbox();
|
566
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
567
567
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([9, 3, 3]);
|
568
568
|
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
569
569
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
|
@@ -572,6 +572,8 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial dif
|
|
572
572
|
fillInTheGapsOverImageDropdownPage.steps.addPartialDifferentWeightsPoints([8, 4, 3]);
|
573
573
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
574
574
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
575
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
576
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
575
577
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
576
578
|
});
|
577
579
|
|
@@ -38,9 +38,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
|
|
38
38
|
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
39
39
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
40
40
|
});
|
41
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
42
41
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
43
42
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
43
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
44
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
44
45
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
45
46
|
});
|
46
47
|
|
@@ -279,9 +280,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
|
|
279
280
|
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
280
281
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
281
282
|
});
|
282
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
283
283
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
284
284
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
285
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
286
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
285
287
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
286
288
|
});
|
287
289
|
|
@@ -521,9 +523,10 @@ describe('Create item page - Fill in the gaps over image - dropdown: Partial equ
|
|
521
523
|
alternateTabAnswerArray.forEach((dropdownOption, dropdownIndex) => {
|
522
524
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(dropdownIndex, dropdownOption);
|
523
525
|
});
|
524
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckRoundDownScoreCheckbox();
|
525
526
|
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
526
527
|
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
528
|
+
fillInTheGapsOverImageDropdownPage.steps.expandMinimumScoringDropdown();
|
529
|
+
fillInTheGapsOverImageDropdownPage.steps.selectMinimumScoringTypeListOption('Award minimum score only if attempted');
|
527
530
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
528
531
|
});
|
529
532
|
|
@@ -11,7 +11,7 @@ describe('Create item page - Fill in the gaps over image - dropdown: Preview tab
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
describe('Preview tab contents', () => {
|
14
|
+
describe('Preview tab contents', { tags: 'smoke' }, () => {
|
15
15
|
abortEarlySetup();
|
16
16
|
before(() => {
|
17
17
|
cy.log('Navigating to Fill in the gaps over image - dropdown question type');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAddResponseContainer.js
CHANGED
@@ -18,7 +18,7 @@ describe('Create item page - Fill in the gaps over image - text: Add response co
|
|
18
18
|
});
|
19
19
|
|
20
20
|
it('By default the \'Add response container\' button should not exist', () => {
|
21
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.
|
21
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.addResponseContainerButtonWrapper(), 'notExist');
|
22
22
|
});
|
23
23
|
|
24
24
|
it('When the user has uploaded an image in image section, then \'Add response container\' button should be displayed', () => {
|
package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettings.js
CHANGED
@@ -352,7 +352,7 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
352
352
|
|
353
353
|
it('When the input field of \'Height\' and \'Width\' is kept empty, the default dimension of the response field should be (197x46)px in the \'Set correct answer\' section response field', () => {
|
354
354
|
fillInTheGapsOverImageTextPage.steps.verifyHeightResponseFieldSetCorrectAnswerSection(0, '46px');
|
355
|
-
fillInTheGapsOverImageTextPage.steps.verifyWidthResponseFieldSetCorrectAnswerSection(0, '
|
355
|
+
fillInTheGapsOverImageTextPage.steps.verifyWidthResponseFieldSetCorrectAnswerSection(0, '197px');
|
356
356
|
});
|
357
357
|
|
358
358
|
it('When the user adds \'Height\' for the response field then the height of the response field should get updated accordingly in the \'Set correct answer\' section', () => {
|
@@ -416,7 +416,7 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
416
416
|
|
417
417
|
it('When the input field of \'Height\' and \'Width\' is kept empty, the default dimension of the response field should be (197x46)px for the preview tab', () => {
|
418
418
|
fillInTheGapsOverImageTextPage.steps.verifyHeightResponseFieldPreviewTab(0, '46px');
|
419
|
-
fillInTheGapsOverImageTextPage.steps.verifyWidthResponseFieldPreviewTab(0, '
|
419
|
+
fillInTheGapsOverImageTextPage.steps.verifyWidthResponseFieldPreviewTab(0, '197px');
|
420
420
|
});
|
421
421
|
|
422
422
|
it('When the user adds \'Height\' for the response field then the height of the response field should get updated accordingly in the preview tab', () => {
|
@@ -2,11 +2,9 @@ import { specialOrMathCharacters } from "../../../fixtures/specialAndMathCharact
|
|
2
2
|
import { fillInTheGapsOverImageTextPage } from "../../../pages";
|
3
3
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
4
4
|
import utilities from "../../../support/helpers/utilities";
|
5
|
-
const css = Cypress.env('css');
|
6
5
|
const correctTabAnswerArray = ['Flower', 'Leaf'];
|
7
6
|
const incorrectAnswerArray = ['Root', 'Branch'];
|
8
|
-
const
|
9
|
-
const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
|
7
|
+
const fontSizes = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
|
10
8
|
let symbolsString = specialOrMathCharacters['specialCharacters'].characters.map((icon) => icon.symbol);
|
11
9
|
symbolsString = symbolsString.join('');
|
12
10
|
|
@@ -42,15 +40,15 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
42
40
|
|
43
41
|
fillInTheGapsOverImageTextPage.tests.verifyFontSizeSectionContents();
|
44
42
|
|
45
|
-
|
46
|
-
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the set correct answer section should change to ${option}`, () => {
|
43
|
+
Object.keys(fontSizes).forEach((option, fontsIndex) => {
|
44
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the set correct answer section should change to ${fontSizes[option]}`, () => {
|
47
45
|
fillInTheGapsOverImageTextPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
48
46
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.fontSizeDropdown(), `${option}`);
|
49
47
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.responseFieldSetCorrectAnswerSection(), {
|
50
|
-
'font-size':
|
48
|
+
'font-size': fontSizes[option]
|
51
49
|
});
|
52
50
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.highlightNumeration(), {
|
53
|
-
'font-size':
|
51
|
+
'font-size': fontSizes[option]
|
54
52
|
});
|
55
53
|
});
|
56
54
|
});
|
@@ -73,26 +71,26 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
73
71
|
fillInTheGapsOverImageTextPage.steps.expandAdditonalSettings();
|
74
72
|
});
|
75
73
|
|
76
|
-
|
77
|
-
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${option} accordingly`, () => {
|
74
|
+
Object.keys(fontSizes).forEach((option, fontsIndex) => {
|
75
|
+
it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview tab should change to ${fontSizes[option]} accordingly`, () => {
|
78
76
|
fillInTheGapsOverImageTextPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
|
79
77
|
utilities.verifyInnerText(fillInTheGapsOverImageTextPage.fontSizeDropdown(), `${option}`);
|
80
78
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
81
79
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.questionInstructionsText(), {
|
82
|
-
'font-size': fontSizes[
|
80
|
+
'font-size': fontSizes[option]
|
83
81
|
});
|
84
82
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.responseFieldPreviewTab(), {
|
85
|
-
'font-size': fontSizes[
|
83
|
+
'font-size': fontSizes[option]
|
86
84
|
});
|
87
85
|
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
88
86
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.previewTabCorrectAnswerLabel(), {
|
89
|
-
'font-size': fontSizes[
|
87
|
+
'font-size': fontSizes[option]
|
90
88
|
});
|
91
89
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.responseNumeration(), {
|
92
|
-
'font-size': fontSizes[
|
90
|
+
'font-size': fontSizes[option]
|
93
91
|
});
|
94
92
|
utilities.verifyCSS(fillInTheGapsOverImageTextPage.previewTabCorrectAnswerResponseWrapper(), {
|
95
|
-
'font-size': fontSizes[
|
93
|
+
'font-size': fontSizes[option]
|
96
94
|
});
|
97
95
|
fillInTheGapsOverImageTextPage.steps.uncheckShowCorrectAnswerCheckbox();
|
98
96
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
@@ -112,16 +112,15 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
112
112
|
|
113
113
|
it('When the \'Multiline response\' functionality is enabled then the user should be able to add Multiline responses in the preview tab', () => {
|
114
114
|
fillInTheGapsOverImageTextPage.steps.enterTextInMultilineResponseAreaPreviewTab(0, 'l{enter}o{enter}r{enter}e{enter}m');
|
115
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaPreviewTab(0, 'l\no\nr\ne\nm
|
115
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaPreviewTab(0, 'l\no\nr\ne\nm');
|
116
116
|
});
|
117
117
|
|
118
118
|
it('When the \'Multiline response\' functionality is enabled then the user should be able to enter multiline characters including the line breaks up to the set character limit in the preview tab', () => {
|
119
119
|
fillInTheGapsOverImageTextPage.steps.enterTextInMultilineResponseAreaPreviewTab(0, 'l{enter}o{enter}r{enter}e{enter}m{enter}e{enter}s{enter}u{enter}m{enter}l{enter}nam');
|
120
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaPreviewTab(0, 'l\no\nr\ne\nm\ne\ns\nu\nm\nl\n
|
120
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaPreviewTab(0, 'l\no\nr\ne\nm\ne\ns\nu\nm\nl\n');
|
121
121
|
});
|
122
122
|
});
|
123
123
|
|
124
|
-
//Failing due to https://redmine.zeuslearning.com/issues/547600
|
125
124
|
describe('Additional settings: Scoring for multiline response', () => {
|
126
125
|
abortEarlySetup();
|
127
126
|
before(() => {
|
@@ -137,9 +136,9 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
137
136
|
|
138
137
|
it('When the user has enabled the Multiline functionality then user should be able to set multiline correct answers and points in the \'Set correct answer\' section', () => {
|
139
138
|
fillInTheGapsOverImageTextPage.steps.enterTextInMultilineResponseAreaSetCorrectAnswerSection(0, 'R{enter}e{enter}s{enter}p{enter}o{enter}n{enter}s{enter}e{enter}1');
|
140
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaSetCorrectAnswerSection(0, 'R\ne\ns\np\no\nn\ns\ne\n1
|
139
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaSetCorrectAnswerSection(0, 'R\ne\ns\np\no\nn\ns\ne\n1');
|
141
140
|
fillInTheGapsOverImageTextPage.steps.enterTextInMultilineResponseAreaSetCorrectAnswerSection(1, 'Response 2')
|
142
|
-
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaSetCorrectAnswerSection(1, 'Response 2
|
141
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInMultilineResponseAreaSetCorrectAnswerSection(1, 'Response 2');
|
143
142
|
fillInTheGapsOverImageTextPage.steps.allotPoints(10);
|
144
143
|
});
|
145
144
|
|
@@ -98,6 +98,7 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
98
98
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
99
99
|
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
100
100
|
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
101
|
+
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
101
102
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabResponseFieldAndCorrectAnswerNumeration(uppercase);
|
102
103
|
});
|
103
104
|
|
@@ -107,6 +108,7 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
107
108
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
108
109
|
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, incorrectAnswerArray[0]);
|
109
110
|
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, incorrectAnswerArray[1]);
|
111
|
+
fillInTheGapsOverImageTextPage.steps.checkShowCorrectAnswerCheckbox();
|
110
112
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabResponseFieldAndCorrectAnswerNumeration(lowercase);
|
111
113
|
});
|
112
114
|
});
|
@@ -160,7 +162,6 @@ describe('Fill In the gaps over image - text - Additional settings', () => {
|
|
160
162
|
});
|
161
163
|
});
|
162
164
|
|
163
|
-
//Failing due to https://redmine.zeuslearning.com/issues/548127
|
164
165
|
describe('Additional settings: Display answer numeration to students - Preview tab', () => {
|
165
166
|
abortEarlySetup();
|
166
167
|
before(() => {
|
@@ -4,47 +4,50 @@ import utilities from "../../../support/helpers/utilities";
|
|
4
4
|
const css = Cypress.env('css');
|
5
5
|
const correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
6
6
|
const incorrectAnswerArray = ['Root', 'Branch', 'Seed'];
|
7
|
+
const grepTags = Cypress.env('grepTags');
|
7
8
|
|
8
9
|
describe('Create item page - Fill in the gaps over image - text: All or nothing scoring', () => {
|
9
10
|
before(() => {
|
10
11
|
cy.loginAs('admin');
|
11
12
|
});
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
14
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
15
|
+
describe('Show correct answer', () => {
|
16
|
+
abortEarlySetup();
|
17
|
+
before(() => {
|
18
|
+
cy.log('Navigate to fill in the gaps over image - text question type');
|
19
|
+
fillInTheGapsOverImageTextPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
20
|
+
cy.barsPreLoaderWait();
|
21
|
+
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
22
|
+
fillInTheGapsOverImageTextPage.steps.clickOnImagePopupOkButton();
|
23
|
+
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
24
|
+
fillInTheGapsOverImageTextPage.steps.addResponseContainer();
|
25
|
+
});
|
24
26
|
|
25
|
-
|
27
|
+
fillInTheGapsOverImageTextPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet();
|
26
28
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
29
|
+
it('When the user has set correct answer responses and alloted points \'Show correct answer\' checkbox should be displayed and it should be unchecked by default and points for the question should be displayed beside it', () => {
|
30
|
+
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
31
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(0, correctTabAnswerArray[0]);
|
32
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldSetCorrectAnswerSection(1, correctTabAnswerArray[1]);
|
33
|
+
fillInTheGapsOverImageTextPage.steps.allotPoints(20);
|
34
|
+
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
35
|
+
fillInTheGapsOverImageTextPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
36
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewTabScoreText(0, 20);
|
37
|
+
});
|
36
38
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
39
|
+
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', () => {
|
40
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(0, correctTabAnswerArray[0]);
|
41
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInResponseFieldPreviewTab(1, correctTabAnswerArray[1]);
|
42
|
+
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
43
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInResponseFieldPreviewTab(0, '');
|
44
|
+
fillInTheGapsOverImageTextPage.steps.verifyTextInResponseFieldPreviewTab(1, '');
|
45
|
+
});
|
43
46
|
});
|
44
|
-
}
|
47
|
+
}
|
45
48
|
|
46
49
|
//Failing due to https://redmine.zeuslearning.com/issues/545382, https://redmine.zeuslearning.com/issues/542590
|
47
|
-
describe('Question preview: Auto scored - All or nothing', () => {
|
50
|
+
describe('Question preview: Auto scored - All or nothing', { tags: 'smoke' }, () => {
|
48
51
|
abortEarlySetup();
|
49
52
|
before(() => {
|
50
53
|
cy.log('Navigate to fill in the gaps over image - text question type');
|
@@ -2,7 +2,9 @@ import { fillInTheGapsOverImageTextPage } from "../../../pages/fillInTheGapsOver
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
import { itemPreviewPage } from "../../../pages";
|
5
|
-
|
5
|
+
let checkAnswerViews = ['Question preview', 'Item preview', 'Student view'];
|
6
|
+
const views = Cypress.env('views');
|
7
|
+
checkAnswerViews = checkAnswerViews.filter(view => views.includes(view));
|
6
8
|
const correctTabAnswerArray = ['Flower', 'Leaf'];
|
7
9
|
const incorrectAnswerArray = ['Stem', 'Root'];
|
8
10
|
var itemReferenceID = "";
|
@@ -12,7 +14,7 @@ describe('Create item page - Fill in the gaps over image - text: Check answer',
|
|
12
14
|
cy.loginAs('admin');
|
13
15
|
});
|
14
16
|
|
15
|
-
|
17
|
+
checkAnswerViews.forEach((view) => {
|
16
18
|
// Remove after https://redmine.zeuslearning.com/issues/549542 is fixed
|
17
19
|
const checkAnswer = (view) => {
|
18
20
|
switch (view) {
|
@@ -29,7 +31,7 @@ describe('Create item page - Fill in the gaps over image - text: Check answer',
|
|
29
31
|
throw new Error(`Unsupported page identifier: ${view}`);
|
30
32
|
}
|
31
33
|
};
|
32
|
-
describe(`Fill in the gaps over image - text: Check answer - ${view}`, () => {
|
34
|
+
describe(`Fill in the gaps over image - text: Check answer - ${view}`, { tags: 'smoke' }, () => {
|
33
35
|
abortEarlySetup();
|
34
36
|
before(() => {
|
35
37
|
switch (view) {
|