itemengine-cypress-automation 1.0.223-minorFix-f2741aa.0 → 1.0.224-31stJulyFixes-fae0339.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +12 -5
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +370 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +285 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +629 -0
- package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +4 -2
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +5 -4
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightBasic.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +11 -10
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightBasic.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/toleranceThresholdScoring.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/gridSettings.js +8 -5
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +12 -12
- package/cypress/e2e/ILC/ChartsLine/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +0 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +3 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +4 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettingsBasic.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/pagination.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +6 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseEditTabBasicSection.js +7 -6
- package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions2.js +4 -0
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions3.js +17 -11
- package/cypress/e2e/ILC/FeedbackScaleNew/additionalSettings.js +11 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAndDropdownMenuSection.js +3 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/additionalSettingsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +53 -44
- package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +4 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/singleSelectionPreviewScoring.js +9 -9
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +3 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +3 -3
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +8 -56
- package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -4
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +1 -0
- package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +12 -12
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +48 -48
- package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/NumberLine/LayoutSection.js +22 -25
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +23 -3
- package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +96 -7
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +12 -2
- package/cypress/e2e/ILC/NumberLine/numberLineSection.js +4 -6
- package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +3 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +3 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +12 -3
- package/cypress/e2e/ILC/NumberLineLabel/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +9 -9
- package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +2 -0
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +20 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +214 -0
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +1 -6
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/audioOverviewAndTranscript.js +3 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/customizePlayerLayoutSettings.js +2 -2
- package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/standardAudioPlayerStyle.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/additionalSettings.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/editTabScoring.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +5 -5
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -1
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +9 -7
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +62 -60
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +29 -27
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +45 -45
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +28 -28
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsBasic.js +48 -34
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +41 -38
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +26 -26
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +41 -38
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +7 -5
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/audioResponsePage.js +1 -0
- package/cypress/pages/chartsBarPage.js +177 -76
- package/cypress/pages/chartsDotPlotPage.js +28 -43
- package/cypress/pages/components/additionalSettingsPanel.js +5 -2
- package/cypress/pages/components/barAndLineChartComponent.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +28 -0
- package/cypress/pages/components/colorPopupComponent.js +2 -0
- package/cypress/pages/components/createQuestionBasePage.js +1 -0
- package/cypress/pages/components/draggableOptionsSectionComponent.js +1 -0
- package/cypress/pages/components/editCategoryFlyout.js +6 -4
- package/cypress/pages/components/essayResponseCommonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +3 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +2 -4
- package/cypress/pages/components/imageCanvasComponent.js +7 -5
- package/cypress/pages/components/layoutSectionComponent.js +4 -3
- package/cypress/pages/components/numberLineCommonComponent.js +38 -21
- package/cypress/pages/components/opacityComponent.js +1 -0
- package/cypress/pages/components/optionsWrapperComponent.js +1 -0
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/components/responseAreaSettingsPopupComponent.js +8 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +5 -2
- package/cypress/pages/components/toolSettingsComponent.js +1 -0
- package/cypress/pages/contentBlocksPage.js +1 -0
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +9 -2
- package/cypress/pages/fillInTheGapsDropdownPage.js +16 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +16 -1
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +20 -1
- package/cypress/pages/graphingPage.js +43 -10
- package/cypress/pages/gridFillPage.js +11 -3
- package/cypress/pages/matchingPage.js +2 -0
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +25 -24
- package/cypress/pages/readingRulerPage.js +6 -2
- package/cypress/pages/rulerPage.js +1 -0
- package/cypress/pages/shortTextResponsePage.js +3 -1
- package/cypress/pages/singleSelectionPage.js +25 -2
- package/cypress/pages/textSelectionPage.js +1 -1
- package/cypress/pages/videoResponsePage.js +7 -2
- package/package.json +1 -1
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/allSupportedFileTypes.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/barAudioPlayerStyle.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/compactAudioPlayerStyle.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/headerSection.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/previewContents.smoke.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/studentViewSettings.js +0 -0
- /package/cypress/e2e/ILC/{AudioPlayerNew → ToolAudioPlayerNew}/uploadAndAddAudioFile.js +0 -0
- /package/cypress/fixtures/uploads/{sample10Sec.mp3 → sampleAudio.mp3} +0 -0
@@ -72,39 +72,14 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
|
|
72
72
|
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
73
73
|
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
74
74
|
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Branch', dropzoneIndex: 0 }, { optionText: 'Roots', dropzoneIndex: 0 }, { optionText: 'Petals', dropzoneIndex: 0 }]);
|
75
|
-
matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['
|
76
|
-
matchingPage.steps.verifyWarningMessage('Maximum 2 options can be dropped in each dropzone.');
|
77
|
-
});
|
78
|
-
|
79
|
-
it('CSS of warning message', { tags: 'css' }, () => {
|
80
|
-
utilities.verifyCSS(matchingPage.warningMessage(), {
|
81
|
-
'color': css.color.warningMessage,
|
82
|
-
'font-size': css.fontSize.normal,
|
83
|
-
'font-weight': css.fontWeight.regular
|
84
|
-
});
|
85
|
-
utilities.verifyCSS(matchingPage.warningMessageContainer().find('[class*="IconWrapper"]'), {
|
86
|
-
'background-color': css.color.warningContainerBorder,
|
87
|
-
});
|
88
|
-
utilities.verifyCSS(matchingPage.warningMessageContainer(), {
|
89
|
-
'border': `1px solid ${css.color.warningContainerBorder}`,
|
90
|
-
'background-color': css.color.warningContainerBackground
|
91
|
-
});
|
92
|
-
});
|
93
|
-
|
94
|
-
it('Accessibility of warning message', { tags: 'a11y' }, () => {
|
95
|
-
cy.checkAccessibility(matchingPage.warningMessage());
|
96
|
-
});
|
97
|
-
|
98
|
-
it('When user clicks on the options container, warning message should disappear', () => {
|
99
|
-
matchingPage.steps.clickOnOptionContainerSpecifyCorrectAnswerSection();
|
100
|
-
utilities.verifyElementVisibilityState(matchingPage.warningMessageContainer(), 'notExist');
|
75
|
+
matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Roots', 'Petals']);
|
101
76
|
});
|
102
77
|
|
103
78
|
it('When the user updates the value for the \'Maximum capacity per dropzone\' dropdown less than the options in the dropzone then the recently added option in the dropzone should move back to the option container', () => {
|
104
79
|
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
105
80
|
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('1');
|
106
|
-
matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['
|
107
|
-
matchingPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection([{ index: 0, optionText: 'Petals' }, { index: 1, optionText: 'Leaves' }, { index: 2, optionText: '
|
81
|
+
matchingPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Roots']);
|
82
|
+
matchingPage.steps.verifyOptionContainerOptionSpecifyCorrectAnswerSection([{ index: 0, optionText: 'Petals' }, { index: 1, optionText: 'Leaves' }, { index: 2, optionText: 'Seeds' }, { index: 4, optionText: 'Stem' }, { index: 5, optionText: 'Branch' }]);
|
108
83
|
});
|
109
84
|
});
|
110
85
|
|
@@ -140,32 +115,7 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
|
|
140
115
|
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
141
116
|
matchingPage.steps.switchToPreviewTab();
|
142
117
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Leaves', dropzoneIndex: 0 }, { optionText: 'Petals', dropzoneIndex: 0 }, { optionText: 'Seeds', dropzoneIndex: 0 }]);
|
143
|
-
matchingPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['
|
144
|
-
matchingPage.steps.verifyWarningMessage('Maximum 2 options can be dropped in each dropzone.');
|
145
|
-
});
|
146
|
-
|
147
|
-
it('CSS of warning message', { tags: 'css' }, () => {
|
148
|
-
utilities.verifyCSS(matchingPage.warningMessage(), {
|
149
|
-
'color': css.color.warningMessage,
|
150
|
-
'font-size': css.fontSize.normal,
|
151
|
-
'font-weight': css.fontWeight.regular
|
152
|
-
});
|
153
|
-
utilities.verifyCSS(matchingPage.warningMessageContainer().find('[class*="IconWrapper"]'), {
|
154
|
-
'background-color': css.color.warningContainerBorder,
|
155
|
-
});
|
156
|
-
utilities.verifyCSS(matchingPage.warningMessageContainer(), {
|
157
|
-
'border': `1px solid ${css.color.warningContainerBorder}`,
|
158
|
-
'background-color': css.color.warningContainerBackground
|
159
|
-
});
|
160
|
-
});
|
161
|
-
|
162
|
-
it('Accessibility of warning message', { tags: 'a11y' }, () => {
|
163
|
-
cy.checkAccessibility(matchingPage.warningMessage());
|
164
|
-
});
|
165
|
-
|
166
|
-
it('When user clicks on the options container, warning message should disappear', () => {
|
167
|
-
matchingPage.steps.clickOnOptionContainerPreviewTab();
|
168
|
-
utilities.verifyElementVisibilityState(matchingPage.warningMessageContainer(), 'notExist');
|
118
|
+
matchingPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals', 'Seeds']);
|
169
119
|
});
|
170
120
|
});
|
171
121
|
|
@@ -175,13 +125,15 @@ describe('Create Item page - Matching : Maximum capacity per dropzone section',
|
|
175
125
|
matchingPage.steps.navigateToCreateQuestion('matching');
|
176
126
|
cy.barsPreLoaderWait();
|
177
127
|
matchingPage.steps.addTextInQuestionInstructionsInputField('matching');
|
128
|
+
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
129
|
+
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
178
130
|
matchingPage.steps.addMultipleOptionFields(4);
|
179
131
|
matchingPage.steps.enterTextInOptionInputField(options);
|
132
|
+
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
133
|
+
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
180
134
|
matchingPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection([{ optionText: 'Petals', dropzoneIndex: 0 }, { optionText: 'Leaves', dropzoneIndex: 0 }, { optionText: 'Roots', dropzoneIndex: 1 }, { optionText: 'Stem', dropzoneIndex: 2 }, { optionText: 'Seeds', dropzoneIndex: 2 }])
|
181
135
|
matchingPage.steps.allotPoints(5);
|
182
136
|
//matchingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
|
183
|
-
matchingPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
184
|
-
matchingPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('2');
|
185
137
|
});
|
186
138
|
|
187
139
|
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
@@ -58,7 +58,7 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
|
|
58
58
|
|
59
59
|
it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
|
60
60
|
matchingPage.steps.allotTotalPenaltyPoints(5);
|
61
|
-
matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.
|
61
|
+
matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
|
62
62
|
});
|
63
63
|
|
64
64
|
it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
@@ -68,7 +68,7 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
|
|
68
68
|
|
69
69
|
it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
70
70
|
matchingPage.steps.addOption();
|
71
|
-
matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.
|
71
|
+
matchingPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(1.6667);
|
72
72
|
});
|
73
73
|
|
74
74
|
it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
|
@@ -173,8 +173,8 @@ describe('Create item page - Matching: Minimum scoring, Penalty scoring, Roundin
|
|
173
173
|
matchingPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
174
174
|
matchingPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
|
175
175
|
matchingPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
|
176
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect dropzone: 3.
|
177
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points:
|
176
|
+
utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect dropzone: 3.3333');
|
177
|
+
utilities.verifyInnerText(utilities.getNthElement(matchingPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
|
178
178
|
});
|
179
179
|
});
|
180
180
|
|
@@ -85,7 +85,8 @@ describe('Create Item page - Matching : Specify correct answer, Alternative corr
|
|
85
85
|
matchingPage.steps.verifyAlternativeAnswerAccordionLabel(0);
|
86
86
|
});
|
87
87
|
|
88
|
-
|
88
|
+
//Need to remove skip once https://weldnorthed.atlassian.net/browse/IEI-3034 is resolved
|
89
|
+
it.skip('When the user deletes an option assigned as correct in the correct accordion then the correct accordion should be in the expanded state', () => {
|
89
90
|
matchingPage.steps.deleteOption(3);
|
90
91
|
matchingPage.steps.verifyCorrectAnswerAccordionIsExpanded();
|
91
92
|
});
|
@@ -53,7 +53,7 @@ describe('Create Item page: Tool settings', () => {
|
|
53
53
|
utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
|
54
54
|
rulerPage.steps.verifyLengthOfRulerInPreview('12in');
|
55
55
|
rulerPage.steps.verifyColorOfRulerInPreview(1);
|
56
|
-
rulerPage.steps.verifyRulerOpacityInPreview('0.
|
56
|
+
rulerPage.steps.verifyRulerOpacityInPreview('0.4');
|
57
57
|
rulerPage.steps.verifyRotationButtonWithDegreeVisible();
|
58
58
|
});
|
59
59
|
|
@@ -96,7 +96,7 @@ describe('Create item page - Multiple selection: Scoring section', () => {
|
|
96
96
|
it('When the user sets one more correct option in the specify correct answer section, then points per response should get updated accordingly', () => {
|
97
97
|
multipleSelectionPage.steps.checkOptionsCheckboxInSpecifyCorrectAnswerSection(2);
|
98
98
|
for (let index = 0; index < 3; index++) {
|
99
|
-
multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(index, '1.
|
99
|
+
multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(index, '1.3333');
|
100
100
|
};
|
101
101
|
multipleSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(3, '-');
|
102
102
|
});
|
@@ -61,7 +61,7 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
|
|
61
61
|
|
62
62
|
it('When the user allots total penalty points, then \'points for each incorrect option\' should get updated as per the count of incorrect options available', () => {
|
63
63
|
multipleSelectionPage.steps.allotTotalPenaltyPoints(5);
|
64
|
-
utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.
|
64
|
+
utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.6667');
|
65
65
|
});
|
66
66
|
|
67
67
|
it('When the user adds a new option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
@@ -73,7 +73,7 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
|
|
73
73
|
|
74
74
|
it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
75
75
|
multipleSelectionPage.steps.deleteOption(4);
|
76
|
-
utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.
|
76
|
+
utilities.verifyInnerText(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Penalty points for each incorrect option: 1.6667');
|
77
77
|
});
|
78
78
|
|
79
79
|
it('CSS of the penalty points section - Total penalty points', { tags: 'css' }, () => {
|
@@ -180,8 +180,8 @@ describe('Create item page - Multiple selection: Minimum scoring, Penalty scorin
|
|
180
180
|
multipleSelectionPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
181
181
|
multipleSelectionPage.steps.verifySpecifyTotalPenaltyPointsDisabledState();
|
182
182
|
multipleSelectionPage.steps.verifySpecifyPointsForEachIncorrectOptionRadioButtonSelectedAndDisabledState();
|
183
|
-
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 3.
|
184
|
-
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points:
|
183
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 0), 'Penalty points for each incorrect option: 3.3333');
|
184
|
+
utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 1), 'Total penalty points: 10');
|
185
185
|
});
|
186
186
|
});
|
187
187
|
|
@@ -235,14 +235,14 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
235
235
|
multipleSelectionPage.steps.allotTotalPenaltyPoints(4);
|
236
236
|
multipleSelectionPage.steps.switchToPreviewTab();
|
237
237
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
238
|
-
multipleSelectionPage.steps.verifyPreviewScore(-1.
|
238
|
+
multipleSelectionPage.steps.verifyPreviewScore(-1.3333, 10);
|
239
239
|
});
|
240
240
|
|
241
241
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
242
242
|
multipleSelectionPage.steps.resetQuestionPreview();
|
243
243
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
244
244
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
245
|
-
multipleSelectionPage.steps.verifyPreviewScore(8.
|
245
|
+
multipleSelectionPage.steps.verifyPreviewScore(8.6667, 10);
|
246
246
|
});
|
247
247
|
|
248
248
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
@@ -250,7 +250,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
250
250
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
251
251
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
252
252
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
253
|
-
multipleSelectionPage.steps.verifyPreviewScore(7.
|
253
|
+
multipleSelectionPage.steps.verifyPreviewScore(7.3333, 10);
|
254
254
|
});
|
255
255
|
|
256
256
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -310,14 +310,14 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
310
310
|
multipleSelectionPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();
|
311
311
|
multipleSelectionPage.steps.switchToPreviewTab();
|
312
312
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
313
|
-
multipleSelectionPage.steps.verifyPreviewScore(-3.
|
313
|
+
multipleSelectionPage.steps.verifyPreviewScore(-3.3333, 10);
|
314
314
|
});
|
315
315
|
|
316
316
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
317
317
|
multipleSelectionPage.steps.resetQuestionPreview();
|
318
318
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
319
319
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
320
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
320
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 10);
|
321
321
|
});
|
322
322
|
|
323
323
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
@@ -325,7 +325,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
|
|
325
325
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
326
326
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
327
327
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
328
|
-
multipleSelectionPage.steps.verifyPreviewScore(3.
|
328
|
+
multipleSelectionPage.steps.verifyPreviewScore(3.3333, 10);
|
329
329
|
});
|
330
330
|
|
331
331
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -2,6 +2,7 @@ import { multipleSelectionPage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production', 'Pollution caused by electronic waste', 'Pollution caused by nuclear waste', 'Pollution caused by household waste'];
|
4
4
|
|
5
|
+
//Multiple cases are failing due to - https://redmine.zeuslearning.com/issues/578348.
|
5
6
|
describe('Create item page - Multiple selection: Partial different weights with alternative answer', () => {
|
6
7
|
before(() => {
|
7
8
|
cy.loginAs('admin');
|
@@ -110,7 +110,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
110
110
|
multipleSelectionPage.steps.resetQuestionPreview();
|
111
111
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
112
112
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
113
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
113
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
114
114
|
multipleSelectionPage.steps.switchToGradingView();
|
115
115
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
116
116
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -143,7 +143,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
143
143
|
multipleSelectionPage.steps.resetQuestionPreview();
|
144
144
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
|
145
145
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
146
|
-
multipleSelectionPage.steps.verifyPreviewScore(3.
|
146
|
+
multipleSelectionPage.steps.verifyPreviewScore(3.3333, 20);
|
147
147
|
multipleSelectionPage.steps.switchToGradingView();
|
148
148
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
149
149
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -175,7 +175,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
175
175
|
multipleSelectionPage.steps.resetQuestionPreview();
|
176
176
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
177
177
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
178
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
178
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
179
179
|
multipleSelectionPage.steps.switchToGradingView();
|
180
180
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
181
181
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -206,7 +206,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
206
206
|
it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points of the accordion with more points i.e. in this case correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
|
207
207
|
multipleSelectionPage.steps.resetQuestionPreview();
|
208
208
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
209
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
209
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
210
210
|
multipleSelectionPage.steps.switchToGradingView();
|
211
211
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
212
212
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -430,7 +430,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
430
430
|
multipleSelectionPage.steps.resetQuestionPreview();
|
431
431
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
432
432
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
433
|
-
multipleSelectionPage.steps.verifyPreviewScore(3.
|
433
|
+
multipleSelectionPage.steps.verifyPreviewScore(3.3333, 20);
|
434
434
|
multipleSelectionPage.steps.switchToGradingView();
|
435
435
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
436
436
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -462,7 +462,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
462
462
|
multipleSelectionPage.steps.resetQuestionPreview();
|
463
463
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
|
464
464
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
465
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
465
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
466
466
|
multipleSelectionPage.steps.switchToGradingView();
|
467
467
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
468
468
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -494,7 +494,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
494
494
|
multipleSelectionPage.steps.resetQuestionPreview();
|
495
495
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
496
496
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
497
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
497
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
498
498
|
multipleSelectionPage.steps.switchToGradingView();
|
499
499
|
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
|
500
500
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -525,7 +525,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
525
525
|
it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points of the accordion with more points i.e. in this case alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from alternative accordion should be displayed in correct answer section', () => {
|
526
526
|
multipleSelectionPage.steps.resetQuestionPreview();
|
527
527
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
528
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
528
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
529
529
|
multipleSelectionPage.steps.switchToGradingView();
|
530
530
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
531
531
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -723,7 +723,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
723
723
|
multipleSelectionPage.steps.resetQuestionPreview();
|
724
724
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
725
725
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
726
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
726
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
727
727
|
multipleSelectionPage.steps.switchToGradingView();
|
728
728
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
729
729
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -755,7 +755,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
755
755
|
multipleSelectionPage.steps.resetQuestionPreview();
|
756
756
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(4);
|
757
757
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(5);
|
758
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
758
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
759
759
|
multipleSelectionPage.steps.switchToGradingView();
|
760
760
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
761
761
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -787,7 +787,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
787
787
|
multipleSelectionPage.steps.resetQuestionPreview();
|
788
788
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
789
789
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
790
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
790
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
791
791
|
multipleSelectionPage.steps.switchToGradingView();
|
792
792
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
|
793
793
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -818,7 +818,7 @@ describe('Create item page - Multiple selection: Partial equal weights with alte
|
|
818
818
|
it('Race condition : When the user attempts the question with the common responses between correct accordion and alternative accordion, then user should be awarded with points as per the correct response and on switching to \'Grading\' view, correct icons should only be displayed besides the common responses, no icons should be displayed besides unattempted responses, incorrect answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
|
819
819
|
multipleSelectionPage.steps.resetQuestionPreview();
|
820
820
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
821
|
-
multipleSelectionPage.steps.verifyPreviewScore(6.
|
821
|
+
multipleSelectionPage.steps.verifyPreviewScore(6.6667, 20);
|
822
822
|
multipleSelectionPage.steps.switchToGradingView();
|
823
823
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
|
824
824
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
@@ -108,7 +108,7 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
108
108
|
});
|
109
109
|
} else {
|
110
110
|
it(`The correct options should have correct icons besides them`, () => {
|
111
|
-
// Need to remove comment once https://redmine.zeuslearning.com/issues/
|
111
|
+
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
112
112
|
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
113
113
|
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
114
114
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
@@ -200,53 +200,53 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
200
200
|
});
|
201
201
|
});
|
202
202
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
});
|
216
|
-
|
217
|
-
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', () => {
|
218
|
-
multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
|
219
|
-
multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
|
220
|
-
multipleSelectionGridPage.steps.allotMinimumPoints(2);
|
221
|
-
multipleSelectionGridPage.steps.switchToPreviewTab();
|
222
|
-
multipleSelectionGridPage.steps.switchToGradingView();
|
223
|
-
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
224
|
-
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
225
|
-
});
|
226
|
-
|
227
|
-
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', () => {
|
228
|
-
multipleSelectionGridPage.steps.resetQuestionPreview();
|
229
|
-
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
230
|
-
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
231
|
-
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
232
|
-
});
|
233
|
-
|
234
|
-
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', () => {
|
235
|
-
multipleSelectionGridPage.steps.switchToEditTab();
|
236
|
-
multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
|
237
|
-
multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
238
|
-
multipleSelectionGridPage.steps.allotMinimumPoints(2);
|
239
|
-
multipleSelectionGridPage.steps.switchToPreviewTab();
|
240
|
-
multipleSelectionGridPage.steps.switchToGradingView();
|
241
|
-
multipleSelectionGridPage.steps.verifyPreviewScore(0, 20);
|
242
|
-
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
243
|
-
});
|
244
|
-
|
245
|
-
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', () => {
|
246
|
-
multipleSelectionGridPage.steps.resetQuestionPreview();
|
247
|
-
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
248
|
-
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
249
|
-
});
|
203
|
+
if (!grepTags || !grepTags.includes('smoke')) {
|
204
|
+
describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
|
205
|
+
abortEarlySetup();
|
206
|
+
before(() => {
|
207
|
+
multipleSelectionGridPage.steps.navigateToCreateQuestion('multiple selection grid');
|
208
|
+
cy.barsPreLoaderWait();
|
209
|
+
multipleSelectionGridPage.steps.addTextInQuestionInstructionsInputField('Please select following animals facts are correct or not')
|
210
|
+
multipleSelectionGridPage.steps.setRowsAndColumnsForBasicQuestion();
|
211
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 3, column: 0 }, 'Whale are mammals');
|
212
|
+
multipleSelectionGridPage.steps.enterTextInCellPropertyInputField({ row: 4, column: 0 }, 'Tigers can jump upto 3 metres');
|
213
|
+
multipleSelectionGridPage.steps.allotPoints(20);
|
214
|
+
multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
250
215
|
});
|
251
|
-
|
216
|
+
|
217
|
+
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', () => {
|
218
|
+
multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
|
219
|
+
multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
|
220
|
+
multipleSelectionGridPage.steps.allotMinimumPoints(2);
|
221
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
222
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
223
|
+
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
224
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
225
|
+
});
|
226
|
+
|
227
|
+
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', () => {
|
228
|
+
multipleSelectionGridPage.steps.resetQuestionPreview();
|
229
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
230
|
+
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
231
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
232
|
+
});
|
233
|
+
|
234
|
+
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', () => {
|
235
|
+
multipleSelectionGridPage.steps.switchToEditTab();
|
236
|
+
multipleSelectionGridPage.steps.expandMinimumScoringDropdown();
|
237
|
+
multipleSelectionGridPage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
|
238
|
+
multipleSelectionGridPage.steps.allotMinimumPoints(2);
|
239
|
+
multipleSelectionGridPage.steps.switchToPreviewTab();
|
240
|
+
multipleSelectionGridPage.steps.switchToGradingView();
|
241
|
+
multipleSelectionGridPage.steps.verifyPreviewScore(0, 20);
|
242
|
+
multipleSelectionGridPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
243
|
+
});
|
244
|
+
|
245
|
+
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', () => {
|
246
|
+
multipleSelectionGridPage.steps.resetQuestionPreview();
|
247
|
+
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
248
|
+
multipleSelectionGridPage.steps.verifyPreviewScore(2, 20);
|
249
|
+
});
|
250
|
+
});
|
251
|
+
};
|
252
252
|
});
|
package/cypress/e2e/ILC/MultipleSelectionGridNew/minimumScoringPenaltyPointsAndRoundingDropdown.js
CHANGED
@@ -122,8 +122,8 @@ describe('Create item page - Multiple selection grid: Minimum scoring, Penalty s
|
|
122
122
|
multipleSelectionGridPage.steps.clearTotalPenaltyPointsInputField();
|
123
123
|
multipleSelectionGridPage.steps.selectPenaltyPointsForEachIncorrectOptionType('Specify points for each incorrect option');
|
124
124
|
utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionInputFieldLabel(), 'Penalty points for each incorrect row');
|
125
|
-
multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('
|
126
|
-
utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points:
|
125
|
+
multipleSelectionGridPage.steps.verifyPenaltyPointsForEachIncorrectRowValue('');
|
126
|
+
utilities.verifyInnerText(multipleSelectionGridPage.penaltyPointsDetailsSectionAllottedPointsLabel(), 'Total penalty points: -');
|
127
127
|
});
|
128
128
|
|
129
129
|
it('When the user allots Penalty points for each incorrect row, then \'Total penalty points\' should get updated as per the count of rows', () => {
|
@@ -2,8 +2,7 @@ import { numberLinePage } from "../../../pages";
|
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
5
|
-
|
6
|
-
const range = 20.75;
|
5
|
+
const range = 22.2;
|
7
6
|
|
8
7
|
describe('Number line: Layout section', () => {
|
9
8
|
before(() => {
|
@@ -17,11 +16,11 @@ describe('Number line: Layout section', () => {
|
|
17
16
|
cy.barsPreLoaderWait();
|
18
17
|
});
|
19
18
|
|
20
|
-
numberLinePage.tests.verifyLayoutSectionContent("
|
19
|
+
numberLinePage.tests.verifyLayoutSectionContent("Sideways");
|
21
20
|
|
22
|
-
it('\'Stack
|
23
|
-
utilities.verifyInnerText(numberLinePage.stackResponsesLabel(), 'Stack
|
24
|
-
numberLinePage.steps.verifyCheckboxUnchecked('Stack
|
21
|
+
it('\'Stack segment/ray\' label and checkbox should be displayed and by default it should be unchecked', () => {
|
22
|
+
utilities.verifyInnerText(numberLinePage.stackResponsesLabel(), 'Stack segment/ray');
|
23
|
+
numberLinePage.steps.verifyCheckboxUnchecked('Stack segment/ray')
|
25
24
|
});
|
26
25
|
|
27
26
|
it('Response spacing label and input field should be displayed and by default, input field should have 30 and user should be able to update the value of input field', () => {
|
@@ -44,18 +43,18 @@ describe('Number line: Layout section', () => {
|
|
44
43
|
it('When user updates value for Response spacing input field, it should get updated in Number line section and Specify correct answer section', () => {
|
45
44
|
numberLinePage.steps.enterTextInResponseSpacingInputField(28);
|
46
45
|
numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
|
47
|
-
numberLinePage.steps.verifyResponseSpacingSpecifyCorrectAnswerSection("
|
46
|
+
numberLinePage.steps.verifyResponseSpacingSpecifyCorrectAnswerSection("Sideways", 28);
|
48
47
|
});
|
49
48
|
|
50
|
-
numberLinePage.tests.verifyLayoutSectionEditTabFunctionality("
|
49
|
+
numberLinePage.tests.verifyLayoutSectionEditTabFunctionality("Sideways");
|
51
50
|
|
52
51
|
//Note: Unable to check on cypress, added to manual sheet
|
53
|
-
it('When user checks Stack
|
54
|
-
numberLinePage.steps.checkCheckbox('Stack
|
52
|
+
it('When user checks Stack segment/ray checkbox, then points should be plotted above the number line in number line section and specify correct answer section', () => {
|
53
|
+
numberLinePage.steps.checkCheckbox('Stack segment/ray');
|
55
54
|
});
|
56
55
|
|
57
|
-
it('When user unchecks Stack
|
58
|
-
numberLinePage.steps.uncheckCheckbox('Stack
|
56
|
+
it('When user unchecks Stack segment/ray checkbox, then points should be plotted on the number line in number line section and specify correct answer section', () => {
|
57
|
+
numberLinePage.steps.uncheckCheckbox('Stack segment/ray');
|
59
58
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
|
60
59
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2]);
|
61
60
|
});
|
@@ -70,13 +69,11 @@ describe('Number line: Layout section', () => {
|
|
70
69
|
});
|
71
70
|
|
72
71
|
it('When user update the value in Limit number of responses input field then specified number of responses should be updated accordingly for number line in specify correct answer section and when user plots responses more than specified number then error \'Error: Only # answers are permitted.\'', () => {
|
73
|
-
numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
|
74
|
-
numberLinePage.steps.confirmReset();
|
75
72
|
numberLinePage.steps.enterTextInLimitNumberOfResponsesInputField(6);
|
76
73
|
numberLinePage.steps.verifyTextInLimitNumberOfResponsesInputField(6);
|
77
|
-
|
78
|
-
|
79
|
-
|
74
|
+
cy.wait(500);
|
75
|
+
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 5);
|
76
|
+
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 6);
|
80
77
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
|
81
78
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineNotExistSpecifyCorrectAnswer(range, [6]);
|
82
79
|
utilities.verifyElementVisibilityState(numberLinePage.errorMessage(), 'visible');
|
@@ -105,10 +102,10 @@ describe('Number line: Layout section', () => {
|
|
105
102
|
numberLinePage.steps.confirmReset();
|
106
103
|
numberLinePage.steps.uncheckCheckbox('Limit number of responses');
|
107
104
|
utilities.verifyElementVisibilityState(numberLinePage.limitNumbersOfResponsesInputField(), 'notExist');
|
108
|
-
for (let index = 0; index <
|
105
|
+
for (let index = 0; index < 8; index++) {
|
109
106
|
numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, index);
|
110
107
|
};
|
111
|
-
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5]);
|
108
|
+
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1, 2, 3, 4, 5, 6]);
|
112
109
|
});
|
113
110
|
});
|
114
111
|
|
@@ -124,21 +121,21 @@ describe('Number line: Layout section', () => {
|
|
124
121
|
numberLinePage.steps.enterTextInResponseSpacingInputField(28);
|
125
122
|
numberLinePage.steps.verifyTextInResponseSpacingInputField(28);
|
126
123
|
numberLinePage.steps.switchToPreviewTab();
|
127
|
-
numberLinePage.steps.verifyResponseSpacingPreviewTab('
|
124
|
+
numberLinePage.steps.verifyResponseSpacingPreviewTab('Sideways', 28);
|
128
125
|
});
|
129
126
|
|
130
|
-
numberLinePage.tests.verifyLayoutSectionPreviewTabFunctionality("
|
127
|
+
numberLinePage.tests.verifyLayoutSectionPreviewTabFunctionality("Sideways");
|
131
128
|
|
132
129
|
//Note: Unable to check on cypress, added to manual sheet
|
133
|
-
it('When user checks Stack
|
130
|
+
it('When user checks Stack segment/ray checkbox, then points should be plotted above the number line in preview tab', () => {
|
134
131
|
numberLinePage.steps.switchToEditTab();
|
135
|
-
numberLinePage.steps.checkCheckbox('Stack
|
132
|
+
numberLinePage.steps.checkCheckbox('Stack segment/ray');
|
136
133
|
numberLinePage.steps.switchToPreviewTab();
|
137
134
|
});
|
138
135
|
|
139
|
-
it('When user unchecks Stack
|
136
|
+
it('When user unchecks Stack segment/ray checkbox, then points should be plotted on the number line in preview tab', () => {
|
140
137
|
numberLinePage.steps.switchToEditTab();
|
141
|
-
numberLinePage.steps.uncheckCheckbox("Stack
|
138
|
+
numberLinePage.steps.uncheckCheckbox("Stack segment/ray");
|
142
139
|
numberLinePage.steps.switchToPreviewTab();
|
143
140
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
|
144
141
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab(range, [2]);
|