itemengine-cypress-automation 1.0.276-updatedRepo12thDec-303c8a0.0 → 1.0.277
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +2 -1
- package/cypress/e2e/ILC/ChartsBar/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ChartsLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Compass/compassEditTabBasicsSection.js +5 -11
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +0 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +0 -8
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +0 -8
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +0 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +0 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
- package/cypress/e2e/ILC/EssayResponse/toolSettings.js +2 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingGroupedScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +17 -17
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +7 -7
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsBasic.js +8 -8
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +2 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +1 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +20 -20
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +9 -9
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +18 -18
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +6 -6
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +16 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/toolSettings.js +1 -1
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +4 -2
- package/cypress/e2e/ILC/Graphing/layoutAndGridOptions.js +2 -4
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +0 -1
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +1 -2
- package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +0 -6
- package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
- package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +2 -3
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -2
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +4 -3
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +0 -4
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +3 -2
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +0 -5
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +0 -3
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +3 -6
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/additionalSettingsForAnswerInputFields.js +1 -23
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +0 -476
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +5 -7
- package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +3 -3
- package/cypress/e2e/ILC/ToolAudioPlayerNew/standardAudioPlayerStyle.js +1 -1
- package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +1 -1
- package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +84 -84
- package/cypress/pages/audioPlayerPage.js +2 -2
- package/cypress/pages/components/ariaLabelSectionComponent.js +2 -2
- package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +1 -1
- package/cypress/pages/components/customSettingsSeparatorsComponent.ts +1 -19
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +5 -6
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +2 -6
- package/cypress/pages/components/numberLineCommonComponent.js +5 -12
- package/cypress/pages/components/playbackControlsBaseComponent.js +0 -5
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +1 -18
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +2 -3
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -19
- package/cypress/pages/gridFillPage.js +3 -2
- package/cypress/pages/listOrderingPage.js +12 -19
- package/cypress/pages/matchingPage.js +2 -16
- package/cypress/pages/textEntryMathPage.js +4 -716
- package/cypress/pages/textEntryMathWithImagePage.js +5 -133
- package/package.json +1 -1
- package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +0 -129
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +0 -384
@@ -12,9 +12,10 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
15
|
-
cy.barsPreLoaderWait();
|
16
15
|
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
|
17
16
|
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
17
|
+
cy.barsPreLoaderWait();
|
18
|
+
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
18
19
|
});
|
19
20
|
|
20
21
|
chartsBarPage.tests.verifyAutoScoredSpecifyCorrectAnswerHeaderSectionContents('charts');
|
@@ -39,7 +39,7 @@ describe('Create Item page: Tool settings', () => {
|
|
39
39
|
rulerPage.steps.expandRotationDropdown();
|
40
40
|
rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
|
41
41
|
rulerPage.steps.enterInputToOpacityInputField(60);
|
42
|
-
rulerPage.steps.
|
42
|
+
rulerPage.steps.checkAddShowHideButtonCheckbox();
|
43
43
|
toolSettingsComponent.steps.clickOnOkButton();
|
44
44
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
45
45
|
toolSettingsComponent.steps.verifyToolSelectedState(0);
|
@@ -43,7 +43,7 @@ describe('Create Item page: Tool settings', () => {
|
|
43
43
|
rulerPage.steps.expandRotationDropdown();
|
44
44
|
rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
|
45
45
|
rulerPage.steps.enterInputToOpacityInputField(60);
|
46
|
-
rulerPage.steps.
|
46
|
+
rulerPage.steps.checkAddShowHideButtonCheckbox();
|
47
47
|
toolSettingsComponent.steps.clickOnOkButton();
|
48
48
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
49
49
|
toolSettingsComponent.steps.verifyToolSelectedState(0);
|
@@ -29,12 +29,13 @@ describe("Create Item page - Compass:", () => {
|
|
29
29
|
compassPage.steps.verifyCompassVisibilityLabel("Compass visibility");
|
30
30
|
});
|
31
31
|
|
32
|
-
it("'Add show/hide button' label and checkbox should be displayed and by default the checkbox should be
|
32
|
+
it("'Add show/hide button' label and checkbox should be displayed and by default the checkbox should be unchecked", () => {
|
33
33
|
compassPage.steps.verifyAddShowHideButtonLabel();
|
34
|
-
compassPage.steps.
|
34
|
+
compassPage.steps.verifyAddShowHideButtonCheckboxUnchecked();
|
35
35
|
});
|
36
36
|
|
37
|
-
it("'Launch the compass by default' label and checkbox should be displayed and by default it should be unchecked", () => {
|
37
|
+
it("When the user checks the 'Add show/hide button' checkbox then 'Launch the compass by default' label and checkbox should be displayed and by default it should be unchecked", () => {
|
38
|
+
compassPage.steps.checkAddShowHideButtonCheckbox();
|
38
39
|
compassPage.steps.verifyLaunchToolByDefaultLabel("compass");
|
39
40
|
compassPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
|
40
41
|
});
|
@@ -70,11 +71,6 @@ describe("Create Item page - Compass:", () => {
|
|
70
71
|
it("Accessibility of edit tab contents", { tags: "a11y" }, () => {
|
71
72
|
cy.checkAccessibility(compassPage.compassVisibilityLabel().parents('[class*="TabsComponentstyles__EditTabWrapper"]'));
|
72
73
|
});
|
73
|
-
|
74
|
-
it('User should be able to uncheck the \'Add show/hide button\' checkbox', () => {
|
75
|
-
compassPage.steps.uncheckLaunchToolByDefaultCheckbox();
|
76
|
-
compassPage.steps.verifyCompassToolNotVisible();
|
77
|
-
});
|
78
74
|
});
|
79
75
|
|
80
76
|
describe("Compass: Edit tab functionality", () => {
|
@@ -85,11 +81,9 @@ describe("Create Item page - Compass:", () => {
|
|
85
81
|
});
|
86
82
|
|
87
83
|
it("When the user switches to preview tab then 'Show compass' button should not be displayed and the compass should be displayed", () => {
|
88
|
-
compassPage.steps.switchToEditTab();
|
89
|
-
compassPage.steps.uncheckAddShowHideButtonCheckbox();
|
90
84
|
compassPage.steps.switchToPreviewTab();
|
91
85
|
compassPage.steps.verifyCompassToolIsVisible();
|
92
|
-
utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(),
|
86
|
+
utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(),"notExist");
|
93
87
|
});
|
94
88
|
|
95
89
|
it("When the user checks the 'Add show/hide button' checkbox then 'Show compass' button should be displayed and the compass should not be displayed", () => {
|
@@ -44,7 +44,6 @@ describe('Drag and drop into categories - Additional settings', () => {
|
|
44
44
|
before(() => {
|
45
45
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
46
46
|
cy.barsPreLoaderWait();
|
47
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
48
47
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
49
48
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
50
49
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
@@ -17,7 +17,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
17
17
|
before(() => {
|
18
18
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
19
19
|
cy.barsPreLoaderWait();
|
20
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
21
20
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
22
21
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
23
22
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
@@ -111,7 +110,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
111
110
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
112
111
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
113
112
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
|
114
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']
|
113
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
115
114
|
});
|
116
115
|
|
117
116
|
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -128,7 +127,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
128
127
|
};
|
129
128
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
130
129
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
131
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']
|
130
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
132
131
|
});
|
133
132
|
|
134
133
|
it('When the user attempts the question partially correct with some cells correct, some cells partially correct but incomplete, some cells partially correct with incorrect options, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -151,7 +150,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
151
150
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
152
151
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
153
152
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
154
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']
|
153
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
155
154
|
});
|
156
155
|
|
157
156
|
it('When the user attempts the question partially correct with all the cells correctly attempted but one cell incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -175,7 +174,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
175
174
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
176
175
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
177
176
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
178
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']
|
177
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
179
178
|
});
|
180
179
|
|
181
180
|
it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
|
@@ -201,7 +200,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
201
200
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
202
201
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
203
202
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
204
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']
|
203
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
205
204
|
});
|
206
205
|
|
207
206
|
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
@@ -239,7 +238,6 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
239
238
|
before(() => {
|
240
239
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
241
240
|
cy.barsPreLoaderWait();
|
242
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
243
241
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
244
242
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
245
243
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Platypus', 'Whale']);
|
@@ -16,7 +16,6 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
16
16
|
cy.log('Navigate to Drag and drop into categories question type, add input to option input fields');
|
17
17
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
18
18
|
cy.barsPreLoaderWait();
|
19
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
20
19
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
21
20
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
22
21
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
@@ -155,7 +154,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
155
154
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
|
156
155
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
157
156
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
158
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
157
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
|
159
158
|
});
|
160
159
|
|
161
160
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -179,7 +178,6 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
179
178
|
cy.log('Navigate to Drag and drop into categories question type, add input to option input fields');
|
180
179
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
181
180
|
cy.barsPreLoaderWait();
|
182
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
183
181
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
184
182
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
185
183
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
@@ -338,7 +336,6 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
338
336
|
before(() => {
|
339
337
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
340
338
|
cy.barsPreLoaderWait();
|
341
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
342
339
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
343
340
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
344
341
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
|
@@ -483,7 +480,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
483
480
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
|
484
481
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptions[1]);
|
485
482
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
486
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
483
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'exist');
|
487
484
|
});
|
488
485
|
|
489
486
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -512,7 +509,6 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
512
509
|
before(() => {
|
513
510
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
514
511
|
cy.barsPreLoaderWait();
|
515
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
516
512
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
517
513
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
518
514
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
|
@@ -13,7 +13,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
13
13
|
before(() => {
|
14
14
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
15
15
|
cy.barsPreLoaderWait();
|
16
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
17
16
|
});
|
18
17
|
|
19
18
|
dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsLayoutDropdownSectionContents();
|
@@ -24,7 +23,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
24
23
|
before(() => {
|
25
24
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
26
25
|
cy.barsPreLoaderWait();
|
27
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
28
26
|
});
|
29
27
|
|
30
28
|
dragAndDropIntoCategoriesPage.tests.verifyOptionsSectionContents({ optionFieldsCount: 2, optionLabel: 'Options for drag & drop' });
|
@@ -63,7 +61,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
63
61
|
before(() => {
|
64
62
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
65
63
|
cy.barsPreLoaderWait();
|
66
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
67
64
|
dragAndDropIntoCategoriesPage.steps.addOption();
|
68
65
|
});
|
69
66
|
|
@@ -79,7 +76,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
79
76
|
before(() => {
|
80
77
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
81
78
|
cy.barsPreLoaderWait();
|
82
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
83
79
|
});
|
84
80
|
|
85
81
|
dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsForStandardLayoutInSpecifyCorrectAnswerSection();
|
@@ -99,7 +95,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
99
95
|
before(() => {
|
100
96
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
101
97
|
cy.barsPreLoaderWait();
|
102
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
103
98
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
104
99
|
});
|
105
100
|
|
@@ -111,7 +106,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
111
106
|
before(() => {
|
112
107
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
113
108
|
cy.barsPreLoaderWait();
|
114
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
115
109
|
});
|
116
110
|
|
117
111
|
dragAndDropIntoCategoriesPage.tests.verifyGroupedOptionsLayoutSectionContents();
|
@@ -160,7 +154,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
160
154
|
before(() => {
|
161
155
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
162
156
|
cy.barsPreLoaderWait();
|
163
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
164
157
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
165
158
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
166
159
|
});
|
@@ -189,7 +182,6 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
189
182
|
before(() => {
|
190
183
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
191
184
|
cy.barsPreLoaderWait();
|
192
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
193
185
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
194
186
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
195
187
|
});
|
@@ -15,7 +15,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
15
15
|
before(() => {
|
16
16
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
17
17
|
cy.barsPreLoaderWait();
|
18
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
19
18
|
});
|
20
19
|
|
21
20
|
dragAndDropIntoCategoriesPage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
@@ -26,7 +25,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
26
25
|
before(() => {
|
27
26
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
28
27
|
cy.barsPreLoaderWait();
|
29
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
30
28
|
});
|
31
29
|
|
32
30
|
dragAndDropIntoCategoriesPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
@@ -37,7 +35,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
37
35
|
before(() => {
|
38
36
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
39
37
|
cy.barsPreLoaderWait();
|
40
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
41
38
|
});
|
42
39
|
|
43
40
|
//Default settings
|
@@ -233,7 +230,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
233
230
|
before(() => {
|
234
231
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
235
232
|
cy.barsPreLoaderWait();
|
236
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
237
233
|
});
|
238
234
|
|
239
235
|
it('When user increases the number of columns in the column input stepper using the increase button, then number of columns should also increase in the table displayed in \'Specify correct answer\' section', () => {
|
@@ -292,7 +288,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
292
288
|
before(() => {
|
293
289
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
294
290
|
cy.barsPreLoaderWait();
|
295
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
296
291
|
});
|
297
292
|
|
298
293
|
it('When user increases the number of columns in the column input stepper using the increase button, then the number of columns in the table displayed in preview tab should increase', () => {
|
@@ -360,7 +355,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
360
355
|
before(() => {
|
361
356
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
362
357
|
cy.barsPreLoaderWait();
|
363
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
364
358
|
});
|
365
359
|
|
366
360
|
//Default states
|
@@ -596,7 +590,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
596
590
|
before(() => {
|
597
591
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
598
592
|
cy.barsPreLoaderWait();
|
599
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
600
593
|
});
|
601
594
|
|
602
595
|
it('A table based on the default settings in \'Specify columns and rows\' section should be displayed in the \'Specify correct answer\' section', () => {
|
@@ -671,7 +664,6 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
671
664
|
before(() => {
|
672
665
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
673
666
|
cy.barsPreLoaderWait();
|
674
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
675
667
|
});
|
676
668
|
|
677
669
|
it('When user unchecks \'Set first row cells as heading\' checkbox, then in preview tab the default first row with heading cells should remain unchanged', () => {
|
@@ -145,7 +145,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
145
145
|
before(() => {
|
146
146
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
147
147
|
cy.barsPreLoaderWait();
|
148
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
149
148
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
150
149
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
|
151
150
|
});
|
@@ -194,7 +193,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
194
193
|
before(() => {
|
195
194
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
196
195
|
cy.barsPreLoaderWait();
|
197
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
198
196
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
199
197
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
|
200
198
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
@@ -233,7 +231,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
233
231
|
before(() => {
|
234
232
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
235
233
|
cy.barsPreLoaderWait();
|
236
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
237
234
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
238
235
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale',]);
|
239
236
|
dragAndDropIntoCategoriesPage.steps.checkAllowMultipleInstancesOfSameDraggableOptionCheckbox();
|
@@ -327,7 +324,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
327
324
|
before(() => {
|
328
325
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
329
326
|
cy.barsPreLoaderWait();
|
330
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
331
327
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle']);
|
332
328
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
333
329
|
});
|
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
18
18
|
cy.log('Navigate to drag and drop into categories question type');
|
19
19
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
20
20
|
cy.barsPreLoaderWait();
|
21
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
22
21
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
23
22
|
});
|
24
23
|
|
@@ -44,7 +43,6 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
44
43
|
cy.log('Navigate to drag and drop into categories question type');
|
45
44
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
46
45
|
cy.barsPreLoaderWait();
|
47
|
-
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
48
46
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
49
47
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
50
48
|
});
|
@@ -378,7 +378,6 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
378
378
|
|
379
379
|
it('When the user selects the \'Stroke/font color\' option, then four color blocks: the previously updated color block, \'#008559\', \'#801900\' and \'No fill\' color along with and an add[+] color block should be displayed. \'Close[X] icon\' should be displayed over the new color blocks', () => {
|
380
380
|
drawingResponsePage.steps.selectOptionsTiles([`${drawingToolbarOptionsAndAdditionalOptions.additionalOptions[3]}`]);
|
381
|
-
drawingResponsePage.steps.hoverOutFromStrokeColorButton();
|
382
381
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(0, 'rgb(255, 0, 0)');
|
383
382
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(1, 'rgb(0, 133, 89)');
|
384
383
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(2, 'rgb(128, 25, 0)');
|
@@ -596,7 +595,6 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
596
595
|
});
|
597
596
|
|
598
597
|
it('When the user adds upto 10 color blocks, then the add[+] color block should get disabled when 10 blocks have been added.', () => {
|
599
|
-
drawingResponsePage.steps.expandCustomizeToolbarOptionsAndControlsAccordion();
|
600
598
|
for (let i = 0; i < 6; i++) {
|
601
599
|
drawingResponsePage.steps.clickOnAddColorBlockInDefaultFontStrokeColorBlockSection();
|
602
600
|
drawingResponsePage.steps.clickOnEditTabColorPaletteOkButton();
|
@@ -48,19 +48,13 @@ describe('Create Item page: Tool settings', () => {
|
|
48
48
|
it('When user has made changes for ruler tool in edit tab then changes should be reflected in the ruler tool in the preview tab', () => {
|
49
49
|
cy.log('Switching to Preview Tab');
|
50
50
|
rulerPage.steps.switchToPreviewTab();
|
51
|
-
|
51
|
+
rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Show');
|
52
|
+
rulerPage.steps.clickOnRulerVisibilityButton();
|
52
53
|
utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
|
53
54
|
rulerPage.steps.verifyLengthOfRulerInPreview('12in');
|
54
55
|
rulerPage.steps.verifyColorOfRulerInPreview(1);
|
55
56
|
rulerPage.steps.verifyRulerOpacityInPreview('0.6');
|
56
57
|
rulerPage.steps.verifyRotationButtonWithDegreeVisible();
|
57
|
-
rulerPage.steps.switchToEditTab();
|
58
|
-
toolSettingsComponent.steps.clickOnToolEditIcon(0);
|
59
|
-
rulerPage.steps.checkAddShowHideButtonCheckbox();
|
60
|
-
toolSettingsComponent.steps.clickOnOkButton();
|
61
|
-
rulerPage.steps.switchToPreviewTab();
|
62
|
-
rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Show');
|
63
|
-
rulerPage.steps.clickOnRulerVisibilityButton();
|
64
58
|
});
|
65
59
|
|
66
60
|
it('CSS of the \'Hide ruler\' button', { tags: 'css' }, () => {
|
@@ -11,7 +11,6 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
|
|
11
11
|
before(() => {
|
12
12
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
13
13
|
cy.barsPreLoaderWait();
|
14
|
-
fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
|
15
14
|
fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(3);
|
16
15
|
fillInTheGapsDragAndDropPage.steps.allotPoints(10);
|
17
16
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Bark', 'Stem', 'Trunk']);
|
@@ -34,7 +33,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
|
|
34
33
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1 });
|
35
34
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 10);
|
36
35
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
37
|
-
fillInTheGapsDragAndDropPage.steps.
|
36
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
38
37
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
39
38
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
40
39
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Bark']]);
|
@@ -147,7 +147,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
147
147
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
148
148
|
};
|
149
149
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
|
150
|
-
fillInTheGapsDragAndDropPage.steps.
|
150
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
151
151
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
|
152
152
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
153
153
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
|
@@ -168,7 +168,7 @@ describe('Create item page - Fill in the gaps - drag and drop: All or nothing ',
|
|
168
168
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
|
169
169
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
170
170
|
};
|
171
|
-
fillInTheGapsDragAndDropPage.steps.
|
171
|
+
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
174
174
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -13,7 +13,6 @@ describe('Create item page - Fill in the gaps with text: Dropzone level alternat
|
|
13
13
|
before(() => {
|
14
14
|
fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
|
15
15
|
cy.barsPreLoaderWait();
|
16
|
-
fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the options in appropriate dropzone');
|
17
16
|
fillInTheGapsDragAndDropPage.steps.addOption();
|
18
17
|
fillInTheGapsDragAndDropPage.steps.addOption();
|
19
18
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
@@ -55,9 +55,7 @@ describe('Preview tab contents for all views', () => {
|
|
55
55
|
cy.visit(`/item-engine/demo/render-item/grading-view/${utilities.base64Encoding(itemReferenceID)}`);
|
56
56
|
break;
|
57
57
|
case 'Correct answer view':
|
58
|
-
cy.wait(1000);
|
59
58
|
cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
|
60
|
-
cy.wait(2000);
|
61
59
|
break;
|
62
60
|
default:
|
63
61
|
throw new Error('Invalid view');
|
@@ -39,7 +39,7 @@ describe('Create Item page: Tool settings', () => {
|
|
39
39
|
rulerPage.steps.expandRotationDropdown();
|
40
40
|
rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
|
41
41
|
rulerPage.steps.enterInputToOpacityInputField(60);
|
42
|
-
rulerPage.steps.
|
42
|
+
rulerPage.steps.checkAddShowHideButtonCheckbox();
|
43
43
|
toolSettingsComponent.steps.clickOnOkButton();
|
44
44
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
45
45
|
toolSettingsComponent.steps.verifyToolSelectedState(0);
|
@@ -89,16 +89,16 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
89
89
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
90
90
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
91
91
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
92
|
-
fillInTheGapsDropdownPage.steps.
|
93
|
-
fillInTheGapsDropdownPage.steps.
|
92
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
93
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
94
94
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
95
95
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
96
96
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
97
97
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correctly answered dropdowns, no icon should be displayed for unattempted dropdown, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
98
98
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
99
99
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
100
|
-
fillInTheGapsDropdownPage.steps.
|
101
|
-
fillInTheGapsDropdownPage.steps.
|
100
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
101
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
102
102
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
103
103
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
104
104
|
});
|
@@ -109,16 +109,16 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
109
109
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
110
110
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
111
111
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
112
|
-
fillInTheGapsDropdownPage.steps.
|
113
|
-
fillInTheGapsDropdownPage.steps.
|
112
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
113
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
114
114
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
115
115
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
116
116
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
117
117
|
/*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correctly answered dropdowns, no icon should be displayed for unattempted dropdown, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
118
118
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
119
119
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
120
|
-
fillInTheGapsDropdownPage.steps.
|
121
|
-
fillInTheGapsDropdownPage.steps.
|
120
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
121
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
122
122
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
123
123
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
124
124
|
});
|
@@ -130,7 +130,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
130
130
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
131
131
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
132
132
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
133
|
-
fillInTheGapsDropdownPage.steps.
|
133
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
134
134
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
135
135
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
136
136
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -138,7 +138,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
138
138
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
139
139
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(0);
|
140
140
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
141
|
-
fillInTheGapsDropdownPage.steps.
|
141
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
142
142
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
143
143
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
144
144
|
});
|
@@ -150,7 +150,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
150
150
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
151
151
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
152
152
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
153
|
-
fillInTheGapsDropdownPage.steps.
|
153
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
154
154
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
155
155
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
156
156
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -158,7 +158,7 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
158
158
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
159
159
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
160
160
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(1);
|
161
|
-
fillInTheGapsDropdownPage.steps.
|
161
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
162
162
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
163
163
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
164
164
|
});
|
@@ -168,16 +168,16 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
168
168
|
fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 2, dropdownOption: alternateAnswerArray[2] }]);
|
169
169
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
170
170
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
171
|
-
fillInTheGapsDropdownPage.steps.
|
172
|
-
fillInTheGapsDropdownPage.steps.
|
171
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
172
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
173
173
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(2);
|
174
174
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
175
175
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
176
176
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
177
177
|
/*cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correctly answered dropdowns, no icon should be displayed for unattempted dropdown, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
178
178
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
179
|
-
fillInTheGapsDropdownPage.steps.
|
180
|
-
fillInTheGapsDropdownPage.steps.
|
179
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(0);
|
180
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
181
181
|
fillInTheGapsDropdownPage.steps.verifyCorrectOptionIcon(2);
|
182
182
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
183
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
@@ -189,16 +189,16 @@ describe('Create item page - Fill in the gaps with dropdown: All or nothing with
|
|
189
189
|
fillInTheGapsDropdownPage.steps.verifyPreviewScore(0, 20);
|
190
190
|
fillInTheGapsDropdownPage.steps.switchToGradingView();
|
191
191
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
192
|
-
fillInTheGapsDropdownPage.steps.
|
193
|
-
fillInTheGapsDropdownPage.steps.
|
192
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
193
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
194
194
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
195
195
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(alternateAnswerArray);
|
196
196
|
fillInTheGapsDropdownPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
197
197
|
/*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect dropdowns, no icon should be displayed for unattempted dropdown, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
|
198
198
|
fillInTheGapsDropdownPage.steps.checkAnswer();
|
199
199
|
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(0);
|
200
|
-
fillInTheGapsDropdownPage.steps.
|
201
|
-
fillInTheGapsDropdownPage.steps.
|
200
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(1);
|
201
|
+
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectIconNotExist(2);
|
202
202
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
203
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
204
204
|
});
|