itemengine-cypress-automation 1.0.154 → 1.0.155
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/DesmosGraphing/additionalSettings.js +5 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +1 -1
- package/cypress/e2e/ILC/EssayResponse/previewEditTable.js +6 -6
- package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +2 -3
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +34 -29
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/draggableOptions.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownOptionsSection.js +4 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/headerSection.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +20 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +5 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +4 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +5 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/additionalSettingsForAnswerInputFields.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specialCharactersSection.js +0 -8
- package/cypress/e2e/ILC/GeogebraActivity/additionalSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +39 -35
- package/cypress/e2e/ILC/Graphing/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +8 -6
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +475 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +669 -0
- package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +1 -1
- package/cypress/e2e/ILC/GridFill/editTabScoringSection.js +0 -11
- package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +204 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutEditTabFunctionality.js +229 -0
- package/cypress/e2e/ILC/GridFill/gridLayoutPreviewTabFunctionality.js +219 -0
- package/cypress/e2e/ILC/GridFill/minimumScoringPenaltyPointsAndRoundingDropdown.js +2 -0
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
- package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
- package/cypress/e2e/ILC/Matching/headerSection.js +82 -0
- package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +93 -0
- package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/MultipleSelection/editTabScoringSection.js +3 -0
- package/cypress/e2e/ILC/MultipleSelection/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionBasicAccessibility.js +8 -10
- package/cypress/e2e/ILC/MultipleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +16 -25
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +403 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +363 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +393 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +377 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +341 -0
- package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +373 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +0 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +27 -8
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +15 -34
- package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -15
- package/cypress/e2e/ILC/ShortTextResponseNew/specifyCorrectAnswerSection.js +4 -4
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +4 -2
- package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
- package/cypress/e2e/ILC/SingleSelection/specifyCorrectAnswerSection.js +3 -3
- package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +185 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +263 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +140 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +205 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +233 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +214 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +183 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +213 -0
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +21 -17
- package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +25 -25
- package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +20 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
- package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +2 -3
- package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/uplodResponsePreviewUploadedFileProperties.js +2 -2
- package/cypress/fixtures/fillColorDefaultProperties.js +35 -0
- package/cypress/fixtures/theme/ilc.json +2 -1
- package/cypress/fixtures/uploads/sampleVirus.zip +0 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
- package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +4 -1
- package/cypress/pages/components/colorPopupComponent.js +6 -3
- package/cypress/pages/components/commonComponents.js +1 -1
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +4 -3
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +47 -12
- package/cypress/pages/components/gridQuestionCommonComponent.js +0 -81
- package/cypress/pages/components/imageCanvasComponent.js +10 -8
- package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
- package/cypress/pages/components/questionInputFieldComponent.js +1 -1
- package/cypress/pages/components/questionInstructionsComponent.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/essayResponsePage.js +4 -4
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +34 -23
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +0 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +26 -4
- package/cypress/pages/fillInTheGapsOverImageTextPage.js +0 -29
- package/cypress/pages/graphingPage.js +26 -16
- package/cypress/pages/gridFillPage.js +1610 -90
- package/cypress/pages/matchingPage.js +164 -20
- package/cypress/pages/multipleSelectionGridPage.js +82 -2
- package/cypress/pages/multipleSelectionPage.js +7 -2
- package/cypress/pages/rulerPage.js +3 -8
- package/cypress/pages/shortTextResponsePage.js +13 -0
- package/cypress/pages/simpleCalculatorPage.js +8 -0
- package/cypress/pages/singleSelectionGridPage.js +58 -2
- package/cypress/pages/textEntryMathPage.js +58 -11
- package/cypress/pages/uploadResponsePage.js +4 -2
- package/package.json +1 -1
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
- package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -13,6 +13,7 @@ const selectors = {
|
|
13
13
|
|
14
14
|
addStructureTab: () => cy.get('[data-ngie-testid="add-structure-tab"]'),
|
15
15
|
responseToken: () => cy.get('.cke_button__addresponse'),
|
16
|
+
penaltyPointsForEachIncorrectOptionInputField: () => cy.get('input[aria-label="Penalty points for each incorrect text container"]'),
|
16
17
|
|
17
18
|
//TODO: Update below selectors after https://redmine.zeuslearning.com/issues/557945 is resolved
|
18
19
|
//Response accordion
|
@@ -41,6 +42,7 @@ const selectors = {
|
|
41
42
|
responseAccordionAddAlternateButton: () => cy.get('[class*="ResponseEvaluationstyles__AnswersWrapper"] .add-option-wrapper-cls button'),
|
42
43
|
answerInputFieldWrapper: () => cy.get('.cloze-math-answer-option-input'),
|
43
44
|
answersInputField: () => cy.get('.equation-input-component .mq-editable-field'),
|
45
|
+
answerInputFieldPlaceholder: () => cy.get('[class*="EquationInputstyles__Placeholder"]'),
|
44
46
|
answersInputFieldDeleteButton: () => cy.get('.option-delete-button-wrapper'),
|
45
47
|
answersInputFieldNumeration: () => cy.get('[class*="SingleOptionstyle__AdornmentDiv"]'),
|
46
48
|
|
@@ -126,6 +128,49 @@ const steps = {
|
|
126
128
|
.click();
|
127
129
|
},
|
128
130
|
|
131
|
+
/**
|
132
|
+
* @description Verify response token numeration and close button
|
133
|
+
* @param {number} responseAreaIndex response token index
|
134
|
+
*/
|
135
|
+
verifyResponseAreaContents: (responseAreaIndex) => {
|
136
|
+
utilities.getNthElement(questionInputFieldComponent.responseArea(), responseAreaIndex)
|
137
|
+
.within(() => {
|
138
|
+
utilities.verifyInnerText(questionInputFieldComponent.responseAreaNumeration(), `${responseAreaIndex + 1}`);
|
139
|
+
utilities.verifyElementVisibilityState(questionInputFieldComponent.responseAreaNumeration(), 'visible');
|
140
|
+
utilities.verifyElementVisibilityState(questionInputFieldComponent.responseAreaCloseButton(), 'visible');
|
141
|
+
});
|
142
|
+
},
|
143
|
+
|
144
|
+
/**
|
145
|
+
* verify the displayed penalty points for each incorrect option
|
146
|
+
* @param {number} penaltyPoints displayed penalty points
|
147
|
+
*/
|
148
|
+
verifyPenaltyPointsForEachIncorrectTextContainer: (penaltyPoints) => {
|
149
|
+
utilities.verifyInnerText(autoScoredScoringSectionMultiResponseType.penaltyPointsDetailsSectionAllottedPointsLabel(), `Penalty points for each incorrect text container: ${penaltyPoints}`);
|
150
|
+
},
|
151
|
+
|
152
|
+
/**
|
153
|
+
* Verifies the penalty points value for each incorrect option in the multiple selection question.
|
154
|
+
* @param {number} points - The expected penalty points value for each incorrect option.
|
155
|
+
*/
|
156
|
+
verifyPenaltyPointsForEachIncorrectOptionValue: (points) => {
|
157
|
+
textEntryMathPage.penaltyPointsForEachIncorrectOptionInputField()
|
158
|
+
.should('have.value', points);
|
159
|
+
},
|
160
|
+
|
161
|
+
/**
|
162
|
+
* Allots penalty points for each incorrect option in the multiple selection question.
|
163
|
+
* @param {number} points - The penalty points to be allotted for each incorrect option.
|
164
|
+
*/
|
165
|
+
allotPenaltyPointsForEachIncorrectOption: (points) => {
|
166
|
+
textEntryMathPage.penaltyPointsForEachIncorrectOptionInputField()
|
167
|
+
.clear()
|
168
|
+
.type(`${points}`)
|
169
|
+
.should('have.value', points)
|
170
|
+
.blur();
|
171
|
+
},
|
172
|
+
|
173
|
+
|
129
174
|
/**
|
130
175
|
* @description Verify response accordion is collapsed in specify correct answer section
|
131
176
|
* @param {number} responseIndex index of response accordion
|
@@ -320,8 +365,8 @@ const steps = {
|
|
320
365
|
verifyAnswerInputFieldPlaceholder: (answerFieldIndex) => {
|
321
366
|
utilities.getNthElement(textEntryMathPage.answerInputFieldWrapper(), answerFieldIndex)
|
322
367
|
.within(() => {
|
323
|
-
textEntryMathPage.
|
324
|
-
.should('have.
|
368
|
+
textEntryMathPage.answerInputFieldPlaceholder()
|
369
|
+
.should('have.text', `Enter answer`);
|
325
370
|
});
|
326
371
|
},
|
327
372
|
|
@@ -387,8 +432,8 @@ const steps = {
|
|
387
432
|
verifyAnswerInputFieldPlaceholderNotExists: (answerFieldIndex) => {
|
388
433
|
utilities.getNthElement(textEntryMathPage.answerInputFieldWrapper(), answerFieldIndex)
|
389
434
|
.within(() => {
|
390
|
-
textEntryMathPage.
|
391
|
-
.should('
|
435
|
+
textEntryMathPage.answerInputFieldPlaceholder()
|
436
|
+
.should('not.exist');
|
392
437
|
});
|
393
438
|
},
|
394
439
|
|
@@ -655,7 +700,7 @@ const steps = {
|
|
655
700
|
utilities.getNthElement(textEntryMathPage.responseFieldPreviewTab(), index)
|
656
701
|
.contains(inputFieldText);
|
657
702
|
},
|
658
|
-
|
703
|
+
|
659
704
|
/**
|
660
705
|
*@description Verifies the correctness of answer responses in the correct answer section, including the count.
|
661
706
|
* @param {string[]} correctAnswerArray An array of arrays, each containing the expected answer options for a specific correct answer section.
|
@@ -816,8 +861,8 @@ const tests = {
|
|
816
861
|
});
|
817
862
|
|
818
863
|
it('When user adds response tokens in the question section they should be displayed in the \'Specify correct answer\' section in collapsed state', () => {
|
819
|
-
textEntryMathPage.steps.
|
820
|
-
textEntryMathPage.steps.
|
864
|
+
textEntryMathPage.steps.addResponseToken();
|
865
|
+
textEntryMathPage.steps.addResponseToken();
|
821
866
|
utilities.verifyElementCount(textEntryMathPage.responseAccordion(), 2);
|
822
867
|
textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
|
823
868
|
textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
|
@@ -837,13 +882,15 @@ const tests = {
|
|
837
882
|
|
838
883
|
it('When user focuses in and out of the response accordion \'Answer\' input field, \'Error: Answer is required.\' error message should be displayed', () => {
|
839
884
|
textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
|
840
|
-
textEntryMathPage.steps.
|
885
|
+
textEntryMathPage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
|
886
|
+
equationEditorFlyout.steps.focusInPreviewInputField();
|
887
|
+
equationEditorFlyout.steps.clickOnEquationEditorCancelButton();
|
841
888
|
utilities.verifyElementVisibilityState(commonComponents.errorMessage(), 'visible');
|
842
889
|
utilities.verifyInnerText(commonComponents.errorMessage(), 'Error: Answer is required.');
|
843
890
|
});
|
844
891
|
|
845
892
|
it('When gives an input to \'Answer\' input field,then error message should disappear', () => {
|
846
|
-
textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(a
|
893
|
+
textEntryMathPage.steps.addInputToResponseAnswerInputFieldSpecifyCorrectAnswer(0, '(a+b)(a−b)');
|
847
894
|
commonComponents.steps.verifyErrorMessageIsNotDisplayed();
|
848
895
|
});
|
849
896
|
|
@@ -873,8 +920,8 @@ const tests = {
|
|
873
920
|
});
|
874
921
|
|
875
922
|
it('When user adds response tokens in question input field, then response accordions should be displayed in collapsed state in the \'Specify correct answer section\' with appropriate numeration', () => {
|
876
|
-
textEntryMathPage.steps.
|
877
|
-
textEntryMathPage.steps.
|
923
|
+
textEntryMathPage.steps.addResponseToken();
|
924
|
+
textEntryMathPage.steps.addResponseToken();
|
878
925
|
utilities.verifyElementCount(textEntryMathPage.responseAccordion(), 2);
|
879
926
|
textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(0);
|
880
927
|
textEntryMathPage.steps.verifyResponseAccordionIsCollapsed(1);
|
@@ -5,6 +5,7 @@ import { supportedFileType } from "../fixtures/uploadResponseFileType";
|
|
5
5
|
const css = Cypress.env('css');
|
6
6
|
|
7
7
|
const indexOfDefaultSelectedFileTypes = [0, 1, 2, 3, 4, 5, 6, 7, 20, 21, 22, 28, 29, 30];
|
8
|
+
const uploadControlsOption = ['Capture Photo', 'Google Drive', 'Drag and drop files'];
|
8
9
|
|
9
10
|
const selectors = {
|
10
11
|
...scoringSectionBaseEditTab,
|
@@ -75,7 +76,7 @@ const selectors = {
|
|
75
76
|
fileName: () => cy.get('.studentResponse'),
|
76
77
|
addFileDescriptionInput: () => cy.get('[placeholder="Add file description"]'),
|
77
78
|
addFileDescriptionIcon: () => cy.get('.icon-File-description'),
|
78
|
-
scanningForVirusPreLoader: () => cy.get('
|
79
|
+
scanningForVirusPreLoader: () => cy.get('[alt="loader"]'),
|
79
80
|
virusErrorMessageWrapper: () => cy.get('.FileUploadStatementLarge'),
|
80
81
|
uploadedFileLink: () => cy.get('a[href*="/files/document?key=freeResponse/"]'),
|
81
82
|
editDisplayTextPopupInputField: () => cy.get('.inline-text-question-prefix-wrapper .update-display-text-input'),
|
@@ -216,7 +217,7 @@ const steps = {
|
|
216
217
|
},
|
217
218
|
|
218
219
|
/**
|
219
|
-
* @param {
|
220
|
+
* @param {number} fileIndex - Index of file name
|
220
221
|
* @param {string} fileName - The expected name of the uploaded file.
|
221
222
|
* Verifies the displayed name of an uploaded file
|
222
223
|
*/
|
@@ -602,6 +603,7 @@ const tests = {
|
|
602
603
|
...autoScoredScoringPreviewTab.tests,
|
603
604
|
...commonComponents.tests,
|
604
605
|
...additionalSettingsAccessibilitySectionComponent.tests,
|
606
|
+
...studentViewSettingsLabelComponent.tests,
|
605
607
|
verifyWarningMessageDisappear: () => {
|
606
608
|
it('The error message should disappear if the user clicks anywhere in the upload file content wrapper', () => {
|
607
609
|
uploadResponsePage.inputTypeFile()
|