itemengine-cypress-automation 1.0.284-RepoUpdate13thJan-c7ac0b4.0 → 1.0.285-applitools-da9f1a8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -26
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +6 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +9 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +10 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +2 -3
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +3 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +10 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -193
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +0 -17
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -5
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -41
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +1 -38
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -45
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -35
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +7 -34
- package/cypress/pages/multipleSelectionPage.js +2 -17
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/readingRulerPage.js +3 -5
- package/cypress/pages/singleSelectionPage.js +2 -5
- package/cypress/pages/textEntryMathPage.js +5 -19
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
- package/cypress/e2e/ILC/EditItem/editItem.ts +0 -133
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +0 -214
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +0 -228
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +0 -242
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +0 -245
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +0 -237
- package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +0 -239
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +0 -212
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +0 -366
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +0 -306
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -243
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -242
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -289
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -284
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -238
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -279
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +0 -641
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -278
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -228
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -234
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -237
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -134
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -138
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +0 -263
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -166
@@ -100,7 +100,8 @@ const selectors = {
|
|
100
100
|
dropdownNumeration: () => cy.get('[class*="ResponseDropdownComponentstyles__NumerationDiv"]'),
|
101
101
|
correctAnswersNumeration: () => cy.get('.answer-numeration-number-box'),
|
102
102
|
correctAnswerResponseWrapper: () => cy.get('[class*="ClozeWithDragAndDropstyles__AnswerCell"]'),
|
103
|
-
correctAnswersOptions: () => cy.get('.match-list-drag-and-drop'),
|
103
|
+
correctAnswersOptions: () => cy.get('.match-list-drag-and-drop .question-text-wrapper'),
|
104
|
+
correctAnswersWrapper: () => cy.get('.match-list-drag-and-drop'),
|
104
105
|
correctAnswersOptionContainer: () => cy.get('.draggable-selected-option'),
|
105
106
|
gradingViewOption: () => cy.get('.item-content-wrapper'),
|
106
107
|
questionBorderPreviewTab: () => cy.get('[class*="ClozeWithDragAndDropstyles__WrapperDiv"]'),
|
@@ -673,18 +674,6 @@ const steps = {
|
|
673
674
|
});
|
674
675
|
},
|
675
676
|
|
676
|
-
/**
|
677
|
-
* Sets options in dropzone in the Preview Tab based on the provided optionsObject.
|
678
|
-
* @param {Object} optionsObject - An object where keys are option texts and values are dropzone indices.
|
679
|
-
*/
|
680
|
-
clickAndDropOptionOutsideDropzoneWithIndexPreviewTab: (dropzoneIndex) => {
|
681
|
-
matchingPage.dropzonePreviewTab()
|
682
|
-
.eq(dropzoneIndex)
|
683
|
-
.click();
|
684
|
-
cy.get('.option-drag-and-drop')
|
685
|
-
.click({ force: true });
|
686
|
-
},
|
687
|
-
|
688
677
|
clickAndDropOptionInOptionsContainerInPreviewTab: (optionText) => {
|
689
678
|
matchingPage.dropzonePreviewTab()
|
690
679
|
.contains(optionText)
|
@@ -768,7 +757,7 @@ const steps = {
|
|
768
757
|
.eq(optionIndex)
|
769
758
|
.find('[role="math"]')
|
770
759
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
771
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
760
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
772
761
|
},
|
773
762
|
|
774
763
|
/**
|
@@ -805,7 +794,7 @@ const steps = {
|
|
805
794
|
.eq(optionIndex)
|
806
795
|
.find('[role="math"]')
|
807
796
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
808
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
797
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
809
798
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
810
799
|
},
|
811
800
|
|
@@ -841,7 +830,7 @@ const steps = {
|
|
841
830
|
.eq(optionIndex)
|
842
831
|
.find('[role="math"]')
|
843
832
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
844
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
833
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
845
834
|
},
|
846
835
|
|
847
836
|
verifyDropzoneNumeration: () => {
|
@@ -880,18 +869,6 @@ const steps = {
|
|
880
869
|
});
|
881
870
|
},
|
882
871
|
|
883
|
-
/**
|
884
|
-
* Verifies the correct option icon for a specified dropzone in the Preview Tab for blank answer response.
|
885
|
-
* @param {number} dropzoneIndex - The index of the dropzone to verify.
|
886
|
-
*/
|
887
|
-
verifyCorrectOptionIconForEmptyOption: (dropzoneIndex) => {
|
888
|
-
matchingPage.dropzonePreviewTab()
|
889
|
-
.eq(dropzoneIndex)
|
890
|
-
.within(() => {
|
891
|
-
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'exist');
|
892
|
-
});
|
893
|
-
},
|
894
|
-
|
895
872
|
/**
|
896
873
|
* @description Verifies the incorrect option icon for a specified dropzone in the Preview Tab.
|
897
874
|
* @param {number} dropzoneIndex - The index of the dropzone to verify.
|
@@ -965,7 +942,7 @@ const steps = {
|
|
965
942
|
correctAnswerArray.forEach((correctAnswerGroup, index) => {
|
966
943
|
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersNumeration(), index), index + 1);
|
967
944
|
correctAnswerGroup.forEach((answerOption, optionIndex) => {
|
968
|
-
utilities.verifyTextContent(utilities.getNthElement(matchingPage.
|
945
|
+
utilities.verifyTextContent(utilities.getNthElement(matchingPage.correctAnswersWrapper(), index).find('.question-text-wrapper').eq(optionIndex), answerOption);
|
969
946
|
});
|
970
947
|
});
|
971
948
|
},
|
@@ -985,10 +962,6 @@ const steps = {
|
|
985
962
|
}
|
986
963
|
},
|
987
964
|
|
988
|
-
verifyCorrectAnswerSectionLabel: () => {
|
989
|
-
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
990
|
-
},
|
991
|
-
|
992
965
|
verifyCorrectAnswerSectionNotExists: () => {
|
993
966
|
utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
|
994
967
|
},
|
@@ -3062,7 +3035,7 @@ const tests = {
|
|
3062
3035
|
} else {
|
3063
3036
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
3064
3037
|
.within(() => {
|
3065
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), '
|
3038
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
|
3066
3039
|
});
|
3067
3040
|
};
|
3068
3041
|
});
|
@@ -6,8 +6,6 @@ import { ckEditorEquationEditorComponent } from "../pages/components/ckEditorEqu
|
|
6
6
|
import { ckEditorInsertTableComponent } from "../pages/components/ckEditorInsertTableComponent"
|
7
7
|
import { ckEditorInsertImageComponent } from "./components/ckEditorInsertImageComponent";
|
8
8
|
import { ckEditorLinkComponent } from "../pages/components/ckEditorLinkComponent"
|
9
|
-
import { createItemPage } from "./createItemPage";
|
10
|
-
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
11
9
|
const css = Cypress.env('css');
|
12
10
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
13
11
|
|
@@ -32,7 +30,6 @@ const selectors = {
|
|
32
30
|
...ckEditorInsertTableComponent,
|
33
31
|
...ckEditorInsertImageComponent,
|
34
32
|
...ckEditorLinkComponent,
|
35
|
-
...createItemPage,
|
36
33
|
//Specify correct answer section
|
37
34
|
optionWrapperSpecifyCorrectAnswerSection: () => cy.get('.mcq-option-wrapper'),
|
38
35
|
optionsText: () => cy.get('.mcq-label'),
|
@@ -101,8 +98,6 @@ const steps = {
|
|
101
98
|
...ckEditorInsertTableComponent.steps,
|
102
99
|
...ckEditorInsertImageComponent.steps,
|
103
100
|
...ckEditorLinkComponent.steps,
|
104
|
-
...createItemPage.steps,
|
105
|
-
...selectQuestionResourceToolPage.steps,
|
106
101
|
/**
|
107
102
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for multiple selection questions.
|
108
103
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -373,7 +368,7 @@ const steps = {
|
|
373
368
|
.eq(index)
|
374
369
|
.find('[role="math"]')
|
375
370
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
376
|
-
|
371
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
377
372
|
},
|
378
373
|
|
379
374
|
/**
|
@@ -420,7 +415,7 @@ const steps = {
|
|
420
415
|
.eq(index)
|
421
416
|
.find('[role="math"]')
|
422
417
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
423
|
-
|
418
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
424
419
|
},
|
425
420
|
|
426
421
|
checkOptionsWrapperInSpecifyCorrectAnswerSection: (optionIndex) => {
|
@@ -845,16 +840,6 @@ const steps = {
|
|
845
840
|
verifyCorrectAnswerSectionNotExist: () => {
|
846
841
|
multipleSelectionPage.correctAnswerSectionWrapper()
|
847
842
|
.should('not.exist');
|
848
|
-
},
|
849
|
-
|
850
|
-
/**
|
851
|
-
* Verifies the input field text value of an option in the feedback scale options accordion.
|
852
|
-
* @param {number} optionAccordionIndex - The index of the option accordion.
|
853
|
-
* @param {string} text - The expected text value of the input field.
|
854
|
-
* @returns {void}
|
855
|
-
*/
|
856
|
-
verifyOptionInputFieldText: (optionAccordionIndex, text) => {
|
857
|
-
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.optionsText(), optionAccordionIndex), text)
|
858
843
|
}
|
859
844
|
}
|
860
845
|
|
@@ -205,7 +205,7 @@ const steps = {
|
|
205
205
|
.eq(index)
|
206
206
|
.find('[role="math"]')
|
207
207
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
208
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
208
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
209
209
|
},
|
210
210
|
|
211
211
|
/**
|
@@ -362,7 +362,7 @@ const steps = {
|
|
362
362
|
.eq(index)
|
363
363
|
.find('[role="math"]')
|
364
364
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
365
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
365
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
366
366
|
},
|
367
367
|
|
368
368
|
/**
|
@@ -417,7 +417,7 @@ const steps = {
|
|
417
417
|
.eq(index)
|
418
418
|
.find('[role="math"]')
|
419
419
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
420
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
420
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
421
421
|
},
|
422
422
|
|
423
423
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
2
|
import { createQuestionBasePage, additionalSettingsPanel, colorPopupComponent } from "./components";
|
3
|
-
import { createItemPage } from "./createItemPage";
|
4
3
|
import { dialogBoxBase } from "./dialogBoxBase";
|
5
4
|
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
6
5
|
const css = Cypress.env('css');
|
@@ -56,7 +55,6 @@ const steps = {
|
|
56
55
|
...additionalSettingsPanel.steps,
|
57
56
|
...dialogBoxBase.steps,
|
58
57
|
...selectQuestionResourceToolPage.steps,
|
59
|
-
...createItemPage.steps,
|
60
58
|
|
61
59
|
verifyDisplayButtonToStudentCheckboxIsChecked: () => {
|
62
60
|
readingRulerPage.displayButtonToStudentCheckbox()
|
@@ -294,9 +292,9 @@ const steps = {
|
|
294
292
|
},
|
295
293
|
|
296
294
|
/**
|
297
|
-
|
298
|
-
|
299
|
-
|
295
|
+
* Verifies the resize buttons in the preview tab based on the specified ruler style.
|
296
|
+
* @param {'Line focus'| 'Overlay mask'| 'Drag handle'} style - The style of the ruler
|
297
|
+
*/
|
300
298
|
verifyRulerButtonsInPreviewTab: (style) => {
|
301
299
|
switch (style) {
|
302
300
|
case 'Line focus':
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import constants from "../fixtures/constants";
|
2
2
|
import utilities from "../support/helpers/utilities";
|
3
3
|
import { additionalSettingsPanel, createQuestionBasePage, mcqAdditionalSettingsBase, scoringSectionBaseEditTab, autoScoredSpecifyCorrectAnswerSection, optionsWrapperComponent, commonComponents, autoScoredScoringPreviewTab, autoScoredStudentViewSettings, ckEditorToolbar, equationEditorFlyout, randomizeOptionsComponent, lockUnlockOptionComponent, questionInstructionsComponent, additionalSettingsAccessibilitySectionComponent } from "./components";
|
4
|
-
import { createItemPage } from "./createItemPage";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
6
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
@@ -19,7 +18,6 @@ const selectors = {
|
|
19
18
|
...autoScoredScoringPreviewTab,
|
20
19
|
...randomizeOptionsComponent,
|
21
20
|
...lockUnlockOptionComponent,
|
22
|
-
...createItemPage,
|
23
21
|
optionsRadioButton: () => cy.get('input[type="radio"]'),
|
24
22
|
optionsRadioButtonForSpecifyCorrectAnswer: () => cy.get('.radio-option-wrapper:visible input[type="radio"]'),
|
25
23
|
editTabOptionsWrapper: () => cy.get('.edit-mcq-option-wrapper'),
|
@@ -56,7 +54,6 @@ const steps = {
|
|
56
54
|
...equationEditorFlyout.steps,
|
57
55
|
...randomizeOptionsComponent.steps,
|
58
56
|
...lockUnlockOptionComponent.steps,
|
59
|
-
...createItemPage.steps,
|
60
57
|
/**
|
61
58
|
* Verifies the contents of an option wrapper in the 'Specify correct answer' section for single selection questions.
|
62
59
|
* @param {number} optionIndex - The index of the option wrapper to be verified.
|
@@ -346,7 +343,7 @@ const steps = {
|
|
346
343
|
.eq(index)
|
347
344
|
.find('[role="math"]')
|
348
345
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
349
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
346
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
350
347
|
},
|
351
348
|
|
352
349
|
/**
|
@@ -393,7 +390,7 @@ const steps = {
|
|
393
390
|
.eq(index)
|
394
391
|
.find('[role="math"]')
|
395
392
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
396
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
393
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
397
394
|
},
|
398
395
|
|
399
396
|
/**
|
@@ -44,7 +44,6 @@ const selectors = {
|
|
44
44
|
//Evaluation tab
|
45
45
|
evaluationTab: () => cy.get('[data-ngie-testid*="evaluation"][data-ngie-testid*="tab"]'),
|
46
46
|
evaluationTabCloseButton: () => cy.get('.styled-close-button[aria-label*="Evaluation"]'),
|
47
|
-
evaluationCard: () => cy.get('.evaluation-styled-card'),
|
48
47
|
evaluationContainer: (evaluationMethodTitle = null) => {
|
49
48
|
if (evaluationMethodTitle) {
|
50
49
|
return cy.get(`.evaluation-styled-card`).contains(evaluationMethodTitle)
|
@@ -361,23 +360,15 @@ const steps = {
|
|
361
360
|
/**
|
362
361
|
* Select evaluation method
|
363
362
|
* @param {string} evaluationMethodTitle Title of evaluation method
|
364
|
-
* @param {number} index index of evolution method
|
365
363
|
*/
|
366
364
|
selectEvaluationMethod: (evaluationMethodTitle) => {
|
367
|
-
|
368
|
-
|
369
|
-
.contains(evaluationMethodTitle)
|
370
|
-
.click();
|
371
|
-
} else {
|
372
|
-
textEntryMathPage.evaluationCard()
|
373
|
-
.contains(evaluationMethodTitle)
|
374
|
-
.click();
|
375
|
-
}
|
365
|
+
textEntryMathPage.evaluationContainer(evaluationMethodTitle)
|
366
|
+
.click();
|
376
367
|
textEntryMathPage.steps.verifyEvaluationMethodActiveState(evaluationMethodTitle);
|
377
368
|
},
|
378
369
|
|
379
370
|
clickOnAddEvaluationButton: () => {
|
380
|
-
|
371
|
+
textEntryMathPage.addEvaluationButton()
|
381
372
|
.click();
|
382
373
|
},
|
383
374
|
|
@@ -976,9 +967,8 @@ const steps = {
|
|
976
967
|
.should('have.attr', 'aria-expanded', 'false');
|
977
968
|
},
|
978
969
|
|
979
|
-
focusInLayoutInputField: (
|
970
|
+
focusInLayoutInputField: () => {
|
980
971
|
textEntryMathPage.inputFieldLayoutAccordion()
|
981
|
-
.eq(index)
|
982
972
|
.click();
|
983
973
|
},
|
984
974
|
|
@@ -1340,10 +1330,6 @@ const steps = {
|
|
1340
1330
|
utilities.verifyCSS(utilities.getNthElement(textEntryMathPage.answerInputFieldPreviewTab(), responseAreaIndex), {
|
1341
1331
|
'border-style': styleName
|
1342
1332
|
});
|
1343
|
-
},
|
1344
|
-
|
1345
|
-
verifyCorrectIncorrectStatusMessageTextNotExist: () => {
|
1346
|
-
utilities.verifyElementVisibilityState(textEntryMathPage.correctIncorrectStatusMessageText(), 'notExist');
|
1347
1333
|
}
|
1348
1334
|
}
|
1349
1335
|
|
@@ -1462,7 +1448,7 @@ const tests = {
|
|
1462
1448
|
});
|
1463
1449
|
|
1464
1450
|
it('User should be able to select a different evaluation method', () => {
|
1465
|
-
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name
|
1451
|
+
textEntryMathPage.steps.selectEvaluationMethod(evaluationMethods[3].name);
|
1466
1452
|
});
|
1467
1453
|
},
|
1468
1454
|
|
@@ -248,7 +248,7 @@ const steps = {
|
|
248
248
|
textSelectionPage.questionTextWrapperPreviewTab()
|
249
249
|
.find('span[role="math"]')
|
250
250
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
251
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText);
|
251
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
252
252
|
},
|
253
253
|
|
254
254
|
verifyLinkInPreviewTab: () => {
|
@@ -5,6 +5,7 @@ import 'cypress-file-upload';
|
|
5
5
|
import { iePage } from './migrationHelpers/verifyIeQuestionData';
|
6
6
|
import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
|
7
7
|
require('cy-verify-downloads').addCustomCommand();
|
8
|
+
import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
|
8
9
|
//import addContext from "mochawesome/addContext";
|
9
10
|
|
10
11
|
const randomUser = (j, username, i) => ({
|
@@ -154,6 +155,16 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
|
|
154
155
|
.should('be.visible');
|
155
156
|
});
|
156
157
|
|
158
|
+
Cypress.Commands.add('startApplitools', () => {
|
159
|
+
cy.eyesOpen({
|
160
|
+
apiKey,
|
161
|
+
serverUrl,
|
162
|
+
browser,
|
163
|
+
appName: 'Applitools Demo - ILC',
|
164
|
+
testName: Cypress.currentTest.title,
|
165
|
+
});
|
166
|
+
});
|
167
|
+
|
157
168
|
Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
158
169
|
iePage.questionAndResourceWrapper()
|
159
170
|
.then((elements) => {
|
package/cypress/support/e2e.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.285-applitools-da9f1a8.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,5 +35,8 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0",
|
37
37
|
"typescript": "^5.6.3"
|
38
|
+
},
|
39
|
+
"devDependencies": {
|
40
|
+
"@applitools/eyes-cypress": "^3.49.1"
|
38
41
|
}
|
39
42
|
}
|
@@ -1,133 +0,0 @@
|
|
1
|
-
import { multipleSelectionPage, readingRulerPage, singleSelectionPage } from '../../../pages'
|
2
|
-
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
|
3
|
-
|
4
|
-
describe('Edit Question and edit item', () => {
|
5
|
-
before(() => {
|
6
|
-
cy.loginAs('admin');
|
7
|
-
});
|
8
|
-
|
9
|
-
describe('Edit question', () => {
|
10
|
-
before(() => {
|
11
|
-
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
12
|
-
cy.barsPreLoaderWait();
|
13
|
-
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
14
|
-
multipleSelectionPage.steps.addInputToOptionsInputField(options);
|
15
|
-
multipleSelectionPage.steps.allotPoints(20);
|
16
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
17
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(1);
|
18
|
-
multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
19
|
-
});
|
20
|
-
|
21
|
-
it('When user edits the question instructions, then the changes should be saved correctly', () => {
|
22
|
-
multipleSelectionPage.steps.editItem(1);
|
23
|
-
multipleSelectionPage.steps.clearQuestionInstructionsInputField();
|
24
|
-
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
25
|
-
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
26
|
-
multipleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
|
27
|
-
});
|
28
|
-
|
29
|
-
it('When user edits the options, then the changes should be saved correctly', () => {
|
30
|
-
multipleSelectionPage.steps.editItem(1);
|
31
|
-
multipleSelectionPage.steps.editOptionInputField(0, 'Edit option input field');
|
32
|
-
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
33
|
-
multipleSelectionPage.steps.verifyOptionInputFieldText(0, 'Edit option input field');
|
34
|
-
options.slice(1).forEach((option, index) => {
|
35
|
-
multipleSelectionPage.steps.verifyOptionInputFieldText(index + 1, option);
|
36
|
-
});
|
37
|
-
});
|
38
|
-
|
39
|
-
it('When user edits the points, then the changes should be saved correctly', () => {
|
40
|
-
multipleSelectionPage.steps.editItem(1);
|
41
|
-
multipleSelectionPage.steps.allotPoints(10);
|
42
|
-
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
43
|
-
multipleSelectionPage.steps.verifyPointsValue('10');
|
44
|
-
});
|
45
|
-
|
46
|
-
it('When user edits the correct answers, then the changes should be saved correctly', () => {
|
47
|
-
multipleSelectionPage.steps.editItem(1);
|
48
|
-
multipleSelectionPage.steps.uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
49
|
-
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
|
50
|
-
multipleSelectionPage.steps.clickOnSaveQuestionButton();
|
51
|
-
multipleSelectionPage.steps.switchToPreviewTab();
|
52
|
-
multipleSelectionPage.steps.switchToGradingView();
|
53
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(0);
|
54
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
55
|
-
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
|
56
|
-
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
57
|
-
});
|
58
|
-
|
59
|
-
it('User should be able to add a new question upon saving an item', () => {
|
60
|
-
multipleSelectionPage.steps.switchToEditTab();
|
61
|
-
multipleSelectionPage.steps.clickOnAddQuestion();
|
62
|
-
multipleSelectionPage.steps.selectQuestionType('single selection');
|
63
|
-
multipleSelectionPage.steps.verifyCreateQuestionPageQuestionTypeHeader('Single selection');
|
64
|
-
});
|
65
|
-
|
66
|
-
it('When user adds all the necessary details and clicks on save question, then the question should be saved successfully', () => {
|
67
|
-
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('This is a newly added question');
|
68
|
-
singleSelectionPage.steps.allotPoints(20);
|
69
|
-
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
70
|
-
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
71
|
-
singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
|
72
|
-
});
|
73
|
-
|
74
|
-
it('The saved questions should be displayed in the list of questions', () => {
|
75
|
-
singleSelectionPage.steps.verifyQuestionTitle(0, 'Multiple selection');
|
76
|
-
singleSelectionPage.steps.verifyQuestionTitle(1, 'Single selection');
|
77
|
-
});
|
78
|
-
});
|
79
|
-
|
80
|
-
describe('Edit resource', () => {
|
81
|
-
before(() => {
|
82
|
-
readingRulerPage.steps.navigateToCreateResource('reading ruler');
|
83
|
-
readingRulerPage.steps.clickOnSaveQuestionButton();
|
84
|
-
});
|
85
|
-
|
86
|
-
it('When user edits the resource, then the changes should be saved correctly', () => {
|
87
|
-
readingRulerPage.steps.editItem(0);
|
88
|
-
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
89
|
-
readingRulerPage.steps.selectColorBlock(1);
|
90
|
-
readingRulerPage.steps.addInputToDefaultNumberOfLinesInputField(2);
|
91
|
-
readingRulerPage.steps.addInputToOpacityInputField(50);
|
92
|
-
readingRulerPage.steps.clickOnSaveQuestionButton();
|
93
|
-
});
|
94
|
-
|
95
|
-
it('When user edits the resource, then the changes should be saved correctly', () => {
|
96
|
-
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
97
|
-
readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
|
98
|
-
readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(1);
|
99
|
-
readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab(0.5);
|
100
|
-
readingRulerPage.steps.verifySizeOfReadingRulerInPreviewTab('Line focus', 2);
|
101
|
-
});
|
102
|
-
});
|
103
|
-
|
104
|
-
describe('Single selection and Reading ruler - Edit item', () => {
|
105
|
-
before(() => {
|
106
|
-
singleSelectionPage.steps.navigateToCreateQuestion('single selection');
|
107
|
-
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.')
|
108
|
-
singleSelectionPage.steps.addInputToOptionsInputField(options);
|
109
|
-
singleSelectionPage.steps.allotPoints(20);
|
110
|
-
singleSelectionPage.steps.checkOptionInSpecifyCorrectAnswerSection(1);
|
111
|
-
singleSelectionPage.steps.clickOnSaveQuestionButton();
|
112
|
-
readingRulerPage.steps.clickOnAddResource();
|
113
|
-
readingRulerPage.steps.selectResourceType('reading ruler');
|
114
|
-
readingRulerPage.steps.clickOnSaveQuestionButton();
|
115
|
-
});
|
116
|
-
|
117
|
-
it('The user should be able to edit the item', () => {
|
118
|
-
singleSelectionPage.steps.editItem(0);
|
119
|
-
singleSelectionPage.steps.clearQuestionInstructionsInputField();
|
120
|
-
singleSelectionPage.steps.addTextInQuestionInstructionsInputField('Edit question instructions');
|
121
|
-
singleSelectionPage.steps.clickOnSaveQuestionButton();
|
122
|
-
singleSelectionPage.steps.verifyQuestionInstructionsTextPreviewTab('Edit question instructions');
|
123
|
-
});
|
124
|
-
|
125
|
-
it('User should be able to edit the resource', () => {
|
126
|
-
singleSelectionPage.steps.editItem(2);
|
127
|
-
readingRulerPage.steps.checkVisibleOnLandingCheckbox();
|
128
|
-
readingRulerPage.steps.clickOnSaveQuestionButton();
|
129
|
-
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
130
|
-
readingRulerPage.steps.verifyReadingRulerVisibilityButtonLabelPreviewTab('Hide');
|
131
|
-
});
|
132
|
-
});
|
133
|
-
});
|