itemengine-cypress-automation 1.0.237 → 1.0.238
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +14 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +5 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +1 -1
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +6 -3
- package/cypress/e2e/ILC/ImageHighlight/imageHighlightStyle.js +2 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +6 -6
- package/cypress/e2e/ILC/Matching/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -4
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +144 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +144 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +214 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +112 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +397 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +179 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +158 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +179 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +143 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +167 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +145 -0
- package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +166 -0
- package/cypress/e2e/ILC/NumberLine/additionalSettings.js +12 -10
- package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +3 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +3 -3
- package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/NumberLineLabel/editTabScoring.js +2 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +2 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +6 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +10 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +13 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +10 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +37 -5
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +6 -0
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +1 -0
- package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +4 -5
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +6 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +4 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/UploadResponse/uploadedFileProperties.js +1 -1
- package/cypress/pages/audioResponsePage.js +1 -0
- package/cypress/pages/components/createQuestionBasePage.js +49 -4
- package/cypress/pages/components/draggableOptionsStyleAndLayoutComponent.js +1 -1
- package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +22 -0
- package/cypress/pages/components/gridQuestionCommonComponent.js +5 -2
- package/cypress/pages/components/imageCanvasComponent.js +6 -9
- package/cypress/pages/components/numberLineCommonComponent.js +6 -6
- package/cypress/pages/components/questionInstructionsComponent.js +3 -2
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -2
- package/cypress/pages/feedbackScalePage.js +1 -1
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +2 -0
- package/cypress/pages/geoGebraActivityPage.js +13 -1
- package/cypress/pages/imageHighlightPage.js +1 -0
- package/cypress/pages/listOrderingPage.js +1 -1
- package/cypress/pages/matchingPage.js +21 -0
- package/cypress/pages/multipleSelectionGridPage.js +16 -0
- package/cypress/pages/numberLineLabelPage.js +16 -3
- package/cypress/pages/shortTextResponsePage.js +1 -0
- package/package.json +1 -1
- /package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/{checkAnswerFunctionalityForAllViews.js → checkAnswerFunctionalityForAllViews.smoke.js} +0 -0
@@ -10,7 +10,7 @@ const selectors = {
|
|
10
10
|
noneDragHandleIconButton: () => cy.get('button[aria-label="none drag handle icon"]'),
|
11
11
|
fillColorLabel: () => cy.get('.draggable-options-color-wrapper .sub-section-label').eq(0),
|
12
12
|
borderColorLabel: () => cy.get('.draggable-options-color-wrapper .sub-section-label').eq(1),
|
13
|
-
colorBlock: () => cy.get('.draggable-options-color-wrapper .color-
|
13
|
+
colorBlock: () => cy.get('.draggable-options-color-wrapper .color-picker-block'),
|
14
14
|
editColorButton: () => cy.get('.draggable-options-color-wrapper button[aria-label="edit color"]'),
|
15
15
|
borderStyleLabel: () => cy.get('.options-border-style .options-label').eq(1),
|
16
16
|
dashedBorderStyleToggleButton: () => cy.get('[data-ngie-testid="dashed-toggle-button"]').eq(1),
|
@@ -7,7 +7,7 @@ const selectors = {
|
|
7
7
|
componentContainerLabel: () => cy.get('[class*="styles__SectionWrapper"][class*="label"]').eq(0),
|
8
8
|
fillColorLabel: () => cy.get('.sub-section-label').eq(0),
|
9
9
|
borderColorLabel: () => cy.get('.sub-section-label').eq(1),
|
10
|
-
colorBlock: () => cy.get('.color-
|
10
|
+
colorBlock: () => cy.get('.color-picker-block'),
|
11
11
|
editColorButton: () => cy.get('button[aria-label="edit color"]'),
|
12
12
|
borderStyleLabel: () => cy.get('.options-border-style .options-label'),
|
13
13
|
dashedBorderStyleToggleButton: () => cy.get('[data-ngie-testid="dashed-toggle-button"]').eq(0),
|
@@ -5,6 +5,7 @@ import { commonComponents } from "./commonComponents";
|
|
5
5
|
import { optionsWrapperComponent } from "./optionsWrapperComponent";
|
6
6
|
import { createQuestionBasePage } from "./createQuestionBasePage";
|
7
7
|
import { placeholderTextSectionComponent } from "./placeholderTextSectionComponent";
|
8
|
+
import { scoringSectionBaseEditTab } from "./scoringSectionBaseEditTab";
|
8
9
|
const css = Cypress.env('css');
|
9
10
|
|
10
11
|
const selectors = {
|
@@ -725,6 +726,27 @@ const steps = {
|
|
725
726
|
'border': borderValue
|
726
727
|
});
|
727
728
|
},
|
729
|
+
|
730
|
+
verifyWarningIconOnRequiredFields: (requiredFieldsArray) => {
|
731
|
+
requiredFieldsArray.forEach((field) => {
|
732
|
+
if (field === 'Please set points') {
|
733
|
+
scoringSectionBaseEditTab.pointsWrapper()
|
734
|
+
.within(() => {
|
735
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
736
|
+
});
|
737
|
+
} else if (field === 'Please enter all option') {
|
738
|
+
fillInTheGapsDropdownCommonComponent.dropdownOptionsLabel()
|
739
|
+
.within(() => {
|
740
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
741
|
+
});
|
742
|
+
} else if (field === 'Please upload an image') {
|
743
|
+
createQuestionBasePage.backgroundImageLabel()
|
744
|
+
.within(() => {
|
745
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
746
|
+
});
|
747
|
+
}
|
748
|
+
});
|
749
|
+
}
|
728
750
|
}
|
729
751
|
|
730
752
|
const tests = {
|
@@ -29,7 +29,7 @@ const selectors = {
|
|
29
29
|
editCellPropertyButton: () => cy.get('.action-menu button'),
|
30
30
|
editCellPropertyList: () => cy.get('.ngie-action-cell-container [role="menu"]'),
|
31
31
|
editCellPropertyListOption: () => cy.get('[class*="MuiMenuItem"][role="menuitem"]'),
|
32
|
-
editCellPropertyTableWrapper: () => cy.get('
|
32
|
+
editCellPropertyTableWrapper: () => cy.get('[class*="single-select"] .selection-grid-wrapper').eq(0),
|
33
33
|
editCellPropertyRow: () => gridQuestionCommonComponent.editCellPropertyTableWrapper().find('[class*="wrapper-row"]'),
|
34
34
|
editCellPropertyTableLeftPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationLeftControl"]'),
|
35
35
|
editCellPropertyTableRightPaginationButton: () => cy.get('.authoring-selection-grid [class*="SelectionGridstyles__PaginationRightControl"]'),
|
@@ -152,7 +152,7 @@ const selectors = {
|
|
152
152
|
gridLabel: () => cy.get('[class*="Gridstyles__SectionWrapper"]'),
|
153
153
|
fillColorLabel: () => cy.get('.sub-section-label').eq(0),
|
154
154
|
borderColorLabel: () => cy.get('.sub-section-label').eq(1),
|
155
|
-
colorBlock: () => cy.get('.color-picker-block'),
|
155
|
+
colorBlock: () => cy.get('.color-grid-wrapper .color-picker-block'),
|
156
156
|
editColorButton: () => cy.get('button[aria-label="edit color"]'),
|
157
157
|
colorBlockSelectedIcon: () => cy.get('[class*="BtnSelectionWrapper"] svg'),
|
158
158
|
}
|
@@ -244,6 +244,8 @@ const steps = {
|
|
244
244
|
verifyPlaceholderTextInCellPropertyInputField: ({ row, column }, text) => {
|
245
245
|
utilities.getNthElement(gridQuestionCommonComponent.editCellPropertyRow(), row).within(() => {
|
246
246
|
utilities.getNthElement(gridQuestionCommonComponent.tableCell(), column).within(() => {
|
247
|
+
gridQuestionCommonComponent.cellPropertyInputField()
|
248
|
+
.focus();
|
247
249
|
gridQuestionCommonComponent.cellPropertyInputField()
|
248
250
|
.should('have.attr', 'data-cke-editorplaceholder', text);
|
249
251
|
});
|
@@ -953,6 +955,7 @@ const steps = {
|
|
953
955
|
clickOnRightPaginationButtonEditCellPropertyTable: () => {
|
954
956
|
gridQuestionCommonComponent.editCellPropertyTableRightPaginationButton()
|
955
957
|
.click();
|
958
|
+
cy.wait(1000);
|
956
959
|
},
|
957
960
|
|
958
961
|
/**
|
@@ -791,11 +791,10 @@ const tests = {
|
|
791
791
|
* @param {"text container"|"dropzone"} response value for the error message
|
792
792
|
*/
|
793
793
|
verifyInsertAndDeleteResponseAreaFunctionality: (response) => {
|
794
|
-
it(`When user clicks on close button for response container, then response container should be removed from canvas and error message
|
794
|
+
it(`When user clicks on close button for response container, then response container should be removed from canvas and error message should not be displayed`, () => {
|
795
795
|
imageCanvasComponent.steps.removeResponseArea(0);
|
796
796
|
utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaWrapper(), 'notExist');
|
797
|
-
utilities.
|
798
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
797
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
799
798
|
});
|
800
799
|
|
801
800
|
it('When user adds response container, then error message should disappear', () => {
|
@@ -849,14 +848,13 @@ const tests = {
|
|
849
848
|
imageCanvasComponent.steps.verifyRedoButtonDisabled();
|
850
849
|
});
|
851
850
|
|
852
|
-
it(`When the user reaches the initial state by performing undo actions, the \'Undo\' button should get disabled and error message
|
851
|
+
it(`When the user reaches the initial state by performing undo actions, the \'Undo\' button should get disabled and error message should not be displayed`, () => {
|
853
852
|
for (var i = 0; i < 4; i++) {
|
854
853
|
imageCanvasComponent.steps.undoAction();
|
855
854
|
}
|
856
855
|
utilities.verifyElementCount(imageCanvasComponent.responseArea(), 0);
|
857
856
|
imageCanvasComponent.steps.verifyUndoButtonDisabled();
|
858
|
-
utilities.
|
859
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
857
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
860
858
|
});
|
861
859
|
|
862
860
|
it('When the user reaches the latest state by performing redo actions, the \'Redo\' button should get disabled and error message should disappear', () => {
|
@@ -868,11 +866,10 @@ const tests = {
|
|
868
866
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
869
867
|
});
|
870
868
|
|
871
|
-
it(`When user clicks on \'Clear all\' button, then all response container should be deleted and error message
|
869
|
+
it(`When user clicks on \'Clear all\' button, then all response container should be deleted and error message should not be displayed`, () => {
|
872
870
|
imageCanvasComponent.steps.clearAllCanvas();
|
873
871
|
utilities.verifyElementVisibilityState(imageCanvasComponent.responseAreaWrapper(), 'notExist');
|
874
|
-
utilities.
|
875
|
-
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
872
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'notExist');
|
876
873
|
});
|
877
874
|
},
|
878
875
|
|
@@ -548,8 +548,8 @@ const tests = {
|
|
548
548
|
it('When user updates value in Min input field then it should be updated in Specify correct answer section', () => {
|
549
549
|
numberLineCommonComponent.steps.enterTextInMinInputField(-12);
|
550
550
|
numberLineCommonComponent.steps.verifyTextInMinInputField(-12);
|
551
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: -
|
552
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: -
|
551
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: -12, index: 0 }]);
|
552
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: -12, index: 0 }]);
|
553
553
|
});
|
554
554
|
|
555
555
|
it('When user updates value in Max input field then it should be updated in Specify correct answer section', () => {
|
@@ -607,7 +607,7 @@ const tests = {
|
|
607
607
|
numberLineCommonComponent.steps.enterTextInMinInputField(-12);
|
608
608
|
numberLineCommonComponent.steps.verifyTextInMinInputField(-12);
|
609
609
|
numberLineCommonComponent.steps.switchToPreviewTab();
|
610
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: -
|
610
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: -12, index: 0 }]);
|
611
611
|
});
|
612
612
|
|
613
613
|
it('When user updates value in Max input field then it should be updated in preview tab', () => {
|
@@ -645,8 +645,8 @@ const tests = {
|
|
645
645
|
it(`When user selects ${option} in line settings section, then number displayed on number line should be ${option} in number line section and specify correct answer section`, () => {
|
646
646
|
numberLineCommonComponent.steps.selectLineSettingsToggleButton(option);
|
647
647
|
numberLineCommonComponent.steps.verifyLineSettingsToggleButtonSelected(option);
|
648
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: numbers[index], index:
|
649
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: numbers[index], index:
|
648
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineNumberLineSection([{ value: numbers[index], index: 1 }]);
|
649
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLineSpecifyCorrectAnswerSection([{ value: numbers[index], index: 1 }]);
|
650
650
|
});
|
651
651
|
});
|
652
652
|
|
@@ -676,7 +676,7 @@ const tests = {
|
|
676
676
|
numberLineCommonComponent.steps.selectLineSettingsToggleButton(option);
|
677
677
|
numberLineCommonComponent.steps.verifyLineSettingsToggleButtonSelected(option);
|
678
678
|
numberLineCommonComponent.steps.switchToPreviewTab();
|
679
|
-
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: numbers[index], index:
|
679
|
+
numberLineCommonComponent.steps.verifyLabelOnNumberLinePreviewTab([{ value: numbers[index], index: 1 }]);
|
680
680
|
});
|
681
681
|
});
|
682
682
|
|
@@ -7,7 +7,8 @@ const selectors = {
|
|
7
7
|
questionInstructionsLabelEditTab: () => cy.get('.edit-question-instruction-label'),
|
8
8
|
questionInstructionsInputField: () => cy.get('[title="Question Instructions"]'),
|
9
9
|
questionInstructionsText: () => cy.get('.question-instruction'),
|
10
|
-
questionInstructionsWrapper: () => cy.get('.edit-question-instruction-wrapper')
|
10
|
+
questionInstructionsWrapper: () => cy.get('.edit-question-instruction-wrapper'),
|
11
|
+
questionInstructionsTextPreviewTab: () => cy.get('.question-instruction:visible'),
|
11
12
|
}
|
12
13
|
|
13
14
|
const steps = {
|
@@ -124,7 +125,7 @@ const tests = {
|
|
124
125
|
createQuestionBasePage.steps.switchToEditTab();
|
125
126
|
questionInstructionsComponent.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
126
127
|
createQuestionBasePage.steps.switchToPreviewTab();
|
127
|
-
utilities.verifyTextContent(questionInstructionsComponent.
|
128
|
+
utilities.verifyTextContent(questionInstructionsComponent.questionInstructionsTextPreviewTab(), 'Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
|
128
129
|
});
|
129
130
|
}
|
130
131
|
};
|
@@ -134,7 +134,7 @@ const selectors = {
|
|
134
134
|
dropzoneLabel: () => cy.get('[class*="Dropzonestyles__SectionWrapper"]'),
|
135
135
|
fillColorLabel: () => cy.get('.sub-section-label').eq(0),
|
136
136
|
borderColorLabel: () => cy.get('.sub-section-label').eq(1),
|
137
|
-
colorBlock: () => cy.get('.color-picker-block'),
|
137
|
+
colorBlock: () => cy.get('.color-grid-wrapper .color-picker-block'),
|
138
138
|
editColorButton: () => cy.get('button[aria-label="edit color"]'),
|
139
139
|
colorBlockSelectedIcon: () => cy.get('[class*="BtnSelectionWrapper"] svg'),
|
140
140
|
dropzoneBorderStyleLabel: () => cy.get('.options-border-style .options-label').eq(0),
|
@@ -642,7 +642,7 @@ const steps = {
|
|
642
642
|
verifyColumnsCountInSpecifyCorrectAnswerSectionTable: (numberOfColumns) => {
|
643
643
|
dragAndDropIntoCategoriesPage.tableRowContainerSpecifyCorrectAnswerSection()
|
644
644
|
.eq(0)
|
645
|
-
.within(() => {
|
645
|
+
.within(($element) => {
|
646
646
|
utilities.verifyElementCount(cy.wrap($element).find('[class*="styles__CellContainer"]'), numberOfColumns);
|
647
647
|
});
|
648
648
|
},
|
@@ -97,7 +97,7 @@ const selectors = {
|
|
97
97
|
scoringHelpText: () => cy.get('[class*="ScoringText"]'),
|
98
98
|
studentViewSettingsLabel: () => cy.get('[class*="StudentViewSettingsLabel"]'),
|
99
99
|
legendAccordionWrapper: () => cy.get('[class*="feedback-layout-accordion"]'),
|
100
|
-
additionalSettingsAcknowledgementsLabel: () => cy.get('.additional-settings-container [class*="
|
100
|
+
additionalSettingsAcknowledgementsLabel: () => cy.get('.additional-settings-container [class*="InlineRichTextComponentstyles__LabelWrapper"]')
|
101
101
|
}
|
102
102
|
|
103
103
|
const steps = {
|
@@ -1129,7 +1129,6 @@ const tests = {
|
|
1129
1129
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
1130
1130
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
1131
1131
|
...figCommonStyleAndLayoutComponent.tests,
|
1132
|
-
...connectorStyleStyleAndLayoutCustomizationComponent.tests,
|
1133
1132
|
|
1134
1133
|
verifyContentsOfSpecifyCorrectAnswerSection: () => {
|
1135
1134
|
it('When user selects a scoring type then in the \'Correct\' accordion, all the contents should be displayed', () => {
|
@@ -35,6 +35,8 @@ const selectors = {
|
|
35
35
|
previewTabCanvas: () => cy.get('.drag-and-drop-canvas'),
|
36
36
|
tooltipText: () => cy.get('[class*="MuiTooltip-tooltip"]'),
|
37
37
|
dropdownPointer: () => cy.get('.canvas-pointer-wrapper'),
|
38
|
+
dropdownTextLabel: () => cy.get('.dropdown-list .dropdown-label-text'),
|
39
|
+
dropdownTextLabelCollapsed: () => cy.get('.response-dropdown .dropdown-label-text'),
|
38
40
|
}
|
39
41
|
|
40
42
|
const steps = {
|
@@ -154,7 +154,7 @@ const steps = {
|
|
154
154
|
geoGebraActivityPage.resetButton()
|
155
155
|
.click();
|
156
156
|
},
|
157
|
-
|
157
|
+
|
158
158
|
verifyPointsFieldErrorMessageIsNotDisplayed: () => {
|
159
159
|
geoGebraActivityPage.pointsInputField()
|
160
160
|
.parents('.points-wrapper')
|
@@ -162,6 +162,18 @@ const steps = {
|
|
162
162
|
utilities.verifyElementVisibilityState(scoringSectionBaseEditTab.pleaseEnterPointsErrorMessage(), 'notExist');
|
163
163
|
});
|
164
164
|
},
|
165
|
+
|
166
|
+
verifyWarningIconOnRequiredFields: (requiredFieldsArray) => {
|
167
|
+
requiredFieldsArray.forEach((field) => {
|
168
|
+
if (field === 'Please insert a resource link') {
|
169
|
+
geoGebraActivityPage.insertResourceLinkLabel()
|
170
|
+
.parents('[class*="ResourceLinkAndWarningIconWrapper"]')
|
171
|
+
.within(() => {
|
172
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
173
|
+
});
|
174
|
+
}
|
175
|
+
});
|
176
|
+
}
|
165
177
|
}
|
166
178
|
|
167
179
|
const tests = {
|
@@ -87,6 +87,7 @@ const selectors = {
|
|
87
87
|
checkMarkIcon: () => cy.get('.correct-option-icon [data-name*="Rectangle"]'),
|
88
88
|
crossMarkIcon: () => cy.get('.incorrect-option-icon [data-name*="Rectangle"]'),
|
89
89
|
correctAnswersLabel: () => cy.get('[class*="__AnswerLabel"]'),
|
90
|
+
correctIncorrectStatusMessageText: () => cy.get('[class*="AnswerStatusText"]'),
|
90
91
|
highlightNumerationPreviewTab: () => cy.get('[class*="__TextWrapper"]'),
|
91
92
|
correctAnswerContainerAnswerWrapper: () => cy.get('[class*="__AnswersWrapper"]'),
|
92
93
|
correctAnswerNumeration: () => cy.get('[class*="CellIndexWrapper"]'),
|
@@ -31,7 +31,7 @@ const selectors = {
|
|
31
31
|
correctAnswerSectionWrapper: () => cy.get('[class*="ListOrderingResponsestyles__CorrectAnswers"]'),
|
32
32
|
correctAnswerSectionAnswerText: () => cy.get('.question-text-wrapper'),
|
33
33
|
correctAnswerSectionIconWrapper: () => cy.get('[class*="CorrectAnswerstyles__IconWrapper"]'),
|
34
|
-
questionBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__DroppableDiv"]'),
|
34
|
+
questionBorderPreviewTab: () => cy.get('[class*="ListOrderingResponsestyles__DroppableDiv"],[class*="ListOrderingResponsestyles__ResponseContainer"]'),
|
35
35
|
//grading view and correct answer view
|
36
36
|
optionGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionTextWrapper"]'),
|
37
37
|
optionWrapperGradingView: () => cy.get('[class*="DraggableItemsWrapper"] [class*="OptionsWrapper"]'),
|
@@ -1551,6 +1551,27 @@ const steps = {
|
|
1551
1551
|
.blur();
|
1552
1552
|
});
|
1553
1553
|
},
|
1554
|
+
|
1555
|
+
verifyWarningIconOnRequiredFields: (requiredFieldsArray) => {
|
1556
|
+
requiredFieldsArray.forEach((field) => {
|
1557
|
+
if (field === 'Please set points') {
|
1558
|
+
scoringSectionBaseEditTab.pointsWrapper()
|
1559
|
+
.within(() => {
|
1560
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
1561
|
+
});
|
1562
|
+
} else if (field === 'Please enter all option') {
|
1563
|
+
matchingPage.optionsLabel()
|
1564
|
+
.within(() => {
|
1565
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
1566
|
+
});
|
1567
|
+
} else if (field === 'Please enter all prompts') {
|
1568
|
+
matchingPage.promptLabel()
|
1569
|
+
.within(() => {
|
1570
|
+
utilities.verifyElementVisibilityState(commonComponents.warningIcon(), 'exist');
|
1571
|
+
});
|
1572
|
+
}
|
1573
|
+
})
|
1574
|
+
}
|
1554
1575
|
}
|
1555
1576
|
|
1556
1577
|
const tests = {
|
@@ -145,6 +145,22 @@ const steps = {
|
|
145
145
|
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.correctIcon(), 'notExist');
|
146
146
|
utilities.verifyElementVisibilityState(autoScoredScoringPreviewTab.incorrectIcon(), 'notExist');
|
147
147
|
});
|
148
|
+
},
|
149
|
+
|
150
|
+
/**
|
151
|
+
* Verify placeholder text in the input field of a table cell property.
|
152
|
+
* @param {Object} position - The position of the table cell property.
|
153
|
+
* @param {number} position.row - The row index (zero-based) of the table cell property.
|
154
|
+
* @param {number} position.column - The column index (zero-based) of the table cell property.
|
155
|
+
* @param {string} text - The placeholder text to verify in the input field.
|
156
|
+
*/
|
157
|
+
verifyPlaceholderTextInCellPropertyInputField: ({ row, column }, text) => {
|
158
|
+
utilities.getNthElement(gridQuestionCommonComponent.editCellPropertyRow(), row).within(() => {
|
159
|
+
utilities.getNthElement(gridQuestionCommonComponent.tableCell(), column).within(() => {
|
160
|
+
gridQuestionCommonComponent.cellPropertyInputField()
|
161
|
+
.should('have.attr', 'placeholder', text);
|
162
|
+
});
|
163
|
+
});
|
148
164
|
}
|
149
165
|
}
|
150
166
|
|
@@ -130,7 +130,7 @@ const steps = {
|
|
130
130
|
.eq(index)
|
131
131
|
.within(() => {
|
132
132
|
numberLineLabelPage.labelInputField()
|
133
|
-
.should('have.attr', 'data-cke-editorplaceholder', `Enter label
|
133
|
+
.should('have.attr', 'data-cke-editorplaceholder', `Enter label`);
|
134
134
|
commonComponents.dragHandleButton()
|
135
135
|
.should('exist');
|
136
136
|
numberLineLabelPage.deleteLabelButton()
|
@@ -222,7 +222,11 @@ const steps = {
|
|
222
222
|
cy.wait(200);
|
223
223
|
numberLineLabelPage.labelInputField()
|
224
224
|
.eq(index)
|
225
|
-
.should('have.text', label)
|
225
|
+
.should('have.text', label);
|
226
|
+
numberLineLabelPage.labelInputField()
|
227
|
+
.eq(index)
|
228
|
+
.click()
|
229
|
+
.blur();
|
226
230
|
});
|
227
231
|
},
|
228
232
|
|
@@ -640,11 +644,20 @@ const steps = {
|
|
640
644
|
*/
|
641
645
|
allotPartialDifferentWeightsPoints: (pointsArray) => {
|
642
646
|
pointsArray.forEach((points, index) => {
|
647
|
+
scoringSectionBaseEditTab.pointsInputField()
|
648
|
+
.eq(index)
|
643
649
|
scoringSectionBaseEditTab.pointsInputField()
|
644
650
|
.eq(index)
|
645
651
|
.clear()
|
646
|
-
|
652
|
+
scoringSectionBaseEditTab.pointsInputField()
|
653
|
+
.eq(index)
|
654
|
+
.type(`${points}`);
|
655
|
+
cy.wait(2000);
|
656
|
+
scoringSectionBaseEditTab.pointsInputField()
|
657
|
+
.eq(index)
|
647
658
|
.should('have.value', points)
|
659
|
+
scoringSectionBaseEditTab.pointsInputField()
|
660
|
+
.eq(index)
|
648
661
|
.blur();
|
649
662
|
});
|
650
663
|
},
|
@@ -92,6 +92,7 @@ const selectors = {
|
|
92
92
|
flagNonAccessibleLabel: () => cy.get('[data-ngie-testid="response-option-checkbox"] .MuiFormControlLabel-label'),
|
93
93
|
ariaLabelLabel: () => cy.get('.aria-label-wrapper .title-casing'),
|
94
94
|
ariaLabelInputField: () => cy.get('.aria-label-wrapper [role="textbox"]'),
|
95
|
+
questionInstructionsTextPreviewTab: () => cy.get('.question-instruction:visible'),
|
95
96
|
}
|
96
97
|
|
97
98
|
const steps = {
|
package/package.json
CHANGED