itemengine-cypress-automation 1.0.249-repoUpdated26thSept-7283964.0 → 1.0.249
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -88,7 +88,6 @@ const selectors = {
|
|
88
88
|
dotPlotChartPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__ChartWrapper"]').eq(0),
|
89
89
|
numberLineAxisPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .number-line-wrapper').eq(0),
|
90
90
|
labelsNumberLineAxisPreviewTab: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__BottomWrapper"]').eq(0).find('.label-wrapper [class*="DotPlotChartstyles__Label"]'),
|
91
|
-
correctAnswersLabel: () => cy.get('[class*="Chartsstyle__CorrectAnswerHeader"]'),
|
92
91
|
//Correct answer section
|
93
92
|
correctAnswersLabel: () => cy.get('[class*="CorrectAnswerHeader"]:visible'),
|
94
93
|
dotPlotChartCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] [class*="DotPlotChartstyles__ChartWrapper"]').eq(1),
|
@@ -279,7 +278,7 @@ const steps = {
|
|
279
278
|
})
|
280
279
|
.then(() => {
|
281
280
|
cy.log(expectedLabelsIndex)
|
282
|
-
for (
|
281
|
+
for (let i = min; i < max; i++) {
|
283
282
|
chartsDotPlotPage.labelsNumberLineAxisSelectChartType()
|
284
283
|
.eq(expectedLabelsIndex[indexForArray])
|
285
284
|
.should('have.text', i)
|
@@ -667,7 +666,7 @@ const steps = {
|
|
667
666
|
}
|
668
667
|
})
|
669
668
|
.then(() => {
|
670
|
-
for (
|
669
|
+
for (let i = min; i < max; i++) {
|
671
670
|
chartsDotPlotPage.labelsNumberLineAxisSpecifyCorrectAnswer()
|
672
671
|
.eq(expectedLabelsIndex[indexForArray])
|
673
672
|
.should('have.text', i)
|
@@ -1300,7 +1299,7 @@ const steps = {
|
|
1300
1299
|
}
|
1301
1300
|
})
|
1302
1301
|
.then(() => {
|
1303
|
-
for (
|
1302
|
+
for (let i = min; i < max; i++) {
|
1304
1303
|
chartsDotPlotPage.labelsNumberLineAxisPreviewTab()
|
1305
1304
|
.eq(expectedLabelsIndex[indexForArray])
|
1306
1305
|
.should('have.text', i);
|
@@ -1561,7 +1560,7 @@ const steps = {
|
|
1561
1560
|
}
|
1562
1561
|
})
|
1563
1562
|
.then(() => {
|
1564
|
-
for (
|
1563
|
+
for (let i = min; i < max; i++) {
|
1565
1564
|
console.log(expectedLabelsIndex[i])
|
1566
1565
|
chartsDotPlotPage.labelsNumberLineAxisCorrectAnswerSection()
|
1567
1566
|
.eq(expectedLabelsIndex[i - 1])
|
@@ -1621,18 +1620,6 @@ const steps = {
|
|
1621
1620
|
.focus()
|
1622
1621
|
.blur();
|
1623
1622
|
},
|
1624
|
-
/**
|
1625
|
-
* @param {number} points - The expected points value to be verified.
|
1626
|
-
* @description Verifies the partial equal weights points per response score for a specific option in the specify correct answer section for a multi-response type question.
|
1627
|
-
*/
|
1628
|
-
verifyPartialEqualWeightsPointsPerResponseScore: (points) => {
|
1629
|
-
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.partialEqualWeightsPointsPerResponseScore(), points.toString());
|
1630
|
-
},
|
1631
|
-
|
1632
|
-
verifyPointsPerResponseLabel: () => {
|
1633
|
-
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), 'Points per response:\n-');
|
1634
|
-
utilities.verifyElementVisibilityState(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), 'visible');
|
1635
|
-
},
|
1636
1623
|
|
1637
1624
|
verifyPointsPerResponseLabel: () => {
|
1638
1625
|
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.pointsPerResponseLabel(), 'Points per response:\n-');
|
@@ -1676,74 +1663,6 @@ const tests = {
|
|
1676
1663
|
...autoScoredSpecifyCorrectAnswerSection.tests,
|
1677
1664
|
...chartsCommonComponent.tests,
|
1678
1665
|
|
1679
|
-
/**
|
1680
|
-
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
1681
|
-
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
1682
|
-
* @example - verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Correct');
|
1683
|
-
*/
|
1684
|
-
verifySpecifyCorrectAnswerAccordionContentsAndFunctionality: (accordionName) => {
|
1685
|
-
it('The number line axis should be displayed with labels from 1 to 6 with 20 divisions', () => {
|
1686
|
-
utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisSpecifyCorrectAnswer(), 'exist');
|
1687
|
-
chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisSpecifyCorrectAnswer({ min: 1, max: 6, interval: 0.25 });
|
1688
|
-
chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisSpecifyCorrectAnswer(0, 5, 4);
|
1689
|
-
});
|
1690
|
-
|
1691
|
-
it(`The user should be able to plot dots in dot column on number line axis in the specify correct answer section ${accordionName} accordion`, () => {
|
1692
|
-
steps.plotDotsInDotColumnSpecifyCorrectAnswer(2, { point: 0, min: 0, interval: 0.25, defaultDots: 0 })
|
1693
|
-
});
|
1694
|
-
|
1695
|
-
it(`When the user resets the number line in the ${accordionName} accordion, error message should not be thrown on the \'${accordionName}\' accordion`, () => {
|
1696
|
-
steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
1697
|
-
chartsDotPlotPage.steps.confirmReset();
|
1698
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
1699
|
-
if (accordionName == 'Correct') {
|
1700
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1701
|
-
.within(() => {
|
1702
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1703
|
-
});
|
1704
|
-
} else {
|
1705
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1706
|
-
.within(() => {
|
1707
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'notExist');
|
1708
|
-
});
|
1709
|
-
};
|
1710
|
-
});
|
1711
|
-
|
1712
|
-
tests.verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty(accordionName);
|
1713
|
-
|
1714
|
-
it('Accessibility of \'Correct\' accordion contents', { tags: 'a11y' }, () => {
|
1715
|
-
cy.checkAccessibility(chartsDotPlotPage.numberLineAxisSpecifyCorrectAnswer().parents('.ngie-accordion-detail'));
|
1716
|
-
});
|
1717
|
-
},
|
1718
|
-
|
1719
|
-
/**
|
1720
|
-
* @description Verifies the behavior of points input field and error messages when the points field is empty.
|
1721
|
-
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
1722
|
-
* @example - verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty('Correct');
|
1723
|
-
*/
|
1724
|
-
verifyAutoScoredPointsErrorMessageWhenPointsFieldIsEmpty: (accordionName) => {
|
1725
|
-
it(`When the user focuses in and out of the empty points input field, no points error message should be displayed below the points input field and error icon should not be displayed on the \'${accordionName}\' accordion`, () => {
|
1726
|
-
scoringSectionBaseEditTab.pointsInputField()
|
1727
|
-
.eq(0)
|
1728
|
-
.focus();
|
1729
|
-
scoringSectionBaseEditTab.pointsInputField()
|
1730
|
-
.eq(0)
|
1731
|
-
.blur();
|
1732
|
-
utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist')
|
1733
|
-
if (accordionName == 'Correct') {
|
1734
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
1735
|
-
.within(() => {
|
1736
|
-
autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
1737
|
-
});
|
1738
|
-
} else {
|
1739
|
-
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
1740
|
-
.within(() => {
|
1741
|
-
autoScoredSpecifyCorrectAnswerSection.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
1742
|
-
});
|
1743
|
-
};
|
1744
|
-
});
|
1745
|
-
},
|
1746
|
-
|
1747
1666
|
verifyContentsOfSpecifyCorrectAnswerSection: () => {
|
1748
1667
|
it('When user selects a scoring type then in the \'Correct\' accordion, all the contents should be displayed', () => {
|
1749
1668
|
chartsCommonComponent.steps.verifyGraphTitleInSpecifyCorrectAnswer('Graph title');
|
@@ -609,7 +609,7 @@ const tests = {
|
|
609
609
|
steps.verifyPointLabelSpecifyCorrectAnswer(1, 'Point 3');
|
610
610
|
});
|
611
611
|
|
612
|
-
it(`When the user resets the charts in the ${accordionName} accordion, error message should not be thrown on the
|
612
|
+
it(`When the user resets the charts in the ${accordionName} accordion, error message should not be thrown on the '${accordionName}' accordion`, () => {
|
613
613
|
chartsLinePage.steps.selectControlOptionSpecifyCorrectAnswer('Reset');
|
614
614
|
chartsLinePage.steps.confirmReset();
|
615
615
|
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
@@ -626,7 +626,7 @@ const tests = {
|
|
626
626
|
};
|
627
627
|
});
|
628
628
|
|
629
|
-
it(`When the user focuses in and out of the empty points input field, no points error message should be displayed below the points input field and error icon should not be displayed on the
|
629
|
+
it(`When the user focuses in and out of the empty points input field, no points error message should be displayed below the points input field and error icon should not be displayed on the '${accordionName}' accordion`, () => {
|
630
630
|
scoringSectionBaseEditTab.pointsInputField()
|
631
631
|
.eq(0)
|
632
632
|
.focus();
|
@@ -11,8 +11,7 @@ const selectors = {
|
|
11
11
|
alternativeAnswerButton: () => cy.get('[class*="AlternateAnswer"] button'),
|
12
12
|
correctAnswerAccordion: () => cy.get('[data-ngie-testid="correct-answer-accordion"]'),
|
13
13
|
alternativeAnswerAccordion: () => cy.get('[data-ngie-testid*="alternate"][data-ngie-testid*="accordion"]'),
|
14
|
-
|
15
|
-
correctAnswerAccordionLabel: () => cy.get('[class*="AnswerAccordionstyles__Label"]').eq(0),
|
14
|
+
correctAnswerAccordionLabel: () => cy.get('[data-ngie-testid="correct-answer-accordion"] [class*="AnswerAccordionstyles__Label"]'),
|
16
15
|
alternativeAnswerAccordionLabel: () => cy.get('[data-ngie-testid*="alternate"] [class*="AnswerAccordionstyles__Label"]'),
|
17
16
|
deleteAlternateAccordionButton: () => cy.get('.answer-accordion-label button'),
|
18
17
|
specifyCorrectAnswerErrorIcon: () => cy.get('[id="Icon_material-error"]'),
|
@@ -317,33 +316,15 @@ const tests = {
|
|
317
316
|
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
318
317
|
});
|
319
318
|
|
320
|
-
it('If user has not selected correct answer in the correct accordion, the
|
321
|
-
autoScoredSpecifyCorrectAnswerSection.
|
322
|
-
dialogBoxBase.steps.allFieldsRequiredWarningPopupContents();
|
319
|
+
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in disabled state', () => {
|
320
|
+
utilities.verifyElementDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
323
321
|
});
|
324
322
|
|
325
|
-
it('
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
it('\'Error: Please set a correct answer.\' validation error messages should be displayed in the correct accordion, points error message should not be displayed', () => {
|
331
|
-
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
332
|
-
.within(() => {
|
333
|
-
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.specifyCorrectAnswerErrorIcon(), 'visible');
|
334
|
-
});
|
335
|
-
scoringSectionBaseEditTab.pointsWrapper()
|
336
|
-
.within(() => {
|
337
|
-
utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
|
338
|
-
});
|
339
|
-
if (questionType != 'list ordering' && questionType != 'short text response' && questionType != 'text entry math' && questionType != 'text selection' && questionType != 'fill in the gaps with text' && questionType != 'fill in the gaps over image text') {
|
340
|
-
steps.verifySpecifyCorrectAnswerErrorMessage();
|
341
|
-
}
|
342
|
-
else if (questionType === 'short text response' || questionType === 'fill in the gaps with text' || questionType === 'fill in the gaps over image text' || questionType === 'text entry math') {
|
343
|
-
utilities.verifyInnerText(utilities.getNthElement(commonComponents.errorMessage(), -1), 'Error: Answer is required.');
|
344
|
-
} else if (questionType === 'text selection') {
|
345
|
-
utilities.verifyInnerText(commonComponents.alertMessage(), 'Error: Please set a correct answer.');
|
346
|
-
}
|
323
|
+
it('When user hovers over the disabled \'Add alternative answer\' button then \'Please set a correct answer\' message should be displayed in a tooltip', () => {
|
324
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
325
|
+
.realHover();
|
326
|
+
utilities.verifyInnerText(commonComponents.tooltipText(), 'Please set a correct answer');
|
327
|
+
utilities.hoverAwayFromElement(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
347
328
|
});
|
348
329
|
|
349
330
|
it('CSS of warning popup', { tags: 'css' }, () => {
|
@@ -371,13 +352,13 @@ const tests = {
|
|
371
352
|
it('When user tries to expand correct accordion when all the mandatory fields are not filled in the alternative accordion, then a warning popup should be displayed and on closing the popup, alternative 2 accordion should be in expanded state', () => {
|
372
353
|
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
373
354
|
.click();
|
374
|
-
|
375
|
-
|
355
|
+
//TODO: Need to add error message according to question types
|
356
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
376
357
|
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
377
358
|
.eq(1)
|
378
359
|
.should('have.attr', 'aria-expanded', 'true');
|
379
360
|
});
|
380
|
-
}
|
361
|
+
}
|
381
362
|
}
|
382
363
|
|
383
364
|
export const autoScoredSpecifyCorrectAnswerSection = {
|
@@ -196,16 +196,6 @@ const steps = {
|
|
196
196
|
.click();
|
197
197
|
},
|
198
198
|
|
199
|
-
/**
|
200
|
-
* @description edit y axis label
|
201
|
-
* @param {string} text text to be set as Y axis label
|
202
|
-
*/
|
203
|
-
editYAxisLabelInPreviewTab: (text) => {
|
204
|
-
barAndLineChartComponent.steps.clickOnYAxisLabelButtonInPreviewTab();
|
205
|
-
chartsCommonComponent.steps.addInputToChartLabelPopupInputField(text);
|
206
|
-
chartsCommonComponent.steps.saveGraphLabelPopup();
|
207
|
-
},
|
208
|
-
|
209
199
|
/**
|
210
200
|
* @description Verify Y axis label in correct answer section
|
211
201
|
* @param {string} yAxisLabel
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import utilities from "../../support/helpers/utilities";
|
2
|
-
import { autoScoredScoringPreviewTab } from "./autoScoredScoringPreviewTab";
|
3
2
|
import { autoScoredScoringSectionMultiResponseType } from "./autoScoredScoringSectionMultiResponseType";
|
4
3
|
import { commonComponents } from "./commonComponents";
|
5
|
-
import { correctIncorrectAnswerLabelComponent } from "./correctIncorrectAnswerLabelComponent";
|
6
4
|
|
7
5
|
const selectors = {
|
8
6
|
selectChartTypesTitle: () => cy.get('.options-label'),
|
@@ -13,7 +11,6 @@ const selectors = {
|
|
13
11
|
xAxisLabel: () => cy.get('[class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
|
14
12
|
selectChartTypeGraphTitleButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartsPreviewstyles__TopWrapper"] .title-container'),
|
15
13
|
selectChartTypeXAxisLabelButton: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
|
16
|
-
pointsInputField: () => cy.get('[class*="Chartsstyles__PointsFieldWrapper"] [class*="points-input-field"] input[type="text"]'),
|
17
14
|
selectChartTypesTooltipWrapper: () => cy.get('[class*="Chartsstyles__ChartsQuestionWrapper"] [class*="ChartTooltipstyles__ChartTooltipWrapper"]'),
|
18
15
|
|
19
16
|
//graph label popup
|
@@ -34,8 +31,7 @@ const selectors = {
|
|
34
31
|
previewTabGraphTitle: () => cy.get('[class*="question-preview-wrapper"] [class*="ChartsPreviewstyles__PreviewWrapper"] [class*="ChartsPreviewstyles__TopWrapper"] .title-container'),
|
35
32
|
previewTabXAxisLabelButton: () => cy.get('[class*="question-preview-wrapper"] [class*="ChartsPreviewstyles__PreviewWrapper"] [class*="ChartsPreviewstyles__BottomWrapper"] .title-container'),
|
36
33
|
tickIconWrapper: () => cy.get('[class*="tick-icon-wrapper"] svg'),
|
37
|
-
|
38
|
-
chartsContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .chart-container'),
|
34
|
+
chartsContainerPreviewTab: () => cy.get('[class*="question-preview-wrapper"] .chart-container'),
|
39
35
|
graphTitleCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .chart-top-wrapper .title-container').eq(1),
|
40
36
|
xAxisLabelCorrectAnswerSection: () => cy.get('[class*="question-preview-wrapper"] .chart-bottom-wrapper .title-container').eq(1),
|
41
37
|
partialDifferentWeightsPointsInputFieldLabel: () => cy.get('[class*="Chartsstyles__PartialPointsWrapper"] .partial-points-input-label'),
|
@@ -137,22 +133,6 @@ const steps = {
|
|
137
133
|
chartsCommonComponent.steps.saveGraphLabelPopup();
|
138
134
|
},
|
139
135
|
|
140
|
-
/**
|
141
|
-
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
142
|
-
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
143
|
-
* If the answer is correct, it also verifies the visibility of the correct icon;
|
144
|
-
* otherwise, it verifies the visibility of the incorrect icon.
|
145
|
-
*/
|
146
|
-
verifyCorrectIncorrectAnswerLabel: (answerStatus) => {
|
147
|
-
utilities.verifyElementVisibilityState(correctIncorrectAnswerLabelComponent.correctIncorrectAnswerBlock(), 'exist');
|
148
|
-
utilities.verifyInnerText(correctIncorrectAnswerLabelComponent.correctIncorrectStatusMessageText(), `Your answer is${answerStatus}`)
|
149
|
-
if (answerStatus === 'correct') {
|
150
|
-
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'visible');
|
151
|
-
} else {
|
152
|
-
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'visible');
|
153
|
-
}
|
154
|
-
},
|
155
|
-
|
156
136
|
verifyCorrectAnswerSectionNotExist: () => {
|
157
137
|
chartsCommonComponent.previewTabChartWrapper()
|
158
138
|
.eq(1)
|
@@ -244,10 +224,6 @@ const steps = {
|
|
244
224
|
.trigger('mouseout', { force: true });
|
245
225
|
},
|
246
226
|
|
247
|
-
verifyCorrectIncorrectStatusMessageNotExists: () => {
|
248
|
-
utilities.verifyElementVisibilityState(correctIncorrectAnswerLabelComponent.correctIncorrectAnswerBlock(), 'notExist');
|
249
|
-
},
|
250
|
-
|
251
227
|
/**
|
252
228
|
* @param {("correct" | "incorrect")} answerStatus - The status of the answer.
|
253
229
|
* @description Verifies the visibility and content of the correct/incorrect answer label block.
|
@@ -337,37 +337,6 @@ const tests = {
|
|
337
337
|
});
|
338
338
|
},
|
339
339
|
|
340
|
-
/**
|
341
|
-
* @param {string} color value of saturation color palette and opacity gradient palette
|
342
|
-
*/
|
343
|
-
verifySaturationAndOpacityGradientPalette: (color) => {
|
344
|
-
it('A \'Color saturation palette\' should be displayed on the color popup along with a color picker and the color picker should be set on the selected color', () => {
|
345
|
-
colorPopupComponent.steps.verifyColorSaturationPaletteAndPicker();
|
346
|
-
colorPopupComponent.steps.verifySaturationPaletteColor(color);
|
347
|
-
});
|
348
|
-
|
349
|
-
it('A \'Opacity gradient hue palette\' should be displayed on the color popup along with a Opacity gradient picker and the color picker should be set on the selected color', () => {
|
350
|
-
colorPopupComponent.steps.verifyOpacityGradientHuePaletteAndPicker();
|
351
|
-
colorPopupComponent.steps.verifyOpacityGradientPaletteColor(color);
|
352
|
-
});
|
353
|
-
},
|
354
|
-
|
355
|
-
/**
|
356
|
-
* @param {string} hueColor value of color hue palette in Rgb
|
357
|
-
* @param {string} hexColor value of hex input field in hex code
|
358
|
-
*/
|
359
|
-
verifyColorHuePaletteAndHexInputField: (hueColor, hexColor) => {
|
360
|
-
it('A \'Color hue palette\' should be displayed on the color popup along with a color picker and the color picker should be set on the selected color', () => {
|
361
|
-
colorPopupComponent.steps.verifyColorHuePaletteAndPicker();
|
362
|
-
colorPopupComponent.steps.verifyHuePaletteColor(hueColor);
|
363
|
-
});
|
364
|
-
|
365
|
-
it('A \'Hex\' label and input field with pre-filled hex code value of the selected color should be displayed', () => {
|
366
|
-
colorPopupComponent.steps.verifyHexLabelAndInputField();
|
367
|
-
colorPopupComponent.steps.verifyHexValue(hexColor);
|
368
|
-
});
|
369
|
-
},
|
370
|
-
|
371
340
|
verifyColorPopupFunctionality: () => {
|
372
341
|
it('When the user changes the color using hex code, the color in color saturation palette and color hue palette should change', () => {
|
373
342
|
colorPopupComponent.steps.addInputToHexInputField('#ff0000');
|
@@ -1,6 +1,5 @@
|
|
1
1
|
const selectors = {
|
2
2
|
connectorStyleLabel: () => cy.get('[class*="connector-style-label"]'),
|
3
|
-
connectorEndPointShapeLabel: () => cy.get('[class*="StyleAndLayoutCustomizationstyles__SubSectionLabel"]').eq(2),
|
4
3
|
circleEndPointShapeButton: () => cy.get('button[aria-label="circle connector end point shape"]'),
|
5
4
|
squareEndPointShapeButton: () => cy.get('button[aria-label="square connector end point shape"]'),
|
6
5
|
diamondEndPointShapeButton: () => cy.get('button[aria-label="diamond connector end point shape"]'),
|
@@ -130,15 +130,9 @@ const steps = {
|
|
130
130
|
createQuestionBasePage.canvasLabel()
|
131
131
|
.parents('[class*="CanvasLabelWrapper"]')
|
132
132
|
.within(() => {
|
133
|
-
|
134
|
-
//utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
133
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'notExist');
|
135
134
|
});
|
136
|
-
} else if (field === 'Please enter all questions') {
|
137
|
-
gridQuestionCommonComponent.specifyRowsAndColumnsTableHelpText()
|
138
|
-
.within(() => {
|
139
|
-
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
140
|
-
});
|
141
|
-
} else if (field === 'Please enter all prompts') {
|
135
|
+
} else if (field === 'Please enter all questions' || field === 'Please enter all prompts') {
|
142
136
|
gridQuestionCommonComponent.specifyRowsAndColumnsTableHelpText()
|
143
137
|
.within(() => {
|
144
138
|
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
@@ -220,7 +220,7 @@ const tests = {
|
|
220
220
|
customizeSpecialCharacterComponent.steps.clickOnSpecialCharactersCategoryTile(specialCharacters[0].categoryName);
|
221
221
|
customizeSpecialCharacterComponent.steps.verifySpecialCharacterCategoryTileIsNotSelected(specialCharacters[0].categoryName);
|
222
222
|
customizeSpecialCharacterComponent.steps.clickOnCustomizeSpecialCharactersPreviewButton();
|
223
|
-
//
|
223
|
+
//customizeSpecialCharacterComponent.steps.verifySpecialCharactersPreviewPopupInEditTab(newSelectedCategoryList);
|
224
224
|
//Add this verification once https://redmine.zeuslearning.com/issues/555008 is resolved
|
225
225
|
cy.log('Post-step: Closing preview popup')
|
226
226
|
dialogBoxBase.steps.closeWarningPopup();
|
@@ -81,7 +81,7 @@ const steps = {
|
|
81
81
|
.eq(index)
|
82
82
|
.then(($element) => {
|
83
83
|
expect($element.text()).to.be.oneOf(currentOptions);
|
84
|
-
currentOptions = currentOptions.filter((value) => value
|
84
|
+
currentOptions = currentOptions.filter((value) => value != $element.text());
|
85
85
|
});
|
86
86
|
};
|
87
87
|
});
|
@@ -134,42 +134,6 @@ const steps = {
|
|
134
134
|
});
|
135
135
|
},
|
136
136
|
|
137
|
-
/**
|
138
|
-
* @description type in the equation editor input field
|
139
|
-
* @param {string} text - text to be entered in the input field
|
140
|
-
*/
|
141
|
-
enterTextInPreviewInputField: (text) => {
|
142
|
-
equationEditorFlyout.previewInputField()
|
143
|
-
.type(text);
|
144
|
-
},
|
145
|
-
|
146
|
-
clickOnOkButton: () => {
|
147
|
-
equationEditorFlyout.buttonOk()
|
148
|
-
.click();
|
149
|
-
},
|
150
|
-
|
151
|
-
/**
|
152
|
-
* @description type in the equation editor input field first empty box
|
153
|
-
* @param {string} text - text to be entered in the first empty box of field
|
154
|
-
*/
|
155
|
-
enterTextInFirstEmptyBox: (textArray) => {
|
156
|
-
textArray.forEach((text) => {
|
157
|
-
equationEditorFlyout.inputFieldFirstEmptyBox()
|
158
|
-
.click()
|
159
|
-
.type(text)
|
160
|
-
});
|
161
|
-
},
|
162
|
-
|
163
|
-
/**
|
164
|
-
* @description type in the equation editor cursor input field
|
165
|
-
* @param {string} text - text to be entered at the cursor
|
166
|
-
*/
|
167
|
-
enterTextAtInputFieldCursor: (text) => {
|
168
|
-
equationEditorFlyout.inputFieldCursor()
|
169
|
-
.click()
|
170
|
-
.type(text)
|
171
|
-
},
|
172
|
-
|
173
137
|
verifyDefaultEquationEditorInputFieldWithCursor: () => {
|
174
138
|
equationEditorFlyout.previewInputField()
|
175
139
|
.verifyInnerText('')
|
@@ -562,7 +562,7 @@ const steps = {
|
|
562
562
|
} else {
|
563
563
|
essayResponseCommonComponents.previewTabToolbarOption(toolbarOption)
|
564
564
|
.should('have.attr', 'aria-pressed', 'true');
|
565
|
-
}
|
565
|
+
}
|
566
566
|
essayResponseCommonComponents.responseField()
|
567
567
|
.verifyInnerHTML(formattedText);
|
568
568
|
}
|
@@ -583,7 +583,7 @@ const tests = {
|
|
583
583
|
} else if (toolbarOption == 'Remove Format') {
|
584
584
|
essayResponseCommonComponents.steps.enterInputInResponseField('{selectAll}');
|
585
585
|
essayResponseCommonComponents.steps.selectPreviewTabToolbarOption('Bold (Ctrl+B)');
|
586
|
-
}
|
586
|
+
}
|
587
587
|
essayResponseCommonComponents.responseField()
|
588
588
|
.then(($originalText) => {
|
589
589
|
originalText = $originalText[0].innerHTML
|
@@ -691,18 +691,6 @@ const steps = {
|
|
691
691
|
});
|
692
692
|
},
|
693
693
|
|
694
|
-
/**
|
695
|
-
* Verifies the border color of the dropdown at the specified index.
|
696
|
-
*
|
697
|
-
* @param {number} dropdownIndex - The index of the dropdown to verify.
|
698
|
-
* @param {string} borderValue - The expected border color value in CSS format.
|
699
|
-
*/
|
700
|
-
verifyDropdownBorderColor: (dropdownIndex, borderValue) => {
|
701
|
-
utilities.verifyCSS(utilities.getNthElement(fillInTheGapsDropdownCommonComponent.dropdownPreviewTab(), dropdownIndex), {
|
702
|
-
'border': borderValue
|
703
|
-
});
|
704
|
-
},
|
705
|
-
|
706
694
|
/**
|
707
695
|
* Verifies the border style of the dropdown at the specified index.
|
708
696
|
*
|
@@ -764,10 +752,9 @@ const tests = {
|
|
764
752
|
});
|
765
753
|
|
766
754
|
//Note: the expand and close dropdown does not work hence selecting one option here, the error message appears
|
767
|
-
it('When user expands and collapses the dropdown without selecting any option, \'Error: Please set a correct answer.\' error message should be displayed', () => {
|
755
|
+
it('When user expands and collapses the dropdown without selecting any option, \'Error: Please set a correct answer.\' error message should not be displayed', () => {
|
768
756
|
fillInTheGapsDropdownCommonComponent.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, 'Flower');
|
769
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), '
|
770
|
-
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Please set a correct answer.');
|
757
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
771
758
|
});
|
772
759
|
|
773
760
|
it('When the user selects any option from the dropdown, then error message should disappear and that option should be displayed on the dropdown', () => {
|