itemengine-cypress-automation 1.0.249-repoUpdated26thSept-7283964.0 → 1.0.250-30SeptUpdates-a6d872b.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/AudioResponseNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/AudioResponseNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +1 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +3 -4
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/selectChartTypeSection.js +8 -8
- package/cypress/e2e/ILC/ChartsBar/studentViewSettings.js +0 -1
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/chartFunctionalitySpecifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +3 -5
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -6
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePageHeaderSection.js +1 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +2 -4
- package/cypress/e2e/ILC/EssayResponse/additionalSettings.js +4 -4
- package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -3
- package/cypress/e2e/ILC/EssayResponse/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +75 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +162 -0
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/MatchingDropdown/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +7 -7
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +8 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -9
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/customSettings.js +1373 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +4 -4
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +195 -0
- package/cypress/e2e/ILC/TextSelection/ScoringSentence/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +224 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingAlternatePointsMoreThanCorrectPoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsEqualToAlternatePoints.js +162 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/allOrNothingCorrectPointsMoreThanAlternatePoints.js +161 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsBasic.js +420 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +242 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsBasic.js +130 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +225 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +196 -0
- package/cypress/e2e/ILC/TextSelection/ScoringWord/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +225 -0
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/specifyCorrectAnswerSection.js +2 -2
- package/cypress/pages/audioResponsePage.js +0 -10
- package/cypress/pages/chartsBarPage.js +0 -13
- package/cypress/pages/chartsDotPlotPage.js +4 -85
- package/cypress/pages/chartsLinePage.js +2 -2
- package/cypress/pages/components/allowTeachersToDownloadStudentResponseComponent.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +11 -30
- package/cypress/pages/components/barAndLineChartComponent.js +0 -10
- package/cypress/pages/components/chartsCommonComponent.js +1 -25
- package/cypress/pages/components/colorPopupComponent.js +0 -31
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +0 -1
- package/cypress/pages/components/createQuestionBasePage.js +2 -8
- package/cypress/pages/components/customizeSpecialCharacterComponent.js +1 -1
- package/cypress/pages/components/draggableOptionContainer.js +1 -1
- package/cypress/pages/components/equationEditorFlyout.js +0 -36
- package/cypress/pages/components/essayResponseCommonComponents.js +2 -2
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -15
- package/cypress/pages/components/gridQuestionCommonComponent.js +26 -34
- package/cypress/pages/components/imageCanvasComponent.js +5 -5
- package/cypress/pages/components/index.js +0 -1
- package/cypress/pages/components/listOrderingCommonStyleAndLayoutComponent.js +0 -12
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +0 -1
- package/cypress/pages/components/optionsWrapperComponent.js +3 -3
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -2
- package/cypress/pages/contentBlocksPage.js +1 -1
- package/cypress/pages/createItemPage.js +7 -6
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -41
- package/cypress/pages/essayResponsePage.js +0 -1
- package/cypress/pages/feedbackScalePage.js +0 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
- package/cypress/pages/fillInTheGapsDropdownPage.js +79 -0
- package/cypress/pages/graphingPage.js +0 -1
- package/cypress/pages/gridFillPage.js +45 -112
- package/cypress/pages/imageHighlightPage.js +0 -10
- package/cypress/pages/itemPreviewSettingsPage.js +1 -4
- package/cypress/pages/listOrderingPage.js +0 -10
- package/cypress/pages/matchingPage.js +5 -142
- package/cypress/pages/multipleSelectionPage.js +0 -13
- package/cypress/pages/numberLineLabelPage.js +1 -1
- package/cypress/pages/numberLinePage.js +1 -1
- package/cypress/pages/protractorPage.js +1 -3
- package/cypress/pages/shortTextResponsePage.js +1 -3
- package/cypress/pages/simpleCalculatorPage.js +2 -2
- package/cypress/pages/singleSelectionPage.js +0 -10
- package/cypress/pages/textEntryMathPage.js +1 -8
- package/cypress/pages/textEntryMathWithImagePage.js +16 -38
- package/cypress/pages/textSelectionPage.js +34 -43
- package/cypress/pages/videoResponsePage.js +0 -5
- package/package.json +1 -1
- package/cypress/pages/components/customizeHighlightPropertiesComponent.js +0 -318
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/basicScoringForAllTextSelectionTypes.smoke.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/manuallyAndNonScored.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/singleSelectionPreviewScoring.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingAlternatePointsMoreThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/allOrNothingCorrectPointsMoreThanAlternatePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsBasic.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
- /package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
@@ -47,14 +47,11 @@ const selectors = {
|
|
47
47
|
cellInSpecifyCorrectAnswerSection: () => cy.get('[class*="GridFillstyles__SetCorrectAnswerWrapper"] [class*="GridFillResponsestyles__CellContainer"]'),
|
48
48
|
rowsWrapperSpecifyCorrectAnswerSection: () => cy.get('[class*="GridFillstyles__SetCorrectAnswerWrapper"] [class*="GridFillResponsestyles__RowContainer"]'),
|
49
49
|
correctAnswerAccordion: () => cy.get('.correct-answer-accordion'),
|
50
|
-
correctAnswerLabel: () => cy.get('.answer-accordion-label div'),
|
51
50
|
gridWrapper: () => cy.get('.correct-answer-accordion .grid-fill-response-wrapper'),
|
52
51
|
pointsPerResponseLabel: () => cy.get('.alternate-points-points-per-text-span'),
|
53
52
|
pointsPerResponseScore: () => cy.get('.alternate-points-points-per-value-span'),
|
54
53
|
pointsPerResponseWrapper: () => cy.get('.alternate-points-points-per-text-wrapper'),
|
55
|
-
penaltyPointsForEachIncorrectCellInputField: () => cy.get('input[aria-label="Penalty points for each incorrect cell"]'),
|
56
54
|
specifyPointsForEachIncorrectCellRadioButton: () => cy.get('input[aria-label*="Specify points for each incorrect"]'),
|
57
|
-
cellShadeCountInputField: () => cy.get('.grid-fill-response-wrapper [aria-label="labeling"]'),
|
58
55
|
gridSpecifyCorrectAnswerSection: () => cy.get('[class*="AnswerAccordionstyles__AnswerPanel"] [class*="GridFillResponsestyles__GridWrapper"]'),
|
59
56
|
gridRow: () => cy.get('[class*="GridFillResponsestyles__RowContainer"]'),
|
60
57
|
cellShadeCountLabel: () => cy.get('[class*="GridFillResponsestyles__CellFillCountLabel"]'),
|
@@ -67,11 +64,6 @@ const selectors = {
|
|
67
64
|
//Customize layout accordion
|
68
65
|
customizeLayoutAccordionButton: () => cy.get('.customize-layout-wrapper-cls .ngie-accordion-summary'),
|
69
66
|
customizeLayoutLabel: () => cy.get('[class*="AdditionalGridFillSettingsstyles__StyledLabel"]'),
|
70
|
-
customizeLayoutAccordionChevronButton: () => cy.get('.customize-layout-wrapper-cls [class*="MuiAccordionSummary-expandIconWrapper "]'),
|
71
|
-
shadeCellButton: () => cy.get('.single-select-toggle-group button').eq(0),
|
72
|
-
hideCellButton: () => cy.get('.single-select-toggle-group button').eq(1),
|
73
|
-
cellInCustomizeLayout: () => cy.get('[id*="Response-cell"]'),
|
74
|
-
rowsWrapperCustomizeLayout: () => cy.get('.customize-layout-wrapper-cls [class*="GridFillResponsestyles__RowContainer"]'),
|
75
67
|
paginationTextCustomizeLayoutSection: () => cy.get('.customize-layout-wrapper-cls [class*="PaginationControlWrapper"] [class*="PaginationDetails"]'),
|
76
68
|
paginationButtonWrapperCustomizeLayout: () => cy.get('.customize-layout-wrapper-cls [class*="PaginationControlWrapper"]'),
|
77
69
|
previousPaginationButtonCustomizeLayout: () => cy.get('.customize-layout-wrapper-cls [class*="PaginationControl"]').eq(1),
|
@@ -92,13 +84,7 @@ const selectors = {
|
|
92
84
|
dottedToggleButton: () => cy.get('.single-select-toggle-group-double button').eq(5),
|
93
85
|
outerGridBorderTitle: () => cy.get('[class*="CustomizedGridstyles__SwitchLabelWrapper"]'),
|
94
86
|
outerGridBorderSwitch: () => cy.get('[class*="CustomizedGridstyles__OuterGridWrapper"] [class*="MuiSwitch-switchBase"]'),
|
95
|
-
penaltyPointsForEachIncorrectCellInputField: () => cy.get('input[aria-label="Penalty points for each incorrect cell"]'),
|
96
|
-
//student view settings
|
97
|
-
maxSelectedCellLabel: () => cy.get('[class*="MaxSelectedCellsstyles__MaxCellsLabel"]'),
|
98
|
-
maxSelectedCellInputField: () => cy.get('input[aria-label="Max selected cells"]'),
|
99
87
|
//Customize layout accordion
|
100
|
-
customizeLayoutAccordionButton: () => cy.get('.customize-layout-wrapper-cls .ngie-accordion-summary'),
|
101
|
-
customizeLayoutLabel: () => cy.get('[class*="AdditionalGridFillSettingsstyles__StyledLabel"]'),
|
102
88
|
customizeLayoutAccordionChevronButton: () => cy.get('.customize-layout-wrapper-cls [class*="MuiAccordionSummary-expandIconWrapper "]'),
|
103
89
|
shadeTheCellLabel: () => cy.get('[class*="AdditionalGridFillSettingsstyles__LabelTextWrapper"]'),
|
104
90
|
shadeCellButton: () => cy.get('.single-select-toggle-group button').eq(0),
|
@@ -108,9 +94,7 @@ const selectors = {
|
|
108
94
|
gridCustomizeLayoutSection: () => cy.get('.customize-layout-wrapper-cls [class*="GridFillResponsestyles__GridWrapper"]'),
|
109
95
|
cellInCustomizeLayout: () => cy.get('[id*="Response-cell"]'),
|
110
96
|
rowsWrapperCustomizeLayout: () => cy.get('.customize-layout-wrapper-cls [class*="GridFillResponsestyles__RowContainer"]'),
|
111
|
-
penaltyPointsForEachIncorrectCellInputField: () => cy.get('input[aria-label="Penalty points for each incorrect cell"]'),
|
112
97
|
//Fill type section
|
113
|
-
fillTypeLabel: () => cy.get('[class*="CustomizedGridstyles__LabelTextWrapper"]'),
|
114
98
|
colorBlock: () => cy.get('.color-picker-block'),
|
115
99
|
colorRadioButton: () => cy.get('[class*="RadioGroupstyles__RadioOptionWrapper"] .radio-btn').eq(0),
|
116
100
|
colorLabel: () => cy.get('[class*="RadioGroupstyles__RadioOptionWrapper"] label').eq(0),
|
@@ -176,10 +160,8 @@ const selectors = {
|
|
176
160
|
maxSelectedCellLabel: () => cy.get('[class*="MaxSelectedCellsstyles__MaxCellsLabel"]'),
|
177
161
|
maxSelectedCellInputField: () => cy.get('input[aria-label="Max selected cells"]'),
|
178
162
|
penaltyPointsForEachIncorrectCellInputField: () => cy.get('input[aria-label="Penalty points for each incorrect cell"]'),
|
179
|
-
|
180
163
|
//Fill type section
|
181
164
|
fillTypeLabel: () => cy.get('[class*="CustomizedGridstyles__LabelTextWrapper"]'),
|
182
|
-
|
183
165
|
//Preview tab
|
184
166
|
gridWrapperPreviewTab: () => cy.get('[class*="GridFillResponsestyles__GridWrapper"]:visible'),
|
185
167
|
cellInPreviewTab: () => cy.get('[class*="GridFillResponsestyles__CellContainer"]:visible'),
|
@@ -434,24 +416,6 @@ const steps = {
|
|
434
416
|
});
|
435
417
|
},
|
436
418
|
|
437
|
-
/**
|
438
|
-
* @description select cell in grid of specify correct answer section
|
439
|
-
* @param {number} rowIndex Index of row in grid of specify correct answer section
|
440
|
-
* @param {number} columnIndex Index of column in grid of specify correct answer section
|
441
|
-
*/
|
442
|
-
selectCellSpecifyCorrectAnswerSection: (rowIndex, columnIndex) => {
|
443
|
-
gridFillPage.gridSpecifyCorrectAnswerSection()
|
444
|
-
.within(() => {
|
445
|
-
utilities.getNthElement(gridFillPage.gridRow(), rowIndex)
|
446
|
-
.within(() => {
|
447
|
-
utilities.getNthElement(gridFillPage.cellInEditTab(), columnIndex)
|
448
|
-
.click()
|
449
|
-
.invoke('attr', 'aria-label')
|
450
|
-
.should('include', 'response');
|
451
|
-
});
|
452
|
-
});
|
453
|
-
},
|
454
|
-
|
455
419
|
/**
|
456
420
|
* @description deselect cell in grid of specify correct answer section
|
457
421
|
* @param {number} rowIndex Index of row in grid of specify correct answer section
|
@@ -599,12 +563,6 @@ const steps = {
|
|
599
563
|
});
|
600
564
|
},
|
601
565
|
|
602
|
-
verifyHideCustomizedCellPreviewTab: (index) => {
|
603
|
-
utilities.getNthElement(gridFillPage.cellInPreviewTab(), index)
|
604
|
-
.invoke('attr', 'aria-label')
|
605
|
-
.should('include', 'Hide cell');
|
606
|
-
},
|
607
|
-
|
608
566
|
/**
|
609
567
|
* Verifies if a cell in the preview tab is selected.
|
610
568
|
* @param {number} rowIndex - The index of the row containing the cell.
|
@@ -1767,24 +1725,6 @@ const steps = {
|
|
1767
1725
|
.should('have.css', 'background-color', color);
|
1768
1726
|
},
|
1769
1727
|
|
1770
|
-
/**
|
1771
|
-
* @param {string} color background color of color block
|
1772
|
-
* @description this function verfies the background color of fill color block
|
1773
|
-
*/
|
1774
|
-
verifyFilledFillColorBlockColor: (color) => {
|
1775
|
-
gridFillPage.filledFillColorBlock()
|
1776
|
-
.should('have.css', 'background-color', color);
|
1777
|
-
},
|
1778
|
-
|
1779
|
-
/**
|
1780
|
-
* @param {string} color background color of color block
|
1781
|
-
* @description this function verfies the background color of border color block
|
1782
|
-
*/
|
1783
|
-
verifyFilledBorderColorBlockColor: (color) => {
|
1784
|
-
gridFillPage.filledBorderColorBlock()
|
1785
|
-
.should('have.css', 'background-color', color);
|
1786
|
-
},
|
1787
|
-
|
1788
1728
|
/**
|
1789
1729
|
* @param {string} color background color of color block
|
1790
1730
|
* @description this function verfies the background color of hover fill color block
|
@@ -1817,30 +1757,33 @@ const steps = {
|
|
1817
1757
|
'font-size': css.fontSize.normal,
|
1818
1758
|
'font-weight': css.fontWeight.semibold
|
1819
1759
|
});
|
1820
|
-
|
1821
|
-
|
1822
|
-
|
1760
|
+
|
1761
|
+
const colorLabels = [gridFillPage.defaultFillColorLabel, gridFillPage.defaultBorderColorLabel];
|
1762
|
+
for (const label of colorLabels) {
|
1763
|
+
utilities.verifyCSS(label(), {
|
1823
1764
|
'color': css.color.labels,
|
1824
1765
|
'font-size': css.fontSize.normal,
|
1825
1766
|
'font-weight': css.fontWeight.regular
|
1826
1767
|
});
|
1827
|
-
}
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1768
|
+
}
|
1769
|
+
|
1770
|
+
const hexCodeLabels = [gridFillPage.defaultFillColorHexCodeLabel, gridFillPage.defaultBorderColorHexCodeLabel];
|
1771
|
+
for (const hexLabel of hexCodeLabels) {
|
1772
|
+
utilities.verifyCSS(hexLabel(), {
|
1831
1773
|
'color': css.color.placeholderText,
|
1832
1774
|
'font-size': css.fontSize.small,
|
1833
1775
|
'font-weight': css.fontWeight.semibold
|
1834
1776
|
});
|
1835
|
-
}
|
1836
|
-
|
1837
|
-
|
1838
|
-
|
1777
|
+
}
|
1778
|
+
|
1779
|
+
const opacityLabels = [gridFillPage.defaultFillColorOpacityLabel, gridFillPage.defaultBorderColorOpacityLabel];
|
1780
|
+
for (const opacityLabel of opacityLabels) {
|
1781
|
+
utilities.verifyCSS(opacityLabel(), {
|
1839
1782
|
'color': css.color.placeholderText,
|
1840
1783
|
'font-size': css.fontSize.small,
|
1841
1784
|
'font-weight': css.fontWeight.regular
|
1842
1785
|
});
|
1843
|
-
}
|
1786
|
+
}
|
1844
1787
|
},
|
1845
1788
|
|
1846
1789
|
verifyFillColorHoverContentCSS: () => {
|
@@ -1849,30 +1792,33 @@ const steps = {
|
|
1849
1792
|
'font-size': css.fontSize.normal,
|
1850
1793
|
'font-weight': css.fontWeight.semibold
|
1851
1794
|
});
|
1852
|
-
|
1853
|
-
|
1854
|
-
|
1795
|
+
|
1796
|
+
const colorLabels = [gridFillPage.hoverFillColorLabel, gridFillPage.hoverBorderColorLabel];
|
1797
|
+
for (const label of colorLabels) {
|
1798
|
+
utilities.verifyCSS(label(), {
|
1855
1799
|
'color': css.color.labels,
|
1856
1800
|
'font-size': css.fontSize.normal,
|
1857
1801
|
'font-weight': css.fontWeight.regular
|
1858
1802
|
});
|
1859
|
-
}
|
1860
|
-
|
1861
|
-
|
1862
|
-
|
1803
|
+
}
|
1804
|
+
|
1805
|
+
const hexCodeLabels = [gridFillPage.hoverFillColorHexCodeLabel, gridFillPage.hoverBorderColorHexCodeLabel];
|
1806
|
+
for (const hexLabel of hexCodeLabels) {
|
1807
|
+
utilities.verifyCSS(hexLabel(), {
|
1863
1808
|
'color': css.color.placeholderText,
|
1864
1809
|
'font-size': css.fontSize.small,
|
1865
1810
|
'font-weight': css.fontWeight.semibold
|
1866
1811
|
});
|
1867
|
-
}
|
1868
|
-
|
1869
|
-
|
1870
|
-
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
const opacityLabels = [gridFillPage.hoverFillColorOpacityLabel, gridFillPage.hoverBorderColorOpacityLabel];
|
1815
|
+
for (const opacityLabel of opacityLabels) {
|
1816
|
+
utilities.verifyCSS(opacityLabel(), {
|
1871
1817
|
'color': css.color.placeholderText,
|
1872
1818
|
'font-size': css.fontSize.small,
|
1873
1819
|
'font-weight': css.fontWeight.regular
|
1874
1820
|
});
|
1875
|
-
}
|
1821
|
+
}
|
1876
1822
|
},
|
1877
1823
|
|
1878
1824
|
verifyFillColorFilledContentCSS: () => {
|
@@ -1881,30 +1827,33 @@ const steps = {
|
|
1881
1827
|
'font-size': css.fontSize.normal,
|
1882
1828
|
'font-weight': css.fontWeight.semibold
|
1883
1829
|
});
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1830
|
+
|
1831
|
+
const colorLabels = [gridFillPage.filledFillColorLabel, gridFillPage.filledBorderColorLabel];
|
1832
|
+
for (const label of colorLabels) {
|
1833
|
+
utilities.verifyCSS(label(), {
|
1887
1834
|
'color': css.color.labels,
|
1888
1835
|
'font-size': css.fontSize.normal,
|
1889
1836
|
'font-weight': css.fontWeight.regular
|
1890
1837
|
});
|
1891
|
-
}
|
1892
|
-
|
1893
|
-
|
1894
|
-
|
1838
|
+
}
|
1839
|
+
|
1840
|
+
const hexCodeLabels = [gridFillPage.filledFillColorHexCodeLabel, gridFillPage.filledBorderColorHexCodeLabel];
|
1841
|
+
for (const hexLabel of hexCodeLabels) {
|
1842
|
+
utilities.verifyCSS(hexLabel(), {
|
1895
1843
|
'color': css.color.placeholderText,
|
1896
1844
|
'font-size': css.fontSize.small,
|
1897
1845
|
'font-weight': css.fontWeight.semibold
|
1898
1846
|
});
|
1899
|
-
}
|
1900
|
-
|
1901
|
-
|
1902
|
-
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
const opacityLabels = [gridFillPage.filledFillColorOpacityLabel, gridFillPage.filledBorderColorOpacityLabel];
|
1850
|
+
for (const opacityLabel of opacityLabels) {
|
1851
|
+
utilities.verifyCSS(opacityLabel(), {
|
1903
1852
|
'color': css.color.placeholderText,
|
1904
1853
|
'font-size': css.fontSize.small,
|
1905
1854
|
'font-weight': css.fontWeight.regular
|
1906
1855
|
});
|
1907
|
-
}
|
1856
|
+
}
|
1908
1857
|
},
|
1909
1858
|
|
1910
1859
|
/**
|
@@ -2397,22 +2346,6 @@ const steps = {
|
|
2397
2346
|
.clear();
|
2398
2347
|
},
|
2399
2348
|
|
2400
|
-
/**
|
2401
|
-
* @description Add input to background image alt text input field
|
2402
|
-
* @param {string} input Text input
|
2403
|
-
*/
|
2404
|
-
addInputToBackgroundImageAltTextInputField: (input) => {
|
2405
|
-
gridFillPage.backgroundImageAlternativeTextInputField()
|
2406
|
-
.clear()
|
2407
|
-
.type(input)
|
2408
|
-
.should('have.value', `${input}`);
|
2409
|
-
},
|
2410
|
-
|
2411
|
-
clearBackgroundImageAltTextInputField: () => {
|
2412
|
-
gridFillPage.backgroundImageAlternativeTextInputField()
|
2413
|
-
.clear();
|
2414
|
-
},
|
2415
|
-
|
2416
2349
|
/**
|
2417
2350
|
* @description Add input to background image alt text input field
|
2418
2351
|
* @param {string} input Text input
|
@@ -841,16 +841,6 @@ const steps = {
|
|
841
841
|
.click();
|
842
842
|
},
|
843
843
|
|
844
|
-
/**
|
845
|
-
* @param {number} index of highlight region
|
846
|
-
* @description this functions highlights a region in preview tab
|
847
|
-
*/
|
848
|
-
clickOnARegionInPreviewTab: (index) => {
|
849
|
-
imageHighlightPage.highlightPolygonPreviewTab()
|
850
|
-
.eq(index)
|
851
|
-
.click();
|
852
|
-
},
|
853
|
-
|
854
844
|
/**
|
855
845
|
* @param {number} index of highlight region
|
856
846
|
* @description this functions highlights a region in preview tab
|
@@ -1,12 +1,9 @@
|
|
1
1
|
import utilities from "../support/helpers/utilities";
|
2
|
-
import { commonComponents } from "./components";
|
2
|
+
import { commonComponents, scoringSectionBaseEditTab, questionInstructionsComponent, createQuestionBasePage } from "./components";
|
3
3
|
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
4
4
|
import { createItemPage } from "./createItemPage";
|
5
5
|
import { shortTextResponsePage } from "./shortTextResponsePage";
|
6
|
-
import { scoringSectionBaseEditTab } from "./components";
|
7
|
-
import { questionInstructionsComponent } from "./components";
|
8
6
|
import { contentBlocksPage } from "./contentBlocksPage";
|
9
|
-
import { createQuestionBasePage } from "./components";
|
10
7
|
import { graphingPage } from "./graphingPage";
|
11
8
|
import { drawingResponsePage } from "./drawingResponsePage";
|
12
9
|
|
@@ -1102,16 +1102,6 @@ const steps = {
|
|
1102
1102
|
.click();
|
1103
1103
|
},
|
1104
1104
|
|
1105
|
-
/**
|
1106
|
-
* Verifies the order of options in the preview tab
|
1107
|
-
* @param {string[]} optionsTextArray - An array containing the text of options in the expected order for horizontal orientation.
|
1108
|
-
*/
|
1109
|
-
verifyHorizontalOptionsOrderInPreviewTab: (optionsTextArray) => {
|
1110
|
-
optionsTextArray.forEach((option, index) => {
|
1111
|
-
utilities.verifyTextContent(utilities.getNthElement(listOrderingPage.horizontalOptionPreviewTab(), index), option);
|
1112
|
-
});
|
1113
|
-
},
|
1114
|
-
|
1115
1105
|
getHorizontalOptionsArray: () => {
|
1116
1106
|
const optionsArray = []
|
1117
1107
|
listOrderingPage.horizontalOptionPreviewTab()
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import constants from "../fixtures/constants";
|
2
2
|
import utilities from "../support/helpers/utilities";
|
3
3
|
import { createQuestionBasePage, questionInstructionsComponent, autoScoredScoringPreviewTab, scoringSectionBaseEditTab, draggableOptionContainer, draggableOptionsSectionComponent, correctIncorrectAnswerLabelComponent, maximumCapacityPerDropzoneComponent, optionsWrapperComponent, ckEditorToolbar, equationEditorFlyout, autoScoredStudentViewSettings, autoScoredSpecifyCorrectAnswerSection, commonComponents, randomizeOptionsComponent, autoScoredScoringSectionMultiResponseType, allowMultipleInstancesOfSameDraggableOptionComponent, studentViewSettingsLabelComponent, ariaLabelSectionComponent, additionalSettingsAccessibilitySectionComponent, gradingViewEnumerationComponent, additionalSettingsPanel, toolSettingsComponent, styleAndLayoutCustomizationAccordionComponent, connectorStyleStyleAndLayoutCustomizationComponent } from "./components";
|
4
|
-
import { dialogBoxBase } from "./dialogBoxBase";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
const options = ['option 1', 'option 2', 'option 3'];
|
7
6
|
const fourOptions = ['option 1', 'option 2', 'option 3', 'option 4'];
|
@@ -54,7 +53,7 @@ const selectors = {
|
|
54
53
|
noConnectorButton: () => cy.get('button[aria-label*="Matching layout No connectors"]'),
|
55
54
|
connectorLabel: () => cy.get('button[aria-label*="Matching layout Connectors"] .ngie-toggle-button-label'),
|
56
55
|
noConnectorLabel: () => cy.get('button[aria-label*="Matching layout No connectors"] .ngie-toggle-button-label'),
|
57
|
-
|
56
|
+
optionInnnerFieldInputFieldDropdown: () => cy.get(' .edit-mcq-options-wrapper [data-rbd-draggable-id*="option-draggable"] .MuiOutlinedInput-inputAdornedStart'),
|
58
57
|
//Specify correct answer section
|
59
58
|
connectorIcon: () => cy.get('.correct-answer-accordion [class*="ClozeWithDragAndDropstyles__ShowIconWrapper"]'),
|
60
59
|
dropzoneSpecifyCorrectAnswerSection: () => cy.get('.correct-answer-wrapper .authoring-droppable-hotspot-wrapper'),
|
@@ -444,17 +443,6 @@ const steps = {
|
|
444
443
|
.should('have.text', 'This is a bold option');
|
445
444
|
},
|
446
445
|
|
447
|
-
verifyDeleteOptionButtonDisabledState: () => {
|
448
|
-
matchingPage.optionWrapper()
|
449
|
-
.eq(0)
|
450
|
-
.within(() => {
|
451
|
-
optionsWrapperComponent.deleteOptionButton()
|
452
|
-
.each(($element) => {
|
453
|
-
utilities.verifyElementDisabled(cy.wrap($element))
|
454
|
-
});
|
455
|
-
});
|
456
|
-
},
|
457
|
-
|
458
446
|
/**
|
459
447
|
* @description Allots penalty points for each incorrect dropzone
|
460
448
|
* @param {number} points - The penalty points to be allotted for each dropzone.
|
@@ -568,26 +556,6 @@ const steps = {
|
|
568
556
|
.click();
|
569
557
|
},
|
570
558
|
|
571
|
-
/**
|
572
|
-
* @param {number} dropzoneIndex index of the dropzone in specify correct answer section
|
573
|
-
* @param {string[]} responseArray array of options set as correct responses in a category cell
|
574
|
-
*/
|
575
|
-
verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection: (dropzoneIndex, response) => {
|
576
|
-
matchingPage.dropzoneSpecifyCorrectAnswerSection()
|
577
|
-
.find('.item-content-container')
|
578
|
-
.eq(dropzoneIndex)
|
579
|
-
.should('have.text', response);
|
580
|
-
},
|
581
|
-
|
582
|
-
/**
|
583
|
-
* @description Verifies the text content of a specific preview tab dropzone element.
|
584
|
-
* @param {number} count - The index of the preview tab dropzone element to verify (zero-based).
|
585
|
-
* @param {string} text - The expected text content to match against the inner text of the specified dropzone element.
|
586
|
-
*/
|
587
|
-
verifyDropzoneTextSpecifyCorrectAnswerSection: (count, text) => {
|
588
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.dropzoneSpecifyCorrectAnswerSection(), count), text);
|
589
|
-
},
|
590
|
-
|
591
559
|
/**
|
592
560
|
* @param {string} optionName denotes the text content of the draggable option
|
593
561
|
* @param {number} dropzoneIndex - The index of the dropzone.
|
@@ -603,21 +571,6 @@ const steps = {
|
|
603
571
|
});
|
604
572
|
},
|
605
573
|
|
606
|
-
/**
|
607
|
-
* @param {string} groupTitle group title
|
608
|
-
* @param {string[]} optionArray array of options for a particular group
|
609
|
-
* @description add a group with title and options in the response options section
|
610
|
-
*/
|
611
|
-
addGroupWithTitleAndOptionsInDraggableOptionsSection: (groupTitle, optionArray) => {
|
612
|
-
const numOptionsToAdd = Math.max(0, optionArray.length - 2);
|
613
|
-
draggableOptionsSectionComponent.steps.addGroup();
|
614
|
-
draggableOptionsSectionComponent.steps.addGroupTitle(groupTitle);
|
615
|
-
for (let i = 0; i < numOptionsToAdd; i++) {
|
616
|
-
optionsWrapperComponent.steps.addOption();
|
617
|
-
}
|
618
|
-
matchingPage.steps.enterTextInOptionInputField(optionArray);
|
619
|
-
},
|
620
|
-
|
621
574
|
setGroupedOptions: () => {
|
622
575
|
let animals = [['Elephant', 'Bear', 'Panda', 'Zebra'],
|
623
576
|
['Peacock', 'Fish', 'Penguin', 'Tiger'],
|
@@ -637,17 +590,6 @@ const steps = {
|
|
637
590
|
matchingPage.steps.addGroupWithTitleAndOptionsInDraggableOptionsSection(groupTitles[3], animals[3]);
|
638
591
|
},
|
639
592
|
|
640
|
-
/**
|
641
|
-
* @description Verifies the text content of a specific preview tab dropzone element.
|
642
|
-
* @param { number } count - The index of the preview tab dropzone element to verify(zero - based).
|
643
|
-
* @param { string } text - The expected text content to match against the inner text of the specified dropzone element.
|
644
|
-
*/
|
645
|
-
verifyOptionContainerOptionSpecifyCorrectAnswerSection: (optionsArray) => {
|
646
|
-
optionsArray.forEach(({ index, optionText }) => {
|
647
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.optionContainerOptionsSpecifyCorrectAnswerSection(), index), optionText);
|
648
|
-
});
|
649
|
-
},
|
650
|
-
|
651
593
|
/**
|
652
594
|
* Verifies the text of a dropzone in the Specify Correct Answer section.
|
653
595
|
* @param {number} count - The index of the dropzone.
|
@@ -679,21 +621,6 @@ const steps = {
|
|
679
621
|
.click({ force: true });
|
680
622
|
},
|
681
623
|
|
682
|
-
/**
|
683
|
-
* @param {number} categoryIndex optionIndex of the dropzone in set correct answer section
|
684
|
-
* @param {string[]} responseArray array of options set as correct responses in a dropzone
|
685
|
-
*/
|
686
|
-
verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection: (dropzoneIndex, responseArray) => {
|
687
|
-
matchingPage.dropzoneSpecifyCorrectAnswerSection()
|
688
|
-
.eq(dropzoneIndex)
|
689
|
-
.within(() => {
|
690
|
-
responseArray.forEach((response, count) => {
|
691
|
-
utilities.verifyTextContent(utilities.getNthElement(matchingPage.droppedDraggableOptionInDropzoneSpecifyCorrectAnswerSection(), count), response);
|
692
|
-
});
|
693
|
-
});
|
694
|
-
},
|
695
|
-
|
696
|
-
|
697
624
|
/**
|
698
625
|
* Verifies the prompt container in the 'Specify correct answer' section.
|
699
626
|
* @param {Object[]} optionsArray - An array of objects containing index and optionText.
|
@@ -808,18 +735,6 @@ const steps = {
|
|
808
735
|
.should('have.text', correctAnswer);
|
809
736
|
},
|
810
737
|
|
811
|
-
/**
|
812
|
-
* @description Verifies that the equation text in the Preview tab is correct.
|
813
|
-
* @param {number} optionIndex - The index of the option in the Preview tab.
|
814
|
-
*/
|
815
|
-
verifyDraggableOptionWithEquationTextInPreviewTab: (optionIndex) => {
|
816
|
-
matchingPage.dropzonePreviewTab()
|
817
|
-
.find('[role="math"]')
|
818
|
-
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
819
|
-
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
820
|
-
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
821
|
-
},
|
822
|
-
|
823
738
|
/**
|
824
739
|
* @description Verifies that the image in the Preview tab has the correct source and alt text.
|
825
740
|
* @param {number} optionIndex - The index of the option in the Preview tab.
|
@@ -841,7 +756,7 @@ const steps = {
|
|
841
756
|
.eq(optionIndex)
|
842
757
|
.find('[role="math"]')
|
843
758
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
844
|
-
|
759
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
845
760
|
},
|
846
761
|
|
847
762
|
/**
|
@@ -878,7 +793,7 @@ const steps = {
|
|
878
793
|
.eq(optionIndex)
|
879
794
|
.find('[role="math"]')
|
880
795
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
881
|
-
|
796
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
882
797
|
utilities.verifyElementVisibilityState(utilities.getNthElement(draggableOptionContainer.draggableOptionDragIcon(), optionIndex), 'exist');
|
883
798
|
},
|
884
799
|
|
@@ -914,19 +829,7 @@ const steps = {
|
|
914
829
|
.eq(optionIndex)
|
915
830
|
.find('[role="math"]')
|
916
831
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
917
|
-
|
918
|
-
},
|
919
|
-
|
920
|
-
/**
|
921
|
-
* Verifies the prompt container in the 'Specify correct answer' section.
|
922
|
-
* @param {Object[]} optionsArray - An array of objects containing index and optionText.
|
923
|
-
* @param {number} optionsArray[].index - The index of the prompt container.
|
924
|
-
* @param {string} optionsArray[].optionText - The expected text of the prompt container.
|
925
|
-
*/
|
926
|
-
verifyPromptContainerPreviewTab: (optionsArray) => {
|
927
|
-
optionsArray.forEach(({ index, optionText }) => {
|
928
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.promptContainerPreviewTab(), index), optionText);
|
929
|
-
});
|
832
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
930
833
|
},
|
931
834
|
|
932
835
|
verifyDropzoneNumeration: () => {
|
@@ -1069,20 +972,6 @@ const steps = {
|
|
1069
972
|
matchingPage.steps.enterTextInOptionInputField(optionArray);
|
1070
973
|
},
|
1071
974
|
|
1072
|
-
/**
|
1073
|
-
* @param {number} dropzoneIndex index of the dropzone in preview tab
|
1074
|
-
* @param {string[]} responseArray array of options set as correct responses in a category cell
|
1075
|
-
*/
|
1076
|
-
verifyDraggableOptionInDropzoneOfPreviewTab: (dropzoneIndex, responseArray) => {
|
1077
|
-
matchingPage.dropzonePreviewTab()
|
1078
|
-
.eq(dropzoneIndex)
|
1079
|
-
.within(() => {
|
1080
|
-
responseArray.forEach((response, count) => {
|
1081
|
-
utilities.verifyInnerText(utilities.getNthElement(cy.get('.item-content-container'), count), response);
|
1082
|
-
});
|
1083
|
-
});
|
1084
|
-
},
|
1085
|
-
|
1086
975
|
verifyEnableOuterBorderForQuestionCheckboxCheckedState: () => {
|
1087
976
|
matchingPage.enableOuterBorderForQuestionCheckbox()
|
1088
977
|
.should('be.checked');
|
@@ -1146,18 +1035,6 @@ const steps = {
|
|
1146
1035
|
});
|
1147
1036
|
},
|
1148
1037
|
|
1149
|
-
/**
|
1150
|
-
* Verifies the prompt container content in the preview tab.
|
1151
|
-
* @param {Object[]} optionsArray - Array of objects containing index and optionText.
|
1152
|
-
* @param {number} optionsArray[].index - The index of the prompt container element.
|
1153
|
-
* @param {string} optionsArray[].optionText - The expected text to verify against the prompt container element.
|
1154
|
-
*/
|
1155
|
-
verifyPromptContainerPreviewTab: (optionsArray) => {
|
1156
|
-
optionsArray.forEach(({ index, optionText }) => {
|
1157
|
-
utilities.verifyInnerText(utilities.getNthElement(matchingPage.promptContainerPreviewTab(), index), optionText);
|
1158
|
-
});
|
1159
|
-
},
|
1160
|
-
|
1161
1038
|
/**
|
1162
1039
|
* Verifies the correct answer dropzone enumeration.
|
1163
1040
|
* @param {string[]} enumerationArray - An array of enumeration values to verify.
|
@@ -2662,20 +2539,6 @@ const steps = {
|
|
2662
2539
|
.and('have.attr', 'stroke-width', '2');
|
2663
2540
|
break;
|
2664
2541
|
case "leftArrow":
|
2665
|
-
utilities.verifyElementVisibilityState(cy.wrap($element).find('line[data-name="Line 678"]'), 'visible');
|
2666
|
-
cy.wrap($element).find('g[data-name="Ellipse 341"]')
|
2667
|
-
.should('have.attr', 'fill', '#fff')
|
2668
|
-
.and('have.attr', 'stroke', '#6b8bff')
|
2669
|
-
.and('have.attr', 'stroke-width', '2');
|
2670
|
-
cy.wrap($element).find('path')
|
2671
|
-
.should('have.attr', 'fill', 'none')
|
2672
|
-
.and('have.attr', 'stroke', '#6b8bff')
|
2673
|
-
.and('have.attr', 'stroke-linecap', 'round')
|
2674
|
-
.and('have.attr', 'stroke-linejoin', 'round')
|
2675
|
-
.and('have.attr', 'stroke-width', '2');
|
2676
|
-
cy.wrap($element).find('circle')
|
2677
|
-
.should('exist');
|
2678
|
-
break;
|
2679
2542
|
case "rightArrow":
|
2680
2543
|
utilities.verifyElementVisibilityState(cy.wrap($element).find('line[data-name="Line 678"]'), 'visible');
|
2681
2544
|
cy.wrap($element).find('g[data-name="Ellipse 341"]')
|
@@ -2781,7 +2644,7 @@ const tests = {
|
|
2781
2644
|
* @param {number} optionFieldsCount - The expected number of option input fields.
|
2782
2645
|
*/
|
2783
2646
|
verifyOptionsSectionContents: ({ optionFieldsCount, optionLabel, questionType = null }) => {
|
2784
|
-
it(
|
2647
|
+
it(`'${optionLabel}' label should be displayed`, () => {
|
2785
2648
|
utilities.verifyInnerText(matchingPage.optionsLabel(), optionLabel);
|
2786
2649
|
});
|
2787
2650
|
|
@@ -126,19 +126,6 @@ const steps = {
|
|
126
126
|
.should('be.checked');
|
127
127
|
},
|
128
128
|
|
129
|
-
/**
|
130
|
-
* @description. Unchecks the options checkbox in the 'Specify correct answer' section for multiple selection questions.
|
131
|
-
* @param {number} optionIndex - The index of the option checkbox to be unchecked.
|
132
|
-
* @throws {Error} Will throw an error if the checkbox is not unchecked after the operation.
|
133
|
-
* @example - uncheckOptionsCheckboxInSpecifyCorrectAnswerSection(0);
|
134
|
-
*/
|
135
|
-
uncheckOptionsCheckboxInSpecifyCorrectAnswerSection: (optionIndex) => {
|
136
|
-
multipleSelectionPage.optionsCheckbox()
|
137
|
-
.eq(optionIndex)
|
138
|
-
.click()
|
139
|
-
.should('not.be.checked');
|
140
|
-
},
|
141
|
-
|
142
129
|
/**
|
143
130
|
* @description. Checks the options checkbox in the 'Preview tab' for multiple selection questions.
|
144
131
|
* @param {number} optionIndex - The index of the option checkbox to be checked.
|
@@ -569,7 +569,7 @@ const steps = {
|
|
569
569
|
.eq(index)
|
570
570
|
.then(($element) => {
|
571
571
|
expect($element.text()).to.be.oneOf(currentOptions);
|
572
|
-
currentOptions = currentOptions.filter((value) => value
|
572
|
+
currentOptions = currentOptions.filter((value) => value != $element.text())
|
573
573
|
});
|
574
574
|
};
|
575
575
|
numberLineLabelPage.steps.verifyOptionsAreRerandomized(optionArray);
|
@@ -1449,7 +1449,7 @@ const tests = {
|
|
1449
1449
|
numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0, 1]);
|
1450
1450
|
});
|
1451
1451
|
|
1452
|
-
it(`When the user resets the number line in the ${accordionName} accordion,
|
1452
|
+
it(`When the user resets the number line in the ${accordionName} accordion, 'Error: Please set a correct answer.' error message should be thrown along with an error icon on the '${accordionName}' accordion`, () => {
|
1453
1453
|
numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Reset');
|
1454
1454
|
numberLinePage.steps.confirmReset();
|
1455
1455
|
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import { commonComponents } from "./components";
|
2
|
-
import { createItemPage } from "./createItemPage";
|
3
1
|
import utilities from "../support/helpers/utilities";
|
4
|
-
import { createQuestionBasePage, additionalSettingsPanel, measuringToolComponent, toolVisibilityComponent, opacityComponent } from "./components";
|
2
|
+
import { commonComponents, createQuestionBasePage, additionalSettingsPanel, measuringToolComponent, toolVisibilityComponent, opacityComponent } from "./components";
|
5
3
|
import { selectQuestionResourceToolPage } from "./selectQuestionResourceToolPage";
|
6
4
|
import { dialogBoxBase } from "./dialogBoxBase";
|
7
5
|
|