itemengine-cypress-automation 1.0.155-migrationScripts-86e4c95.0 → 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 +2 -2
- package/cypress/e2e/ILC/MultipleSelection/multipleSelectionAdditionalSettings.js +0 -835
- package/cypress/e2e/ILC/SingleSelection/singleSelectionAdditionalSettings.js +0 -469
@@ -358,6 +358,7 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
358
358
|
});
|
359
359
|
});
|
360
360
|
|
361
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566924
|
361
362
|
describe('Limit number of retake : Preview tab', () => {
|
362
363
|
abortEarlySetup();
|
363
364
|
before(() => {
|
@@ -491,7 +492,6 @@ describe('Create item page - Audio response: Student view settings', () => {
|
|
491
492
|
utilities.verifyElementDisabled(audioResponsePage.compactPreviewRetakeButton());
|
492
493
|
});
|
493
494
|
|
494
|
-
///Bug
|
495
495
|
it('For "Compact" mode, When the user checks the "Show students the retake limits on tooltip" checkbox and has set a retake limit and switches to the preview tab, then on hovering over the retake recording button, Retake recording (# retakes remaining) should be displayed on a tooltip', () => {
|
496
496
|
audioResponsePage.steps.switchToEditTab();
|
497
497
|
audioResponsePage.steps.checkShowStudentsTheRetakeLimitsOnTooltipCheckbox();
|
@@ -18,7 +18,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
18
18
|
cy.barsPreLoaderWait();
|
19
19
|
});
|
20
20
|
|
21
|
-
desmosGraphingPage.tests.
|
21
|
+
desmosGraphingPage.tests.verifyAdditionalSettingsAccordionProperties();
|
22
22
|
});
|
23
23
|
|
24
24
|
//Failing due to https://redmine.zeuslearning.com/issues/554758
|
@@ -27,7 +27,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
27
27
|
before(() => {
|
28
28
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
29
29
|
cy.barsPreLoaderWait();
|
30
|
-
desmosGraphingPage.steps.
|
30
|
+
desmosGraphingPage.steps.expandAdditionalSettings();
|
31
31
|
});
|
32
32
|
|
33
33
|
desmosGraphingPage.tests.verifyFontSizeSectionContents();
|
@@ -39,7 +39,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
39
39
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
40
40
|
cy.barsPreLoaderWait();
|
41
41
|
desmosGraphingPage.steps.addQuestionInstructions();
|
42
|
-
desmosGraphingPage.steps.
|
42
|
+
desmosGraphingPage.steps.expandAdditionalSettings();
|
43
43
|
});
|
44
44
|
|
45
45
|
fontSizeDropdownOptions.forEach((option, fontsIndex) => {
|
@@ -59,7 +59,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
59
59
|
abortEarlySetup();
|
60
60
|
before(() => {
|
61
61
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
62
|
-
desmosGraphingPage.steps.
|
62
|
+
desmosGraphingPage.steps.expandAdditionalSettings();
|
63
63
|
});
|
64
64
|
|
65
65
|
it('When the user expands additional settings accordion then \'Accessibility\' label should be displayed', () => {
|
@@ -105,7 +105,7 @@ describe('Desmos graphing: Additional Settings accordion', () => {
|
|
105
105
|
before(() => {
|
106
106
|
desmosGraphingPage.steps.navigateToCreateQuestion('Desmos graphing');
|
107
107
|
cy.barsPreLoaderWait();
|
108
|
-
desmosGraphingPage.steps.
|
108
|
+
desmosGraphingPage.steps.expandAdditionalSettings();
|
109
109
|
});
|
110
110
|
|
111
111
|
desmosGraphingPage.tests.verifyDetailsSection();
|
@@ -80,7 +80,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
80
80
|
});
|
81
81
|
|
82
82
|
//Need to check once https://redmine.zeuslearning.com/issues/558925 is resolved
|
83
|
-
it('When the user attempts question with the common option from another group and all other correct options then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should be displayed
|
83
|
+
it('When the user attempts question with the common option from another group and all other correct options then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
|
84
84
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
85
85
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { optionText: 'Bat', dropzoneIndex: 0 })
|
86
86
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
|
@@ -93,7 +93,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
|
|
93
93
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
94
94
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
95
95
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
|
96
|
-
dragAndDropIntoCategoriesPage.steps.
|
96
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
97
97
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
98
98
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
99
99
|
cy.log('When the user attempts the question with the common option from another group then the user should be awarded and clicks on \'Check answer\' button, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
|
@@ -199,10 +199,10 @@ describe('Create item page - Drag and drop into categories: All or nothing with
|
|
199
199
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
200
200
|
cy.log('When the user has attempted the question with partially correct such that more number of correct options are exclusively from the alternative accordion but with one option exclusively from the correct accordion in the same cell and clicks on \'Check answer\' button, then correct icon should be displayed besides the responses from the alternative accordions, incorrect icon should be displayed besides the responses from the correct accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
201
201
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
202
|
-
dragAndDropIntoCategoriesPage.steps.
|
203
|
-
dragAndDropIntoCategoriesPage.steps.
|
204
|
-
dragAndDropIntoCategoriesPage.steps.
|
205
|
-
dragAndDropIntoCategoriesPage.steps.
|
202
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
203
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
204
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
205
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
206
206
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
207
207
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
208
208
|
});
|
@@ -242,16 +242,16 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
242
242
|
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(18, 108);
|
243
243
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
244
244
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
245
|
-
dragAndDropIntoCategoriesPage.steps.
|
246
|
-
dragAndDropIntoCategoriesPage.steps.
|
245
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
246
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
247
247
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
248
248
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '4', '5', '6']);
|
249
249
|
dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
250
250
|
cy.log('When the user has attempted the question partially correct such that more number of options are exclusively from the correct accordion but with one option common across both the accordions and clicks on \'Check answer\' button, then the correct icon should be displayed besides the common correct answer responses, incorrect icon should be displayed besides correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
|
251
251
|
dragAndDropIntoCategoriesPage.steps.checkAnswer();
|
252
252
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
253
|
-
dragAndDropIntoCategoriesPage.steps.
|
254
|
-
dragAndDropIntoCategoriesPage.steps.
|
253
|
+
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(1);
|
254
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(2);
|
255
255
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
256
256
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
|
257
257
|
});
|
@@ -167,7 +167,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
|
|
167
167
|
it('When the user attempts the question partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option, then the user should be awarded points as per the total of correct options as per the alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed', () => {
|
168
168
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
169
169
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4, 'Octopus': 5, 'Whale': 5 });
|
170
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(
|
170
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(30, 30);
|
171
171
|
dragAndDropIntoCategoriesPage.steps.switchToGradingView();
|
172
172
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
|
173
173
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(1);
|
@@ -79,7 +79,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
|
|
79
79
|
it('When the user attempts the question correctly along with multiple incorrect option, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
80
80
|
dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
|
81
81
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Flying squirrel': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
|
82
|
-
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(
|
82
|
+
dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(17, 25);
|
83
83
|
});
|
84
84
|
|
85
85
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -88,7 +88,7 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
88
88
|
|
89
89
|
it('\'Add Header Row\' and \'Highlight First Column\' label should be displayed in the flyout with a checkbox beside it.', () => {
|
90
90
|
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBoxAddRowHeaderLabel(), 'visible');
|
91
|
-
utilities.verifyInnerText(essayResponsePage.editTableDialogBoxAddRowHeaderLabel(), 'Add header
|
91
|
+
utilities.verifyInnerText(essayResponsePage.editTableDialogBoxAddRowHeaderLabel(), 'Add row header');
|
92
92
|
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBoxHighlightFirstColumnLabel(), 'visible');
|
93
93
|
utilities.verifyInnerText(essayResponsePage.editTableDialogBoxHighlightFirstColumnLabel(), 'Highlight first column');
|
94
94
|
});
|
@@ -131,7 +131,7 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
131
131
|
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBoxButtonCancel(), 'visible');
|
132
132
|
utilities.verifyInnerText(essayResponsePage.editTableDialogBoxButtonCancel(), 'Cancel');
|
133
133
|
essayResponsePage.steps.clickOnEditTableFlyoutCancelButton();
|
134
|
-
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), '
|
134
|
+
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), 'notExist');
|
135
135
|
});
|
136
136
|
});
|
137
137
|
|
@@ -301,14 +301,14 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
301
301
|
essayResponsePage.steps.clickOnEditTableAddRowHeaderCheckbox();
|
302
302
|
essayResponsePage.steps.clickOnEditTableHighlightFirstColumnCheckbox();
|
303
303
|
essayResponsePage.steps.clickOnEditTableFlyoutCancelButton();
|
304
|
-
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), '
|
304
|
+
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), 'notExist');
|
305
305
|
essayResponsePage.steps.verifyTableProperties(2, 6, 0);
|
306
306
|
});
|
307
307
|
|
308
308
|
it('When user checks the \'Add header row\' checkbox, and then clicks on Save button, then the flyout should close and first row of the table should be highlighted as header.', () => {
|
309
309
|
essayResponsePage.steps.clickOnEditTableAddRowHeaderCheckbox();
|
310
310
|
essayResponsePage.steps.clickOnEditTableFlyoutSaveButton();
|
311
|
-
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), '
|
311
|
+
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), 'notExist');
|
312
312
|
essayResponsePage.steps.verifyTableRowHeaderCellCount(0, 3);
|
313
313
|
essayResponsePage.steps.verifyTableHeaderCellsAreHighlighted();
|
314
314
|
});
|
@@ -316,7 +316,7 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
316
316
|
it('When user checks the \'Highlight first column\' checkbox, and then clicks on Save button, then the flyout should close and first column of the table should be highlighted as header.', () => {
|
317
317
|
essayResponsePage.steps.clickOnEditTableHighlightFirstColumnCheckbox();
|
318
318
|
essayResponsePage.steps.clickOnEditTableFlyoutSaveButton();
|
319
|
-
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), '
|
319
|
+
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), 'notExist');
|
320
320
|
essayResponsePage.steps.verifyTableRowHeaderCellCount(0, 1);
|
321
321
|
essayResponsePage.steps.verifyTableRowHeaderCellCount(1, 1);
|
322
322
|
essayResponsePage.steps.verifyTableHeaderCellsAreHighlighted();
|
@@ -364,7 +364,7 @@ describe('Essay Response Preview: Edit Table functionality', () => {
|
|
364
364
|
|
365
365
|
it('When user clicks on \'Delete\' button, then the flyout should close and the table should be deleted.', () => {
|
366
366
|
essayResponsePage.steps.clickOnEditTableFlyoutDeleteButton();
|
367
|
-
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), '
|
367
|
+
utilities.verifyElementVisibilityState(essayResponsePage.editTableDialogBox(), 'notExist');
|
368
368
|
utilities.verifyElementVisibilityState(essayResponsePage.previewInputFieldTable(), 'notExist');
|
369
369
|
});
|
370
370
|
|
@@ -98,7 +98,7 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
98
98
|
it('\'Cancel\' button should be displayed in the popup and when user clicks on it then the popup should close', () => {
|
99
99
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogboxButtonCancel(), 'visible');
|
100
100
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxCancelButton();
|
101
|
-
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogBox(), '
|
101
|
+
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogBox(), 'notExist');
|
102
102
|
});
|
103
103
|
});
|
104
104
|
|
@@ -130,8 +130,8 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
130
130
|
essayResponsePage.steps.enterTextInHyperlinkDialogBoxURLInputField(`${Cypress.config().baseUrl}`);
|
131
131
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxOkButton();
|
132
132
|
utilities.verifyInnerText(essayResponsePage.previewInputFieldHyperlinkText(), `${Cypress.config().baseUrl}`);
|
133
|
-
essayResponsePage.steps.verifyHyperlinkDialogBoxURLInputValue(`${Cypress.config().baseUrl}`);
|
134
133
|
essayResponsePage.steps.rightClickHyperlinkText();
|
134
|
+
essayResponsePage.steps.verifyHyperlinkDialogBoxURLInputValue(`${Cypress.config().baseUrl}`);
|
135
135
|
utilities.verifyElementVisibilityState(essayResponsePage.hyperlinkDialogBox(), 'exist');
|
136
136
|
essayResponsePage.steps.verifyHyperlinkDialogBoxDisplayTextInputValue(`${Cypress.config().baseUrl}`);
|
137
137
|
essayResponsePage.steps.verifyHyperlinkDialogBoxURLInputValue(`${Cypress.config().baseUrl}`);
|
@@ -163,7 +163,6 @@ describe('Essay Response Preview: Hyperlink', () => {
|
|
163
163
|
essayResponsePage.steps.enterTextInHyperlinkDialogBoxURLInputField(`${Cypress.config().baseUrl}`);
|
164
164
|
essayResponsePage.steps.clickOnHyperLinkDialogBoxOkButton();
|
165
165
|
utilities.verifyInnerText(essayResponsePage.previewInputFieldHyperlinkText(), 'Link')
|
166
|
-
essayResponsePage.steps.verifyHyperlinkDialogBoxURLInputValue(`${Cypress.config().baseUrl}`);
|
167
166
|
});
|
168
167
|
|
169
168
|
it('CSS of the hyperlink in response field', { tags: 'css' }, () => {
|
@@ -257,6 +257,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
|
|
257
257
|
});
|
258
258
|
});
|
259
259
|
|
260
|
+
//Failing due to https://redmine.zeuslearning.com/issues/567111
|
260
261
|
describe('Question preview: Auto scored - Partial different weights: Penalty scoring with \'Round negative score to zero\' unchecked', () => {
|
261
262
|
abortEarlySetup();
|
262
263
|
before(() => {
|
@@ -115,8 +115,9 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
115
115
|
});
|
116
116
|
|
117
117
|
it('When the user drops an option on a filled dropzone, the existing option should persist in the dropzone', () => {
|
118
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower':
|
119
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals'
|
118
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 1 });
|
119
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
|
120
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(1, ['Flower']);
|
120
121
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
121
122
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Stem', 'Seed']);
|
122
123
|
});
|
@@ -157,17 +158,18 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
157
158
|
|
158
159
|
fillInTheGapsDragAndDropPage.tests.verifyErrorMessageCSSAndA11y();
|
159
160
|
|
160
|
-
it('When the user fills a dropzone, the dropzone should get filled with the option and the \'Error: Please set a correct answer\' error message should disappear', () => {
|
161
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
|
162
|
-
fillInTheGapsDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
|
163
|
-
});
|
164
|
-
|
165
161
|
it('The user should be able to move an option from one dropzone to another dropzone', () => {
|
162
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
|
166
163
|
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfSpecifyCorrectAnswerSection('Petals', 0);
|
167
164
|
fillInTheGapsDragAndDropPage.steps.clickOnDropzoneOfSpecifyCorrectAnswerSection(1);
|
168
165
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextSpecifyCorrectAnswerSection(0, '');
|
169
166
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(1, ['Petals']);
|
170
167
|
});
|
168
|
+
|
169
|
+
it('When the user fills a dropzone, the dropzone should get filled with the option and the \'Error: Please set a correct answer\' error message should disappear', () => {
|
170
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
|
172
|
+
});
|
171
173
|
});
|
172
174
|
|
173
175
|
describe('Click and drop cases for \'Standard\' response options layout in \'Preview tab\'', () => {
|
@@ -281,8 +283,9 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
281
283
|
});
|
282
284
|
|
283
285
|
it('When the user drops an option on a filled dropzone, the existing option should persist in the dropzone', () => {
|
284
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower':
|
285
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals'
|
286
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1 });
|
287
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals']);
|
288
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
|
286
289
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
287
290
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Stem', 'Seed']);
|
288
291
|
});
|
@@ -315,9 +318,9 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
315
318
|
|
316
319
|
it('The user should be able to move an option from one dropzone to another dropzone', () => {
|
317
320
|
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('Petals', 0);
|
318
|
-
fillInTheGapsDragAndDropPage.steps.clickOnDropzoneOfPreviewTab(
|
319
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(
|
320
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(
|
321
|
+
fillInTheGapsDragAndDropPage.steps.clickOnDropzoneOfPreviewTab(2);
|
322
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
|
323
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(2, ['Petals']);
|
321
324
|
});
|
322
325
|
});
|
323
326
|
|
@@ -327,6 +330,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
327
330
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
328
331
|
cy.barsPreLoaderWait();
|
329
332
|
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
333
|
+
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
330
334
|
fillInTheGapsDragAndDropPage.steps.expandDraggableOptionsLayoutDropdown();
|
331
335
|
fillInTheGapsDragAndDropPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
332
336
|
fillInTheGapsDragAndDropPage.steps.addGroupTitle('Group A');
|
@@ -427,8 +431,9 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
427
431
|
});
|
428
432
|
|
429
433
|
it('When the user drops an option on a filled dropzone, the existing option should persist in the dropzone', () => {
|
430
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower':
|
431
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals'
|
434
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 1 });
|
435
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
|
436
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(1, ['Flower']);
|
432
437
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
|
433
438
|
fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, ['Stem', 'Seed']);
|
434
439
|
});
|
@@ -470,20 +475,20 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
470
475
|
|
471
476
|
fillInTheGapsDragAndDropPage.tests.verifyErrorMessageCSSAndA11y();
|
472
477
|
|
473
|
-
it('When the user fills a dropzone, the dropzone should get filled with the option and the \'Error: Please set a correct answer\' error message should disappear', () => {
|
474
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
|
475
|
-
fillInTheGapsDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
|
476
|
-
});
|
477
|
-
|
478
478
|
it('The user should be able to move an option from one dropzone to another dropzone', () => {
|
479
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
|
479
480
|
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfSpecifyCorrectAnswerSection('Petals', 0);
|
480
481
|
fillInTheGapsDragAndDropPage.steps.clickOnDropzoneOfSpecifyCorrectAnswerSection(1);
|
481
482
|
fillInTheGapsDragAndDropPage.steps.verifyDropzoneTextSpecifyCorrectAnswerSection(0, '');
|
482
483
|
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(1, ['Petals']);
|
483
484
|
});
|
484
485
|
|
486
|
+
it('When the user fills a dropzone, the dropzone should get filled with the option and the \'Error: Please set a correct answer\' error message should disappear', () => {
|
487
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Seed': 2, 'Stem': 3 });
|
488
|
+
fillInTheGapsDragAndDropPage.steps.verifyErrorMessageIsNotDisplayed();
|
489
|
+
});
|
490
|
+
|
485
491
|
it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
|
486
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 0, 'Seed': 2 });
|
487
492
|
fillInTheGapsDragAndDropPage.steps.verifyGroupedOptionsTitleSpecifyCorrectAnswerSection(0, 'Group A')
|
488
493
|
fillInTheGapsDragAndDropPage.steps.verifyEmptyGroupInSpecifyCorrectAnswerSection(0);
|
489
494
|
});
|
@@ -495,6 +500,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
495
500
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
496
501
|
cy.barsPreLoaderWait();
|
497
502
|
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
503
|
+
fillInTheGapsDragAndDropPage.steps.addResponseArea();
|
498
504
|
fillInTheGapsDragAndDropPage.steps.expandDraggableOptionsLayoutDropdown();
|
499
505
|
fillInTheGapsDragAndDropPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
500
506
|
fillInTheGapsDragAndDropPage.steps.addGroupTitle('Group A');
|
@@ -604,15 +610,15 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
604
610
|
cy.checkAccessibility(fillInTheGapsDragAndDropPage.dropzonePreviewTab().parents('.preview-container'));
|
605
611
|
});
|
606
612
|
|
607
|
-
it('When the user drops an option on a filled dropzone, the existing option should persist in the dropzone', () => {
|
613
|
+
it('When the user drops an option on a filled dropzone, the existing option should not persist in the dropzone', () => {
|
608
614
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
|
609
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['
|
615
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Flower']);
|
610
616
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
611
|
-
fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Stem', 'Seed']);
|
617
|
+
fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Petals', 'Stem', 'Seed']);
|
612
618
|
});
|
613
619
|
|
614
620
|
it('When the user selects an option from the filled dropzone, the dropzone should remain inactive', () => {
|
615
|
-
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('
|
621
|
+
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('Flower', 0);
|
616
622
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab(1);
|
617
623
|
});
|
618
624
|
|
@@ -632,20 +638,19 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
|
|
632
638
|
});
|
633
639
|
|
634
640
|
it('When the user deselects an option from the filled dropzone, the option should return to the inactive state', () => {
|
635
|
-
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('
|
641
|
+
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('Flower', 0);
|
636
642
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDraggableOptionsInPreviewTab();
|
637
643
|
fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
|
638
644
|
});
|
639
645
|
|
640
646
|
it('The user should be able to move an option from one dropzone to another dropzone', () => {
|
641
|
-
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('
|
647
|
+
fillInTheGapsDragAndDropPage.steps.clickOnDraggableOptionInDropzoneOfPreviewTab('Flower', 0);
|
642
648
|
fillInTheGapsDragAndDropPage.steps.clickOnDropzoneOfPreviewTab(1);
|
643
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(
|
644
|
-
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Petals']);
|
649
|
+
fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
|
645
650
|
});
|
646
651
|
|
647
652
|
it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
|
648
|
-
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2 });
|
653
|
+
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2, 'Petals': 3 });
|
649
654
|
fillInTheGapsDragAndDropPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
|
650
655
|
fillInTheGapsDragAndDropPage.steps.verifyEmptyGroupInPreviewTab(0);
|
651
656
|
});
|
@@ -26,6 +26,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Draggable opti
|
|
26
26
|
cy.barsPreLoaderWait();
|
27
27
|
});
|
28
28
|
|
29
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566793
|
29
30
|
fillInTheGapsDragAndDropPage.tests.verifyOptionsSectionContents({ optionFieldsCount: 2, optionLabel: 'Options for drag & drop' });
|
30
31
|
|
31
32
|
fillInTheGapsDragAndDropPage.tests.verifyDragHandleTooltip();
|
@@ -98,6 +99,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Draggable opti
|
|
98
99
|
|
99
100
|
fillInTheGapsDragAndDropPage.tests.verifyGroupedOptionsLayoutSectionContents();
|
100
101
|
|
102
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566793
|
101
103
|
fillInTheGapsDragAndDropPage.tests.verifyOptionsSectionContents({ optionFieldsCount: 2, optionLabel: 'Options for drag & drop' });
|
102
104
|
|
103
105
|
it('When only two options are present, the delete buttons should be in disabled state', () => {
|
@@ -78,7 +78,7 @@ describe('Create item page - Fill in the gaps with text: Question instructions,
|
|
78
78
|
fillInTheGapsDragAndDropPage.steps.verifyResponseAreaContents(2);
|
79
79
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.dropzoneSpecifyCorrectAnswerSection(), 3);
|
80
80
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsDragAndDropPage.dropzoneLabelSpecifyCorrectAnswerSection(), 2), 'Dropzone 3');
|
81
|
-
fillInTheGapsDragAndDropPage.steps.
|
81
|
+
fillInTheGapsDragAndDropPage.steps.expandAdditionalSettings();
|
82
82
|
utilities.verifyElementCount(fillInTheGapsDragAndDropPage.enterAriaLabelInputField(), 3);
|
83
83
|
});
|
84
84
|
|
@@ -13,6 +13,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
+
//Failing due to https://redmine.zeuslearning.com/issues/567116
|
16
17
|
describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Alternative answer\' points are more than \'Correct answer\' points', () => {
|
17
18
|
abortEarlySetup();
|
18
19
|
before(() => {
|
@@ -72,6 +72,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
72
72
|
fillInTheGapsDropdownPage.tests.verifyEnabledDeleteButtonAndTooltip();
|
73
73
|
|
74
74
|
it('When user add another response area, another dropdown options tab \'Dropdown 3\' should be added and it should not be in selected state', () => {
|
75
|
+
fillInTheGapsDropdownPage.steps.addResponseArea();
|
75
76
|
utilities.verifyInnerText(utilities.getNthElement(fillInTheGapsDropdownPage.dropdownOptionsTab(), 0), 'Dropdown 1');
|
76
77
|
fillInTheGapsDropdownPage.steps.verifyDropdownOptionsTabIsSelected(0);
|
77
78
|
fillInTheGapsDropdownPage.steps.verifyDropdownOptionsTabIsNotSelected(1);
|
@@ -82,7 +83,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
82
83
|
fillInTheGapsDropdownPage.steps.navigateToDropdownOptionsTab(1);
|
83
84
|
fillInTheGapsDropdownPage.steps.verifyDropdownOptionsTabIsSelected(1);
|
84
85
|
fillInTheGapsDropdownPage.steps.verifyDropdownOptionsTabIsNotSelected(0);
|
85
|
-
for (let index = 0; index <
|
86
|
+
for (let index = 0; index < 4; index++) {
|
86
87
|
fillInTheGapsDropdownPage.steps.verifyOptionsInputFieldContents(index);
|
87
88
|
};
|
88
89
|
});
|
@@ -135,6 +136,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
135
136
|
});
|
136
137
|
});
|
137
138
|
|
139
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
138
140
|
describe('Dropdown options in Specify correct answer section', () => {
|
139
141
|
abortEarlySetup();
|
140
142
|
before(() => {
|
@@ -229,6 +231,7 @@ describe('Create item page - Fill in the gaps with dropdown: Dropdown options se
|
|
229
231
|
});
|
230
232
|
});
|
231
233
|
|
234
|
+
//Failing due to https://redmine.zeuslearning.com/issues/566910
|
232
235
|
describe('Dropdown options in preview tab', () => {
|
233
236
|
abortEarlySetup();
|
234
237
|
before(() => {
|
@@ -81,7 +81,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
81
81
|
fillInTheGapsDropdownPage.steps.verifyResponseAreaContents(2);
|
82
82
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownOptionsTab(), 3);
|
83
83
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.dropdownSpecifyCorrectAnswerSection(), 3);
|
84
|
-
fillInTheGapsDropdownPage.steps.
|
84
|
+
fillInTheGapsDropdownPage.steps.expandAdditionalSettings();
|
85
85
|
utilities.verifyElementCount(fillInTheGapsDropdownPage.enterAriaLabelInputField(), 3);
|
86
86
|
});
|
87
87
|
|
@@ -56,7 +56,9 @@ describe('Create item page - Fill in the gaps with dropdown: Header section and
|
|
56
56
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
57
57
|
fillInTheGapsDropdownPage.steps.addTextInQuestionInstructionsInputField('Select correct option from dropdown');
|
58
58
|
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown);
|
59
|
+
fillInTheGapsDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown);
|
59
60
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, optionsForDropdown[0]);
|
61
|
+
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, optionsForDropdown[1]);
|
60
62
|
fillInTheGapsDropdownPage.steps.allotPoints(10);
|
61
63
|
fillInTheGapsDropdownPage.steps.verifyErrorMessageIsNotDisplayed();
|
62
64
|
fillInTheGapsDropdownPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
@@ -41,7 +41,7 @@ describe('Create Item page - Fill in the gaps with dropdown: Specify correct ans
|
|
41
41
|
|
42
42
|
it('When user has added an alternative answer accordion, then the newly added alternative answer accordion should be in expanded state and the correct answer accordion should be in collapsed state', () => {
|
43
43
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerAccordionIsCollapsed();
|
44
|
-
fillInTheGapsDropdownPage.steps.verifyAlternateAnswerAccordionIsExpanded(
|
44
|
+
fillInTheGapsDropdownPage.steps.verifyAlternateAnswerAccordionIsExpanded(0);
|
45
45
|
});
|
46
46
|
|
47
47
|
fillInTheGapsDropdownPage.tests.verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Alternative');
|
package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js
CHANGED
@@ -123,7 +123,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
123
123
|
});
|
124
124
|
|
125
125
|
it('When user clicks on clear all in canvas, then dropzones in specify correct answer should disappear', () => {
|
126
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
126
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clearAllCanvas();
|
127
127
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageDragAndDropPage.dropzoneWrapperSpecifyCorrectAnswerSection(), 'notExist');
|
128
128
|
});
|
129
129
|
});
|
@@ -294,7 +294,7 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
294
294
|
|
295
295
|
it('When user clicks on \'Clear all\' button, then all dropzones should be deleted in preview tab', () => {
|
296
296
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
|
297
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
297
|
+
fillInTheGapsOverImageDragAndDropPage.steps.clearAllCanvas();
|
298
298
|
fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
|
299
299
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTextBoxNotExistInPreviewTab();
|
300
300
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyDropzoneNotExistInPreviewTab();
|
@@ -119,7 +119,7 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
|
|
119
119
|
});
|
120
120
|
|
121
121
|
it('When the user deletes a dropzone, then points per response should get updated accordingly', () => {
|
122
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
122
|
+
fillInTheGapsOverImageDragAndDropPage.steps.removeResponseArea(3);
|
123
123
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPartialEqualWeightsPointsPerResponseScore('2');
|
124
124
|
});
|
125
125
|
|
@@ -71,7 +71,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Min
|
|
71
71
|
});
|
72
72
|
|
73
73
|
it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
74
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
74
|
+
fillInTheGapsOverImageDragAndDropPage.steps.removeResponseArea(0);
|
75
75
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyPenaltyPointsForEachIncorrectDropzone(2.5);
|
76
76
|
});
|
77
77
|
|
@@ -141,7 +141,7 @@ describe('Create item page - Fill in the gaps over image with drag and drop: Min
|
|
141
141
|
});
|
142
142
|
|
143
143
|
it('When the user deletes an option, then \'points for each incorrect option\' should get updated accordingly', () => {
|
144
|
-
fillInTheGapsOverImageDragAndDropPage.steps.
|
144
|
+
fillInTheGapsOverImageDragAndDropPage.steps.removeResponseArea(0);
|
145
145
|
fillInTheGapsOverImageDragAndDropPage.steps.verifyTotalPenaltyPoints(2);
|
146
146
|
});
|
147
147
|
|
@@ -10,6 +10,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
|
|
10
10
|
cy.loginAs('admin');
|
11
11
|
});
|
12
12
|
|
13
|
+
//Failing due to https://redmine.zeuslearning.com/issues/561248
|
13
14
|
describe('Randomize options : Edit tab', () => {
|
14
15
|
abortEarlySetup();
|
15
16
|
before(() => {
|
@@ -297,7 +297,7 @@ describe('Fill In the gaps over image - dropdown - Additional settings : Placeho
|
|
297
297
|
it('When the user sets aria label, then in the dropdowns of the specify correct answer section, the aria labels should get updated accordingly', () => {
|
298
298
|
fillInTheGapsOverImageDropdownPage.steps.enterTextInAriaLabelInputField(0, 'Select correct option');
|
299
299
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelSpecifyCorrectAnswerSection(0, 'Select correct option');
|
300
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelSpecifyCorrectAnswerSection(1, 'Add answer for response 2');
|
300
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelSpecifyCorrectAnswerSection(1, 'Dropdown 2 Add answer for response 2 ');
|
301
301
|
});
|
302
302
|
});
|
303
303
|
|
@@ -313,13 +313,13 @@ describe('Fill In the gaps over image - dropdown - Additional settings : Placeho
|
|
313
313
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(0, optionsForDropdown1);
|
314
314
|
fillInTheGapsOverImageDropdownPage.steps.addInputToDropdownOptionFields(1, optionsForDropdown2);
|
315
315
|
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(0, correctAnswerArray[0]);
|
316
|
-
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]);
|
316
|
+
fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownSpecifyCorrectAnswerSection(1, correctAnswerArray[1]); fillInTheGapsOverImageDropdownPage.steps.expandAdditionalSettings();
|
317
317
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
318
318
|
});
|
319
319
|
|
320
320
|
it('When the user has not set \'ARIA label\' input field, then default aria labels should be present for the dropdowns in the preview tab', () => {
|
321
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(0, '
|
322
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, '
|
321
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(0, 'Dropdown 1');
|
322
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, 'Dropdown 2');
|
323
323
|
});
|
324
324
|
|
325
325
|
it('When the user has set \'ARIA label\', then it should be present for the dropdowns in the preview tab', () => {
|
@@ -327,7 +327,7 @@ describe('Fill In the gaps over image - dropdown - Additional settings : Placeho
|
|
327
327
|
fillInTheGapsOverImageDropdownPage.steps.enterTextInAriaLabelInputField(0, 'Correct response 1');
|
328
328
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
329
329
|
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(0, 'Correct response 1');
|
330
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, '
|
330
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, 'Dropdown 2');
|
331
331
|
});
|
332
332
|
|
333
333
|
it('Accessibility of input field in preview tab when custom \'ARIA label\' is set', { tags: 'a11y' }, () => {
|
@@ -338,8 +338,8 @@ describe('Fill In the gaps over image - dropdown - Additional settings : Placeho
|
|
338
338
|
fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
|
339
339
|
fillInTheGapsOverImageDropdownPage.steps.clearTextInAriaLabelInputField(0);
|
340
340
|
fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
|
341
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(0, '
|
342
|
-
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, '
|
341
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(0, 'Dropdown 1');
|
342
|
+
fillInTheGapsOverImageDropdownPage.steps.verifyDropdownAriaLabelPreviewTab(1, 'Dropdown 2');
|
343
343
|
});
|
344
344
|
});
|
345
345
|
});
|