itemengine-cypress-automation 1.0.285-applitools-da9f1a8.0 → 1.0.286-fixesE2E24thJan-7a46dd4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/Gzip/gzip.js +7 -7
- 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 +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -15
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -14
- 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 +7 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -15
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -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/blankResponseScoring.js +214 -0
- 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 +6 -15
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -16
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -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/blankResponseScoring.js +239 -0
- 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 +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +6 -14
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
- 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/blankResponseScoring.js +212 -0
- 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 +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- 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 +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +16 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
- 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 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- 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 +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- 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 +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- 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 +4 -13
- package/cypress/pages/audioPlayerPage.js +4 -4
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
- package/cypress/pages/components/equationEditorFlyout.js +1 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +41 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/createItemPage.js +38 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
- package/cypress/pages/graphingPage.js +3 -0
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +34 -7
- package/cypress/pages/multipleSelectionPage.js +17 -2
- package/cypress/pages/numberLineLabelPage.js +3 -3
- package/cypress/pages/readingRulerPage.js +5 -3
- package/cypress/pages/singleSelectionPage.js +5 -2
- package/cypress/pages/studentViewPage.js +4 -4
- package/cypress/pages/textEntryMathPage.js +19 -5
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -76,7 +76,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
76
76
|
});
|
77
77
|
|
78
78
|
//Will not be able to cover image options as they will open the windows explorer popup and closing the popup is not possible
|
79
|
-
it(
|
79
|
+
it('When user clicks on the drawing toolbar options, then the option name and its respective secondary toolbar options should be displayed in the secondary toolbar', () => {
|
80
80
|
drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions.forEach((toolbarOption) => {
|
81
81
|
if (toolbarOption.secondaryToolbarOptions !== undefined) {
|
82
82
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(toolbarOption.displayName);
|
@@ -135,7 +135,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
135
135
|
drawingResponsePage.steps.switchToPreviewTab();
|
136
136
|
});
|
137
137
|
|
138
|
-
it(
|
138
|
+
it('User should be able to upload an image', () => {
|
139
139
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
140
140
|
drawingResponsePage.steps.uploadFile('uploads/image.png');
|
141
141
|
});
|
@@ -145,13 +145,14 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
145
145
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
146
146
|
});
|
147
147
|
|
148
|
-
it(
|
148
|
+
it('User should be able to attach multiple files at once among the supported file types', () => {
|
149
|
+
drawingResponsePage.steps.resetQuestionPreview();
|
149
150
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
150
151
|
drawingResponsePage.steps.uploadFile(['uploads/sample.jpg', 'uploads/sample.gif']);
|
151
152
|
drawingResponsePage.steps.verifyInsertImageContainerNotExist();
|
152
153
|
});
|
153
154
|
|
154
|
-
it(
|
155
|
+
it('When the user tries to upload an image an image more than 5mb then an error should be displayed \'The following files were rejected *filename* is too large. The maximum file size is 5MB\'', () => {
|
155
156
|
drawingResponsePage.steps.resetQuestionPreview();
|
156
157
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[5].displayName);
|
157
158
|
drawingResponsePage.steps.uploadFile('uploads/20mbFile.png');
|
@@ -193,7 +194,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
193
194
|
});
|
194
195
|
});
|
195
196
|
|
196
|
-
it(
|
197
|
+
it('When user clicks on \'Special characters\' secondary toolbar option, then the \'Special characters\' popup should be displayed with \'Special characters\' title and a \'Close\' button', () => {
|
197
198
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
198
199
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
199
200
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[0]);
|
@@ -206,7 +207,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
206
207
|
});
|
207
208
|
});
|
208
209
|
|
209
|
-
it(
|
210
|
+
it('All categories and accordions should be displayed in the popup', () => {
|
210
211
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryTitlesAndAccordions(specialCharacters);
|
211
212
|
});
|
212
213
|
|
@@ -241,7 +242,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
241
242
|
drawingResponsePage.steps.verifySpecialCharactersPopupCategoryAccordionIsExpanded(2);
|
242
243
|
});
|
243
244
|
|
244
|
-
it(
|
245
|
+
it('When user clicks on any category icon, then the category flyout should stay open', () => {
|
245
246
|
drawingResponsePage.steps.clickOnCharacterPopupSymbol('Iuml');
|
246
247
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
247
248
|
});
|
@@ -281,13 +282,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
281
282
|
cy.barsPreLoaderWait();
|
282
283
|
});
|
283
284
|
|
284
|
-
it(
|
285
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} secondary toolbar option should not be displayed`, () => {
|
285
286
|
drawingResponsePage.steps.switchToPreviewTab();
|
286
287
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
287
288
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]), 'notExist');
|
288
289
|
});
|
289
290
|
|
290
|
-
it(
|
291
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]} secondary toolbar option should be displayed`, () => {
|
291
292
|
drawingResponsePage.steps.switchToEditTab();
|
292
293
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
293
294
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[1]}`]);
|
@@ -306,7 +307,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
306
307
|
});
|
307
308
|
});
|
308
309
|
|
309
|
-
it(
|
310
|
+
it('When user clicks on \'Math characters\' secondary toolbar option, then the \'Math characters\' popup should be displayed with \'Math characters\' title and a \'Close\' button', () => {
|
310
311
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
311
312
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryPopup(), 'exist');
|
312
313
|
drawingResponsePage.steps.verifySecondaryOptionCharactersPopupTitle(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[1]);
|
@@ -360,13 +361,14 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
360
361
|
cy.barsPreLoaderWait();
|
361
362
|
});
|
362
363
|
|
363
|
-
|
364
|
+
|
365
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} secondary toolbar option should not be displayed`, () => {
|
364
366
|
drawingResponsePage.steps.switchToPreviewTab();
|
365
367
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
366
368
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]), 'notExist');
|
367
369
|
});
|
368
370
|
|
369
|
-
it(
|
371
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]} secondary toolbar option should be displayed`, () => {
|
370
372
|
drawingResponsePage.steps.switchToEditTab();
|
371
373
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
372
374
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[2]}`]);
|
@@ -389,7 +391,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
389
391
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
390
392
|
});
|
391
393
|
|
392
|
-
it(
|
394
|
+
it('When user clicks on \'Font size\' secondary toolbar option, then the \'Font size\' popup should be displayed', () => {
|
393
395
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[2]);
|
394
396
|
});
|
395
397
|
|
@@ -461,7 +463,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
461
463
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
462
464
|
});
|
463
465
|
|
464
|
-
it(
|
466
|
+
it('When user clicks on \'Opacity\' secondary toolbar option, then the \'Opacity\' popup should be displayed and \'Opacity\' secondary toolbar option should be in selected state', () => {
|
465
467
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[2]);
|
466
468
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
467
469
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -479,12 +481,12 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
479
481
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(100);
|
480
482
|
});
|
481
483
|
|
482
|
-
it(
|
484
|
+
it('When the user changes value in the opacity input field, the slider value should also change accordingly', () => {
|
483
485
|
drawingResponsePage.steps.enterValueInOpacityInputFieldValue(10);
|
484
486
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(10);
|
485
487
|
});
|
486
488
|
|
487
|
-
it(
|
489
|
+
it('When the user changes the opacity slider value, value in the opacity input field should also change', () => {
|
488
490
|
drawingResponsePage.steps.clickOnSecondaryPopupSlider();
|
489
491
|
drawingResponsePage.steps.verifySecondaryPopupOpacitySliderValue(51);
|
490
492
|
drawingResponsePage.steps.verifySecondaryPopupOpacityInputFieldValue(51);
|
@@ -564,7 +566,7 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
564
566
|
cy.checkAccessibility(drawingResponsePage.previewTabSecondaryToolbarOption().parents('.drawing-tool__secondary-toolbar'));
|
565
567
|
});
|
566
568
|
|
567
|
-
it(
|
569
|
+
it('When user clicks on \'Stroke thickness\' secondary toolbar option, then the \'Stroke thickness\' popup should be displayed and \'Stroke thickness\' secondary toolbar option should be in selected state', () => {
|
568
570
|
drawingResponsePage.steps.selectPreviewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[1].secondaryToolbarOptions[1]);
|
569
571
|
drawingResponsePage.steps.verifySecondaryPopupExist();
|
570
572
|
//Add here once https://redmine.zeuslearning.com/issues/554508 is resolved
|
@@ -630,13 +632,13 @@ describe('Preview tab contents - primary toolbar options, secondary toolbar opti
|
|
630
632
|
cy.barsPreLoaderWait();
|
631
633
|
});
|
632
634
|
|
633
|
-
it(
|
635
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} additional option is not selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} secondary toolbar option should not be displayed`, () => {
|
634
636
|
drawingResponsePage.steps.switchToPreviewTab();
|
635
637
|
drawingResponsePage.steps.selectPreviewTabToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].displayName);
|
636
638
|
utilities.verifyElementVisibilityState(drawingResponsePage.previewTabSecondaryToolbarOption(drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]), 'notExist');
|
637
639
|
});
|
638
640
|
|
639
|
-
it(
|
641
|
+
it(`When ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} additional option is selected in edit tab, then in preview tab the ${drawingToolbarOptionsAndAdditionalOptions.drawingToolbarOptions[6].secondaryToolbarOptions[3]} secondary toolbar option should be displayed`, () => {
|
640
642
|
drawingResponsePage.steps.switchToEditTab();
|
641
643
|
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
642
644
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
@@ -0,0 +1,133 @@
|
|
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
|
+
});
|
@@ -11,14 +11,6 @@ describe('Create question page - Essay Response: Equation Editor functionality',
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
describe('Preview tab \'Equation Editor\' flyout', { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
24
16
|
before(() => {
|
@@ -59,6 +59,7 @@ describe('Create item page: Feedback scale - Preview tab contents in all views f
|
|
59
59
|
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
60
60
|
break;
|
61
61
|
case 'Grading view':
|
62
|
+
cy.wait(5000);
|
62
63
|
cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
|
63
64
|
break;
|
64
65
|
default:
|
@@ -54,7 +54,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
54
54
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Branch': 2 });
|
55
55
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
56
56
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
57
|
-
fillInTheGapsDragAndDropPage.steps.
|
57
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
58
58
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
59
59
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
60
60
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
@@ -62,7 +62,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
62
62
|
/*cy.log('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options and clicks on \'Check answer\' button, then incorrect icon should be displayed besides the dropzone incorrect response and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
63
63
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
64
64
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
65
|
-
fillInTheGapsDragAndDropPage.steps.
|
65
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
66
66
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
67
67
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
68
68
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -73,7 +73,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
73
73
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1, 'Stem': 2 })
|
74
74
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
75
75
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
76
|
-
fillInTheGapsDragAndDropPage.steps.
|
76
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
77
77
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
78
78
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -81,7 +81,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
82
|
/*cy.log('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete and clicks on \'Check answer\' button, then no icon should be displayed besides the incomplete and correct icon should be displayed beside the correct response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
83
83
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
84
|
-
fillInTheGapsDragAndDropPage.steps.
|
84
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
85
85
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
87
87
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -22,7 +22,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
22
22
|
fillInTheGapsDragAndDropPage.steps.addAlternativeAnswerAccordion(1);
|
23
23
|
fillInTheGapsDragAndDropPage.steps.allotPoints(20);
|
24
24
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Stem': 1, 'Seed': 2 });
|
25
|
-
|
25
|
+
//fillInTheGapsDragAndDropPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
26
26
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
27
27
|
});
|
28
28
|
|
@@ -79,7 +79,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
79
79
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
80
80
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
81
81
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
82
|
-
fillInTheGapsDragAndDropPage.steps.
|
82
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
85
85
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -87,7 +87,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
87
87
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
88
88
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
89
89
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
90
|
-
fillInTheGapsDragAndDropPage.steps.
|
90
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
93
93
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
99
99
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
100
100
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
101
101
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
102
|
-
fillInTheGapsDragAndDropPage.steps.
|
102
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
105
105
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -107,7 +107,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
107
107
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
108
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
109
109
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
110
|
-
fillInTheGapsDragAndDropPage.steps.
|
110
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
113
113
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
121
121
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
123
123
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
124
|
-
fillInTheGapsDragAndDropPage.steps.
|
124
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
127
127
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -129,7 +129,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
129
129
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
131
131
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
132
|
-
fillInTheGapsDragAndDropPage.steps.
|
132
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
134
134
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
135
135
|
});
|
@@ -160,16 +160,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
160
160
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
161
161
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
162
162
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
164
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
164
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
167
167
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
168
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
169
169
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
170
170
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
172
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
172
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
174
174
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
175
175
|
});
|
@@ -180,16 +180,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
180
180
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
181
181
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
182
182
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
184
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
184
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
|
187
187
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
188
188
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, no icon should be displayed for unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
189
189
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
190
190
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
192
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
192
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
194
194
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
195
195
|
});
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
|
79
79
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
83
83
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
84
84
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -86,7 +86,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
86
86
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
87
87
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
88
88
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
89
|
-
fillInTheGapsDragAndDropPage.steps.
|
89
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
90
90
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
91
91
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
92
92
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -98,7 +98,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
98
98
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
|
99
99
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
100
100
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
101
|
-
fillInTheGapsDragAndDropPage.steps.
|
101
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
102
102
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
103
103
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
104
104
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -106,7 +106,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
106
106
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
107
107
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
108
108
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
109
|
-
fillInTheGapsDragAndDropPage.steps.
|
109
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
110
110
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
111
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
112
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -120,7 +120,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
120
120
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
121
121
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
122
122
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
123
|
-
fillInTheGapsDragAndDropPage.steps.
|
123
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
124
124
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
125
125
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
126
126
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -128,7 +128,7 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
128
128
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
129
129
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
130
130
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
131
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
132
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
133
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
134
134
|
});
|
@@ -159,16 +159,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
159
159
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
160
160
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
161
161
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
162
|
-
fillInTheGapsDragAndDropPage.steps.
|
163
|
-
fillInTheGapsDragAndDropPage.steps.
|
162
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
163
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
164
164
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
165
165
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
166
166
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
167
167
|
/*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
168
168
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
169
169
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
170
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
170
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
174
174
|
});
|
@@ -179,16 +179,16 @@ describe('Create item page - Fill in the gaps with drag and drop: All or nothing
|
|
179
179
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
180
180
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
181
181
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
182
|
-
fillInTheGapsDragAndDropPage.steps.
|
183
|
-
fillInTheGapsDragAndDropPage.steps.
|
182
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
183
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
184
184
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
185
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
|
186
186
|
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
187
187
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
188
188
|
fillInTheGapsDragAndDropPage.steps.checkAnswer();
|
189
189
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
190
|
-
fillInTheGapsDragAndDropPage.steps.
|
191
|
-
fillInTheGapsDragAndDropPage.steps.
|
190
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
191
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
192
192
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
193
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
194
194
|
});
|