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,234 @@
|
|
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
|
+
const css = Cypress.env('css');
|
6
|
+
|
7
|
+
describe('Create Item page - Text entry math: Preview scoring', () => {
|
8
|
+
before(() => {
|
9
|
+
cy.loginAs('admin');
|
10
|
+
});
|
11
|
+
|
12
|
+
describe(`Text entry math: Partial equal weights with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points`, () => {
|
13
|
+
abortEarlySetup();
|
14
|
+
before(() => {
|
15
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
16
|
+
cy.barsPreLoaderWait();
|
17
|
+
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
18
|
+
textEntryMathPage.steps.addResponseArea();
|
19
|
+
textEntryMathPage.steps.addResponseArea();
|
20
|
+
textEntryMathPage.steps.addResponseArea();
|
21
|
+
textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
22
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
23
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
24
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
25
|
+
equationEditorFlyout.steps.clearAll();
|
26
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
27
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
28
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
29
|
+
textEntryMathPage.steps.focusInLayoutInputField(0);
|
30
|
+
textEntryMathPage.steps.addResponseContainer();
|
31
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('One');
|
32
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
33
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
34
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
35
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
36
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
37
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two', 'equalTo', 'one', 'two'] }]);
|
38
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
39
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
40
|
+
textEntryMathPage.steps.focusInLayoutInputField(1);
|
41
|
+
textEntryMathPage.steps.addResponseContainer();
|
42
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['equalTo', 'one', 'two'] }]);
|
43
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
44
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
45
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
46
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
47
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
48
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
49
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
50
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
51
|
+
textEntryMathPage.steps.focusInLayoutInputField(2);
|
52
|
+
textEntryMathPage.steps.addResponseContainer();
|
53
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('%');
|
54
|
+
textEntryMathPage.steps.allotPoints(18);
|
55
|
+
textEntryMathPage.steps.addAlternativeAnswerAccordion(1);
|
56
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
57
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 8);
|
58
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
59
|
+
equationEditorFlyout.steps.clearAll();
|
60
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
61
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
62
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
63
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 17);
|
64
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
65
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six', 'equalTo', 'one', 'two'] }]);
|
66
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
67
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
68
|
+
textEntryMathPage.steps.selectEvaluationMethod('Match exact', 26);
|
69
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
70
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700%');
|
71
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
72
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
73
|
+
textEntryMathPage.steps.allotPoints(12);
|
74
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
75
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
76
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
77
|
+
});
|
78
|
+
|
79
|
+
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', () => {
|
80
|
+
textEntryMathPage.steps.switchToGradingView();
|
81
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
82
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
83
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
84
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
85
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
86
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
87
|
+
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageTextNotExist();
|
88
|
+
});
|
89
|
+
|
90
|
+
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', () => {
|
91
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
92
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
93
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
94
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
95
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
96
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
97
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
98
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
99
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
100
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
101
|
+
textEntryMathPage.steps.verifyPreviewScore(18, 18);
|
102
|
+
textEntryMathPage.steps.switchToGradingView();
|
103
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
104
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
105
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
106
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
107
|
+
utilities.verifyElementVisibilityState(textEntryMathPage.correctAnswersContainer(), 'notExist');
|
108
|
+
});
|
109
|
+
|
110
|
+
it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative 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', () => {
|
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(12, 18);
|
122
|
+
textEntryMathPage.steps.switchToGradingView();
|
123
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
124
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
125
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
126
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
127
|
+
});
|
128
|
+
|
129
|
+
it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points for the correctly attempted options from correct tab 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', () => {
|
130
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
131
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
132
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
133
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
134
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
135
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
136
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
137
|
+
textEntryMathPage.steps.verifyPreviewScore(12, 18);
|
138
|
+
textEntryMathPage.steps.switchToGradingView();
|
139
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
140
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
141
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
142
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
143
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
144
|
+
});
|
145
|
+
|
146
|
+
it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points for the correctly attempted options from alternative tab 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', () => {
|
147
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
148
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
149
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
150
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
151
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
152
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
153
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
154
|
+
textEntryMathPage.steps.verifyPreviewScore(8, 18);
|
155
|
+
textEntryMathPage.steps.switchToGradingView();
|
156
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
157
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
158
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
159
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
160
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
161
|
+
});
|
162
|
+
|
163
|
+
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 points for the correctly attempted options from correct tab 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', () => {
|
164
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
165
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
166
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
167
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
168
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
169
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['two', 'multiply', 'six'] }]);
|
170
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
171
|
+
textEntryMathPage.steps.verifyPreviewScore(8, 18);
|
172
|
+
textEntryMathPage.steps.switchToGradingView();
|
173
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
174
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
175
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
176
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
177
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
178
|
+
});
|
179
|
+
|
180
|
+
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 points for the correctly attempted options from correct tab 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', () => {
|
181
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
182
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
183
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
184
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
185
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
186
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
187
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
188
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
189
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('700');
|
190
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
191
|
+
textEntryMathPage.steps.verifyPreviewScore(12, 18);
|
192
|
+
textEntryMathPage.steps.switchToGradingView();
|
193
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
194
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
195
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
196
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
197
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
198
|
+
});
|
199
|
+
|
200
|
+
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 points for the correctly attempted options from alternative tab 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', () => {
|
201
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
202
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
203
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
204
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
205
|
+
textEntryMathPage.steps.verifyPreviewScore(6, 18);
|
206
|
+
textEntryMathPage.steps.switchToGradingView();
|
207
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
208
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
209
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
210
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
211
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
212
|
+
});
|
213
|
+
|
214
|
+
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', () => {
|
215
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
216
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
217
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
218
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
219
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
220
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
221
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
222
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
223
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
224
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
225
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
226
|
+
textEntryMathPage.steps.switchToGradingView();
|
227
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
228
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
229
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
230
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
231
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
232
|
+
});
|
233
|
+
});
|
234
|
+
});
|
@@ -0,0 +1,237 @@
|
|
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: Partial equal weights', () => {
|
7
|
+
before(() => {
|
8
|
+
cy.loginAs('admin');
|
9
|
+
});
|
10
|
+
|
11
|
+
describe('Auto scored - Partial equal weights', () => {
|
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.selectAutoScoredScoringSubtype('Partial equal weights');
|
21
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
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.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
34
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two', 'equalTo', 'one', 'two'] }]);
|
35
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
36
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
37
|
+
textEntryMathPage.steps.focusInLayoutInputField(1);
|
38
|
+
textEntryMathPage.steps.addResponseContainer();
|
39
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['equalTo', 'one', 'two'] }]);
|
40
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
41
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
42
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
43
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
44
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
45
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
46
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
47
|
+
textEntryMathPage.steps.focusInLayoutInputField(2);
|
48
|
+
textEntryMathPage.steps.addResponseContainer();
|
49
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('%');
|
50
|
+
textEntryMathPage.steps.allotPoints(18);
|
51
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
52
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
53
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
54
|
+
});
|
55
|
+
|
56
|
+
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', () => {
|
57
|
+
textEntryMathPage.steps.switchToGradingView();
|
58
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
59
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
60
|
+
textEntryMathPage.steps.switchToGradingView();
|
61
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
62
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
63
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
64
|
+
textEntryMathPage.steps.verifyCorrectIncorrectStatusMessageTextNotExist();
|
65
|
+
});
|
66
|
+
|
67
|
+
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, and \'Your answer is incorrect\' label should be displayed', () => {
|
68
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
69
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
70
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
71
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
72
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
73
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
74
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
75
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
76
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
77
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
78
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 18);
|
79
|
+
textEntryMathPage.steps.switchToGradingView();
|
80
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
81
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
82
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
83
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
84
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
85
|
+
});
|
86
|
+
|
87
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, and \'Your answer is incorrect\' label should be displayed', () => {
|
88
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
89
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
90
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
91
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
92
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
93
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
94
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
95
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
96
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('6*3.14');
|
97
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
98
|
+
textEntryMathPage.steps.verifyPreviewScore(12, 18);
|
99
|
+
textEntryMathPage.steps.switchToGradingView();
|
100
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
101
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
102
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
103
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
104
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
105
|
+
});
|
106
|
+
|
107
|
+
it('When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed', () => {
|
108
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
109
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
110
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
111
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
112
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
113
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
114
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
115
|
+
textEntryMathPage.steps.verifyPreviewScore(12, 18);
|
116
|
+
textEntryMathPage.steps.switchToGradingView();
|
117
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
118
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
119
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(2);
|
120
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
121
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['CorrectOne', '6×2=12', '9000%']);
|
122
|
+
});
|
123
|
+
|
124
|
+
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, and \'Your answer is correct\' should be displayed', () => {
|
125
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
126
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
127
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct');
|
128
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
129
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
130
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two'] }]);
|
131
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
132
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
133
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000');
|
134
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
135
|
+
textEntryMathPage.steps.verifyPreviewScore(18, 18);
|
136
|
+
textEntryMathPage.steps.switchToGradingView();
|
137
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
138
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
139
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
140
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
141
|
+
});
|
142
|
+
});
|
143
|
+
|
144
|
+
describe('Question preview: Auto scored - Partial equal weights: Minimum scoring', () => {
|
145
|
+
abortEarlySetup();
|
146
|
+
before(() => {
|
147
|
+
textEntryMathPage.steps.navigateToCreateQuestion('Text Entry Math');
|
148
|
+
cy.barsPreLoaderWait();
|
149
|
+
textEntryMathPage.steps.addTextInQuestionInstructionsInputField('Enter the correct answer in the response field');
|
150
|
+
textEntryMathPage.steps.addResponseArea();
|
151
|
+
textEntryMathPage.steps.addResponseArea();
|
152
|
+
textEntryMathPage.steps.addResponseArea();
|
153
|
+
textEntryMathPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
|
154
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
155
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
156
|
+
equationEditorFlyout.steps.clearAll();
|
157
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('CorrectOne');
|
158
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
159
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
160
|
+
textEntryMathPage.steps.focusInLayoutInputField(0);
|
161
|
+
textEntryMathPage.steps.addResponseContainer();
|
162
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('One');
|
163
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
164
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
165
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
166
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
|
167
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['six', 'multiply', 'two', 'equalTo', 'one', 'two'] }]);
|
168
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
169
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
170
|
+
textEntryMathPage.steps.focusInLayoutInputField(1);
|
171
|
+
textEntryMathPage.steps.addResponseContainer();
|
172
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'numPad', symbolName: ['equalTo', 'one', 'two'] }]);
|
173
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
174
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(1);
|
175
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(2);
|
176
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(2);
|
177
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('9000%');
|
178
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
179
|
+
textEntryMathPage.steps.expandLayoutAccordion();
|
180
|
+
textEntryMathPage.steps.focusInLayoutInputField(2);
|
181
|
+
textEntryMathPage.steps.addResponseContainer();
|
182
|
+
textEntryMathPage.steps.insertTextInEquationEditorTextArea('%');
|
183
|
+
textEntryMathPage.steps.allotPoints(15);
|
184
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
185
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
186
|
+
});
|
187
|
+
|
188
|
+
it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
|
189
|
+
textEntryMathPage.steps.expandMinimumScoringDropdown();
|
190
|
+
textEntryMathPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
|
191
|
+
textEntryMathPage.steps.allotMinimumPoints(2);
|
192
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
193
|
+
textEntryMathPage.steps.switchToGradingView();
|
194
|
+
textEntryMathPage.steps.verifyPreviewScore(2, 15);
|
195
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
196
|
+
});
|
197
|
+
|
198
|
+
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
199
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
200
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
201
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
202
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
203
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
204
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
205
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
206
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
207
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
208
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
209
|
+
textEntryMathPage.steps.verifyPreviewScore(2, 15);
|
210
|
+
});
|
211
|
+
|
212
|
+
it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
|
213
|
+
textEntryMathPage.steps.switchToEditTab();
|
214
|
+
textEntryMathPage.steps.expandMinimumScoringDropdown();
|
215
|
+
textEntryMathPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
216
|
+
textEntryMathPage.steps.allotMinimumPoints(2);
|
217
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
218
|
+
textEntryMathPage.steps.switchToGradingView();
|
219
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 15);
|
220
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
221
|
+
});
|
222
|
+
|
223
|
+
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
224
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
225
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
226
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
227
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
228
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(1);
|
229
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
|
230
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
231
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(2);
|
232
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
|
233
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
234
|
+
textEntryMathPage.steps.verifyPreviewScore(2, 15);
|
235
|
+
});
|
236
|
+
});
|
237
|
+
});
|
@@ -0,0 +1,134 @@
|
|
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 scoring for evaluation methods`, () => {
|
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.expandResponseAccordionSpecifyCorrectAnswer(0);
|
20
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
21
|
+
equationEditorFlyout.steps.clearAll();
|
22
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('2x+3x');
|
23
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
24
|
+
textEntryMathPage.steps.clickOnAddEvaluationButton(0);
|
25
|
+
textEntryMathPage.steps.selectEvaluationMethod('Simplified version', 7);
|
26
|
+
textEntryMathPage.steps.collapseResponseAccordionSpecifyCorrectAnswer(0);
|
27
|
+
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
|
28
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
29
|
+
equationEditorFlyout.steps.clearAll();
|
30
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('(a+b)^2');
|
31
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
32
|
+
textEntryMathPage.steps.clickOnAddEvaluationButton(1);
|
33
|
+
textEntryMathPage.steps.selectEvaluationMethod('Expanded form', 14);
|
34
|
+
textEntryMathPage.steps.allotPoints(10);
|
35
|
+
textEntryMathPage.steps.expandAdditionalSettings();
|
36
|
+
textEntryMathPage.steps.selectModalVisibilityTypeButton();
|
37
|
+
textEntryMathPage.steps.switchToPreviewTab();
|
38
|
+
});
|
39
|
+
|
40
|
+
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', () => {
|
41
|
+
textEntryMathPage.steps.switchToGradingView();
|
42
|
+
textEntryMathPage.steps.verifyResponseFieldNumerationPreviewTab();
|
43
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2x+3x', '(a+b)2']);
|
44
|
+
textEntryMathPage.steps.switchToGradingView();
|
45
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
46
|
+
textEntryMathPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
47
|
+
utilities.verifyElementVisibilityState(textEntryMathPage.correctIncorrectStatusMessageText(), 'notExist');
|
48
|
+
});
|
49
|
+
|
50
|
+
it('When the user attempts the question with responses from the required correct answer, 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', () => {
|
51
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
52
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
53
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('5x');
|
54
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
55
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
56
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'keyPad', symbolName: ['a'] }, { categoryName: 'intermediate', symbolName: ['square'] }, { categoryName: 'numPad', symbolName: ['add', 'two', 'multiply'] }, { categoryName: 'keyPad', symbolName: ['a', 'b'] }, { categoryName: 'keyPad', symbolName: ['add', 'b'] }, { categoryName: 'intermediate', symbolName: ['square'] }]);
|
57
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
58
|
+
textEntryMathPage.steps.verifyPreviewScore(10, 10);
|
59
|
+
textEntryMathPage.steps.switchToGradingView();
|
60
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
61
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
62
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
63
|
+
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
64
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
65
|
+
});
|
66
|
+
|
67
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed beside the correct responses,incorrect icons should be displayed besides the incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed', () => {
|
68
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
69
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
70
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('5x');
|
71
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
72
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
73
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'keyPad', symbolName: ['a'] }, { categoryName: 'intermediate', symbolName: ['square'] }, { categoryName: 'numPad', symbolName: ['add', 'two', 'multiply'] }, { categoryName: 'keyPad', symbolName: ['a', 'd'] }, { categoryName: 'keyPad', symbolName: ['add', 'c'] }, { categoryName: 'intermediate', symbolName: ['square'] }]);
|
74
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
75
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 10);
|
76
|
+
textEntryMathPage.steps.switchToGradingView();
|
77
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
78
|
+
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
79
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
80
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2x+3x', '(a+b)2']);
|
81
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
82
|
+
});
|
83
|
+
|
84
|
+
it('When the user attempts the question with out using simplified version of the correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed beside all the responses, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed', () => {
|
85
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
86
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
87
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('10x/2');
|
88
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
89
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
90
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'keyPad', symbolName: ['c'] }, { categoryName: 'intermediate', symbolName: ['square'] }, { categoryName: 'numPad', symbolName: ['add', 'two', 'multiply'] }, { categoryName: 'keyPad', symbolName: ['a', 'b'] }, { categoryName: 'keyPad', symbolName: ['add', 'd'] }, { categoryName: 'intermediate', symbolName: ['square'] }]);
|
91
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
92
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 10);
|
93
|
+
textEntryMathPage.steps.switchToGradingView();
|
94
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
95
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
96
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
97
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2x+3x', '(a+b)2']);
|
98
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
|
+
});
|
100
|
+
|
101
|
+
it('When the user attempts the question with the exact same response as set in the specify correct answer section, 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', () => {
|
102
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
103
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
104
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('2x+3x');
|
105
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
106
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
107
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('(a+b)^2');
|
108
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
109
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 10);
|
110
|
+
textEntryMathPage.steps.switchToGradingView();
|
111
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
112
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
113
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
114
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2x+3x', '(a+b)2']);
|
115
|
+
});
|
116
|
+
|
117
|
+
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', () => {
|
118
|
+
textEntryMathPage.steps.resetQuestionPreview();
|
119
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
120
|
+
equationEditorFlyout.steps.enterTextInPreviewInputField('7x-2x-3x');
|
121
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
122
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
123
|
+
equationEditorFlyout.steps.enterEquation([{ categoryName: 'keyPad', symbolName: ['x'] }, { categoryName: 'intermediate', symbolName: ['square'] }, { categoryName: 'numPad', symbolName: ['add', 'two', 'multiply'] }, { categoryName: 'keyPad', symbolName: ['x', 'y'] }, { categoryName: 'keyPad', symbolName: ['add', 'y'] }, { categoryName: 'intermediate', symbolName: ['square'] }]);
|
124
|
+
equationEditorFlyout.steps.clickOnOkButton();
|
125
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 10);
|
126
|
+
textEntryMathPage.steps.switchToGradingView();
|
127
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
128
|
+
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
129
|
+
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
130
|
+
textEntryMathPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['2x+3x', '(a+b)2']);
|
131
|
+
textEntryMathPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
132
|
+
});
|
133
|
+
});
|
134
|
+
});
|