itemengine-cypress-automation 1.0.284-applitools-38637bb.0 → 1.0.285
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 -36
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -14
- 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/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -17
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- 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 -17
- 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 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- 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 -35
- 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 -14
- 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 -13
- 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 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -15
- 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 -12
- 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 -14
- 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 -14
- 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 -14
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +6 -14
- 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 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- 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 -14
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- 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 -13
- 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 -12
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -12
- 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 -18
- 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
@@ -11,14 +11,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
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
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -102,7 +94,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
102
94
|
});
|
103
95
|
};
|
104
96
|
|
105
|
-
it(
|
97
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed and respective option numeration', () => {
|
106
98
|
if (view === 'Grading view') {
|
107
99
|
studentViewPage.steps.submitResponse();
|
108
100
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -120,7 +112,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
120
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
121
113
|
});
|
122
114
|
|
123
|
-
it(
|
115
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
124
116
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
125
117
|
if (view === 'Grading view') {
|
126
118
|
studentViewPage.steps.submitResponse();
|
@@ -139,7 +131,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
139
131
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
140
132
|
});
|
141
133
|
|
142
|
-
it(
|
134
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
143
135
|
if (view === 'Grading view') {
|
144
136
|
studentViewPage.steps.clearResponses();
|
145
137
|
};
|
@@ -161,7 +153,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
161
153
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
162
154
|
});
|
163
155
|
|
164
|
-
it(
|
156
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
165
157
|
if (view === 'Grading view') {
|
166
158
|
studentViewPage.steps.clearResponses();
|
167
159
|
};
|
@@ -183,7 +175,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
183
175
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
184
176
|
});
|
185
177
|
|
186
|
-
it(
|
178
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed along with numeration', () => {
|
187
179
|
if (view === 'Grading view') {
|
188
180
|
studentViewPage.steps.clearResponses();
|
189
181
|
};
|
@@ -205,7 +197,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
205
197
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
206
198
|
});
|
207
199
|
|
208
|
-
it(
|
200
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
209
201
|
if (view === 'Grading view') {
|
210
202
|
studentViewPage.steps.clearResponses();
|
211
203
|
};
|
@@ -226,7 +218,6 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
226
218
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
227
219
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
228
220
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
-
cy.eyesCheckWindow(`FIG drag and drop - ${view} view - Attempting the question correctly`);
|
230
221
|
});
|
231
222
|
});
|
232
223
|
});
|
@@ -10,14 +10,6 @@ describe('Preview tab contents for all views', () => {
|
|
10
10
|
cy.loginAs('admin');
|
11
11
|
});
|
12
12
|
|
13
|
-
beforeEach(() => {
|
14
|
-
cy.startApplitools();
|
15
|
-
});
|
16
|
-
|
17
|
-
afterEach(() => {
|
18
|
-
cy.eyesClose();
|
19
|
-
});
|
20
|
-
|
21
13
|
views.forEach((view) => {
|
22
14
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
@@ -84,10 +76,9 @@ describe('Preview tab contents for all views', () => {
|
|
84
76
|
}
|
85
77
|
});
|
86
78
|
|
87
|
-
it(
|
79
|
+
it('Question instructions should be visible', () => {
|
88
80
|
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'Drag and drop the options in appropriate dropzone');
|
89
81
|
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.questionInstructionsText(), 'visible');
|
90
|
-
cy.eyesCheckWindow(`Fill in the gaps drag and drop - ${view} - Options with image, equation, and bold text`);
|
91
82
|
});
|
92
83
|
|
93
84
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -99,7 +90,7 @@ describe('Preview tab contents for all views', () => {
|
|
99
90
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, '');
|
100
91
|
});
|
101
92
|
|
102
|
-
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container`, () => {
|
93
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
103
94
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
104
95
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
105
96
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -134,12 +125,13 @@ describe('Preview tab contents for all views', () => {
|
|
134
125
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneIsNotEditableInGradingView();
|
135
126
|
});
|
136
127
|
} else {
|
137
|
-
it(
|
128
|
+
it('The dropzone should be displayed filled with answers', () => {
|
138
129
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzonePreviewTab(), 3);
|
139
130
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(2, 'Petals');
|
140
131
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(2);
|
141
132
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'This is a bold option');
|
142
|
-
|
133
|
+
//Note: Equation needs to be checked manually in correct answer view
|
134
|
+
// fillInTheGapsDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(1);
|
143
135
|
});
|
144
136
|
}
|
145
137
|
});
|
@@ -16,14 +16,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
16
16
|
cy.loginAs('admin');
|
17
17
|
});
|
18
18
|
|
19
|
-
beforeEach(() => {
|
20
|
-
cy.startApplitools();
|
21
|
-
});
|
22
|
-
|
23
|
-
afterEach(() => {
|
24
|
-
cy.eyesClose();
|
25
|
-
});
|
26
|
-
|
27
19
|
if (!grepTags || !grepTags.includes('smoke')) {
|
28
20
|
describe('Question preview modes: Student view and Grading view', () => {
|
29
21
|
abortEarlySetup();
|
@@ -102,7 +94,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
102
94
|
});
|
103
95
|
};
|
104
96
|
|
105
|
-
it(
|
97
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
106
98
|
if (view === 'Grading view') {
|
107
99
|
studentViewPage.steps.submitResponse();
|
108
100
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -120,7 +112,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
120
112
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
121
113
|
});
|
122
114
|
|
123
|
-
it(
|
115
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
124
116
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
125
117
|
if (view === 'Grading view') {
|
126
118
|
studentViewPage.steps.submitResponse();
|
@@ -138,7 +130,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
138
130
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
139
131
|
});
|
140
132
|
|
141
|
-
it(
|
133
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
142
134
|
if (view === 'Grading view') {
|
143
135
|
studentViewPage.steps.clearResponses();
|
144
136
|
};
|
@@ -159,7 +151,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
159
151
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
160
152
|
});
|
161
153
|
|
162
|
-
it(
|
154
|
+
it('When the user attempts the question correctly, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
163
155
|
if (view === 'Grading view') {
|
164
156
|
studentViewPage.steps.clearResponses();
|
165
157
|
};
|
@@ -178,7 +170,6 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
178
170
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
179
171
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
180
172
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
181
|
-
cy.eyesCheckWindow(`FIG Dropdown - ${view} - Attempting the question correctly`);
|
182
173
|
});
|
183
174
|
});
|
184
175
|
});
|
@@ -15,14 +15,6 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
15
15
|
cy.loginAs('admin');
|
16
16
|
});
|
17
17
|
|
18
|
-
beforeEach(() => {
|
19
|
-
cy.startApplitools();
|
20
|
-
});
|
21
|
-
|
22
|
-
afterEach(() => {
|
23
|
-
cy.eyesClose();
|
24
|
-
});
|
25
|
-
|
26
18
|
views.forEach((view) => {
|
27
19
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
28
20
|
abortEarlySetup();
|
@@ -72,14 +64,13 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
72
64
|
}
|
73
65
|
});
|
74
66
|
|
75
|
-
it(
|
67
|
+
it('Question instructions should be visible', () => {
|
76
68
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
77
69
|
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
|
78
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps dropdown - Default state`);
|
79
70
|
});
|
80
71
|
|
81
72
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
82
|
-
it(
|
73
|
+
it('The sample \'Lorem Ipsum\' text along with two response dropdowns should be displayed', () => {
|
83
74
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
84
75
|
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionContainerPreviewTab(), 'Lorem ipsum dolor sit amet, \n\n\n onsectetur adipiscing elit. Ut pellentesque tinciduntornare. Integer porttitor est quis urna porttitor, eget tempus tellus dapibus \n\n');
|
85
76
|
});
|
@@ -98,7 +89,7 @@ describe('Create item page - Fill in the gaps with dropdown - Preview contents i
|
|
98
89
|
fillInTheGapsDropdownPage.steps.verifyDropdownIsDisabled(1);
|
99
90
|
});
|
100
91
|
} else {
|
101
|
-
it(
|
92
|
+
it('The dropdowns should be displayed filled with correct answers', () => {
|
102
93
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownPreviewTab(), 2);
|
103
94
|
fillInTheGapsDropdownPage.steps.verifyTextInDropdownsInPreviewTab([{ dropdownIndex: 0, dropdownText: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownText: correctAnswerArray[1] }]);
|
104
95
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
@@ -0,0 +1,228 @@
|
|
1
|
+
import { dialogBoxBase, fillInTheGapsOverImageDragAndDropPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
|
2
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
3
|
+
import utilities from "../../../../support/helpers/utilities";
|
4
|
+
var itemReferenceID = "";
|
5
|
+
|
6
|
+
describe('Create item page - Fill in the gaps over image with drag and drop: All or nothing and Partial equal weights for blank responses', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe(`Auto scored - All or nothing for blank response`, () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
|
17
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
18
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
19
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
|
20
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
21
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
22
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
23
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
24
|
+
});
|
25
|
+
|
26
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
27
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
28
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
29
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
30
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
31
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
32
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
33
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
34
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
35
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
36
|
+
});
|
37
|
+
|
38
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
|
39
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
40
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
41
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
42
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
43
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
44
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
45
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
46
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
47
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
48
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
49
|
+
});
|
50
|
+
|
51
|
+
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
52
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
53
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
|
54
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
|
55
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
56
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
57
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
58
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
59
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
60
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
61
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
62
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
63
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
64
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
65
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
66
|
+
});
|
67
|
+
|
68
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
69
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
71
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
72
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
73
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
74
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
75
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
76
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
77
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
78
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
79
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
80
|
+
});
|
81
|
+
|
82
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
83
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
84
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
85
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
86
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
87
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
88
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
89
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
90
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
91
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
92
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
93
|
+
});
|
94
|
+
|
95
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
96
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
97
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
|
98
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
99
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
100
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
101
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
102
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
103
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
104
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
105
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
106
|
+
});
|
107
|
+
|
108
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
109
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
110
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
|
111
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
112
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
113
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
114
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
115
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
116
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
117
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
118
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
119
|
+
});
|
120
|
+
});
|
121
|
+
|
122
|
+
describe(`Auto scored - Partial equal weights for blank response`, () => {
|
123
|
+
abortEarlySetup();
|
124
|
+
before(() => {
|
125
|
+
fillInTheGapsOverImageDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps over image with drag and drop');
|
126
|
+
cy.barsPreLoaderWait();
|
127
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps over image with drag and drop');
|
128
|
+
fillInTheGapsOverImageDragAndDropPage.steps.uploadFile('highlightImage.jpg');
|
129
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyImageIsUploaded();
|
130
|
+
fillInTheGapsOverImageDragAndDropPage.steps.allotPoints(24);
|
131
|
+
fillInTheGapsOverImageDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
|
132
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(10);
|
133
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(40);
|
134
|
+
fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
|
135
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
136
|
+
});
|
137
|
+
|
138
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
139
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
140
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
141
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
142
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
143
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
144
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
145
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
146
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
147
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
148
|
+
});
|
149
|
+
|
150
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
|
151
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
152
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
153
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
154
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
155
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
156
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
157
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
158
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
159
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
160
|
+
});
|
161
|
+
|
162
|
+
it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
163
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
164
|
+
fillInTheGapsOverImageDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
|
165
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
|
166
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
167
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
168
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
169
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
170
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
171
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
172
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
173
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNumeration();
|
174
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
175
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
176
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
177
|
+
});
|
178
|
+
|
179
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
180
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
181
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
182
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
183
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
184
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(8, 24);
|
185
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
186
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
187
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
188
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
189
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
190
|
+
});
|
191
|
+
|
192
|
+
it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
|
193
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
194
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
195
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
196
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(16, 24);
|
197
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
198
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
199
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
200
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
201
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
202
|
+
});
|
203
|
+
|
204
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
205
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
206
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
|
207
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
208
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
209
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
210
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
211
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
212
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyVisibilityOfCorrectAnswerLabel();
|
213
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
214
|
+
});
|
215
|
+
|
216
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
217
|
+
fillInTheGapsOverImageDragAndDropPage.steps.resetQuestionPreview();
|
218
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
|
219
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewScore(24, 24);
|
220
|
+
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
221
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
222
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
223
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
224
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
225
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
226
|
+
});
|
227
|
+
});
|
228
|
+
});
|
@@ -66,9 +66,9 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Manual
|
|
66
66
|
|
67
67
|
it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed and the correct answer section should be displayed with correct answers', () => {
|
68
68
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToGradingView();
|
69
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
70
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
71
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
69
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
70
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
71
|
+
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
72
72
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
73
73
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
74
74
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToStudentView();
|
@@ -12,14 +12,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -110,7 +102,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
110
102
|
});
|
111
103
|
};
|
112
104
|
|
113
|
-
it(
|
105
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
114
106
|
if (view === 'Grading view') {
|
115
107
|
studentViewPage.steps.submitResponse();
|
116
108
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -128,7 +120,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
128
120
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
129
121
|
});
|
130
122
|
|
131
|
-
it(
|
123
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
132
124
|
fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 0, 'Petals': 1, 'Roots': 2 });
|
133
125
|
if (view === 'Grading view') {
|
134
126
|
studentViewPage.steps.submitResponse();
|
@@ -147,7 +139,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
147
139
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
148
140
|
});
|
149
141
|
|
150
|
-
it(
|
142
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
151
143
|
if (view === 'Grading view') {
|
152
144
|
studentViewPage.steps.clearResponses();
|
153
145
|
};
|
@@ -169,7 +161,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
169
161
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
170
162
|
});
|
171
163
|
|
172
|
-
it(
|
164
|
+
it('When the user attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
173
165
|
if (view === 'Grading view') {
|
174
166
|
studentViewPage.steps.clearResponses();
|
175
167
|
};
|
@@ -191,7 +183,7 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
191
183
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
192
184
|
});
|
193
185
|
|
194
|
-
it(
|
186
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
195
187
|
if (view === 'Grading view') {
|
196
188
|
studentViewPage.steps.clearResponses();
|
197
189
|
};
|
@@ -213,7 +205,6 @@ describe('Create item page - Fill in the gaps over image - drag and drop: All or
|
|
213
205
|
//Need to remove comment once https://redmine.zeuslearning.com/issues/577009 is resolved
|
214
206
|
//fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
215
207
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
216
|
-
cy.eyesCheckWindow(`FIG Dropdown ${view} view - Attempting the question correctly`);
|
217
208
|
});
|
218
209
|
});
|
219
210
|
});
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js
CHANGED
@@ -10,14 +10,6 @@ describe('Preview tab contents for all views', () => {
|
|
10
10
|
cy.loginAs('admin');
|
11
11
|
});
|
12
12
|
|
13
|
-
beforeEach(() => {
|
14
|
-
cy.startApplitools();
|
15
|
-
});
|
16
|
-
|
17
|
-
afterEach(() => {
|
18
|
-
cy.eyesClose();
|
19
|
-
});
|
20
|
-
|
21
13
|
views.forEach((view) => {
|
22
14
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
23
15
|
abortEarlySetup();
|
@@ -67,7 +59,7 @@ describe('Preview tab contents for all views', () => {
|
|
67
59
|
cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
|
68
60
|
break;
|
69
61
|
case 'Correct answer view':
|
70
|
-
cy.wait(
|
62
|
+
cy.wait(5000);
|
71
63
|
cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
|
72
64
|
cy.wait(2000);
|
73
65
|
break;
|
@@ -97,13 +89,12 @@ describe('Preview tab contents for all views', () => {
|
|
97
89
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
98
90
|
});
|
99
91
|
|
100
|
-
it(
|
92
|
+
it('The image uploaded in the \'Background image\' section should be displayed', () => {
|
101
93
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.canvasImage(), 'exist');
|
102
|
-
cy.eyesCheckWindow(`${view} - Fill in the gaps over image drag and drop - default state`);
|
103
94
|
});
|
104
95
|
|
105
96
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
106
|
-
it(`
|
97
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
107
98
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
108
99
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
109
100
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
@@ -122,7 +113,7 @@ describe('Preview tab contents for all views', () => {
|
|
122
113
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
123
114
|
});
|
124
115
|
} else if (view === 'Grading view') {
|
125
|
-
it(
|
116
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
126
117
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
127
118
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|
128
119
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
@@ -140,7 +131,7 @@ describe('Preview tab contents for all views', () => {
|
|
140
131
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPreviewDropzoneOptionDisabled(2);
|
141
132
|
});
|
142
133
|
} else {
|
143
|
-
it(
|
134
|
+
it('The dropzone should be displayed filled with answers', () => {
|
144
135
|
utilities.verifyElementCount(fillInTheGapsOverImageDragAndDropPage.dropzonePreviewTab(), 3);
|
145
136
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(0, 'Petals');
|
146
137
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneTextPreviewTab(1, 'This is a bold option');
|