itemengine-cypress-automation 1.0.337-IEI-5508-automated-tests-9e03453.0 → 1.0.338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/editQuestion.smoke.js +94 -0
- package/cypress/e2e/ILC/ChartsBar/editQuestion.smoke.js +93 -0
- package/cypress/e2e/ILC/ChartsDotsPlot/editQuestion.smoke.js +92 -0
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +84 -0
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/CkEditorEquationEditor/selectModeEditorBasic.js +1 -1
- package/cypress/e2e/ILC/CkEditorInsertImage/insertImageBasicFile.js +1 -1
- package/cypress/e2e/ILC/CkEditorInsertImage/upload.js +1 -1
- package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +12 -9
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +2 -1
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +63 -1
- package/cypress/e2e/ILC/EssayResponse/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseBasic/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/EssayResponseMath/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/checkScoringLableBannerAndCorrectAnswer.js +84 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/checkAddAlternativeButton.js +33 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +32 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/headerSection.js +39 -6
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViewInIncompleteAuthoring.smoke.js +119 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +91 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/checkAddAlternativeButton.js +37 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editQuestion.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +36 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +36 -6
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViewsInIncompleteAuthoring.smoke.js +103 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +96 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAddAlternativeButton.js +38 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +39 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +39 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViewsInIncompleteuthoring.smoke.js +106 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/supportedFileTypes.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +38 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +88 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/checkAddAlternative.js +35 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editQuestion.smoke.js +33 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViewsInIncompleteAuthoring.js +97 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +3 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/checkScoringLabelBannerAndCorrectAnswer.js +79 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/checkAddAlternativeButton.js +32 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +30 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +35 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViewsInIncompleteAuthoring.smoke.js +99 -0
- package/cypress/e2e/ILC/GridFill/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +109 -0
- package/cypress/e2e/ILC/ImageHighlight/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternatePoints.js +45 -0
- package/cypress/e2e/ILC/ImageHighlight/Scoring/checkScoringLableBannerAndCorrectAnswer.js +96 -0
- package/cypress/e2e/ILC/ImageHighlight/checkAddAlternativeButton.js +39 -0
- package/cypress/e2e/ILC/ImageHighlight/editQuestion.smoke.js +76 -0
- package/cypress/e2e/ILC/ImageHighlight/editTabBasicSection.js +46 -0
- package/cypress/e2e/ILC/ImageHighlight/headerSection.js +35 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentForAllViewInIncompleteAuthoring.js +118 -0
- package/cypress/e2e/ILC/ListOrderingNew/editQuestion.smoke.js +3 -0
- package/cypress/e2e/ILC/Matching/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/Matching/styleAndLayoutCustomizationLayoutProperties.js +3 -3
- package/cypress/e2e/ILC/NumberLine/editQuestion.smoke.js +79 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/editQuestion.smoke.js +72 -0
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +1 -0
- package/cypress/e2e/ILC/NumberLineLabel/editQuestion.smoke.js +80 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +81 -0
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/ShortTextResponseNew/editQuestion.smoke.js +56 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/SingleSelection/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/editQuestion.smoke.js +76 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/editQuestion.smoke.js +92 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/TextSelection/editQuestion.smoke.js +0 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +1 -0
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/fixtures/uploadResponseFileType.js +1 -1
- package/cypress/pages/chartsBarPage.js +3 -0
- package/cypress/pages/chartsDotPlotPage.js +2 -0
- package/cypress/pages/chartsLinePage.js +38 -2
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +2 -0
- package/cypress/pages/components/browseItemsPage.js +4 -4
- package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +22 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +67 -0
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +66 -0
- package/cypress/pages/components/layoutSectionComponent.js +1 -1
- package/cypress/pages/components/optionsWrapperComponent.js +1 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +2 -1
- package/cypress/pages/createItemPage.js +7 -0
- package/cypress/pages/dialogBoxBase.js +13 -7
- package/cypress/pages/drawingResponsePage.js +73 -2
- package/cypress/pages/feedbackScalePage.js +2 -0
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +71 -4
- package/cypress/pages/fillInTheGapsDropdownPage.js +21 -0
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +2 -2
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +22 -0
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +22 -0
- package/cypress/pages/fillInTheGapsTextPage.js +24 -2
- package/cypress/pages/imageHighlightPage.js +106 -6
- package/cypress/pages/listOrderingPage.js +4 -2
- package/cypress/pages/menuBarPage.js +65 -65
- package/cypress/pages/multipleSelectionGridPage.js +68 -1
- package/cypress/pages/multipleSelectionPage.js +67 -0
- package/cypress/pages/numberLineLabelPage.js +4 -1
- package/cypress/pages/numberLinePage.js +2 -0
- package/cypress/pages/shortTextResponsePage.js +2 -0
- package/cypress/pages/singleSelectionGridPage.js +68 -1
- package/cypress/pages/singleSelectionPage.js +67 -0
- package/cypress/pages/textEntryMathPage.js +7 -3
- package/cypress/pages/textEntryMathWithImagePage.js +3 -0
- package/package.json +2 -2
@@ -2,6 +2,7 @@ import utilities from "../support/helpers/utilities";
|
|
2
2
|
import { createQuestionBasePage, questionInstructionsComponent, gridQuestionCommonComponent, scoringSectionBaseEditTab, ckEditorToolbar, equationEditorFlyout, autoScoredScoringPreviewTab, correctIncorrectAnswerLabelComponent, autoScoredScoringSectionMultiResponseType, autoScoredStudentViewSettings, specifyRowsAndColumnsComponent, autoScoredSpecifyCorrectAnswerSection, randomizeOptionsComponent, studentViewSettingsLabelComponent, commonComponents, additionalSettingsPanel, additionalSettingsAccessibilitySectionComponent, styleAndLayoutCustomizationAccordionComponent } from "./components";
|
3
3
|
const css = Cypress.env('css');
|
4
4
|
import { createItemPage } from "./createItemPage";
|
5
|
+
import { dialogBoxBase } from "./dialogBoxBase";
|
5
6
|
|
6
7
|
const selectors = {
|
7
8
|
...questionInstructionsComponent,
|
@@ -179,12 +180,78 @@ const tests = {
|
|
179
180
|
...randomizeOptionsComponent.tests,
|
180
181
|
...studentViewSettingsLabelComponent.tests,
|
181
182
|
...autoScoredStudentViewSettings.tests,
|
182
|
-
...specifyRowsAndColumnsComponent.tests,
|
183
|
+
...specifyRowsAndColumnsComponent.tests,
|
183
184
|
...commonComponents.tests,
|
184
185
|
...createQuestionBasePage.tests,
|
185
186
|
...additionalSettingsPanel.tests,
|
186
187
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
187
188
|
...styleAndLayoutCustomizationAccordionComponent.tests,
|
189
|
+
//TODO need to remove once Save as you go is available for all questions
|
190
|
+
/**
|
191
|
+
* @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
|
192
|
+
* in the 'Specify correct answer' section for alternative answers in auto-scored questions.
|
193
|
+
* @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
|
194
|
+
* @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
195
|
+
*/
|
196
|
+
verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
|
197
|
+
it('\'+ Add alternative answer\' button should be present', () => {
|
198
|
+
utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
|
199
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
|
200
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
201
|
+
.verifyPseudoClassBeforeProperty('content', '""');
|
202
|
+
});
|
203
|
+
|
204
|
+
it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
|
205
|
+
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
|
206
|
+
'color': css.color.activeButtons,
|
207
|
+
'font-size': css.fontSize.default,
|
208
|
+
'font-weight': css.fontWeight.regular
|
209
|
+
});
|
210
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
211
|
+
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
212
|
+
});
|
213
|
+
|
214
|
+
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
|
215
|
+
utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
216
|
+
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
217
|
+
});
|
218
|
+
|
219
|
+
it('CSS of warning popup', { tags: 'css' }, () => {
|
220
|
+
utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
|
221
|
+
'color': css.color.flyoutTitle,
|
222
|
+
'font-size': css.fontSize.heading,
|
223
|
+
'font-weight': css.fontWeight.semibold
|
224
|
+
});
|
225
|
+
utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
|
226
|
+
'color': css.color.labels,
|
227
|
+
'font-size': css.fontSize.default,
|
228
|
+
'font-weight': css.fontWeight.regular
|
229
|
+
});
|
230
|
+
utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
|
231
|
+
'fill': css.color.closeIcon
|
232
|
+
});
|
233
|
+
});
|
234
|
+
|
235
|
+
it('Accessibility of warning popup', { tags: 'a11y' }, () => {
|
236
|
+
cy.checkAccessibility(dialogBoxBase.dialogBox());
|
237
|
+
dialogBoxBase.steps.closeWarningPopup();
|
238
|
+
});
|
239
|
+
},
|
240
|
+
|
241
|
+
//TODO need to remove once Save as you go is available for all questions
|
242
|
+
verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
|
243
|
+
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', () => {
|
244
|
+
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
245
|
+
.click();
|
246
|
+
dialogBoxBase.steps.closeWarningPopup();
|
247
|
+
//TODO: Need to add error message according to question types
|
248
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
249
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
250
|
+
.eq(1)
|
251
|
+
.should('have.attr', 'aria-expanded', 'true');
|
252
|
+
});
|
253
|
+
},
|
254
|
+
|
188
255
|
/**
|
189
256
|
* Verifies the contents and functionality of the 'Specify correct answer' accordion for multiple selection questions.
|
190
257
|
* @param {{'Correct' | 'Alternative'}} accordionName - The name of the accordion to be used in the validation.
|
@@ -719,6 +719,73 @@ const tests = {
|
|
719
719
|
...autoScoredStudentViewSettings.tests,
|
720
720
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
721
721
|
...mcqAdditionalSettingsBase.tests,
|
722
|
+
|
723
|
+
//TODO need to remove once Save as you go is available for all questions
|
724
|
+
/**
|
725
|
+
* @description Verifies the behavior of the 'Add alternative answer' button, warning popups, and validation error messages
|
726
|
+
* in the 'Specify correct answer' section for alternative answers in auto-scored questions.
|
727
|
+
* @param {string|null} questionType - The type of the question (e.g., 'list ordering'). Pass `null` if not applicable.
|
728
|
+
* @example - verifyAutoScoredAddAlternativeAnswerButtonAndValidation();
|
729
|
+
*/
|
730
|
+
verifyAutoScoredAddAlternativeAnswerButtonAndValidation: (questionType = null) => {
|
731
|
+
it('\'+ Add alternative answer\' button should be present', () => {
|
732
|
+
utilities.verifyInnerText(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'Add alternative answer');
|
733
|
+
utilities.verifyElementVisibilityState(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton(), 'visible');
|
734
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
735
|
+
.verifyPseudoClassBeforeProperty('content', '""');
|
736
|
+
});
|
737
|
+
|
738
|
+
it('CSS of \'Add Alternative answer\' button', { tags: 'css' }, () => {
|
739
|
+
utilities.verifyCSS(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton().find('p'), {
|
740
|
+
'color': css.color.activeButtons,
|
741
|
+
'font-size': css.fontSize.default,
|
742
|
+
'font-weight': css.fontWeight.regular
|
743
|
+
});
|
744
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton()
|
745
|
+
.verifyPseudoClassBeforeProperty('color', css.color.activeButtons);
|
746
|
+
});
|
747
|
+
|
748
|
+
it('If user has not selected correct answer in the correct accordion, then the Add alternative answer button should be in enabled state', () => {
|
749
|
+
utilities.verifyElementNotDisabled(autoScoredSpecifyCorrectAnswerSection.alternativeAnswerButton());
|
750
|
+
autoScoredSpecifyCorrectAnswerSection.steps.clickOnAddAlternativeAnswerButton();
|
751
|
+
});
|
752
|
+
|
753
|
+
it('CSS of warning popup', { tags: 'css' }, () => {
|
754
|
+
utilities.verifyCSS(dialogBoxBase.dialogBoxTitle(), {
|
755
|
+
'color': css.color.flyoutTitle,
|
756
|
+
'font-size': css.fontSize.heading,
|
757
|
+
'font-weight': css.fontWeight.semibold
|
758
|
+
});
|
759
|
+
utilities.verifyCSS(dialogBoxBase.dialogBoxContent(), {
|
760
|
+
'color': css.color.labels,
|
761
|
+
'font-size': css.fontSize.default,
|
762
|
+
'font-weight': css.fontWeight.regular
|
763
|
+
});
|
764
|
+
utilities.verifyCSS(dialogBoxBase.buttonClose().find('svg'), {
|
765
|
+
'fill': css.color.closeIcon
|
766
|
+
});
|
767
|
+
});
|
768
|
+
|
769
|
+
it('Accessibility of warning popup', { tags: 'a11y' }, () => {
|
770
|
+
cy.checkAccessibility(dialogBoxBase.dialogBox());
|
771
|
+
dialogBoxBase.steps.closeWarningPopup();
|
772
|
+
});
|
773
|
+
},
|
774
|
+
|
775
|
+
//TODO need to remove once Save as you go is available for all questions
|
776
|
+
verifyWarningPopupAndAccordionNavigationWhenNoPointsAddedInAlternativeAccordion: () => {
|
777
|
+
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', () => {
|
778
|
+
autoScoredSpecifyCorrectAnswerSection.correctAnswerAccordion()
|
779
|
+
.click();
|
780
|
+
dialogBoxBase.steps.closeWarningPopup();
|
781
|
+
//TODO: Need to add error message according to question types
|
782
|
+
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'exist');
|
783
|
+
autoScoredSpecifyCorrectAnswerSection.alternativeAnswerAccordion()
|
784
|
+
.eq(1)
|
785
|
+
.should('have.attr', 'aria-expanded', 'true');
|
786
|
+
});
|
787
|
+
},
|
788
|
+
|
722
789
|
verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet: () => {
|
723
790
|
it('When the user has not set correct answer option(s) and alloted points, \'Student view\' radio button should be checked, \'Grading view\' button should not be checked, 0 points should be displayed and no correct or incorrect icons should be displayed in the preview tab', () => {
|
724
791
|
utilities.verifyInnerText(autoScoredScoringPreviewTab.studentViewRadioButtonLabel(), 'Student view');
|
@@ -3,7 +3,7 @@ import utilities from "../support/helpers/utilities"
|
|
3
3
|
import { questionInstructionsComponent, questionInputFieldComponent, createQuestionBasePage, commonComponents, additionalSettingsPanel, autoScoredSpecifyCorrectAnswerSection, scoringSectionBaseEditTab, autoScoredScoringSectionMultiResponseType, autoScoredScoringPreviewTab, equationEditorFlyout, autoScoredStudentViewSettings, correctIncorrectAnswerLabelComponent, ckEditorToolbar, colorPopupComponent, gradingViewEnumerationComponent, ariaLabelSectionComponent, additionalSettingsAccessibilitySectionComponent, equationEditorSectionCommonComponent, styleAndLayoutCustomizationAccordionComponent, imageCanvasComponent } from "./components"
|
4
4
|
import { customSettingsSeparatorComponent } from "./components/customSettingsSeparatorsComponent";
|
5
5
|
import { dialogBoxBase } from "./dialogBoxBase";
|
6
|
-
|
6
|
+
import { createItemPage } from "./createItemPage";
|
7
7
|
|
8
8
|
const css = Cypress.env('css');
|
9
9
|
const borderStyles = ["Dashed", "Dotted", "Solid", "None"]
|
@@ -197,6 +197,8 @@ const steps = {
|
|
197
197
|
...equationEditorSectionCommonComponent.steps,
|
198
198
|
...styleAndLayoutCustomizationAccordionComponent.steps,
|
199
199
|
...imageCanvasComponent.steps,
|
200
|
+
...createItemPage.steps,
|
201
|
+
|
200
202
|
verifyAddStructureTabIsSelected: () => {
|
201
203
|
textEntryMathPage.addStructureTab()
|
202
204
|
.should('have.attr', 'aria-selected', 'true');
|
@@ -856,6 +858,7 @@ const steps = {
|
|
856
858
|
textEntryMathPage.responseFieldWrapperPreviewTab()
|
857
859
|
.eq(index)
|
858
860
|
.within(() => {
|
861
|
+
cy.wait(1000);
|
859
862
|
textEntryMathPage.tickIcon()
|
860
863
|
.verifyPseudoClassBeforeProperty('color', css.color.correctAnswer);
|
861
864
|
});
|
@@ -869,6 +872,7 @@ const steps = {
|
|
869
872
|
textEntryMathPage.responseFieldWrapperPreviewTab()
|
870
873
|
.eq(index)
|
871
874
|
.within(() => {
|
875
|
+
cy.wait(1000);
|
872
876
|
textEntryMathPage.tickIcon()
|
873
877
|
.verifyPseudoClassBeforeProperty('color', css.color.incorrectAnswer);
|
874
878
|
});
|
@@ -1861,7 +1865,7 @@ const tests = {
|
|
1861
1865
|
if (type === 'add background') {
|
1862
1866
|
textEntryMathPage.steps.insertResponseArea(60);
|
1863
1867
|
textEntryMathPage.steps.verifyResponseAreaFillColorAddBackGround(0, modifiedColor);
|
1864
|
-
textEntryMathPage.steps.verifyResponseAreaFillColorAddBackGround(1, modifiedColor)
|
1868
|
+
textEntryMathPage.steps.verifyResponseAreaFillColorAddBackGround(1, modifiedColor);
|
1865
1869
|
}
|
1866
1870
|
else {
|
1867
1871
|
textEntryMathPage.steps.addResponseArea();
|
@@ -1921,7 +1925,7 @@ const tests = {
|
|
1921
1925
|
textEntryMathPage.steps.insertResponseArea(60);
|
1922
1926
|
textEntryMathPage.steps.switchToPreviewTab();
|
1923
1927
|
textEntryMathPage.steps.verifyAnswerInputFieldFillColorAddBackground(0, modifiedColor);
|
1924
|
-
textEntryMathPage.steps.verifyAnswerInputFieldFillColorAddBackground(1, modifiedColor)
|
1928
|
+
textEntryMathPage.steps.verifyAnswerInputFieldFillColorAddBackground(1, modifiedColor);
|
1925
1929
|
}
|
1926
1930
|
else {
|
1927
1931
|
textEntryMathPage.steps.addResponseArea();
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { imageCanvasComponent, backgroundImageUploadComponent, questionInstructionsComponent, autoScoredScoringPreviewTab, connectorStyleStyleAndLayoutCustomizationComponent } from "./components"
|
2
2
|
import { textEntryMathPage } from "./textEntryMathPage";
|
3
3
|
import { dialogBoxBase } from "./dialogBoxBase";
|
4
|
+
import { createItemPage } from "./createItemPage";
|
4
5
|
import utilities from "../support/helpers/utilities";
|
5
6
|
const css = Cypress.env('css');
|
6
7
|
|
@@ -36,7 +37,9 @@ const steps = {
|
|
36
37
|
...imageCanvasComponent.steps,
|
37
38
|
...questionInstructionsComponent.steps,
|
38
39
|
...textEntryMathPage.steps,
|
40
|
+
...createItemPage.steps,
|
39
41
|
...connectorStyleStyleAndLayoutCustomizationComponent.steps,
|
42
|
+
|
40
43
|
addBackground: () => {
|
41
44
|
textEntryMathWithImagePage.addBackgroundButton()
|
42
45
|
.click();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.338",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -52,4 +52,4 @@
|
|
52
52
|
"devDependencies": {
|
53
53
|
"@applitools/eyes-cypress": "^3.47.0"
|
54
54
|
}
|
55
|
-
}
|
55
|
+
}
|