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,5 +1,3 @@
|
|
1
|
-
import utilities from "../support/helpers/utilities";
|
2
|
-
|
3
1
|
const css = Cypress.env('css');
|
4
2
|
|
5
3
|
const selectors = {
|
@@ -15,13 +13,7 @@ const selectors = {
|
|
15
13
|
itemTitle: () => cy.get('.ItemLevel-Header'),
|
16
14
|
tagsButton: () => cy.get('.ngie-button').contains('Tags'),
|
17
15
|
tagsInputField: () => cy.get('.tags-chip-container'),
|
18
|
-
|
19
|
-
editItemReferenceId: () => cy.get('.edit-item-reference-id'),
|
20
|
-
applyChangesButton: () => cy.get('.ngie-btn-contained').contains('Apply changes'),
|
21
|
-
editTitleIcon: () => cy.get('.icon-pencil'),
|
22
|
-
titleInputField: () => cy.get('.edit-box-header-input-wrapper'),
|
23
|
-
submitButton: () => cy.get('[class*="StudentViewstyles__ButtonsWrapper"] button').eq(1),
|
24
|
-
studentViewReferenceId: () => cy.get('[class*="StudentViewstyles__ViewInfoWrapper"]')
|
16
|
+
settingsBtn: () => cy.get('.ngie-btn-link').eq(3)
|
25
17
|
}
|
26
18
|
|
27
19
|
const steps = {
|
@@ -39,23 +31,6 @@ const steps = {
|
|
39
31
|
cy.visit('/item-engine/demo/create-item');
|
40
32
|
},
|
41
33
|
|
42
|
-
/**
|
43
|
-
* @param {string} reference id of the question to be navigated
|
44
|
-
* @description this function navigates to the edit item page of the
|
45
|
-
*/
|
46
|
-
navigateToEditItemUsingReferenceID: (reference) => {
|
47
|
-
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(reference)}`);
|
48
|
-
},
|
49
|
-
|
50
|
-
navigateToEditItemPage: () => {
|
51
|
-
createItemPage.referenceId()
|
52
|
-
.invoke('text')
|
53
|
-
.then(text => {
|
54
|
-
const referenceId = text;
|
55
|
-
steps.navigateToEditItemUsingReferenceID(referenceId);
|
56
|
-
});
|
57
|
-
},
|
58
|
-
|
59
34
|
verifyCreateItemContainerIsVisible: () => {
|
60
35
|
createItemPage.createItemContainer()
|
61
36
|
.should('be.visible');
|
@@ -80,60 +55,9 @@ const steps = {
|
|
80
55
|
.should('have.text', arrayOfTags.sort().join(''));
|
81
56
|
},
|
82
57
|
|
83
|
-
|
84
|
-
|
85
|
-
* @description set tags for an item
|
86
|
-
*/
|
87
|
-
setTags: (arrayOfTags) => {
|
88
|
-
steps.clickOnTagsButton()
|
89
|
-
for (let index = 0; index < arrayOfTags.length; index++) {
|
90
|
-
createItemPage.tagsInputField()
|
91
|
-
.type(`${arrayOfTags[index]}{enter}`);
|
92
|
-
}
|
93
|
-
createItemPage.applyChangesButton()
|
58
|
+
clickOnSettingsButton: () => {
|
59
|
+
createItemPage.settingsBtn()
|
94
60
|
.click();
|
95
|
-
},
|
96
|
-
|
97
|
-
/**
|
98
|
-
* @param {string[]} value of text that need to enter in title input field
|
99
|
-
* @description this function enters text in title input field
|
100
|
-
*/
|
101
|
-
enterTitle: (value) => {
|
102
|
-
createItemPage.titleInputField()
|
103
|
-
.type(value);
|
104
|
-
},
|
105
|
-
|
106
|
-
clickOnSubmitButton: () => {
|
107
|
-
createItemPage.submitButton()
|
108
|
-
.click();
|
109
|
-
},
|
110
|
-
|
111
|
-
|
112
|
-
navigateToStudentViewPage: () => {
|
113
|
-
createItemPage.referenceId()
|
114
|
-
.invoke('text')
|
115
|
-
.then(text => {
|
116
|
-
const referenceId = text;
|
117
|
-
steps.navigateToStudentViewUsingReferenceID(referenceId);
|
118
|
-
});
|
119
|
-
},
|
120
|
-
|
121
|
-
navigateToEditItemPageFromStudentView: () => {
|
122
|
-
createItemPage.studentViewReferenceId()
|
123
|
-
.invoke('text')
|
124
|
-
.then(text => {
|
125
|
-
let value = text;
|
126
|
-
let referenceId = value.split(':')[1].trim();
|
127
|
-
steps.navigateToEditItemUsingReferenceID(referenceId);
|
128
|
-
});
|
129
|
-
},
|
130
|
-
|
131
|
-
/**
|
132
|
-
* @param {string} reference id of the question to be navigated
|
133
|
-
* @description this function navigates to the student view page
|
134
|
-
*/
|
135
|
-
navigateToStudentViewUsingReferenceID: (reference) => {
|
136
|
-
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(reference)}`);
|
137
61
|
}
|
138
62
|
}
|
139
63
|
|
@@ -13,21 +13,16 @@ const selectors = {
|
|
13
13
|
|
14
14
|
const steps = {
|
15
15
|
allFieldsRequiredWarningPopupContents: () => {
|
16
|
-
dialogBoxBase.dialogBox()
|
17
|
-
|
18
|
-
dialogBoxBase.
|
19
|
-
|
20
|
-
dialogBoxBase.dialogBoxContent()
|
21
|
-
.verifyInnerText('Please fill the required fields.');
|
22
|
-
dialogBoxBase.buttonClose()
|
23
|
-
.should('be.visible');
|
16
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
17
|
+
utilities.verifyInnerText(dialogBoxBase.dialogBoxTitle(), 'Warning!');
|
18
|
+
utilities.verifyInnerText(dialogBoxBase.dialogBoxContent(), 'Please fill the required fields.');
|
19
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.closeButton(), 'visible');
|
24
20
|
},
|
25
21
|
|
26
22
|
closeWarningPopup: () => {
|
27
23
|
dialogBoxBase.buttonClose()
|
28
24
|
.click();
|
29
|
-
dialogBoxBase.dialogBox()
|
30
|
-
.should('not.exist');
|
25
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
31
26
|
},
|
32
27
|
|
33
28
|
clickOnAcceptButtonInDialogBox: () => {
|
@@ -46,21 +41,12 @@ const tests = {
|
|
46
41
|
it('When user has made no edits and clicks on Save Question button, the user should get a warning popup', () => {
|
47
42
|
createQuestionBasePage.saveQuestionButton()
|
48
43
|
.click();
|
49
|
-
dialogBoxBase.
|
50
|
-
.should('exist');
|
51
|
-
dialogBoxBase.dialogBoxTitle()
|
52
|
-
.verifyInnerText('Warning!');
|
53
|
-
dialogBoxBase.dialogBoxContent()
|
54
|
-
.verifyInnerText('Please fill the required fields.');
|
55
|
-
dialogBoxBase.buttonClose()
|
56
|
-
.should('be.visible');
|
44
|
+
dialogBoxBase.steps.allFieldsRequiredWarningPopupContents();
|
57
45
|
});
|
58
46
|
|
59
47
|
it('Warning popup should close on clicking the Close icon button', () => {
|
60
|
-
dialogBoxBase.
|
61
|
-
|
62
|
-
dialogBoxBase.dialogBox()
|
63
|
-
.should('not.exist');
|
48
|
+
dialogBoxBase.steps.closeWarningPopup();
|
49
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
64
50
|
});
|
65
51
|
},
|
66
52
|
|
@@ -71,7 +57,6 @@ const tests = {
|
|
71
57
|
utilities.verifyInnerText(dialogBoxBase.buttonReject(), 'No, I\'d like to go back');
|
72
58
|
});
|
73
59
|
|
74
|
-
//Failing due to https://redmine.zeuslearning.com/issues/542700
|
75
60
|
it('CSS of popup', { tags: 'css' }, () => {
|
76
61
|
utilities.verifyCSS(dialogBoxBase.dialogBox(), {
|
77
62
|
'background-color': css.color.defaultBackground,
|
package/cypress/pages/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
export * from './multipleSelectionPage';
|
2
|
-
export * from './singleSelectionPage';
|
3
2
|
export * from './createItemPage';
|
4
3
|
export * from './selectQuestionResourceToolPage';
|
5
4
|
export * from './dialogBoxBase';
|
@@ -29,9 +28,7 @@ export * from './audioPlayerPage';
|
|
29
28
|
export * from './highlightImagePage';
|
30
29
|
export * from './fillInTheGapsOverImageDropdownPage';
|
31
30
|
export * from './fillInTheGapsOverImageTextPage';
|
32
|
-
export * from './
|
33
|
-
export * from './singleSelectionGridPage';
|
34
|
-
export * from './feedbackScalePage';
|
31
|
+
export * from './itemPreviewSettingsPage';
|
35
32
|
export * from './itemPreviewPage';
|
36
33
|
export * from './studentViewPage';
|
37
34
|
export * from './gradingViewPage';
|
@@ -0,0 +1,446 @@
|
|
1
|
+
import utilities from "../support/helpers/utilities";
|
2
|
+
import { createItemPage } from "./createItemPage";
|
3
|
+
import { commonComponents } from "./components";
|
4
|
+
|
5
|
+
const selectors = {
|
6
|
+
...createItemPage,
|
7
|
+
headerWrapper: () => cy.get('.settings-header-wrapper'),
|
8
|
+
//HeadingSectionSelectors
|
9
|
+
settingsLabel: () => cy.get('.settings-label'),
|
10
|
+
cancelLabel: () => cy.get('.ngie-button').eq(0),
|
11
|
+
applyChangesLabel: () => cy.get('.ngie-button').eq(1),
|
12
|
+
//SideBySidePanelsSectionSelectors
|
13
|
+
sideBySidePanelsLabel: () => cy.get('[class*="SettingsTabstyles__PanelsWrapper"] .section-title-label'),
|
14
|
+
enableSideBySidePanelsCheckbox: () => cy.get('[data-ngie-testid="enable-side-by-side-panels-checkbox"] input'),
|
15
|
+
enableSideBySidePanelsLabel: () => cy.get('[data-ngie-testid="enable-side-by-side-panels-checkbox"] .MuiFormControlLabel-label'),
|
16
|
+
//SeparatorSectionSelectors
|
17
|
+
separatorsLabel: () => cy.get('[class*="SettingsTabstyles__SeparatorsWrapper"] .separator-title-label-cls'),
|
18
|
+
horizontalSeparatorsCheckbox: () => cy.get('[data-ngie-testid="horizontal-separator-line-between-questions-checkbox"] input'),
|
19
|
+
horizontalSeparatorLabel: () => cy.get('[data-ngie-testid="horizontal-separator-line-between-questions-checkbox"] .MuiFormControlLabel-label'),
|
20
|
+
horizontalIllustrator: () => cy.get('[class*="SettingsTabstyles__HorizontalSeparatorImg"]'),
|
21
|
+
verticalSeparatorWrapper: () => cy.get('[data-ngie-testid="vertical-separator-line-between-panels-checkbox"]'),
|
22
|
+
verticalSeparatorsCheckbox: () => cy.get('[data-ngie-testid="vertical-separator-line-between-panels-checkbox"] input'),
|
23
|
+
verticalSeparatorsLabel: () => cy.get('[data-ngie-testid="vertical-separator-line-between-panels-checkbox"] .MuiFormControlLabel-label'),
|
24
|
+
verticalSeparatorsIllustrator: () => cy.get('[class*="SettingsTabstyles__VerticalSeparatorImg"]'),
|
25
|
+
separatorsStyleLabel: () => cy.get('[class*="SettingsTabstyles__LabelTextWrapper"]'),
|
26
|
+
solidSeparatorStyleOption: () => cy.get('[data-ngie-testid="solid-toggle-button"]'),
|
27
|
+
dottedSeparatorStyleOption: () => cy.get('[data-ngie-testid="dotted-toggle-button"]'),
|
28
|
+
dashedSeparatorStyleOption: () => cy.get('[data-ngie-testid="dashed-toggle-button"]'),
|
29
|
+
separatorStyleWrapper: () => cy.get('[class*="SettingsTabstyles__SeparatorStyleWrapper"]'),
|
30
|
+
//SectionsSectionSelectors
|
31
|
+
sectionsLabel: () => cy.get('[class*="SettingsTabstyles__SectionsWrapper"] .section-title-label'),
|
32
|
+
enableSectionsCheckbox: () => cy.get('[data-ngie-testid="enable-sections-checkbox"] input'),
|
33
|
+
enableSectionsLabel: () => cy.get('[data-ngie-testid="enable-sections-checkbox"] .MuiFormControlLabel-label'),
|
34
|
+
enableSectionsInLabel: () => cy.get('[class*="SectionsComponentstyles__HeadWrapper"]').eq(0), //couldnt get unique
|
35
|
+
leftPanelCheckbox: () => cy.get('[data-ngie-testid="left-panel-checkbox"] input'),
|
36
|
+
leftPanelLabel: () => cy.get('[data-ngie-testid="left-panel-checkbox"] .MuiFormControlLabel-label'),
|
37
|
+
rightPanelCheckbox: () => cy.get('[data-ngie-testid="right-panel-checkbox"] input'),
|
38
|
+
rightPanelLabel: () => cy.get('[data-ngie-testid="right-panel-checkbox"] .MuiFormControlLabel-label'),
|
39
|
+
sectionsNavigationOrientationLabel: () => cy.get('.orientation-wrapper-cls [class*=SectionsComponentstyles__HeadWrapper]'),
|
40
|
+
horizontalRadioButton: () => cy.get('[class*="SectionsComponentstyles__OrientationWrapper"] input').eq(0),
|
41
|
+
horizontalLabel: () => cy.get('[class*="SectionsComponentstyles__OrientationWrapper"] .ngie-radio-label').eq(0),
|
42
|
+
verticalRadioButton: () => cy.get('[class*="SectionsComponentstyles__OrientationWrapper"] input').eq(1),
|
43
|
+
verticalLabel: () => cy.get('[class*="SectionsComponentstyles__OrientationWrapper"] .ngie-radio-label').eq(1),
|
44
|
+
sectionsNavigationStyleLabel: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] [class*="SectionsComponentstyles__HeadWrapper"]'),
|
45
|
+
underlinedRadioButton: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] input').eq(0),
|
46
|
+
underlinedLabel: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] .ngie-radio-label').eq(0),
|
47
|
+
separatedUsingDividersRadioButton: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] input').eq(1),
|
48
|
+
separatedUsingDividersLabel: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] .ngie-radio-label').eq(1),
|
49
|
+
numberedRadioButton: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] input').eq(2),
|
50
|
+
numberedLabel: () => cy.get('[class*="SectionsComponentstyles__StyleWrapper"] .ngie-radio-label').eq(2),
|
51
|
+
sectionsNavigationAlignmentLabel: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] [class*="SectionsComponentstyles__HeadWrapper"]'),
|
52
|
+
leftAlignedRadioButton: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] input').eq(0),
|
53
|
+
leftAlignedLabel: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] .ngie-radio-label').eq(0),
|
54
|
+
centerAlignedRadioButton: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] input').eq(1),
|
55
|
+
centerAlignedLabel: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] .ngie-radio-label').eq(1),
|
56
|
+
rightAlignedRadioButton: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] input').eq(2),
|
57
|
+
rightAlignedLabel: () => cy.get('[class*="SectionsComponentstyles__AlignmentWrapper"] .ngie-radio-label').eq(2),
|
58
|
+
enableSectionsContentWrapper: () => cy.get('[class*="SectionsComponentstyles__SectionConfigWrapper"]'),
|
59
|
+
//SpacingSectionSelectors
|
60
|
+
spaceBetweenQuestionsLabel: () => cy.get('[class*="SettingsTabstyles__SpaceWrapper"] .section-title-label'),
|
61
|
+
spacingLabel: () => cy.get('#Spacing-dropdown-label'),
|
62
|
+
spacingDropdown: () => cy.get('#Spacing-select'),
|
63
|
+
spacingDropdownListOptions: (ariaLabel = null) => {
|
64
|
+
if (ariaLabel) {
|
65
|
+
return cy.get(`[aria-labelledby*="Spacing"][aria-labelledby*="dropdown-label"] li[role="option"][aria-label*="${ariaLabel}"]`)
|
66
|
+
} else {
|
67
|
+
return cy.get('[aria-labelledby*="Spacing"][aria-labelledby*="dropdown-label"] li[role="option"]')
|
68
|
+
}
|
69
|
+
},
|
70
|
+
//MultiLanguageSupportSectionSelectors
|
71
|
+
multiLanguageSupportLabel: () => cy.get('[class*="SettingsTabstyles__LanguageSupportWrapper"] .section-title-label'),
|
72
|
+
languagesCheckbox: () => cy.get('[data-ngie-testid="this-item-is-also-available-in-other-languages-checkbox"] input'),
|
73
|
+
languagesLabel: () => cy.get('[data-ngie-testid="this-item-is-also-available-in-other-languages-checkbox"] .MuiFormControlLabel-label'),
|
74
|
+
//AccessibilitySectionSelectors
|
75
|
+
accessibilityLabel: () => cy.get('[class*="SettingsTabstyles__AccessibilityWrapper"] .section-title-label'),
|
76
|
+
flagNonAccessibleCheckbox: () => cy.get('[data-ngie-testid="flag-this-item-as-non-accessible-checkbox"] input'),
|
77
|
+
flagNonAccessibleLabel: () => cy.get('[data-ngie-testid="flag-this-item-as-non-accessible-checkbox"] .MuiFormControlLabel-label'),
|
78
|
+
alternateAccessibleIdLabel: () => cy.get('.text-field-label'),
|
79
|
+
alternateAccessibleIdInputField: () => cy.get('.additional-option-placeholder-input input'),
|
80
|
+
//MiscellaneousSectionSelectors
|
81
|
+
miscellaneousLabel: () => cy.get('[class*="SettingsTabstyles__MiscellaneousWrapper"] .section-title-label'),
|
82
|
+
disableCutCopyAndPasteCheckbox: () => cy.get('[data-ngie-testid="disable-cut,-copy-and-paste-for-all-questions-checkbox"] input'),
|
83
|
+
disableCutCopyAndPasteLabel: () => cy.get('[data-ngie-testid="disable-cut,-copy-and-paste-for-all-questions-checkbox"] .MuiFormControlLabel-label '),
|
84
|
+
randomizeQuestionsOrderCheckbox: () => cy.get('[data-ngie-testid="randomize-questions-order-checkbox"] input'),
|
85
|
+
randomizeQuestionsOrderLabel: () => cy.get('[data-ngie-testid="randomize-questions-order-checkbox"] .MuiFormControlLabel-label'),
|
86
|
+
roundNegativeScoresToZeroCheckbox: () => cy.get('[data-ngie-testid="round-negative-scores-to-zero-checkbox"] input'),
|
87
|
+
roundNegativeScoresToZeroLabel: () => cy.get('[data-ngie-testid="round-negative-scores-to-zero-checkbox"] .MuiFormControlLabel-label')
|
88
|
+
};
|
89
|
+
|
90
|
+
const steps = {
|
91
|
+
...createItemPage.steps,
|
92
|
+
|
93
|
+
verifyEnableSideBySidePanelsCheckboxUnchecked: () => {
|
94
|
+
itemPreviewSettingsPage.enableSideBySidePanelsCheckbox()
|
95
|
+
.should('not.be.checked');
|
96
|
+
},
|
97
|
+
|
98
|
+
checkEnableSideBySidePanelsCheckbox: () => {
|
99
|
+
itemPreviewSettingsPage.enableSideBySidePanelsCheckbox()
|
100
|
+
.click()
|
101
|
+
.should('be.checked');
|
102
|
+
},
|
103
|
+
|
104
|
+
verifyVerticalSeparatorIsEnabled: () => {
|
105
|
+
itemPreviewSettingsPage.verticalSeparatorsCheckbox()
|
106
|
+
.should('be.enabled');
|
107
|
+
itemPreviewSettingsPage.verticalSeparatorsLabel()
|
108
|
+
.should('not.have.class', 'Mui-disabled');
|
109
|
+
},
|
110
|
+
|
111
|
+
uncheckEnableSideBySidePanelsCheckbox: () => {
|
112
|
+
itemPreviewSettingsPage.enableSideBySidePanelsCheckbox()
|
113
|
+
.click()
|
114
|
+
.should('not.be.checked');
|
115
|
+
},
|
116
|
+
|
117
|
+
verifyVerticalSeparatorIsDisabled: () => {
|
118
|
+
itemPreviewSettingsPage.verticalSeparatorsCheckbox()
|
119
|
+
.should('be.disabled');
|
120
|
+
itemPreviewSettingsPage.verticalSeparatorsLabel()
|
121
|
+
.should('have.class', 'Mui-disabled');
|
122
|
+
},
|
123
|
+
|
124
|
+
verifyHorizontalSeparatorCheckboxUnchecked: () => {
|
125
|
+
itemPreviewSettingsPage.horizontalSeparatorsCheckbox()
|
126
|
+
.should('not.be.checked');
|
127
|
+
},
|
128
|
+
|
129
|
+
verifyVerticalSeparatorCheckboxUnchecked: () => {
|
130
|
+
itemPreviewSettingsPage.verticalSeparatorsCheckbox()
|
131
|
+
.should('not.be.checked');
|
132
|
+
},
|
133
|
+
|
134
|
+
checkHorizontalSeparatorCheckbox: () => {
|
135
|
+
itemPreviewSettingsPage.horizontalSeparatorsCheckbox()
|
136
|
+
.click()
|
137
|
+
.should('be.checked');
|
138
|
+
},
|
139
|
+
|
140
|
+
uncheckHorizontalSeparatorCheckbox: () => {
|
141
|
+
itemPreviewSettingsPage.horizontalSeparatorsCheckbox()
|
142
|
+
.click()
|
143
|
+
.should('not.be.checked');
|
144
|
+
},
|
145
|
+
|
146
|
+
checkVerticalSeparatorCheckbox: () => {
|
147
|
+
itemPreviewSettingsPage.verticalSeparatorsCheckbox()
|
148
|
+
.click()
|
149
|
+
.should('be.checked');
|
150
|
+
},
|
151
|
+
|
152
|
+
uncheckVerticalSeparatorCheckbox: () => {
|
153
|
+
itemPreviewSettingsPage.verticalSeparatorsCheckbox()
|
154
|
+
.click()
|
155
|
+
.should('not.be.checked');
|
156
|
+
},
|
157
|
+
|
158
|
+
verifySeparatorStyleSectionContent: () => {
|
159
|
+
utilities.verifyInnerText(itemPreviewSettingsPage.separatorsStyleLabel(), 'Separator style');
|
160
|
+
utilities.verifyElementVisibilityState(itemPreviewSettingsPage.separatorsStyleLabel(), 'visible');
|
161
|
+
utilities.verifyInnerText(itemPreviewSettingsPage.solidSeparatorStyleOption(), 'Solid');
|
162
|
+
utilities.verifyElementVisibilityState(itemPreviewSettingsPage.solidSeparatorStyleOption(), 'visible');
|
163
|
+
utilities.verifyInnerText(itemPreviewSettingsPage.dottedSeparatorStyleOption(), 'Dotted');
|
164
|
+
utilities.verifyElementVisibilityState(itemPreviewSettingsPage.dottedSeparatorStyleOption(), 'visible');
|
165
|
+
utilities.verifyInnerText(itemPreviewSettingsPage.dashedSeparatorStyleOption(), 'Dashed');
|
166
|
+
utilities.verifyElementVisibilityState(itemPreviewSettingsPage.dashedSeparatorStyleOption(), 'visible');
|
167
|
+
},
|
168
|
+
|
169
|
+
verifyEnableSectionsCheckboxUnchecked: () => {
|
170
|
+
itemPreviewSettingsPage.enableSectionsCheckbox()
|
171
|
+
.should('not.be.checked');
|
172
|
+
},
|
173
|
+
|
174
|
+
checkEnableSectionsCheckbox: () => {
|
175
|
+
itemPreviewSettingsPage.enableSectionsCheckbox()
|
176
|
+
.click()
|
177
|
+
.should('be.checked');
|
178
|
+
},
|
179
|
+
|
180
|
+
uncheckEnableSectionsCheckbox: () => {
|
181
|
+
itemPreviewSettingsPage.enableSectionsCheckbox()
|
182
|
+
.click()
|
183
|
+
.should('not.be.checked');
|
184
|
+
},
|
185
|
+
|
186
|
+
verifyLeftPanelLabelAndCheckboxIsEnabled: () => {
|
187
|
+
itemPreviewSettingsPage.leftPanelCheckbox()
|
188
|
+
.should('be.enabled');
|
189
|
+
itemPreviewSettingsPage.leftPanelLabel()
|
190
|
+
.should('not.have.class', 'Mui-disabled');
|
191
|
+
},
|
192
|
+
|
193
|
+
verifyLeftPanelCheckboxIsSelected: () => {
|
194
|
+
itemPreviewSettingsPage.leftPanelCheckbox()
|
195
|
+
.should('be.checked')
|
196
|
+
},
|
197
|
+
|
198
|
+
verifyRightPanelLabelAndCheckboxIsEnabled: () => {
|
199
|
+
itemPreviewSettingsPage.rightPanelCheckbox()
|
200
|
+
.should('be.enabled');
|
201
|
+
itemPreviewSettingsPage.rightPanelLabel()
|
202
|
+
.should('not.have.class', 'Mui-disabled');
|
203
|
+
},
|
204
|
+
|
205
|
+
verifyLeftPanelLabelAndCheckboxIsDisabled: () => {
|
206
|
+
itemPreviewSettingsPage.leftPanelCheckbox()
|
207
|
+
.should('be.disabled');
|
208
|
+
itemPreviewSettingsPage.leftPanelLabel()
|
209
|
+
.should('have.class', 'Mui-disabled');
|
210
|
+
},
|
211
|
+
|
212
|
+
verifyRightPanelLabelAndCheckboxIsDisabled: () => {
|
213
|
+
itemPreviewSettingsPage.rightPanelCheckbox()
|
214
|
+
.should('be.disabled');
|
215
|
+
itemPreviewSettingsPage.rightPanelLabel()
|
216
|
+
.should('have.class', 'Mui-disabled');
|
217
|
+
},
|
218
|
+
|
219
|
+
verifyDisabledLeftPanelTooltip: () => {
|
220
|
+
itemPreviewSettingsPage.leftPanelCheckbox()
|
221
|
+
.trigger('mouseover', { force: true });
|
222
|
+
commonComponents.tooltipText()
|
223
|
+
.should('have.text', 'Please enable panels');
|
224
|
+
itemPreviewSettingsPage.leftPanelCheckbox()
|
225
|
+
.trigger('mouseout', { force: true });
|
226
|
+
commonComponents.tooltipText()
|
227
|
+
.should('not.exist');
|
228
|
+
},
|
229
|
+
|
230
|
+
verifyDisabledRightPanelTooltip: () => {
|
231
|
+
itemPreviewSettingsPage.rightPanelCheckbox()
|
232
|
+
.trigger('mouseover', { force: true });
|
233
|
+
commonComponents.tooltipText()
|
234
|
+
.should('have.text', 'Please enable panels');
|
235
|
+
itemPreviewSettingsPage.rightPanelCheckbox()
|
236
|
+
.trigger('mouseout', { force: true });
|
237
|
+
commonComponents.tooltipText()
|
238
|
+
.should('not.exist');
|
239
|
+
},
|
240
|
+
|
241
|
+
verifyVerticalNavigationOrientationIsEnabled: () => {
|
242
|
+
itemPreviewSettingsPage.verticalRadioButton()
|
243
|
+
.should('be.enabled');
|
244
|
+
itemPreviewSettingsPage.verticalLabel()
|
245
|
+
.parent()
|
246
|
+
.should('not.have.class', 'radio-option-disabled');
|
247
|
+
},
|
248
|
+
|
249
|
+
selectVerticalOrientationRadioButton: () => {
|
250
|
+
itemPreviewSettingsPage.verticalRadioButton()
|
251
|
+
.click();
|
252
|
+
itemPreviewSettingsPage.verticalRadioButton()
|
253
|
+
.should('be.checked');
|
254
|
+
},
|
255
|
+
|
256
|
+
verifySectionsNavigationStyleSectionIsDisabled: () => {
|
257
|
+
const sectionNavigationAlignmentOptionsLabel = [itemPreviewSettingsPage.leftAlignedLabel, itemPreviewSettingsPage.centerAlignedLabel, itemPreviewSettingsPage.rightAlignedLabel];
|
258
|
+
const sectionNavigationAlignmentOptionsRadioButton = [itemPreviewSettingsPage.leftAlignedRadioButton, itemPreviewSettingsPage.centerAlignedRadioButton, itemPreviewSettingsPage.rightAlignedRadioButton];
|
259
|
+
sectionNavigationAlignmentOptionsRadioButton.forEach((option) => {
|
260
|
+
option()
|
261
|
+
.should('be.disabled');
|
262
|
+
});
|
263
|
+
sectionNavigationAlignmentOptionsLabel.forEach((option) => {
|
264
|
+
option()
|
265
|
+
.parent()
|
266
|
+
.should('have.class', 'radio-option-disabled');
|
267
|
+
});
|
268
|
+
},
|
269
|
+
|
270
|
+
verifySectionsNavigationStyleSectionIsEnabled: () => {
|
271
|
+
const sectionNavigationAlignmentOptionsLabel = [itemPreviewSettingsPage.leftAlignedLabel, itemPreviewSettingsPage.centerAlignedLabel, itemPreviewSettingsPage.rightAlignedLabel];
|
272
|
+
const sectionNavigationAlignmentOptionsRadioButton = [itemPreviewSettingsPage.leftAlignedRadioButton, itemPreviewSettingsPage.centerAlignedRadioButton, itemPreviewSettingsPage.rightAlignedRadioButton];
|
273
|
+
sectionNavigationAlignmentOptionsRadioButton.forEach((option) => {
|
274
|
+
option()
|
275
|
+
.should('be.enabled');
|
276
|
+
});
|
277
|
+
sectionNavigationAlignmentOptionsLabel.forEach((option) => {
|
278
|
+
option()
|
279
|
+
.parent()
|
280
|
+
.should('not.have.class', 'radio-option-disabled');
|
281
|
+
});
|
282
|
+
},
|
283
|
+
|
284
|
+
selectHorizontalOrientationRadioButton: () => {
|
285
|
+
itemPreviewSettingsPage.horizontalRadioButton()
|
286
|
+
.click()
|
287
|
+
.should('be.checked');
|
288
|
+
},
|
289
|
+
|
290
|
+
verifyVerticalNavigationOrientationIsDisabled: () => {
|
291
|
+
itemPreviewSettingsPage.verticalRadioButton()
|
292
|
+
.should('be.disabled');
|
293
|
+
itemPreviewSettingsPage.verticalLabel()
|
294
|
+
.parent()
|
295
|
+
.should('have.class', 'radio-option-disabled');
|
296
|
+
},
|
297
|
+
|
298
|
+
verifyDisableCutCopyAndPasteCheckboxIsUnchecked: () => {
|
299
|
+
itemPreviewSettingsPage.disableCutCopyAndPasteCheckbox()
|
300
|
+
.should('not.be.checked');
|
301
|
+
},
|
302
|
+
|
303
|
+
verifyRandomizeQuestionsOrderCheckboxIsUnchecked: () => {
|
304
|
+
itemPreviewSettingsPage.randomizeQuestionsOrderCheckbox()
|
305
|
+
.should('not.be.checked');
|
306
|
+
},
|
307
|
+
|
308
|
+
verifyRoundNegativeScoresCheckboxIsUnchecked: () => {
|
309
|
+
itemPreviewSettingsPage.roundNegativeScoresToZeroCheckbox()
|
310
|
+
.should('not.be.checked');
|
311
|
+
},
|
312
|
+
|
313
|
+
checkDisableCutCopyAndPasteCheckbox: () => {
|
314
|
+
itemPreviewSettingsPage.disableCutCopyAndPasteCheckbox()
|
315
|
+
.click()
|
316
|
+
.should('be.checked');
|
317
|
+
},
|
318
|
+
|
319
|
+
checkRoundNegativeScoresCheckbox: () => {
|
320
|
+
itemPreviewSettingsPage.roundNegativeScoresToZeroCheckbox()
|
321
|
+
.click()
|
322
|
+
.should('be.checked');
|
323
|
+
},
|
324
|
+
|
325
|
+
checkRandomizeQuestionsOrderCheckbox: () => {
|
326
|
+
itemPreviewSettingsPage.randomizeQuestionsOrderCheckbox()
|
327
|
+
.click()
|
328
|
+
.should('be.checked');
|
329
|
+
},
|
330
|
+
|
331
|
+
uncheckDisableCutCopyAndPasteCheckbox: () => {
|
332
|
+
itemPreviewSettingsPage.disableCutCopyAndPasteCheckbox()
|
333
|
+
.click()
|
334
|
+
.should('not.be.checked');
|
335
|
+
},
|
336
|
+
|
337
|
+
uncheckRoundNegativeScoresCheckbox: () => {
|
338
|
+
itemPreviewSettingsPage.roundNegativeScoresToZeroCheckbox()
|
339
|
+
.click()
|
340
|
+
.should('not.be.checked');
|
341
|
+
},
|
342
|
+
|
343
|
+
uncheckRandomizeQuestionsOrderCheckbox: () => {
|
344
|
+
itemPreviewSettingsPage.randomizeQuestionsOrderCheckbox()
|
345
|
+
.click()
|
346
|
+
.should('not.be.checked');
|
347
|
+
},
|
348
|
+
|
349
|
+
verifyFlagThisItemNonAccessibleCheckboxIsUnchecked: () => {
|
350
|
+
itemPreviewSettingsPage.flagNonAccessibleCheckbox()
|
351
|
+
.should('not.be.checked');
|
352
|
+
},
|
353
|
+
|
354
|
+
checkFlagThisItemNonAccessibleCheckbox: () => {
|
355
|
+
itemPreviewSettingsPage.flagNonAccessibleCheckbox()
|
356
|
+
.click()
|
357
|
+
.should('be.checked');
|
358
|
+
},
|
359
|
+
|
360
|
+
uncheckFlagThisItemNonAccessibleCheckbox: () => {
|
361
|
+
itemPreviewSettingsPage.flagNonAccessibleCheckbox()
|
362
|
+
.click()
|
363
|
+
.should('not.be.checked');
|
364
|
+
},
|
365
|
+
|
366
|
+
/**
|
367
|
+
* @param {string} inputText text to be entered in Alternate accessible item ID input field
|
368
|
+
* @description this function is used to add input to the Alternate accessible item ID input field
|
369
|
+
*/
|
370
|
+
verifyAlternateAccessibleIdInputFieldText: (inputText) => {
|
371
|
+
itemPreviewSettingsPage.alternateAccessibleIdInputField()
|
372
|
+
.type(`${inputText}`);
|
373
|
+
itemPreviewSettingsPage.alternateAccessibleIdInputField()
|
374
|
+
.should('have.attr', 'value', `${inputText}`);
|
375
|
+
},
|
376
|
+
|
377
|
+
verifyThisItemIsAlsoAvailableInOtherLanguagesCheckboxIsUnchecked: () => {
|
378
|
+
itemPreviewSettingsPage.languagesCheckbox()
|
379
|
+
.should('not.be.checked');
|
380
|
+
},
|
381
|
+
|
382
|
+
checkThisItemIsAlsoAvailableInOtherLanguagesCheckbox: () => {
|
383
|
+
itemPreviewSettingsPage.languagesCheckbox()
|
384
|
+
.click()
|
385
|
+
.should('be.checked');
|
386
|
+
},
|
387
|
+
|
388
|
+
uncheckThisItemIsAlsoAvailableInOtherLanguagesCheckbox: () => {
|
389
|
+
itemPreviewSettingsPage.languagesCheckbox()
|
390
|
+
.click()
|
391
|
+
.should('not.be.checked');
|
392
|
+
},
|
393
|
+
|
394
|
+
verifyHorizontalRadioButtonIsSelected: () => {
|
395
|
+
itemPreviewSettingsPage.horizontalRadioButton()
|
396
|
+
.should('be.checked');
|
397
|
+
},
|
398
|
+
|
399
|
+
verifyUnderlinedRadioButtonIsSelected: () => {
|
400
|
+
itemPreviewSettingsPage.underlinedRadioButton()
|
401
|
+
.should('be.checked');
|
402
|
+
},
|
403
|
+
|
404
|
+
verifyLeftAlignedRadioButtonIsSelected: () => {
|
405
|
+
itemPreviewSettingsPage.leftAlignedRadioButton()
|
406
|
+
.should('be.checked');
|
407
|
+
},
|
408
|
+
|
409
|
+
/**
|
410
|
+
*
|
411
|
+
* @param {array} spacingOptionsArray array containing options of spacing dropdown list
|
412
|
+
* @description this function is used to verify inner text of expanded spacing dropdown list options
|
413
|
+
*/
|
414
|
+
verifySpacingDropdownListOptions: (spacingOptionsArray) => {
|
415
|
+
spacingOptionsArray.forEach((option, count) => {
|
416
|
+
itemPreviewSettingsPage.spacingDropdownListOptions()
|
417
|
+
.eq(count)
|
418
|
+
.should('have.text', option);
|
419
|
+
});
|
420
|
+
},
|
421
|
+
|
422
|
+
verifyDefaultSpacingIsSelected: () => {
|
423
|
+
itemPreviewSettingsPage.spacingDropdown()
|
424
|
+
.contains('Default');
|
425
|
+
},
|
426
|
+
|
427
|
+
clickSpacingDropdownList: () => {
|
428
|
+
itemPreviewSettingsPage.spacingDropdown()
|
429
|
+
.click();
|
430
|
+
},
|
431
|
+
|
432
|
+
/**
|
433
|
+
* @param {string} spacingOption text is the option that has to be selected from expanded spacing dropdown list
|
434
|
+
* @description this function is used to select particular option from expanded spacing dropdown list
|
435
|
+
*/
|
436
|
+
selectOptionFromSpacingDropdown: (spacingOption) => {
|
437
|
+
itemPreviewSettingsPage.spacingDropdownListOptions()
|
438
|
+
.contains(`${spacingOption}`)
|
439
|
+
.click();
|
440
|
+
}
|
441
|
+
};
|
442
|
+
|
443
|
+
export const itemPreviewSettingsPage = {
|
444
|
+
...selectors,
|
445
|
+
steps
|
446
|
+
};
|