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
@@ -0,0 +1,243 @@
|
|
1
|
+
import { textEntryMathPage } from "../../../../pages";
|
2
|
+
import { equationEditorFlyout } from "../../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../../support/helpers/utilities";
|
5
|
+
|
6
|
+
describe('Create Item page - Text entry math: Preview scoring', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe(`Text entry math: All or nothing with alternative answer - When \'Alternative answer\' points are more than \'Correct answer\' points`, () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
|
+
textEntryMathPage.steps.addResponseArea();
|
18
|
+
textEntryMathPage.steps.addResponseArea();
|
19
|
+
textEntryMathPage.steps.addResponseArea();
|
20
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
21
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
22
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
23
|
+
equationEditorFlyout.steps.clearAll();
|
24
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
25
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
26
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
27
|
+
textEntryMathPage.steps.focusInLayoutInputField(0);
|
28
|
+
textEntryMathPage.steps.addResponseContainer();
|
29
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('One');
|
30
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
31
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
32
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
33
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
34
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
35
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two', 'equalTo', 'one', 'two'] }]);
|
36
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
37
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
38
|
+
textEntryMathPage.steps.focusInLayoutInputField(1);
|
39
|
+
textEntryMathPage.steps.addResponseContainer();
|
40
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['equalTo', 'one', 'two'] }]);
|
41
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
42
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
43
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
44
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
45
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
46
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
47
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
48
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
49
|
+
textEntryMathPage.steps.focusInLayoutInputField(2);
|
50
|
+
textEntryMathPage.steps.addResponseContainer();
|
51
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('%');
|
52
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
53
|
+
textEntryMathPage.steps.allotPoints(12);
|
54
|
+
textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
|
55
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
56
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
57
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
58
|
+
equationEditorFlyout.steps.clearAll();
|
59
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
60
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
61
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
62
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
63
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
64
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six', 'equalTo', 'one', 'two'] }]);
|
65
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
66
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
67
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
68
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
69
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700%');
|
70
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
71
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
72
|
+
textEntryMathPage.steps.allotPoints(20);
|
73
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
74
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
75
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
76
|
+
});
|
77
|
+
|
78
|
+
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section should be displayed with correct answers from the alternative accordion and respective response numeration, no status message should be displayed', () => {
|
79
|
+
textEntryMathPage.steps.switchToGradingView();
|
80
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
81
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
82
|
+
textEntryMathPage.steps.switchToGradingView();
|
83
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
84
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
85
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
86
|
+
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageTextNotExist();
|
87
|
+
});
|
88
|
+
|
89
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
90
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
91
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
92
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
93
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
94
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
95
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
96
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
97
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
98
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
99
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
100
|
+
textEntryMathPage.steps.verifyPreviewScore(12, 20);
|
101
|
+
textEntryMathPage.steps.switchToGradingView();
|
102
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
103
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
104
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
105
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
106
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
107
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
|
+
});
|
109
|
+
|
110
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
111
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
112
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
113
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
114
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
115
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
116
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
117
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
118
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
119
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
120
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
121
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
122
|
+
textEntryMathPage.steps.switchToGradingView();
|
123
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
124
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
125
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
126
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
127
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
128
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
129
|
+
});
|
130
|
+
|
131
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, 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 with all correct answers from the alternative accordion along with dropzone numeration should be displayed', () => {
|
132
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
133
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
134
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
135
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
136
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
137
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
138
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
139
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
140
|
+
textEntryMathPage.steps.switchToGradingView();
|
141
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
142
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
143
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
144
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
145
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
146
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
147
|
+
});
|
148
|
+
|
149
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, 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 with all correct answers from the alternative accordion along with dropzone cell numeration should be displayed', () => {
|
150
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
151
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
152
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('corre');
|
153
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
154
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
155
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
156
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
157
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
158
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
159
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
160
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
161
|
+
textEntryMathPage.steps.switchToGradingView();
|
162
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
163
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
164
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
165
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
166
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
167
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
168
|
+
});
|
169
|
+
|
170
|
+
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the alternative accordion along with dropzone cell numeration should be displayed', () => {
|
171
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
172
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
173
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
174
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
175
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
176
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
177
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
178
|
+
textEntryMathPage.steps.switchToGradingView();
|
179
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
180
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
181
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
182
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
184
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
185
|
+
});
|
186
|
+
|
187
|
+
it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the alternative accordion along with dropzone cell numeration should be displayed', () => {
|
188
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
189
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
190
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
191
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
192
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
193
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
194
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
195
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
196
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
197
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
198
|
+
textEntryMathPage.steps.switchToGradingView();
|
199
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
200
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
201
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
202
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
204
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
205
|
+
});
|
206
|
+
|
207
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, green check-mark icon should be besides the common response, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' and correct answer section with all correct answers from the alternative accordion along with dropzone cell numeration should be displayed', () => {
|
208
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
209
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
210
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
211
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
212
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
213
|
+
textEntryMathPage.steps.switchToGradingView();
|
214
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
215
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
216
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
217
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
218
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
219
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
220
|
+
});
|
221
|
+
|
222
|
+
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, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
223
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
224
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
225
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
226
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
227
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
228
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
229
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
230
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
231
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
232
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
233
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
234
|
+
textEntryMathPage.steps.switchToGradingView();
|
235
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
236
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
237
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
238
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
239
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '2×6=12', '700%']);
|
240
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
241
|
+
});
|
242
|
+
});
|
243
|
+
});
|
@@ -0,0 +1,242 @@
|
|
1
|
+
import { textEntryMathPage } from "../../../../pages";
|
2
|
+
import { equationEditorFlyout } from "../../../../pages/components";
|
3
|
+
import abortEarlySetup from "../../../../support/helpers/abortEarly";
|
4
|
+
import utilities from "../../../../support/helpers/utilities";
|
5
|
+
|
6
|
+
describe('Create Item page - Text entry math: Preview scoring', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe(`Text entry math: All or nothing with alternative answer - When \'Correct answer\' points are equal to \'Alternative answer\' points`, () => {
|
12
|
+
abortEarlySetup();
|
13
|
+
before(() => {
|
14
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
15
|
+
cy.barsPreLoaderWait();
|
16
|
+
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
17
|
+
textEntryMathPage.steps.addResponseArea();
|
18
|
+
textEntryMathPage.steps.addResponseArea();
|
19
|
+
textEntryMathPage.steps.addResponseArea();
|
20
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
21
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
22
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
23
|
+
equationEditorFlyout.steps.clearAll();
|
24
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
25
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
26
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
27
|
+
textEntryMathPage.steps.focusInLayoutInputField(0);
|
28
|
+
textEntryMathPage.steps.addResponseContainer();
|
29
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('One');
|
30
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
31
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
32
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
33
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
34
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
35
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two', 'equalTo', 'one', 'two'] }]);
|
36
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
37
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
38
|
+
textEntryMathPage.steps.focusInLayoutInputField(1);
|
39
|
+
textEntryMathPage.steps.addResponseContainer();
|
40
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['equalTo', 'one', 'two'] }]);
|
41
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
42
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
43
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
44
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
45
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
46
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
47
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
48
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
49
|
+
textEntryMathPage.steps.focusInLayoutInputField(2);
|
50
|
+
textEntryMathPage.steps.addResponseContainer();
|
51
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('%');
|
52
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
53
|
+
textEntryMathPage.steps.allotPoints(20);
|
54
|
+
textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
|
55
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
56
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
57
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
58
|
+
equationEditorFlyout.steps.clearAll();
|
59
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
60
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
61
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
62
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
63
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
64
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six', 'equalTo', 'one', 'two'] }]);
|
65
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
66
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
67
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
68
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
69
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700%');
|
70
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
71
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
72
|
+
textEntryMathPage.steps.allotPoints(20);
|
73
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
74
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
75
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
76
|
+
});
|
77
|
+
|
78
|
+
it('When the user selects \'Grading\' view without attempting the question, response numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers from the correct accordion and respective response numeration', () => {
|
79
|
+
textEntryMathPage.steps.switchToGradingView();
|
80
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
81
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
82
|
+
textEntryMathPage.steps.switchToGradingView();
|
83
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
84
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
85
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
86
|
+
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageTextNotExist();
|
87
|
+
});
|
88
|
+
|
89
|
+
it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
90
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
91
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
92
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
93
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
94
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
95
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
96
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
97
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
98
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
99
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
100
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
101
|
+
textEntryMathPage.steps.switchToGradingView();
|
102
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
103
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
104
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
105
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
106
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
107
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
108
|
+
});
|
109
|
+
|
110
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
111
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
112
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
113
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
114
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
115
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
116
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
117
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
118
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
119
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
120
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
121
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
122
|
+
textEntryMathPage.steps.switchToGradingView();
|
123
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
124
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
125
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
126
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
127
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
128
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
129
|
+
});
|
130
|
+
|
131
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, 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 with all correct answers from the correct accordion along with dropzone numeration should be displayed', () => {
|
132
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
133
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
134
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
135
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
136
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
137
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
138
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
139
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
140
|
+
textEntryMathPage.steps.switchToGradingView();
|
141
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
142
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
143
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
144
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
145
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
146
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
147
|
+
});
|
148
|
+
|
149
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, 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 with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
150
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
151
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
152
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
153
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
154
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
155
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
156
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
157
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
158
|
+
textEntryMathPage.steps.switchToGradingView();
|
159
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
160
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
161
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
162
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
164
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
165
|
+
});
|
166
|
+
|
167
|
+
it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the response from the correct accordion, incorrect icon should be displayed besides the responses from the alternative accordion and no icon should be displayed beside unattempted response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
168
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
169
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
170
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
171
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
172
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
173
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
174
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
175
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
176
|
+
textEntryMathPage.steps.switchToGradingView();
|
177
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
178
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
179
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
180
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
181
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
182
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
183
|
+
});
|
184
|
+
|
185
|
+
it.skip('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, green check-mark icon should be displayed besides response field with correct answer responses, red cross-mark icon should be displayed beside responses from the alternative tab, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
186
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
187
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
188
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
189
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
190
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
191
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
192
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
193
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
194
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
195
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
196
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
197
|
+
textEntryMathPage.steps.switchToGradingView();
|
198
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
199
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
200
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
201
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
202
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
203
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
204
|
+
});
|
205
|
+
|
206
|
+
it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, green check-mark icon should be besides the common response, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion along with dropzone cell numeration should be displayed', () => {
|
207
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
208
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
209
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
210
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
211
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
212
|
+
textEntryMathPage.steps.switchToGradingView();
|
213
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
214
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
215
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
216
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
217
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
218
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
219
|
+
});
|
220
|
+
|
221
|
+
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, no icon should be displayed beside unattempted response a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
222
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
223
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
224
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
225
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
226
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
227
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
228
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
229
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
230
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
231
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
232
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
233
|
+
textEntryMathPage.steps.switchToGradingView();
|
234
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
235
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
236
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
237
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
238
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
239
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
240
|
+
});
|
241
|
+
});
|
242
|
+
});
|