itemengine-cypress-automation 1.0.341-e2eFixes18March-66a79d0.0 → 1.0.341-graphAndCharts-0a4e8d7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/BrowseItems/browseReviewItems.js +398 -0
- package/cypress/e2e/ILC/BrowseItems/browseReviewItemsMobileView.js +329 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItems.js +260 -0
- package/cypress/e2e/ILC/BrowseItems/browseThinkSphereItemsMobileView.js +368 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightBasic.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +2 -3
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +0 -2
- package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +3 -3
- package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +4 -4
- package/cypress/e2e/ILC/CkEditorInsertImage/imageInfo.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +84 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/checkAddAlternativeButton.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +2 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +33 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/headerSection.js +39 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +4 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +3 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseBackground.js +2 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +1 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +3 -4
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +0 -1
- package/cypress/e2e/ILC/EssayResponse/editTabBasicSections.js +23 -37
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +29 -25
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +210 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneStyleAndLayoutCustomization.js +6 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +201 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +18 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +96 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +216 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/checkAddAlternative.js +37 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +4 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabBasicSection.js +47 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/headerSection.js +38 -9
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +5 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +21 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +211 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +23 -30
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +213 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/responseAnswersAndAcceptedStudentInput.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +25 -30
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +207 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +2 -10
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +2 -0
- package/cypress/e2e/ILC/Graphing/headerSection.js +1 -2
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +6 -3
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +11 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +2 -0
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/GridFill/headerSection.js +2 -4
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +2 -4
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/studentViewSettings.js +2 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +226 -0
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +6 -3
- package/cypress/e2e/ILC/MultipleSelection/headerSection.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +69 -64
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +6 -4
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +220 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +11 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +4 -2
- package/cypress/e2e/ILC/NumberLine/headerSection.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +3 -4
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +10 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +31 -48
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +192 -0
- package/cypress/e2e/ILC/SingleSelection/checkScoringLabelBannerAndCorrectAnswer.js +3 -1
- package/cypress/e2e/ILC/SingleSelection/headerSection.js +1 -0
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +94 -88
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +3 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +209 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabScoringSection.js +5 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/styleAndLayoutCustomizationLayoutProperties.js +8 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +2 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +4 -0
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.smoke.js +86 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.smoke.js +97 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.smoke.js +167 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.smoke.js +167 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.smoke.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +10 -7
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingAlternatePointsMoreThanCorrectPoints.js +80 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/allOrNothingCorrectPointsMoreThanAlternatePoints.js +30 -0
- package/cypress/e2e/ILC/TextSelection/ScoringParagraph/checkScoringLabelBannerAndCorrectAnswerSection.js +109 -0
- package/cypress/e2e/ILC/TextSelection/checkAddAlternativeButton.js +46 -0
- package/cypress/e2e/ILC/TextSelection/editTabBasicSection.js +57 -0
- package/cypress/e2e/ILC/TextSelection/headerSection.js +38 -6
- package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +1 -2
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +7 -12
- package/cypress/e2e/ILC/ThinkSphere/additionalSettings.js +52 -0
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +112 -0
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +561 -0
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +185 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorCreateCustomCategory.smoke.js +417 -0
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +289 -0
- package/cypress/e2e/ILC/ThinkSphere/headerSection.js +53 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +581 -0
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +541 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +296 -0
- package/cypress/e2e/Sessions/fetchResponses.js +3 -3
- package/cypress/e2e/Sessions/scores.js +9 -5
- package/cypress/e2e/applitools.config.js +3 -3
- package/cypress/fixtures/constants.js +5 -1
- package/cypress/fixtures/theme/ilc.json +16 -1
- package/cypress/fixtures/uploads/sample.webm +0 -0
- package/cypress/fixtures/uploads/sample.wmv +0 -0
- package/cypress/fixtures/uploads/sample20MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB.mp4 +0 -0
- package/cypress/fixtures/uploads/sample2MB_2.mp4 +0 -0
- package/cypress/fixtures/uploads/sample30MB.mp4 +0 -0
- package/cypress/pages/audioPlayerPage.js +22 -22
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/components/additionalSettingsPanel.js +3 -2
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +7 -1
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +17 -51
- package/cypress/pages/components/backgroundImageUploadComponent.js +32 -25
- package/cypress/pages/components/browseItemsPage.js +998 -7
- package/cypress/pages/components/ckEditorAudioPlayerComponent.js +1 -1
- package/cypress/pages/components/ckEditorEquationEditorComponent.js +4 -4
- package/cypress/pages/components/ckEditorInsertImageComponent.js +3 -3
- package/cypress/pages/components/ckEditorLinkComponent.js +3 -3
- package/cypress/pages/components/commonComponents.js +8 -1
- package/cypress/pages/components/createQuestionBasePage.js +1 -1
- package/cypress/pages/components/defaultToolDropdown.js +7 -6
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/editCategoryFlyout.js +2 -2
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +13 -26
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -70
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +29 -101
- package/cypress/pages/components/gridQuestionCommonComponent.js +8 -37
- package/cypress/pages/components/hideExpressionListComponent.js +53 -0
- package/cypress/pages/components/imageCanvasComponent.js +7 -6
- package/cypress/pages/components/index.js +1 -0
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +4 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +7 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +12 -13
- package/cypress/pages/desmos3DGraphingPage.js +368 -0
- package/cypress/pages/desmosGeometryPage.js +308 -0
- package/cypress/pages/dialogBoxBase.js +2 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +26 -6
- package/cypress/pages/drawingResponsePage.js +16 -15
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -68
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +1 -1
- package/cypress/pages/gradingViewPage.js +8 -0
- package/cypress/pages/graphingPage.js +5 -8
- package/cypress/pages/gridFillPage.js +7 -8
- package/cypress/pages/imageHighlightPage.js +0 -66
- package/cypress/pages/index.js +3 -1
- package/cypress/pages/multipleSelectionGridPage.js +1 -68
- package/cypress/pages/multipleSelectionPage.js +10 -106
- package/cypress/pages/numberLineLabelPage.js +5 -8
- package/cypress/pages/numberLinePage.js +4 -7
- package/cypress/pages/selectQuestionResourceToolPage.js +8 -2
- package/cypress/pages/singleSelectionGridPage.js +1 -68
- package/cypress/pages/singleSelectionPage.js +0 -104
- package/cypress/pages/textSelectionPage.js +25 -6
- package/cypress/pages/thinkSpherePage.js +1874 -0
- package/cypress/support/commands.js +7 -4
- package/cypress/support/e2e.js +1 -0
- package/cypress/support/helpers/createItem.js +1181 -1
- package/cypress/support/helpers/utilities.js +75 -1
- package/deploy/smoke/deploy.yaml +2 -2
- package/package.json +3 -3
- package/scripts/dataApi.mjs +3 -0
- package/scripts/sorry-cypress.mjs +13 -0
@@ -19,28 +19,27 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
19
19
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
20
20
|
});
|
21
21
|
|
22
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section
|
22
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section should not be displayed', () => {
|
23
23
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
24
|
-
fillInTheGapsDragAndDropPage.steps.
|
24
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
25
25
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
26
26
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
27
27
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
28
28
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
|
29
|
-
utilities.
|
29
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
30
30
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
31
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
32
31
|
});
|
33
32
|
|
34
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
33
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
35
34
|
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
36
35
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
37
36
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
38
37
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
39
|
-
fillInTheGapsDragAndDropPage.steps.
|
40
|
-
fillInTheGapsDragAndDropPage.steps.
|
41
|
-
fillInTheGapsDragAndDropPage.steps.
|
42
|
-
fillInTheGapsDragAndDropPage.steps.
|
43
|
-
fillInTheGapsDragAndDropPage.
|
38
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
39
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
40
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
41
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
42
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
44
43
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
45
44
|
});
|
46
45
|
|
@@ -68,7 +67,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
68
67
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
69
68
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
70
69
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
71
|
-
|
70
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
71
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
72
72
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
73
73
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
74
74
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
@@ -80,7 +80,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
80
80
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
81
81
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
|
82
82
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
83
|
-
|
83
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
84
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
84
85
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
85
86
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
86
87
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
@@ -105,7 +106,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
105
106
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
106
107
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
107
108
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
108
|
-
|
109
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
110
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
109
111
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
110
112
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
111
113
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
@@ -124,27 +126,26 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
124
126
|
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
125
127
|
});
|
126
128
|
|
127
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section
|
129
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, and correct answers section should not be displayed', () => {
|
128
130
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
129
|
-
fillInTheGapsDragAndDropPage.steps.
|
131
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
130
132
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
131
133
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
132
134
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
133
135
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
|
134
|
-
utilities.
|
136
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'notExist');
|
135
137
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
136
|
-
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
|
137
138
|
});
|
138
139
|
|
139
|
-
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside
|
140
|
+
it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should not be displayed beside any responses, no points should be allocated, and correct answer section should not be displayed', () => {
|
140
141
|
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
141
142
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
|
142
143
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
|
143
144
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
144
|
-
fillInTheGapsDragAndDropPage.steps.
|
145
|
-
fillInTheGapsDragAndDropPage.steps.
|
146
|
-
fillInTheGapsDragAndDropPage.steps.
|
147
|
-
fillInTheGapsDragAndDropPage.steps.
|
145
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
146
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
147
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
148
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
148
149
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
149
150
|
});
|
150
151
|
|
@@ -172,7 +173,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
172
173
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
173
174
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(8, 24);
|
174
175
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
175
|
-
|
176
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
177
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
176
178
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
177
179
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
178
180
|
});
|
@@ -183,7 +185,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
183
185
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
184
186
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(16, 24);
|
185
187
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
186
|
-
|
188
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
189
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
187
190
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
188
191
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
|
189
192
|
});
|
@@ -206,7 +209,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial equal
|
|
206
209
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
207
210
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
|
208
211
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
209
|
-
|
212
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5635
|
213
|
+
//fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
210
214
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
211
215
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
212
216
|
});
|
@@ -222,6 +222,216 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
222
222
|
});
|
223
223
|
});
|
224
224
|
|
225
|
+
views.forEach((view) => {
|
226
|
+
describe(`Fill in the Gaps with drag and drop - Manually scored: ${view}`, { tags: 'smoke' }, () => {
|
227
|
+
abortEarlySetup();
|
228
|
+
before(() => {
|
229
|
+
switch (view) {
|
230
|
+
case 'Question preview':
|
231
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
232
|
+
cy.barsPreLoaderWait();
|
233
|
+
fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
234
|
+
fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
|
235
|
+
fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
236
|
+
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
237
|
+
fillInTheGapsDragAndDropPage.steps.allotPoints(20);
|
238
|
+
fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
|
239
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
240
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
241
|
+
break;
|
242
|
+
case 'Item preview':
|
243
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
244
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
245
|
+
break;
|
246
|
+
case 'Grading view':
|
247
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
248
|
+
break;
|
249
|
+
};
|
250
|
+
});
|
251
|
+
|
252
|
+
beforeEach(() => {
|
253
|
+
switch (view) {
|
254
|
+
case 'Question preview':
|
255
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
256
|
+
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
257
|
+
break;
|
258
|
+
case 'Item preview':
|
259
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
260
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
261
|
+
break;
|
262
|
+
case 'Grading view':
|
263
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
264
|
+
break;
|
265
|
+
}
|
266
|
+
});
|
267
|
+
|
268
|
+
if (view === 'Question preview') {
|
269
|
+
after(() => {
|
270
|
+
fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
|
271
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
272
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
273
|
+
});
|
274
|
+
};
|
275
|
+
|
276
|
+
it('Question instructions should be visible', () => {
|
277
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionInstructionsTextPreviewTab('Drag and drop options into correct dropzone');
|
278
|
+
fillInTheGapsDragAndDropPage.steps.verifyVisibityOfQuestionInstructionsText();
|
279
|
+
});
|
280
|
+
|
281
|
+
it('User should be able to attempt the question in student view, and correct/incorrect icons, "Your answer is correct/incorrect" label, and correct answer section should not be displayed in grading view', () => {
|
282
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Roots': 2 });
|
283
|
+
if (view === 'Grading view') {
|
284
|
+
studentViewPage.steps.submitResponse();
|
285
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
286
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
287
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
288
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
289
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
290
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
291
|
+
fillInTheGapsDragAndDropPage.steps.verifyAnswerStatusBannerNotExist();
|
292
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExist();
|
293
|
+
};
|
294
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
295
|
+
fillInTheGapsDragAndDropPage.steps.checkManuallyScoredScoringLabel();
|
296
|
+
};
|
297
|
+
});
|
298
|
+
});
|
299
|
+
});
|
300
|
+
|
301
|
+
views.forEach((view) => {
|
302
|
+
describe(`Fill in the Gaps with Drag and drop - Non scored: ${view}`, { tags: 'smoke' }, () => {
|
303
|
+
abortEarlySetup();
|
304
|
+
before(() => {
|
305
|
+
switch (view) {
|
306
|
+
case 'Question preview':
|
307
|
+
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
308
|
+
cy.barsPreLoaderWait();
|
309
|
+
fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop options into correct dropzone');
|
310
|
+
fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(2);
|
311
|
+
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
312
|
+
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
313
|
+
fillInTheGapsDragAndDropPage.steps.expandScoringTypeDropdown();
|
314
|
+
fillInTheGapsDragAndDropPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
315
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
|
316
|
+
fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
|
317
|
+
break;
|
318
|
+
case 'Item preview':
|
319
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
320
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
321
|
+
break;
|
322
|
+
case 'Grading view':
|
323
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
324
|
+
break;
|
325
|
+
};
|
326
|
+
});
|
327
|
+
|
328
|
+
beforeEach(() => {
|
329
|
+
switch (view) {
|
330
|
+
case 'Question preview':
|
331
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
332
|
+
fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
|
333
|
+
break;
|
334
|
+
case 'Item preview':
|
335
|
+
fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
336
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
337
|
+
break;
|
338
|
+
case 'Grading view':
|
339
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
340
|
+
break;
|
341
|
+
}
|
342
|
+
});
|
343
|
+
|
344
|
+
if (view === 'Question preview') {
|
345
|
+
after(() => {
|
346
|
+
fillInTheGapsDragAndDropPage.steps.clickOnSaveQuestionButton();
|
347
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
348
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
349
|
+
});
|
350
|
+
};
|
351
|
+
|
352
|
+
it('When the user selects "Grading" view without attempting the question, non-scoring label should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with correct answers and correct/incorrect icons should not be displayed', () => {
|
353
|
+
if (view === 'Grading view') {
|
354
|
+
studentViewPage.steps.submitResponse();
|
355
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
356
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
357
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
358
|
+
};
|
359
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
360
|
+
fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
|
361
|
+
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
362
|
+
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
363
|
+
};
|
364
|
+
utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
|
365
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconsNotExist();
|
366
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
367
|
+
});
|
368
|
+
|
369
|
+
it('When the user attempts the question incorrectly, and on switching to "Grading" view, non-scoring label should be displayed, incorrect icon should be displayed beside incorrect response, a status message with text "Your answer is incorrect" and correct answer section with correct answers should be displayed', () => {
|
370
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 0, 'Leaves': 2, 'Stem': 1 });
|
371
|
+
if (view === 'Grading view') {
|
372
|
+
studentViewPage.steps.submitResponse();
|
373
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
374
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
375
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
376
|
+
};
|
377
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
378
|
+
fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
|
379
|
+
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
380
|
+
fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
381
|
+
};
|
382
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
383
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
384
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
385
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
386
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
387
|
+
});
|
388
|
+
|
389
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along should be displayed', () => {
|
390
|
+
if (view === 'Grading view') {
|
391
|
+
studentViewPage.steps.clearResponses();
|
392
|
+
};
|
393
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 2 });
|
394
|
+
if (view === 'Grading view') {
|
395
|
+
studentViewPage.steps.submitResponse();
|
396
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
397
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
398
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
399
|
+
};
|
400
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
401
|
+
fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
|
402
|
+
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
403
|
+
};
|
404
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
405
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
406
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
407
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
408
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
409
|
+
});
|
410
|
+
|
411
|
+
it('When the user attempts the question correctly, and on switching to "Grading" view, non-scoring label should be displayed, correct icons should be displayed beside the correct response, a status message with text "Your answer is correct" should be displayed and correct answer section should not be displayed', () => {
|
412
|
+
if (view === 'Grading view') {
|
413
|
+
studentViewPage.steps.clearResponses();
|
414
|
+
};
|
415
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Leaves': 1, 'Stem': 2 });
|
416
|
+
if (view === 'Grading view') {
|
417
|
+
studentViewPage.steps.submitResponse();
|
418
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
419
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
420
|
+
gradingViewPage.steps.verifyScoresNotVisibleForNonScoredQuestions();
|
421
|
+
};
|
422
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
423
|
+
fillInTheGapsDragAndDropPage.steps.checkNonScoredScoringLabel();
|
424
|
+
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
425
|
+
};
|
426
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
427
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
428
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
429
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
430
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
|
431
|
+
});
|
432
|
+
});
|
433
|
+
});
|
434
|
+
|
225
435
|
if (!grepTags || !grepTags.includes('smoke')) {
|
226
436
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
227
437
|
abortEarlySetup();
|
@@ -81,7 +81,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
81
81
|
});
|
82
82
|
});
|
83
83
|
|
84
|
-
|
84
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
85
|
+
describe.skip('Fill color - Preview tab', () => {
|
85
86
|
const modifiedColor = 'rgb(121, 60, 60)'
|
86
87
|
abortEarlySetup();
|
87
88
|
before(() => {
|
@@ -160,7 +161,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
160
161
|
});
|
161
162
|
});
|
162
163
|
|
163
|
-
|
164
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
165
|
+
describe.skip('Border color - Preview tab', () => {
|
164
166
|
const modifiedColor = 'rgb(121, 60, 60)'
|
165
167
|
abortEarlySetup();
|
166
168
|
before(() => {
|
@@ -310,7 +312,8 @@ describe('Create item page - Fill in the gaps with drag and drop: Style and layo
|
|
310
312
|
})
|
311
313
|
});
|
312
314
|
|
313
|
-
|
315
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5633
|
316
|
+
describe.skip('Border style - Preview tab', () => {
|
314
317
|
abortEarlySetup();
|
315
318
|
before(() => {
|
316
319
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
@@ -43,6 +43,7 @@ describe('Create item page - Fill in the gaps drag and drop: Header section and
|
|
43
43
|
before(() => {
|
44
44
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
45
45
|
cy.barsPreLoaderWait();
|
46
|
+
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.optionsInputField(), 2);
|
46
47
|
});
|
47
48
|
|
48
49
|
describe('Validation error messages', () => {
|
@@ -174,6 +174,207 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing ', (
|
|
174
174
|
});
|
175
175
|
});
|
176
176
|
|
177
|
+
views.forEach((view) => {
|
178
|
+
describe(`${view}: Manually scored`, { tags: 'smoke' }, () => {
|
179
|
+
abortEarlySetup();
|
180
|
+
before(() => {
|
181
|
+
switch (view) {
|
182
|
+
case 'Question preview':
|
183
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
184
|
+
cy.barsPreLoaderWait();
|
185
|
+
fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
186
|
+
fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
|
187
|
+
fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
188
|
+
fillInTheGapsDropdownPage.steps.allotPoints(20);
|
189
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
190
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
191
|
+
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
192
|
+
break;
|
193
|
+
case 'Item preview':
|
194
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
195
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
196
|
+
break;
|
197
|
+
case 'Grading view':
|
198
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
199
|
+
break;
|
200
|
+
};
|
201
|
+
});
|
202
|
+
|
203
|
+
beforeEach(() => {
|
204
|
+
switch (view) {
|
205
|
+
case 'Question preview':
|
206
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
207
|
+
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
208
|
+
break;
|
209
|
+
case 'Item preview':
|
210
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
211
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
212
|
+
break;
|
213
|
+
case 'Grading view':
|
214
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
215
|
+
break;
|
216
|
+
}
|
217
|
+
});
|
218
|
+
|
219
|
+
if (view === 'Question preview') {
|
220
|
+
after(() => {
|
221
|
+
fillInTheGapsDropdownPage.steps.clickOnSaveQuestionButton();
|
222
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
223
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
224
|
+
});
|
225
|
+
};
|
226
|
+
|
227
|
+
it('Question instructions should be visible', () => {
|
228
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.questionInstructionsText(), 'Fill in the gaps');
|
229
|
+
utilities.verifyElementVisibilityState(fillInTheGapsDropdownPage.questionInstructionsText(), 'visible');
|
230
|
+
});
|
231
|
+
|
232
|
+
it('User should be able to attempt the question and icons, Your answer is correct/incorrect label should not be displayed', () => {
|
233
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
234
|
+
if (view === 'Grading view') {
|
235
|
+
studentViewPage.steps.submitResponse();
|
236
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
237
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
238
|
+
gradingViewPage.steps.verifyGradingViewScore('', 20);
|
239
|
+
};
|
240
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
241
|
+
fillInTheGapsDropdownPage.steps.checkManuallyScoredScoringLabel();
|
242
|
+
};
|
243
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
244
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
245
|
+
fillInTheGapsDropdownPage.steps.verifyAnswerStatusBannerNotExist();
|
246
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExist();
|
247
|
+
});
|
248
|
+
});
|
249
|
+
});
|
250
|
+
|
251
|
+
views.forEach((view) => {
|
252
|
+
describe(`${view}: Non scored`, { tags: 'smoke' }, () => {
|
253
|
+
abortEarlySetup();
|
254
|
+
before(() => {
|
255
|
+
switch (view) {
|
256
|
+
case 'Question preview':
|
257
|
+
fillInTheGapsDropdownPage.steps.navigateToCreateQuestion('fill in the gaps with dropdown');
|
258
|
+
cy.barsPreLoaderWait();
|
259
|
+
fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps');
|
260
|
+
fillInTheGapsDropdownPage.steps.expandScoringTypeDropdown();
|
261
|
+
fillInTheGapsDropdownPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
|
262
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
263
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
264
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
265
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
266
|
+
fillInTheGapsDropdownPage.steps.switchToPreviewTab();
|
267
|
+
break;
|
268
|
+
case 'Item preview':
|
269
|
+
cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
|
270
|
+
itemPreviewPage.steps.switchToPreviewTab();
|
271
|
+
break;
|
272
|
+
case 'Grading view':
|
273
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
274
|
+
break;
|
275
|
+
};
|
276
|
+
});
|
277
|
+
|
278
|
+
beforeEach(() => {
|
279
|
+
switch (view) {
|
280
|
+
case 'Question preview':
|
281
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
282
|
+
fillInTheGapsDropdownPage.steps.resetQuestionPreview();
|
283
|
+
break;
|
284
|
+
case 'Item preview':
|
285
|
+
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
286
|
+
itemPreviewPage.steps.resetQuestionPreview();
|
287
|
+
break;
|
288
|
+
case 'Grading view':
|
289
|
+
cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
|
290
|
+
break;
|
291
|
+
}
|
292
|
+
});
|
293
|
+
|
294
|
+
if (view === 'Question preview') {
|
295
|
+
after(() => {
|
296
|
+
fillInTheGapsDropdownPage.steps.clickOnSaveQuestionButton();
|
297
|
+
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
298
|
+
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
299
|
+
});
|
300
|
+
};
|
301
|
+
|
302
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
303
|
+
if (view === 'Grading view') {
|
304
|
+
studentViewPage.steps.submitResponse();
|
305
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
306
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
307
|
+
};
|
308
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
309
|
+
fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
|
310
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
311
|
+
fillInTheGapsDropdownPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
312
|
+
};
|
313
|
+
fillInTheGapsDropdownPage.steps.verifyDropdownNumerationPreviewTab();
|
314
|
+
utilities.verifyInnerText(fillInTheGapsDropdownPage.correctAnswersLabel(), 'Correct answers');
|
315
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
316
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
317
|
+
});
|
318
|
+
|
319
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
320
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: incorrectAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
321
|
+
if (view === 'Grading view') {
|
322
|
+
studentViewPage.steps.submitResponse();
|
323
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
324
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
325
|
+
};
|
326
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
327
|
+
fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
|
328
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
329
|
+
};
|
330
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
331
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
332
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
333
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
334
|
+
});
|
335
|
+
|
336
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
337
|
+
if (view === 'Grading view') {
|
338
|
+
studentViewPage.steps.clearResponses();
|
339
|
+
};
|
340
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: incorrectAnswerArray[1] }]);
|
341
|
+
if (view === 'Grading view') {
|
342
|
+
studentViewPage.steps.submitResponse();
|
343
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
344
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
345
|
+
};
|
346
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
347
|
+
fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
|
348
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
349
|
+
};
|
350
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
351
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(1);
|
352
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
353
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(correctAnswerArray);
|
354
|
+
});
|
355
|
+
|
356
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
357
|
+
if (view === 'Grading view') {
|
358
|
+
studentViewPage.steps.clearResponses();
|
359
|
+
};
|
360
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: correctAnswerArray[0] }, { dropdownIndex: 1, dropdownOption: correctAnswerArray[1] }]);
|
361
|
+
if (view === 'Grading view') {
|
362
|
+
studentViewPage.steps.submitResponse();
|
363
|
+
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
364
|
+
studentViewPage.steps.clickOnGoToGradingViewButton();
|
365
|
+
};
|
366
|
+
if (view === 'Question preview' || view === 'Item preview') {
|
367
|
+
fillInTheGapsDropdownPage.steps.checkNonScoredScoringLabel();
|
368
|
+
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
369
|
+
};
|
370
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
371
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
372
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
373
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();
|
374
|
+
});
|
375
|
+
});
|
376
|
+
});
|
377
|
+
|
177
378
|
if (!grepTags || !grepTags.includes('smoke')) {
|
178
379
|
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
179
380
|
abortEarlySetup();
|
@@ -36,7 +36,10 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown and Dropdo
|
|
36
36
|
});
|
37
37
|
|
38
38
|
it('When \'Auto scale\' toggle button is selected, then width of the collapsed dropdown and the dropdown menu should be auto scaled(increased) to accommodate the longest option in the dropdown menu in specify correct answer section', () => {
|
39
|
-
|
39
|
+
//Failing due to https://weldnorthed.atlassian.net/browse/IEI-5566
|
40
|
+
//fillInTheGapsDropdownPage.steps.compareDropdownMenuAndDropdownWidthForAutoScaled();
|
41
|
+
//Need to remove this line after fixing the above issue
|
42
|
+
fillInTheGapsDropdownPage.steps.expandDropdownInSpecifyCorrectAnswerSection(0);
|
40
43
|
cy.log('Choosing an option from dropdown to collapse it')
|
41
44
|
fillInTheGapsDropdownPage.steps.selectOptionFromDropdownList(optionsForDropdown[0]);
|
42
45
|
});
|
@@ -59,9 +59,9 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
59
59
|
|
60
60
|
fillInTheGapsDropdownPage.tests.verifyAddOptionFunctionalityForDropdownOptions();
|
61
61
|
|
62
|
-
it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should be thrown', () => {
|
62
|
+
it('When user focus in and out of any of the \'Options\' input field without typing anything, error message should not be thrown', () => {
|
63
63
|
fillInTheGapsDropdownPage.steps.focusInAndFocusOutOfDropdownOptionInputField(0);
|
64
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
64
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
65
65
|
});
|
66
66
|
|
67
67
|
it('User should be able to enter text in options input field and \'Error: Option is required.\' error message should disappear', () => {
|