itemengine-cypress-automation 1.0.249-repoUpdated26thSept-d6c4173.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/additionalSettingsBasic.js +0 -2
- 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/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/fillInTheGapsTextCommonComponent.js +1 -2
- package/cypress/pages/components/gridQuestionCommonComponent.js +26 -34
- package/cypress/pages/components/imageCanvasComponent.js +7 -9
- 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
@@ -46,9 +46,7 @@ const selectors = {
|
|
46
46
|
answerInputFieldSpecifyCorrectAnswerSectionWrapper: () => cy.get('.input-wrapper'),
|
47
47
|
exactRadioOptionLabel: () => cy.get('.ngie-radio-label').eq(0),
|
48
48
|
containsTextRadioOptionLabel: () => cy.get('.ngie-radio-label').eq(1),
|
49
|
-
caseSensitiveCheckboxLabel: () => cy.get('[data-ngie-testid="case-sensitive-checkbox"] .MuiFormControlLabel-label'),
|
50
49
|
ignoreSpacesBeforeAndAfterCheckboxLabel: () => cy.get('[data-ngie-testid="ignore-spaces-before-and-after-checkbox"] .MuiFormControlLabel-label'),
|
51
|
-
caseSensitiveCheckbox: () => cy.get('[data-ngie-testid="case-sensitive-checkbox"] input'),
|
52
50
|
ignoreSpacesBeforeAndAfterCheckbox: () => cy.get('[data-ngie-testid="ignore-spaces-before-and-after-checkbox"] input'),
|
53
51
|
warningMessage: () => cy.get('.disabled-wrapper-cls [class*="DisabledTextWrapper"]'),
|
54
52
|
warningMessageContainer: () => cy.get('.disabled-wrapper-cls'),
|
@@ -907,7 +905,7 @@ const tests = {
|
|
907
905
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Petals');
|
908
906
|
});
|
909
907
|
|
910
|
-
it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
|
908
|
+
it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should not be displayed', () => {
|
911
909
|
shortTextResponsePage.steps.clearAndFocusOutOfSpecifyCorrectAnswerInputField();
|
912
910
|
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
913
911
|
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
|
@@ -101,11 +101,11 @@ const steps = {
|
|
101
101
|
.should('not.have.class', 'disable');
|
102
102
|
},
|
103
103
|
|
104
|
-
|
104
|
+
/**
|
105
105
|
* @description Clicks on a button in the calculator.
|
106
106
|
* @param {string} button - The button to click. Options: ('all clear', 'delete', 'division', 'addition', 'multiplication', 'subtraction', 'left arrow', 'right arrow', 'equal to', 'left parenthesis', 'right parenthesis', 'pi', 'square', 'reciprocal', 'percentage', 'square root', 'exponent', 'sign change', 'decimal', 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'undo', 'redo')
|
107
107
|
*/
|
108
|
-
|
108
|
+
clickOnACalculatorButton: (button) => {
|
109
109
|
switch (button) {
|
110
110
|
case 'all clear':
|
111
111
|
simpleCalculatorPage.allClearButton()
|
@@ -166,16 +166,6 @@ const steps = {
|
|
166
166
|
.click()
|
167
167
|
},
|
168
168
|
|
169
|
-
/**
|
170
|
-
* Verifies that the options radio button in the preview tab is in the unchecked state for a specified option index.
|
171
|
-
* @param {number} optionIndex - The index of the option to verify in the preview tab.
|
172
|
-
*/
|
173
|
-
verifyOptionInPreviewTabUncheckedState: (optionIndex) => {
|
174
|
-
singleSelectionPage.optionRadioButtonPreviewTab()
|
175
|
-
.eq(optionIndex)
|
176
|
-
.should('not.be.checked');
|
177
|
-
},
|
178
|
-
|
179
169
|
/**
|
180
170
|
* Verifies the presence of the correct option icon in the grading view for a specified option index.
|
181
171
|
* @param {number} optionIndex - The index of the option to verify in the grading view.
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { equationEditorCategoriesAndSymbols } from "../fixtures/equationEditorCategoriesAndSymbols ";
|
2
1
|
import { decimalSeparator, evaluationMethods } from "../fixtures/evaluationMethodsAndCustomSettings"
|
3
2
|
import utilities from "../support/helpers/utilities"
|
4
3
|
import { questionInstructionsComponent, questionInputFieldComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, autoScoredScoringPreviewTab, equationEditorFlyout, autoScoredStudentViewSettings, correctIncorrectAnswerLabelComponent, ckEditorToolbar, colorPopupComponent } from "./components"
|
@@ -721,13 +720,7 @@ const steps = {
|
|
721
720
|
utilities.verifyElementCount(textEntryMathPage.correctAnswersContainerResponse(), correctAnswerArray.length);
|
722
721
|
correctAnswerArray.forEach((correctAnswer, index) => {
|
723
722
|
utilities.verifyTextContent(utilities.getNthElement(textEntryMathPage.correctAnswersContainerResponseNumeration(), index), index + 1);
|
724
|
-
textEntryMathPage.correctAnswersContainerResponse()
|
725
|
-
.eq(index)
|
726
|
-
.then(($element) => {
|
727
|
-
let actualText = $element[0].innerText;
|
728
|
-
const actualAnswer = actualText.replace(/\u200B/g, '').replace(/\n/g, '').trim();
|
729
|
-
expect(actualAnswer).to.equal(correctAnswer);
|
730
|
-
});
|
723
|
+
utilities.verifyTextContent(utilities.getNthElement(textEntryMathPage.correctAnswersContainerResponse(), index), correctAnswer);
|
731
724
|
});
|
732
725
|
},
|
733
726
|
|
@@ -33,50 +33,28 @@ const steps = {
|
|
33
33
|
|
34
34
|
verifyResponsePointerStyleInPreviewTab: (style, responseIndex) => {
|
35
35
|
const getPosition = (option) => {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
case 'top left':
|
48
|
-
return { top: '-21.5px', left: '-28px' };
|
49
|
-
case 'left':
|
50
|
-
return { top: '-28px', left: '-27px' };
|
51
|
-
case 'bottom left':
|
52
|
-
return { top: '-24.5px', left: '-27px' };
|
53
|
-
}
|
36
|
+
const positions = {
|
37
|
+
'bottom': { top: '-24px', left: '-3px' },
|
38
|
+
'bottom right': { top: '-29.5px', left: '-36.5px' },
|
39
|
+
'right': { top: '-21px', left: '-37px' },
|
40
|
+
'top right': { top: '-23.5px', left: '-35.5px' },
|
41
|
+
'top': { top: '-22px', left: '9px' },
|
42
|
+
'top left': { top: '-21.5px', left: '-28px' },
|
43
|
+
'left': { top: '-28px', left: '-27px' },
|
44
|
+
'bottom left': { top: '-24.5px', left: '-27px' }
|
45
|
+
};
|
46
|
+
return positions[option];
|
54
47
|
}
|
55
48
|
const expectedPosition = getPosition(style);
|
56
|
-
|
57
|
-
|
58
|
-
.eq(responseIndex)
|
59
|
-
.should('have.css', 'margin-top', expectedPosition.top)
|
60
|
-
.and('have.css', 'margin-left', expectedPosition.left);
|
61
|
-
}
|
62
|
-
else if (style == 'bottom right' || style == 'right' || style == 'top right') {
|
63
|
-
textEntryMathWithImagePage.pointerPreviewTab()
|
64
|
-
.eq(responseIndex)
|
65
|
-
.should('have.css', 'margin-top', expectedPosition.top)
|
66
|
-
.and('have.css', 'margin-left', expectedPosition.left);
|
67
|
-
}
|
68
|
-
else if (style == 'none') {
|
49
|
+
const pointer = textEntryMathWithImagePage.pointerPreviewTab().eq(responseIndex);
|
50
|
+
if (style === 'none') {
|
69
51
|
textEntryMathWithImagePage.responseFieldPreviewTab()
|
70
52
|
.eq(responseIndex)
|
71
53
|
.within(() => {
|
72
|
-
|
73
|
-
.should('not.exist')
|
54
|
+
pointer.should('not.exist');
|
74
55
|
});
|
75
|
-
}
|
76
|
-
|
77
|
-
textEntryMathWithImagePage.pointerPreviewTab()
|
78
|
-
.eq(responseIndex)
|
79
|
-
.should('have.css', 'margin-top', expectedPosition.top)
|
56
|
+
} else {
|
57
|
+
pointer.should('have.css', 'margin-top', expectedPosition.top)
|
80
58
|
.and('have.css', 'margin-left', expectedPosition.left);
|
81
59
|
}
|
82
60
|
},
|
@@ -1,13 +1,16 @@
|
|
1
1
|
import constants from "../fixtures/constants";
|
2
2
|
import utilities from "../support/helpers/utilities";
|
3
|
-
import { createQuestionBasePage, autoScoredScoringPreviewTab, scoringSectionBaseEditTab,
|
3
|
+
import { createQuestionBasePage, autoScoredScoringPreviewTab, scoringSectionBaseEditTab, questionInstructionsComponent, autoScoredStudentViewSettings, correctIncorrectAnswerLabelComponent, autoScoredSpecifyCorrectAnswerSection, autoScoredScoringSectionMultiResponseType, setPointsPopupBase, commonComponents, ckEditorToolbar, equationEditorFlyout, studentViewSettingsLabelComponent, enableOuterBorderComponent, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent, colorPopupComponent, showAvailableOptionsToStudents, showStudentMaximumNumberOfPossibleSelections, singleMultipleSelectionModeComponent } from "./components";
|
4
4
|
import { dialogBoxBase } from "./dialogBoxBase";
|
5
|
-
import { singleMultipleSelectionModeComponent } from "./components";
|
6
5
|
const css = Cypress.env('css');
|
7
6
|
const colorLibrary = css.textSelectionColorLibrary;
|
8
7
|
|
9
8
|
const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.', 'Birds are creatures with feathers, beaks, and the ability to lay eggs.', 'Many animal species are undocumented even today.', 'Research is going on to discover new species in the far corners of the earth']
|
10
9
|
|
10
|
+
const sentenceTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water.', 'As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology.', 'Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.', 'Birds are creatures with feathers, beaks, and the ability to lay eggs.']
|
11
|
+
|
12
|
+
const wordTextArray = ['Nature','nurtures', 'life', 'and', 'brings', 'endless', 'beauty.']
|
13
|
+
|
11
14
|
const selectors = {
|
12
15
|
...questionInstructionsComponent,
|
13
16
|
...autoScoredScoringSectionMultiResponseType,
|
@@ -245,7 +248,7 @@ const steps = {
|
|
245
248
|
textSelectionPage.questionTextWrapperPreviewTab()
|
246
249
|
.find('span[role="math"]')
|
247
250
|
.should('have.attr', 'aria-label', constants.CKEditorInputFieldEnteredEquationAriaLabel)
|
248
|
-
|
251
|
+
// .contains(constants.CKEditorInputFieldEnteredEquationText); ;
|
249
252
|
},
|
250
253
|
|
251
254
|
verifyLinkInPreviewTab: () => {
|
@@ -435,11 +438,7 @@ const steps = {
|
|
435
438
|
* @description verifies the style of the selected options in specify possible option section
|
436
439
|
*/
|
437
440
|
verifyBorderStyleInSpecifyPossibleOptions: (textSelectionBorderStyle, index, border) => {
|
438
|
-
if (textSelectionBorderStyle === 'outline') {
|
439
|
-
utilities.verifyCSS(textSelectionPage.specifyPossibleOptionsTextSpans().eq(index), {
|
440
|
-
'border-bottom-style': border,
|
441
|
-
});
|
442
|
-
} else if (textSelectionBorderStyle === 'underline') {
|
441
|
+
if (textSelectionBorderStyle === 'outline' || textSelectionBorderStyle === 'underline') {
|
443
442
|
utilities.verifyCSS(textSelectionPage.specifyPossibleOptionsTextSpans().eq(index), {
|
444
443
|
'border-bottom-style': border,
|
445
444
|
});
|
@@ -456,11 +455,7 @@ const steps = {
|
|
456
455
|
* @description verifies the style of the selected options in specify correct answer section
|
457
456
|
*/
|
458
457
|
verifyBorderStyleInSpecifyCorrectAnswer: (textSelectionBorderStyle, index, border) => {
|
459
|
-
if (textSelectionBorderStyle === 'outline') {
|
460
|
-
utilities.verifyCSS(textSelectionPage.specifyCorrectAnswerTextSpans().eq(index), {
|
461
|
-
'border-bottom-style': border,
|
462
|
-
});
|
463
|
-
} else if (textSelectionBorderStyle === 'underline') {
|
458
|
+
if (textSelectionBorderStyle === 'outline' || textSelectionBorderStyle === 'underline') {
|
464
459
|
utilities.verifyCSS(textSelectionPage.specifyCorrectAnswerTextSpans().eq(index), {
|
465
460
|
'border-bottom-style': border,
|
466
461
|
});
|
@@ -477,11 +472,7 @@ const steps = {
|
|
477
472
|
* @description verifies the style of the selected options in preview section
|
478
473
|
*/
|
479
474
|
verifyBorderStyleInPreview: (textSelectionBorderStyle, index, border) => {
|
480
|
-
if (textSelectionBorderStyle === 'outline') {
|
481
|
-
utilities.verifyCSS(textSelectionPage.previewTabQuestionTextSpans().eq(index), {
|
482
|
-
'border-bottom-style': border,
|
483
|
-
});
|
484
|
-
} else if (textSelectionBorderStyle === 'underline') {
|
475
|
+
if (textSelectionBorderStyle === 'outline' || textSelectionBorderStyle === 'underline') {
|
485
476
|
utilities.verifyCSS(textSelectionPage.previewTabQuestionTextSpans().eq(index), {
|
486
477
|
'border-bottom-style': border,
|
487
478
|
});
|
@@ -903,34 +894,34 @@ const steps = {
|
|
903
894
|
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[5]);
|
904
895
|
},
|
905
896
|
|
906
|
-
|
907
|
-
|
908
|
-
|
909
|
-
|
910
|
-
|
911
|
-
textSelectionPage.
|
912
|
-
|
913
|
-
|
914
|
-
|
897
|
+
setQuestionAndOptionsInEditTabForSentence: () => {
|
898
|
+
textSelectionPage.steps.clearQuestionInputField();
|
899
|
+
sentenceTextArray.forEach((sentenceText) => {
|
900
|
+
textSelectionPage.steps.addInputToQuestionInputField(`${sentenceText}{enter}`);
|
901
|
+
});
|
902
|
+
textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
|
903
|
+
textSelectionPage.steps.switchTextSelectionMode('Sentence');
|
904
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[0]);
|
905
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[1]);
|
906
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[2]);
|
907
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[3]);
|
908
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[4]);
|
909
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(sentenceTextArray[5]);
|
915
910
|
},
|
916
911
|
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
verifyNonOptionTextIsNotInteractiveInPreviewTab: (optionText) => {
|
922
|
-
utilities.hoverOverElement(textSelectionPage.questionTextPreviewTab().contains(optionText));
|
923
|
-
utilities.verifyCSS(textSelectionPage.questionTextPreviewTab().contains(optionText), {
|
924
|
-
'background-color': css.color.transparent
|
912
|
+
setQuestionAndOptionsInEditTabForWord: () => {
|
913
|
+
textSelectionPage.steps.clearQuestionInputField();
|
914
|
+
wordTextArray.forEach((wordText) => {
|
915
|
+
textSelectionPage.steps.addInputToQuestionInputField(`${wordText} `);
|
925
916
|
});
|
926
|
-
|
927
|
-
textSelectionPage.
|
928
|
-
|
929
|
-
|
930
|
-
textSelectionPage.
|
931
|
-
|
932
|
-
|
933
|
-
|
917
|
+
textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
|
918
|
+
textSelectionPage.steps.switchTextSelectionMode('Word');
|
919
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[0]);
|
920
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[1]);
|
921
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[2]);
|
922
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[3]);
|
923
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[4]);
|
924
|
+
textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(wordTextArray[5]);
|
934
925
|
},
|
935
926
|
|
936
927
|
/**
|
@@ -181,11 +181,6 @@ const steps = {
|
|
181
181
|
.click();
|
182
182
|
},
|
183
183
|
|
184
|
-
retakeRecording: () => {
|
185
|
-
videoResponsePage.retakeRecordingButton()
|
186
|
-
.click();
|
187
|
-
},
|
188
|
-
|
189
184
|
/**
|
190
185
|
* @description Records a video and saves it for a specified duration.
|
191
186
|
* @param {number} time - The duration (in milliseconds) for which the video should be recorded.
|
package/package.json
CHANGED
@@ -1,318 +0,0 @@
|
|
1
|
-
import utilities from "../../support/helpers/utilities";
|
2
|
-
const css = Cypress.env('css');
|
3
|
-
|
4
|
-
const selectors = {
|
5
|
-
//Default
|
6
|
-
defaultLabel: () => cy.get('[class*=ColorStateComponentstyles__ColorStateLabel]').eq(0),
|
7
|
-
defaultHighlightWrapper: () => cy.get('[class*=ColorStateWrapper]').eq(0),
|
8
|
-
defaultFillColorLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(0),
|
9
|
-
defaultBorderColorLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(1),
|
10
|
-
defaultFillColorOpacityLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(0),
|
11
|
-
defaultBorderColorOpacityLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(1),
|
12
|
-
defaultFillColorHexCodeLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(0),
|
13
|
-
defaultBorderColorHexCodeLabel: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(1),
|
14
|
-
defaultFillColorBlock: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('.color-picker-block').eq(0),
|
15
|
-
defaultBorderColorBlock: () => customizeHighlightPropertiesComponent.defaultHighlightWrapper().find('.color-picker-block').eq(1),
|
16
|
-
//Hover
|
17
|
-
hoverLabel: () => cy.get('[class*=ColorStateComponentstyles__ColorStateLabel]').eq(1),
|
18
|
-
hoverHighlightWrapper: () => cy.get('[class*=ColorStateWrapper]').eq(1),
|
19
|
-
hoverFillColorLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(0),
|
20
|
-
hoverBorderColorLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(1),
|
21
|
-
hoverFillColorOpacityLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(0),
|
22
|
-
hoverBorderColorOpacityLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(1),
|
23
|
-
hoverFillColorHexCodeLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(0),
|
24
|
-
hoverBorderColorHexCodeLabel: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(1),
|
25
|
-
hoverFillColorBlock: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('.color-picker-block').eq(0),
|
26
|
-
hoverBorderColorBlock: () => customizeHighlightPropertiesComponent.hoverHighlightWrapper().find('.color-picker-block').eq(1),
|
27
|
-
//Active
|
28
|
-
activeLabel: () => cy.get('[class*=ColorStateComponentstyles__ColorStateLabel]').eq(2),
|
29
|
-
activeHighlightWrapper: () => cy.get('[class*=ColorStateWrapper]').eq(2),
|
30
|
-
activeFillColorLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(0),
|
31
|
-
activeBorderColorLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*="ColorTypeWrapper"]').eq(1),
|
32
|
-
activeFillColorOpacityLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(0),
|
33
|
-
activeBorderColorOpacityLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*=ColorStateComponentstyles__OpacityLabel]').eq(1),
|
34
|
-
activeFillColorHexCodeLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(0),
|
35
|
-
activeBorderColorHexCodeLabel: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('[class*=ColorStateComponentstyles__HexColorLabel]').eq(1),
|
36
|
-
activeFillColorBlock: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('.color-picker-block').eq(0),
|
37
|
-
activeBorderColorBlock: () => customizeHighlightPropertiesComponent.activeHighlightWrapper().find('.color-picker-block').eq(1),
|
38
|
-
applyPatternOnActiveStateLabel: () => cy.get('[class*=CustomizeHighlightPropertiesstyles] .check-btn-label'),
|
39
|
-
applyPatternOnActiveStateCheckbox: () => cy.get('[class*=CustomizeHighlightPropertiesstyles] input')
|
40
|
-
}
|
41
|
-
|
42
|
-
const steps = {
|
43
|
-
verifyApplyPatternOnActiveStateCheckboxIsChecked: () => {
|
44
|
-
customizeHighlightPropertiesComponent.applyPatternOnActiveStateCheckbox()
|
45
|
-
.should('be.checked');
|
46
|
-
},
|
47
|
-
|
48
|
-
verifyApplyPatternOnActiveStateCheckboxIsUnchecked: () => {
|
49
|
-
customizeHighlightPropertiesComponent.applyPatternOnActiveStateCheckbox()
|
50
|
-
.should('not.be.checked');
|
51
|
-
},
|
52
|
-
|
53
|
-
verifyCSSOfApplyPatternOnActiveState: () => {
|
54
|
-
utilities.verifyCSS(customizeHighlightPropertiesComponent.applyPatternOnActiveStateLabel(), {
|
55
|
-
'color': css.color.labelText,
|
56
|
-
'font-size': css.fontSize.normal,
|
57
|
-
'font-weight': css.fontWeight.regular
|
58
|
-
});
|
59
|
-
utilities.verifyCSS(customizeHighlightPropertiesComponent.applyPatternOnActiveStateCheckbox().parents('.MuiIconButton-label').find('svg'), {
|
60
|
-
'fill': css.color.activeButtons
|
61
|
-
});
|
62
|
-
},
|
63
|
-
|
64
|
-
/**
|
65
|
-
* @param {string} color background color of color block
|
66
|
-
* @description this function verfies the background color of default fill color block
|
67
|
-
*/
|
68
|
-
verifyDefaultFillColorBlockColor: (color) => {
|
69
|
-
customizeHighlightPropertiesComponent.defaultFillColorBlock()
|
70
|
-
.should('have.css', 'background-color', color);
|
71
|
-
},
|
72
|
-
|
73
|
-
/**
|
74
|
-
* @param {string} color background color of color block
|
75
|
-
* @description this function verfies the background color of default border color block
|
76
|
-
*/
|
77
|
-
verifyDefaultBorderColorBlockColor: (color) => {
|
78
|
-
customizeHighlightPropertiesComponent.defaultBorderColorBlock()
|
79
|
-
.should('have.css', 'background-color', color);
|
80
|
-
},
|
81
|
-
|
82
|
-
/**
|
83
|
-
* @param {string} color background color of color block
|
84
|
-
* @description this function verfies the background color of active fill color block
|
85
|
-
*/
|
86
|
-
verifyActiveFillColorBlockColor: (color) => {
|
87
|
-
customizeHighlightPropertiesComponent.activeFillColorBlock()
|
88
|
-
.should('have.css', 'background-color', color);
|
89
|
-
},
|
90
|
-
|
91
|
-
/**
|
92
|
-
* @param {string} color background color of color block
|
93
|
-
* @description this function verfies the background color of active border color block
|
94
|
-
*/
|
95
|
-
verifyActiveBorderColorBlockColor: (color) => {
|
96
|
-
customizeHighlightPropertiesComponent.activeBorderColorBlock()
|
97
|
-
.should('have.css', 'background-color', color);
|
98
|
-
},
|
99
|
-
|
100
|
-
/**
|
101
|
-
* @param {string} color background color of color block
|
102
|
-
* @description this function verfies the background color of hover fill color block
|
103
|
-
*/
|
104
|
-
verifyHoverFillColorBlockColor: (color) => {
|
105
|
-
customizeHighlightPropertiesComponent.hoverFillColorBlock()
|
106
|
-
.should('have.css', 'background-color', color);
|
107
|
-
},
|
108
|
-
|
109
|
-
/**
|
110
|
-
* @param {string} color background color of color block
|
111
|
-
* @description this function verfies the background color of hover border color block
|
112
|
-
*/
|
113
|
-
verifyHoverBorderColorBlockColor: (color) => {
|
114
|
-
customizeHighlightPropertiesComponent.hoverBorderColorBlock()
|
115
|
-
.should('have.css', 'background-color', color);
|
116
|
-
},
|
117
|
-
|
118
|
-
/**
|
119
|
-
* @param {string} hexCode hexcode label of color block
|
120
|
-
* @description this function verfies the hexcode label of default fill color block
|
121
|
-
*/
|
122
|
-
verifyDefaultFillColorHexCodeLabel: (hexCode) => {
|
123
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.defaultFillColorHexCodeLabel(), hexCode)
|
124
|
-
},
|
125
|
-
|
126
|
-
/**
|
127
|
-
* @param {string} hexCode hexcode label of color block
|
128
|
-
* @description this function verfies the hexcode label of default border color block
|
129
|
-
*/
|
130
|
-
verifyDefaultBorderColorHexCodeLabel: (hexCode) => {
|
131
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.defaultBorderColorHexCodeLabel(), hexCode)
|
132
|
-
},
|
133
|
-
|
134
|
-
/**
|
135
|
-
* @param {string} hexCode hexcode label of color block
|
136
|
-
* @description this function verfies the hexcode label of hover fill color block
|
137
|
-
*/
|
138
|
-
verifyHoverFillColorHexCodeLabel: (hexCode) => {
|
139
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.hoverFillColorHexCodeLabel(), hexCode)
|
140
|
-
},
|
141
|
-
|
142
|
-
/**
|
143
|
-
* @param {string} hexCode hexcode label of color block
|
144
|
-
* @description this function verfies the hexcode label of hover border color block
|
145
|
-
*/
|
146
|
-
verifyHoverBorderColorHexCodeLabel: (hexCode) => {
|
147
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.hoverBorderColorHexCodeLabel(), hexCode)
|
148
|
-
},
|
149
|
-
|
150
|
-
/**
|
151
|
-
* @param {string} hexCode hexcode label of color block
|
152
|
-
* @description this function verfies the hexcode label of active fill color block
|
153
|
-
*/
|
154
|
-
verifyActiveFillColorHexCodeLabel: (hexCode) => {
|
155
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.activeFillColorHexCodeLabel(), hexCode)
|
156
|
-
},
|
157
|
-
|
158
|
-
/**
|
159
|
-
* @param {string} hexCode hexcode label of color block
|
160
|
-
* @description this function verfies the hexcode label of active fill color block
|
161
|
-
*/
|
162
|
-
verifyActiveBorderColorHexCodeLabel: (hexCode) => {
|
163
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.activeBorderColorHexCodeLabel(), hexCode)
|
164
|
-
},
|
165
|
-
|
166
|
-
/**
|
167
|
-
* @param {string} opacityLabel opacity label of color block
|
168
|
-
* @description this function verfies the opacity label of default fill color block
|
169
|
-
*/
|
170
|
-
verifyDefaultFillColorOpacityLabel: (opacityLabel) => {
|
171
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.defaultFillColorOpacityLabel(), opacityLabel)
|
172
|
-
},
|
173
|
-
|
174
|
-
/**
|
175
|
-
* @param {string} opacityLabel opacity label of color block
|
176
|
-
* @description this function verfies the opacity label of default border color block
|
177
|
-
*/
|
178
|
-
verifyDefaultBorderColorOpacityLabel: (opacityLabel) => {
|
179
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.defaultBorderColorOpacityLabel(), opacityLabel)
|
180
|
-
},
|
181
|
-
|
182
|
-
/**
|
183
|
-
* @param {string} opacityLabel opacity label of color block
|
184
|
-
* @description this function verfies the opacity label of hover fill color block
|
185
|
-
*/
|
186
|
-
verifyHoverFillColorOpacityLabel: (opacityLabel) => {
|
187
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.hoverFillColorOpacityLabel(), opacityLabel)
|
188
|
-
},
|
189
|
-
|
190
|
-
/**
|
191
|
-
* @param {string} opacityLabel opacity label of color block
|
192
|
-
* @description this function verfies the opacity label of hover border color block
|
193
|
-
*/
|
194
|
-
verifyHoverBorderColorOpacityLabel: (opacityLabel) => {
|
195
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.hoverBorderColorOpacityLabel(), opacityLabel)
|
196
|
-
},
|
197
|
-
|
198
|
-
/**
|
199
|
-
* @param {string} opacityLabel opacity label of color block
|
200
|
-
* @description this function verfies the opacity label of active fill color block
|
201
|
-
*/
|
202
|
-
verifyActiveFillColorOpacityLabel: (opacityLabel) => {
|
203
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.activeFillColorOpacityLabel(), opacityLabel)
|
204
|
-
},
|
205
|
-
|
206
|
-
/**
|
207
|
-
* @param {string} opacityLabel opacity label of color block
|
208
|
-
* @description this function verfies the opacity label of active border color block
|
209
|
-
*/
|
210
|
-
verifyActiveBorderColorOpacityLabel: (opacityLabel) => {
|
211
|
-
utilities.verifyInnerText(customizeHighlightPropertiesComponent.activeBorderColorOpacityLabel(), opacityLabel)
|
212
|
-
},
|
213
|
-
|
214
|
-
verifyPatternAppliedOnActiveState: () => {
|
215
|
-
utilities.verifyElementVisibilityState(customizeHighlightPropertiesComponent.activeFillColorBlock().find('svg'), 'visible');
|
216
|
-
},
|
217
|
-
|
218
|
-
verifyHighlightColorDefaultContentCSS: () => {
|
219
|
-
utilities.verifyCSS(customizeHighlightPropertiesComponent.defaultLabel(), {
|
220
|
-
'color': css.color.labels,
|
221
|
-
'font-size': css.fontSize.normal,
|
222
|
-
'font-weight': css.fontWeight.semibold
|
223
|
-
});
|
224
|
-
const colorLabels = [customizeHighlightPropertiesComponent.defaultFillColorLabel, customizeHighlightPropertiesComponent.defaultBorderColorLabel]
|
225
|
-
for (let index = 0; index < colorLabels.length; index++) {
|
226
|
-
utilities.verifyCSS(colorLabels[index](), {
|
227
|
-
'color': css.color.labels,
|
228
|
-
'font-size': css.fontSize.normal,
|
229
|
-
'font-weight': css.fontWeight.regular
|
230
|
-
});
|
231
|
-
};
|
232
|
-
const hexCodeLabels = [customizeHighlightPropertiesComponent.defaultFillColorHexCodeLabel, customizeHighlightPropertiesComponent.defaultBorderColorHexCodeLabel]
|
233
|
-
for (let index = 0; index < hexCodeLabels.length; index++) {
|
234
|
-
utilities.verifyCSS(hexCodeLabels[index](), {
|
235
|
-
'color': css.color.placeholderText,
|
236
|
-
'font-size': css.fontSize.small,
|
237
|
-
'font-weight': css.fontWeight.semibold
|
238
|
-
});
|
239
|
-
};
|
240
|
-
const opacityLabels = [customizeHighlightPropertiesComponent.defaultFillColorOpacityLabel, customizeHighlightPropertiesComponent.defaultBorderColorOpacityLabel]
|
241
|
-
for (let index = 0; index < opacityLabels.length; index++) {
|
242
|
-
utilities.verifyCSS(opacityLabels[index](), {
|
243
|
-
'color': css.color.placeholderText,
|
244
|
-
'font-size': css.fontSize.small,
|
245
|
-
'font-weight': css.fontWeight.regular
|
246
|
-
});
|
247
|
-
};
|
248
|
-
},
|
249
|
-
|
250
|
-
verifyHighlightColorHoverContentCSS: () => {
|
251
|
-
utilities.verifyCSS(customizeHighlightPropertiesComponent.hoverLabel(), {
|
252
|
-
'color': css.color.labels,
|
253
|
-
'font-size': css.fontSize.normal,
|
254
|
-
'font-weight': css.fontWeight.semibold
|
255
|
-
});
|
256
|
-
const colorLabels = [customizeHighlightPropertiesComponent.hoverFillColorLabel, customizeHighlightPropertiesComponent.hoverBorderColorLabel]
|
257
|
-
for (let index = 0; index < colorLabels.length; index++) {
|
258
|
-
utilities.verifyCSS(colorLabels[index](), {
|
259
|
-
'color': css.color.labels,
|
260
|
-
'font-size': css.fontSize.normal,
|
261
|
-
'font-weight': css.fontWeight.regular
|
262
|
-
});
|
263
|
-
};
|
264
|
-
const hexCodeLabels = [customizeHighlightPropertiesComponent.hoverFillColorHexCodeLabel, customizeHighlightPropertiesComponent.hoverBorderColorHexCodeLabel]
|
265
|
-
for (let index = 0; index < hexCodeLabels.length; index++) {
|
266
|
-
utilities.verifyCSS(hexCodeLabels[index](), {
|
267
|
-
'color': css.color.placeholderText,
|
268
|
-
'font-size': css.fontSize.small,
|
269
|
-
'font-weight': css.fontWeight.semibold
|
270
|
-
});
|
271
|
-
};
|
272
|
-
const opacityLabels = [customizeHighlightPropertiesComponent.hoverFillColorOpacityLabel, customizeHighlightPropertiesComponent.hoverBorderColorOpacityLabel]
|
273
|
-
for (let index = 0; index < opacityLabels.length; index++) {
|
274
|
-
utilities.verifyCSS(opacityLabels[index](), {
|
275
|
-
'color': css.color.placeholderText,
|
276
|
-
'font-size': css.fontSize.small,
|
277
|
-
'font-weight': css.fontWeight.regular
|
278
|
-
});
|
279
|
-
};
|
280
|
-
},
|
281
|
-
|
282
|
-
verifyHighlightColorActiveContentCSS: () => {
|
283
|
-
utilities.verifyCSS(customizeHighlightPropertiesComponent.activeLabel(), {
|
284
|
-
'color': css.color.labels,
|
285
|
-
'font-size': css.fontSize.normal,
|
286
|
-
'font-weight': css.fontWeight.semibold
|
287
|
-
});
|
288
|
-
const colorLabels = [customizeHighlightPropertiesComponent.activeFillColorLabel, customizeHighlightPropertiesComponent.activeBorderColorLabel]
|
289
|
-
for (let index = 0; index < colorLabels.length; index++) {
|
290
|
-
utilities.verifyCSS(colorLabels[index](), {
|
291
|
-
'color': css.color.labels,
|
292
|
-
'font-size': css.fontSize.normal,
|
293
|
-
'font-weight': css.fontWeight.regular
|
294
|
-
});
|
295
|
-
};
|
296
|
-
const hexCodeLabels = [customizeHighlightPropertiesComponent.activeFillColorHexCodeLabel, customizeHighlightPropertiesComponent.activeBorderColorHexCodeLabel]
|
297
|
-
for (let index = 0; index < hexCodeLabels.length; index++) {
|
298
|
-
utilities.verifyCSS(hexCodeLabels[index](), {
|
299
|
-
'color': css.color.placeholderText,
|
300
|
-
'font-size': css.fontSize.small,
|
301
|
-
'font-weight': css.fontWeight.semibold
|
302
|
-
});
|
303
|
-
};
|
304
|
-
const opacityLabels = [customizeHighlightPropertiesComponent.activeFillColorOpacityLabel, customizeHighlightPropertiesComponent.activeBorderColorOpacityLabel]
|
305
|
-
for (let index = 0; index < opacityLabels.length; index++) {
|
306
|
-
utilities.verifyCSS(opacityLabels[index](), {
|
307
|
-
'color': css.color.placeholderText,
|
308
|
-
'font-size': css.fontSize.small,
|
309
|
-
'font-weight': css.fontWeight.regular
|
310
|
-
});
|
311
|
-
};
|
312
|
-
}
|
313
|
-
}
|
314
|
-
|
315
|
-
export const customizeHighlightPropertiesComponent = {
|
316
|
-
...selectors,
|
317
|
-
steps
|
318
|
-
}
|
File without changes
|
File without changes
|
/package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringGeneric}/singleSelectionPreviewScoring.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialDifferentWeightsBasic.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
/package/cypress/e2e/ILC/TextSelection/{Scoring → ScoringParagraph}/partialEqualWeightsBasic.js
RENAMED
File without changes
|