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
@@ -1,352 +0,0 @@
|
|
1
|
-
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
const optionsForResponse1 = ['Flower', 'Petal', 'Stem', 'Branch'];
|
7
|
-
const optionsForResponse2 = ['Leaf', 'Leaves', 'Stem', 'Seed'];
|
8
|
-
const optionsForResponse3 = ['Flower', 'Leaf', 'Stem', 'Roots']; //Common answer
|
9
|
-
const correctTabAnswerArray = ['Flower', 'Leaf', 'Stem'];
|
10
|
-
const alternateTabAnswerArray = ['Petal', 'Leaves', 'Stem'];
|
11
|
-
const incorrectAnswerArray = ['Branch', 'Seed', 'Roots'];
|
12
|
-
|
13
|
-
describe('Create item page - Fill in the gaps over image - dropdown: All or nothing scoring', () => {
|
14
|
-
before(() => {
|
15
|
-
cy.loginAs('admin');
|
16
|
-
});
|
17
|
-
|
18
|
-
describe('Show correct answer', () => {
|
19
|
-
abortEarlySetup();
|
20
|
-
before(() => {
|
21
|
-
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
22
|
-
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
23
|
-
cy.barsPreLoaderWait();
|
24
|
-
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
25
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
26
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
27
|
-
});
|
28
|
-
|
29
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyShowCorrectAnswerAndPointsInPreviewTabWhenNoCorrectAnswerIsSet();
|
30
|
-
|
31
|
-
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', () => {
|
32
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
33
|
-
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
34
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, optionsForResponse1[0]);
|
35
|
-
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
36
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
37
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDefaultShowCorrectAnswerCheckboxAndLabel();
|
38
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
39
|
-
});
|
40
|
-
|
41
|
-
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', () => {
|
42
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, optionsForResponse1[0]);
|
43
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
44
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyTextDisplayedInDropdownInPreviewTab(0, '');
|
45
|
-
});
|
46
|
-
});
|
47
|
-
|
48
|
-
describe('Question preview: Auto scored - All or nothing', () => {
|
49
|
-
abortEarlySetup();
|
50
|
-
before(() => {
|
51
|
-
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
52
|
-
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
53
|
-
cy.barsPreLoaderWait();
|
54
|
-
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
55
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
56
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
57
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
58
|
-
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
59
|
-
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(1, optionsForResponse2);
|
60
|
-
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
61
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
62
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
63
|
-
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
64
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
65
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
66
|
-
});
|
67
|
-
|
68
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct/incorrect icons or label should not be displayed, correct answer container along with \'Correct answers:\' label and correct responses with numeric count should be displayed below the question preview', () => {
|
69
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
70
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
71
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
72
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
73
|
-
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerLabel(), 'Correct answers:');
|
74
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
75
|
-
});
|
76
|
-
|
77
|
-
it('CSS of the correct answer container when \'Show correct answer\' checkbox is checked', { tags: 'css' }, () => {
|
78
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerLabel(), {
|
79
|
-
'color': css.color.text,
|
80
|
-
'font-size': css.fontSize.normal,
|
81
|
-
'font-weight': css.fontWeight.regular
|
82
|
-
});
|
83
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerContainer(), {
|
84
|
-
'border': `1px solid ${css.color.correctAnswerContainerBorder}`
|
85
|
-
});
|
86
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.responseNumeration(), {
|
87
|
-
'color': css.color.text,
|
88
|
-
'font-size': css.fontSize.default,
|
89
|
-
'font-weight': css.fontWeight.regular
|
90
|
-
});
|
91
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerResponseWrapper(), {
|
92
|
-
'color': css.color.text,
|
93
|
-
'font-size': css.fontSize.default,
|
94
|
-
'font-weight': css.fontWeight.regular,
|
95
|
-
'border-left': `1px solid ${css.color.correctAnswerContainerResponseBlockBorder}`,
|
96
|
-
});
|
97
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerResponseWrapper().parent().find('fieldset'), {
|
98
|
-
'border': `1px solid ${css.color.correctAnswerContainerResponseBlockBorder}`
|
99
|
-
});
|
100
|
-
});
|
101
|
-
|
102
|
-
it('Accessibility of \'Correct answer container\'', { tags: 'a11y' }, () => {
|
103
|
-
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.previewTabCorrectAnswerContainer())
|
104
|
-
cy.log('Post step: unchecking the show correct answer checkbox')
|
105
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
106
|
-
});
|
107
|
-
|
108
|
-
it('When the user selects \'Check answer\' button without attempting the question, then red cross-mark icon or green check-mark icons, correct/incorrect answer label and border and correct answer container should not be displayed', () => {
|
109
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
110
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
|
111
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabelNotExists();
|
112
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectBorderNotExists();
|
113
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
114
|
-
});
|
115
|
-
|
116
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container with all correct answers along with numeration should be displayed', () => {
|
117
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, incorrectAnswerArray[0]);
|
118
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
119
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
120
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
121
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
122
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
123
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
124
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
125
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
126
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
127
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
128
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
129
|
-
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect the options, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
130
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
131
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
132
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
133
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
134
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
135
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
136
|
-
});
|
137
|
-
|
138
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyCSSAndA11yOfIncorrectAnswerLabel('fill in the gaps over image - dropdown');
|
139
|
-
|
140
|
-
it('When the user attempts the question partially correct, then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points, green check-mark icons should be displayed beside the correct response dropdowns, red cross-mark icons should be displayed beside the incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container with correct answers for responses marked incorrect along with numeration should be displayed', () => {
|
141
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
142
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
143
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
144
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
145
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
146
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
147
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
148
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
149
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
150
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
151
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1]], ['2']);
|
152
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
153
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
154
|
-
cy.log('When user attempts the question partially correct and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct response dropdowns, red cross-mark icons should be displayed beside the incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
155
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
156
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
157
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
158
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
159
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
160
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
161
|
-
});
|
162
|
-
|
163
|
-
it('When user attempts the question correctly then on selecting \'Show correct answer\' checkbox, the user should be awarded full points and green check-mark icons should be displayed beside all the response dropdowns, a label \'Correct answer\' and correct answer border should be displayed below the question preview and the correct answer container should not be displayed', () => {
|
164
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
165
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
166
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
167
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
168
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
169
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
170
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
171
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
172
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
173
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
174
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
175
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
176
|
-
cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct response dropdowns, a label \'Correct answer\' and correct answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
177
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
178
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
179
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
180
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
181
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
182
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
183
|
-
});
|
184
|
-
|
185
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyCSSAndA11yOfCorrectAnswerIcon();
|
186
|
-
|
187
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyCSSAndA11yOfFullScoreTextAndCorrectAnswerLabel('fill in the gaps over image - dropdown');
|
188
|
-
|
189
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 20);
|
190
|
-
});
|
191
|
-
|
192
|
-
describe('Question preview: Auto scored - All or nothing with alternate answer (Match from all responses - true)', () => {
|
193
|
-
abortEarlySetup();
|
194
|
-
before(() => {
|
195
|
-
cy.log('Navigate to fill in the gaps over image - text question type');
|
196
|
-
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - text');
|
197
|
-
cy.barsPreLoaderWait();
|
198
|
-
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
199
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
200
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
201
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
202
|
-
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse1);
|
203
|
-
fillInTheGapsOverImageDropdownPage.steps.addInputToResponseOptionFields(0, optionsForResponse2);
|
204
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, correctTabAnswerArray[0]);
|
205
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, correctTabAnswerArray[1]);
|
206
|
-
fillInTheGapsOverImageDropdownPage.steps.allotPoints(20);
|
207
|
-
fillInTheGapsOverImageDropdownPage.steps.addAlternateTab(1);
|
208
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(0, alternateTabAnswerArray[0]);
|
209
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromSetCorrectAnswerSectionResponseDropdown(1, alternateTabAnswerArray[1]);
|
210
|
-
fillInTheGapsOverImageDropdownPage.steps.checkMatchFromAllResponsesCheckbox();
|
211
|
-
fillInTheGapsOverImageDropdownPage.steps.expandAdditonalSettings();
|
212
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
213
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
214
|
-
});
|
215
|
-
|
216
|
-
it('When the user selects \'Show correct answer\' checkbox without attempting the question, correct answer container should be displayed with the correct responses from the correct tab', () => {
|
217
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
218
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
219
|
-
fillInTheGapsOverImageDropdownPage.steps.uncheckShowCorrectAnswerCheckbox();
|
220
|
-
});
|
221
|
-
|
222
|
-
it('When the user attempts the question with responses from the correct tab, then the user should be awarded with points specified for correct tab and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
223
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
224
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, correctTabAnswerArray[1]);
|
225
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
226
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
227
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
228
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
229
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
230
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
231
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
232
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
233
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns and label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
234
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
235
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
236
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
237
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
238
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
239
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
240
|
-
});
|
241
|
-
|
242
|
-
it('When the user attempts the question with responses from the alternate tab, then the user should be awarded with points specified for alternate tab (less than overall points) and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed', () => {
|
243
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
244
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
245
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
246
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
247
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
248
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
249
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
250
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
251
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
252
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
253
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
254
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' and correct answer border should be displayed below the question preview and correct answer container should not be displayed')
|
255
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
256
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
257
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
258
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
259
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
260
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
261
|
-
});
|
262
|
-
|
263
|
-
it('When the user attempts the question with partially correct responses exclusively from the correct tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab for the responses marked incorrect', () => {
|
264
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
265
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
266
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
267
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
268
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
269
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
270
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
271
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
272
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
273
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[1]], ['2']);
|
274
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
275
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
276
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
277
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
278
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
279
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(2);
|
280
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
281
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
282
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
283
|
-
});
|
284
|
-
|
285
|
-
it('When the user attempts the question with partially correct responses exclusively from the alternate tab, then the user should be awarded with 0 points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the alternate tab for the responses marked incorrect', () => {
|
286
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
287
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, alternateTabAnswerArray[0]);
|
288
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, incorrectAnswerArray[1]);
|
289
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
290
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
291
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
292
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
293
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
294
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
295
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([alternateTabAnswerArray[1]], ['2']);
|
296
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
297
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
298
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides correct response dropdown, red cross-mark icon should be displayed besides the incorrect response dropdown, label \'Incorrect answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
299
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
300
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
301
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
302
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
303
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
304
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
305
|
-
});
|
306
|
-
|
307
|
-
it('When the user attempts the question with a combination of correct responses from correct tab and alternate tab, then the user should be awarded with full points and on selecting \'Show correct answer\' checkbox, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' should be displayed below the question preview and the correct answer container should not be displayed', () => {
|
308
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
309
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[0]);
|
310
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[1]);
|
311
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(20, 20);
|
312
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
313
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
314
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
315
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
316
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
317
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
318
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
319
|
-
cy.log('When the user clicks on \'Check answer\' button, green check-mark icon should be displayed besides response dropdowns, label \'Correct answer\' should be displayed below the question preview and the correct answer container should not be displayed')
|
320
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
321
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(0);
|
322
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectOptionCheckmarkIcon(1);
|
323
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
|
324
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAttemptBorder();
|
325
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
326
|
-
});
|
327
|
-
|
328
|
-
it('When the user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should be displayed with the correct responses from the correct tab', () => {
|
329
|
-
fillInTheGapsOverImageDropdownPage.steps.resetQuestionPreview();
|
330
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(0, correctTabAnswerArray[1]);
|
331
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab(1, alternateTabAnswerArray[0]);
|
332
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabScoreText(0, 20);
|
333
|
-
fillInTheGapsOverImageDropdownPage.steps.checkShowCorrectAnswerCheckbox();
|
334
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
335
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
336
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
337
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
338
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerContainerAndCount([correctTabAnswerArray[0], correctTabAnswerArray[1]], ['1', '2']);
|
339
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
|
340
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
341
|
-
cy.log('When the user attempts the question incorrectly and clicks on the \'Check answer\' button, then red cross-mark icons should be displayed beside all incorrect response dropdowns, a label \'Incorrect answer\' and incorrect answer border should be displayed below the question preview and the correct answer container should not be displayed')
|
342
|
-
fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
|
343
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(0);
|
344
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectOptionCrossmarkIcon(1);
|
345
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
|
346
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyIncorrectAttemptBorder();
|
347
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyPreviewTabCorrectAnswerContainerNotExist();
|
348
|
-
});
|
349
|
-
|
350
|
-
fillInTheGapsOverImageDropdownPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer(1, 20);
|
351
|
-
});
|
352
|
-
});
|
@@ -1,134 +0,0 @@
|
|
1
|
-
import { fillInTheGapsOverImageDropdownPage } from "../../../pages";
|
2
|
-
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
|
-
import utilities from "../../../support/helpers/utilities";
|
4
|
-
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
describe('Create item page - Fill in the gaps over image - dropdown: Edit aria-label checkbox', () => {
|
7
|
-
before(() => {
|
8
|
-
cy.loginAs('admin');
|
9
|
-
});
|
10
|
-
|
11
|
-
describe('Edit aria-label in edit tab', () => {
|
12
|
-
abortEarlySetup();
|
13
|
-
before(() => {
|
14
|
-
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
15
|
-
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
16
|
-
cy.barsPreLoaderWait();
|
17
|
-
fillInTheGapsOverImageDropdownPage.steps.addQuestionInstructions();
|
18
|
-
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
19
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
20
|
-
});
|
21
|
-
|
22
|
-
it('When the user uploads an image in image section, then \'Edit aria-labels for response containers\' checkbox and label should be displayed in the image properties in disabled state', () => {
|
23
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDisabledStateOfEditAriaLabelsForResponseContainersCheckbox();
|
24
|
-
});
|
25
|
-
|
26
|
-
it('When the user adds a response container in the image, then \'Edit aria-labels for response containers\' checkbox should be enabled and by default it should be unchecked', () => {
|
27
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
28
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDefaultEnabledStateOfEditAriaLabelsForResponseContainersCheckbox();
|
29
|
-
});
|
30
|
-
|
31
|
-
it('CSS of \'Edit aria-labels for response containers\' label', { tags: 'css' }, () => {
|
32
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.editAriaLabelForResponseContainersLabel(), {
|
33
|
-
'color': css.color.labelText,
|
34
|
-
'font-size': css.fontSize.normal,
|
35
|
-
'font-weight': css.fontWeight.regular
|
36
|
-
});
|
37
|
-
});
|
38
|
-
|
39
|
-
it('Accessibility of \'Edit aria-labels for response containers\' checkbox', { tags: 'a11y' }, () => {
|
40
|
-
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.editAriaLabelForResponseContainersCheckbox());
|
41
|
-
});
|
42
|
-
|
43
|
-
it('When the user checks the \'Edit aria-labels for response containers\' checkbox, then a label \'ARIA labels\' and an input field with numeration and placeholder text \'Enter label\' should be displayed', () => {
|
44
|
-
fillInTheGapsOverImageDropdownPage.steps.checkEditAriaLabelCheckbox();
|
45
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDropdownPage.ariaLabelsLabel(), 'visible');
|
46
|
-
utilities.verifyInnerText(fillInTheGapsOverImageDropdownPage.ariaLabelsLabel(), 'ARIA labels');
|
47
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyEditAriaLabelInputFieldContents(1);
|
48
|
-
});
|
49
|
-
|
50
|
-
it('CSS of \'ARIA labels\' label and input fields', { tags: 'css' }, () => {
|
51
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.ariaLabelsLabel(), {
|
52
|
-
'color': css.color.labels,
|
53
|
-
'font-size': css.fontSize.normal,
|
54
|
-
'font-weight': css.fontWeight.semibold
|
55
|
-
});
|
56
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.ariaLabelsInputFieldNumeration(), {
|
57
|
-
'color': css.color.labels,
|
58
|
-
'font-size': css.fontSize.default,
|
59
|
-
'font-weight': css.fontWeight.semibold
|
60
|
-
});
|
61
|
-
utilities.verifyCSS(fillInTheGapsOverImageDropdownPage.ariaLabelsInputField(), {
|
62
|
-
'color': css.color.text,
|
63
|
-
'font-size': css.fontSize.default,
|
64
|
-
'font-weight': css.fontWeight.regular
|
65
|
-
});
|
66
|
-
});
|
67
|
-
|
68
|
-
it('Accessibility of \'ARIA labels\' input fields', { tags: 'a11y' }, () => {
|
69
|
-
cy.checkAccessibility(fillInTheGapsOverImageDropdownPage.ariaLabelsInputField());
|
70
|
-
});
|
71
|
-
|
72
|
-
it('When the user adds another response container to the uploaded image, a input field should be added in the \'Edit aria-labels for response container section\' with the numeration \'2\'', () => {
|
73
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
74
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyEditAriaLabelInputFieldContents(2);
|
75
|
-
});
|
76
|
-
|
77
|
-
it('When the user removes a response container from the uploaded image, the edit aria-label response field corresponding to the removed response container should not be displayed and the remaining edit aria-label input field should be displayed with updated numeration', () => {
|
78
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnResponseContainerCloseButton(0);
|
79
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyEditAriaLabelInputFieldContents(1);
|
80
|
-
});
|
81
|
-
|
82
|
-
//Failing due to https://redmine.zeuslearning.com/issues/547409
|
83
|
-
it('When the user has not given any input to the edit aria-label input field, the aria-label attribute for response container in image section should be \'Response #\' and aria-label attribute for response dropdown in set correct answer section should be \'Add answer for Response #\'', () => {
|
84
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerAriaLabelAttribute(0, 'Response 1');
|
85
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInSetCorrectAnswerSection(0, 'Add answer for Response 1');
|
86
|
-
});
|
87
|
-
|
88
|
-
it('When the user enters text in the edit aria-label input field, the added text should appear as the aria-label attribute of the response container in the uploaded image and response dropdown in the set correct answer section', () => {
|
89
|
-
fillInTheGapsOverImageDropdownPage.steps.enterTextInEditAriaLabelInputField(0, 'Custom aria-label');
|
90
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerAriaLabelAttribute(0, 'Custom aria-label');
|
91
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInSetCorrectAnswerSection(0, 'Custom aria-label');
|
92
|
-
});
|
93
|
-
|
94
|
-
it('When the user clears the text in the edit aria-label input field, the aria-label attribute of the response container in the uploaded image should again appear as \'Response #\' and aria-label attribute of the response dropdown in the set correct answer section should again appear as \'Add answer for Response #\'', () => {
|
95
|
-
fillInTheGapsOverImageDropdownPage.steps.clearEditAriaLabelInputField(0);
|
96
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyResponseContainerAriaLabelAttribute(0, 'Response 1');
|
97
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInSetCorrectAnswerSection(0, 'Add answer for Response 1');
|
98
|
-
});
|
99
|
-
});
|
100
|
-
|
101
|
-
describe('Edit aria-label in preview tab', () => {
|
102
|
-
abortEarlySetup();
|
103
|
-
before(() => {
|
104
|
-
cy.log('Navigate to fill in the gaps over image - dropdown question type');
|
105
|
-
fillInTheGapsOverImageDropdownPage.steps.navigateToCreateQuestion('fill in the gaps over image - dropdown');
|
106
|
-
cy.barsPreLoaderWait();
|
107
|
-
fillInTheGapsOverImageDropdownPage.steps.addQuestionInstructions();
|
108
|
-
fillInTheGapsOverImageDropdownPage.steps.uploadFile('highlightImage.jpg');
|
109
|
-
fillInTheGapsOverImageDropdownPage.steps.clickOnImagePopupOkButton();
|
110
|
-
fillInTheGapsOverImageDropdownPage.steps.addResponseContainer();
|
111
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
112
|
-
});
|
113
|
-
|
114
|
-
//Failing due to https://redmine.zeuslearning.com/issues/547409
|
115
|
-
it('When the user has not given any input to the edit aria-label input field, the aria-label attribute for response dropdown in preview tab should be \'Response #\'', () => {
|
116
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInPreviewTab(0, 'Response 1');
|
117
|
-
});
|
118
|
-
|
119
|
-
it('When the user enters text in the edit aria-label input field, the added text should appear as the aria-label attribute of the response dropdown in preview tab', () => {
|
120
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
121
|
-
fillInTheGapsOverImageDropdownPage.steps.checkEditAriaLabelCheckbox();
|
122
|
-
fillInTheGapsOverImageDropdownPage.steps.enterTextInEditAriaLabelInputField(0, 'Custom aria-label');
|
123
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
124
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInPreviewTab(0, 'Custom aria-label');
|
125
|
-
});
|
126
|
-
|
127
|
-
it('When the user clears the text in the edit aria-label input field, the aria-label attribute of the response dropdown in preview tab should again appear as \'Response #\'', () => {
|
128
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
129
|
-
fillInTheGapsOverImageDropdownPage.steps.clearEditAriaLabelInputField(0);
|
130
|
-
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
131
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelAttributeInPreviewTab(0, 'Response 1');
|
132
|
-
});
|
133
|
-
});
|
134
|
-
});
|