itemengine-cypress-automation 1.0.275-cssUpdates12Dec-bbaeace.0 → 1.0.276-updatedRepo12thDec-303c8a0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +1 -2
- 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 +11 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +7 -5
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +6 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/draggableOptions.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +8 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +4 -0
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +2 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/toolSettings.js +8 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +2 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +1 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -0
- 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 +0 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/specifyCorrectAnswerSection.js +2 -0
- 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 +4 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/styleAndLayoutCustomization.js +2 -1
- 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/layoutAndGridOptions.js +4 -2
- package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +1 -0
- package/cypress/e2e/ILC/ImageHighlight/customiseHighlightStyle.js +2 -1
- package/cypress/e2e/ILC/ImageHighlight/toolSettings.js +1 -1
- package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +2 -0
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +6 -0
- 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 +3 -2
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/NumberLineLabel/toolSettings.js +1 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +2 -1
- package/cypress/e2e/ILC/Protractor/protractorEditTabBasicsSection.js +3 -4
- package/cypress/e2e/ILC/Protractor/protractorEditTabFunctionality.js +4 -0
- package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +2 -3
- package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +5 -0
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +1 -1
- package/cypress/e2e/ILC/SimpleCalculator/calculatorFunctionality.js +3 -0
- package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +6 -3
- 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 +23 -1
- package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +476 -0
- package/cypress/e2e/ILC/TextEntryMath/equationEditor.smoke.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/styleAndLayoutCustomization.js +129 -0
- package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +7 -5
- package/cypress/e2e/ILC/TextEntryMathWithImage/styleAndLayoutCustomization.js +384 -0
- 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 +19 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -1
- package/cypress/pages/components/essayResponseCommonComponents.js +6 -5
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +6 -2
- package/cypress/pages/components/numberLineCommonComponent.js +12 -5
- package/cypress/pages/components/playbackControlsBaseComponent.js +5 -0
- package/cypress/pages/components/scoringSectionBaseEditTab.js +3 -3
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
- package/cypress/pages/drawingResponsePage.js +18 -1
- package/cypress/pages/fillInTheGapsDragAndDropPage.js +3 -2
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -6
- package/cypress/pages/gridFillPage.js +2 -3
- package/cypress/pages/listOrderingPage.js +19 -12
- package/cypress/pages/matchingPage.js +16 -2
- package/cypress/pages/textEntryMathPage.js +716 -4
- package/cypress/pages/textEntryMathWithImagePage.js +133 -5
- package/package.json +1 -1
@@ -12,9 +12,8 @@ describe('Create Item page - Charts - Bar chart: Specify correct answer, Alterna
|
|
12
12
|
abortEarlySetup();
|
13
13
|
before(() => {
|
14
14
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
15
|
-
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
|
16
|
-
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
17
15
|
cy.barsPreLoaderWait();
|
16
|
+
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Bar chart');
|
18
17
|
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
19
18
|
});
|
20
19
|
|
@@ -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.verifyAddShowHideButtonCheckboxChecked();
|
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.verifyAddShowHideButtonCheckboxChecked();
|
47
47
|
toolSettingsComponent.steps.clickOnOkButton();
|
48
48
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
49
49
|
toolSettingsComponent.steps.verifyToolSelectedState(0);
|
@@ -29,13 +29,12 @@ 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 checked", () => {
|
33
33
|
compassPage.steps.verifyAddShowHideButtonLabel();
|
34
|
-
compassPage.steps.
|
34
|
+
compassPage.steps.verifyAddShowHideButtonCheckboxChecked();
|
35
35
|
});
|
36
36
|
|
37
|
-
it("
|
38
|
-
compassPage.steps.checkAddShowHideButtonCheckbox();
|
37
|
+
it("'Launch the compass by default' label and checkbox should be displayed and by default it should be unchecked", () => {
|
39
38
|
compassPage.steps.verifyLaunchToolByDefaultLabel("compass");
|
40
39
|
compassPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
|
41
40
|
});
|
@@ -71,6 +70,11 @@ describe("Create Item page - Compass:", () => {
|
|
71
70
|
it("Accessibility of edit tab contents", { tags: "a11y" }, () => {
|
72
71
|
cy.checkAccessibility(compassPage.compassVisibilityLabel().parents('[class*="TabsComponentstyles__EditTabWrapper"]'));
|
73
72
|
});
|
73
|
+
|
74
|
+
it('User should be able to uncheck the \'Add show/hide button\' checkbox', () => {
|
75
|
+
compassPage.steps.uncheckLaunchToolByDefaultCheckbox();
|
76
|
+
compassPage.steps.verifyCompassToolNotVisible();
|
77
|
+
});
|
74
78
|
});
|
75
79
|
|
76
80
|
describe("Compass: Edit tab functionality", () => {
|
@@ -81,9 +85,11 @@ describe("Create Item page - Compass:", () => {
|
|
81
85
|
});
|
82
86
|
|
83
87
|
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();
|
84
90
|
compassPage.steps.switchToPreviewTab();
|
85
91
|
compassPage.steps.verifyCompassToolIsVisible();
|
86
|
-
utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(),"notExist");
|
92
|
+
utilities.verifyElementVisibilityState(compassPage.previewTabCompassVisibilityButton(), "notExist");
|
87
93
|
});
|
88
94
|
|
89
95
|
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,6 +44,7 @@ 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');
|
47
48
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
48
49
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
49
50
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
@@ -17,6 +17,7 @@ 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');
|
20
21
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
21
22
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
22
23
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
@@ -110,7 +111,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
110
111
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.correctAnswersLabel(), 'Correct answers');
|
111
112
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
112
113
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsNotExist();
|
113
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
114
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
114
115
|
});
|
115
116
|
|
116
117
|
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', () => {
|
@@ -127,7 +128,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
127
128
|
};
|
128
129
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
|
129
130
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
130
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
131
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
131
132
|
});
|
132
133
|
|
133
134
|
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', () => {
|
@@ -150,7 +151,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
150
151
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(2);
|
151
152
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
152
153
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
153
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
154
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
154
155
|
});
|
155
156
|
|
156
157
|
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', () => {
|
@@ -174,7 +175,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
174
175
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(3);
|
175
176
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
|
176
177
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
177
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
178
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
178
179
|
});
|
179
180
|
|
180
181
|
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', () => {
|
@@ -200,7 +201,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
200
201
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
|
201
202
|
dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
|
202
203
|
dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
|
-
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
|
204
|
+
dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale'], []], ['1', '2', '3', '4', '5', '6']);
|
204
205
|
});
|
205
206
|
|
206
207
|
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', () => {
|
@@ -238,6 +239,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
238
239
|
before(() => {
|
239
240
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
240
241
|
cy.barsPreLoaderWait();
|
242
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
241
243
|
dragAndDropIntoCategoriesPage.steps.setRowsAndColumnsForQuestion();
|
242
244
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
243
245
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Platypus', 'Whale']);
|
@@ -16,6 +16,7 @@ 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.');
|
19
20
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
20
21
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
21
22
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
@@ -154,7 +155,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
154
155
|
dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
|
155
156
|
dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
156
157
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
157
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
158
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'visible');
|
158
159
|
});
|
159
160
|
|
160
161
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -178,6 +179,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
178
179
|
cy.log('Navigate to Drag and drop into categories question type, add input to option input fields');
|
179
180
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
180
181
|
cy.barsPreLoaderWait();
|
182
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
181
183
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
182
184
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale']);
|
183
185
|
dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
|
@@ -336,6 +338,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
336
338
|
before(() => {
|
337
339
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
338
340
|
cy.barsPreLoaderWait();
|
341
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
339
342
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
340
343
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
341
344
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
|
@@ -480,7 +483,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
480
483
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
|
481
484
|
dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptions[1]);
|
482
485
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.errorMessage(), 'Error: Please set a correct answer.');
|
483
|
-
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), '
|
486
|
+
utilities.verifyElementVisibilityState(dragAndDropIntoCategoriesPage.errorMessage(), 'visible');
|
484
487
|
});
|
485
488
|
|
486
489
|
dragAndDropIntoCategoriesPage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -509,6 +512,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
|
|
509
512
|
before(() => {
|
510
513
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
511
514
|
cy.barsPreLoaderWait();
|
515
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Drag and drop the animals into the correct category.');
|
512
516
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
513
517
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
514
518
|
dragAndDropIntoCategoriesPage.steps.addGroupTitle('Group A');
|
@@ -13,6 +13,7 @@ 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');
|
16
17
|
});
|
17
18
|
|
18
19
|
dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsLayoutDropdownSectionContents();
|
@@ -23,6 +24,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
23
24
|
before(() => {
|
24
25
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
25
26
|
cy.barsPreLoaderWait();
|
27
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
26
28
|
});
|
27
29
|
|
28
30
|
dragAndDropIntoCategoriesPage.tests.verifyOptionsSectionContents({ optionFieldsCount: 2, optionLabel: 'Options for drag & drop' });
|
@@ -61,6 +63,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
61
63
|
before(() => {
|
62
64
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
63
65
|
cy.barsPreLoaderWait();
|
66
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
64
67
|
dragAndDropIntoCategoriesPage.steps.addOption();
|
65
68
|
});
|
66
69
|
|
@@ -76,6 +79,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
76
79
|
before(() => {
|
77
80
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
78
81
|
cy.barsPreLoaderWait();
|
82
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
79
83
|
});
|
80
84
|
|
81
85
|
dragAndDropIntoCategoriesPage.tests.verifyDraggableOptionsForStandardLayoutInSpecifyCorrectAnswerSection();
|
@@ -95,6 +99,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
95
99
|
before(() => {
|
96
100
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
97
101
|
cy.barsPreLoaderWait();
|
102
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
98
103
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
99
104
|
});
|
100
105
|
|
@@ -106,6 +111,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
106
111
|
before(() => {
|
107
112
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
108
113
|
cy.barsPreLoaderWait();
|
114
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
109
115
|
});
|
110
116
|
|
111
117
|
dragAndDropIntoCategoriesPage.tests.verifyGroupedOptionsLayoutSectionContents();
|
@@ -154,6 +160,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
154
160
|
before(() => {
|
155
161
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
156
162
|
cy.barsPreLoaderWait();
|
163
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
157
164
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
158
165
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
159
166
|
});
|
@@ -182,6 +189,7 @@ describe('Create Item page - Drag and drop into categories: Draggable options se
|
|
182
189
|
before(() => {
|
183
190
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
184
191
|
cy.barsPreLoaderWait();
|
192
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
185
193
|
dragAndDropIntoCategoriesPage.steps.expandDraggableOptionsLayoutDropdown();
|
186
194
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromDraggableOptionsLayoutDropdown('Grouped');
|
187
195
|
});
|
@@ -15,6 +15,7 @@ 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');
|
18
19
|
});
|
19
20
|
|
20
21
|
dragAndDropIntoCategoriesPage.tests.verifyQuestionInstructionsInputFieldEditTab();
|
@@ -25,6 +26,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
25
26
|
before(() => {
|
26
27
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
27
28
|
cy.barsPreLoaderWait();
|
29
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
28
30
|
});
|
29
31
|
|
30
32
|
dragAndDropIntoCategoriesPage.tests.verifyQuestionInstructionsInputFieldPreviewTab();
|
@@ -35,6 +37,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
35
37
|
before(() => {
|
36
38
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
37
39
|
cy.barsPreLoaderWait();
|
40
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
38
41
|
});
|
39
42
|
|
40
43
|
//Default settings
|
@@ -230,6 +233,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
230
233
|
before(() => {
|
231
234
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
232
235
|
cy.barsPreLoaderWait();
|
236
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
233
237
|
});
|
234
238
|
|
235
239
|
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', () => {
|
@@ -288,6 +292,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
288
292
|
before(() => {
|
289
293
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
290
294
|
cy.barsPreLoaderWait();
|
295
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
291
296
|
});
|
292
297
|
|
293
298
|
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', () => {
|
@@ -355,6 +360,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
355
360
|
before(() => {
|
356
361
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
357
362
|
cy.barsPreLoaderWait();
|
363
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
358
364
|
});
|
359
365
|
|
360
366
|
//Default states
|
@@ -590,6 +596,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
590
596
|
before(() => {
|
591
597
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
592
598
|
cy.barsPreLoaderWait();
|
599
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
593
600
|
});
|
594
601
|
|
595
602
|
it('A table based on the default settings in \'Specify columns and rows\' section should be displayed in the \'Specify correct answer\' section', () => {
|
@@ -664,6 +671,7 @@ describe('Create item page - Drag and drop into categories: Question instruction
|
|
664
671
|
before(() => {
|
665
672
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
666
673
|
cy.barsPreLoaderWait();
|
674
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
667
675
|
});
|
668
676
|
|
669
677
|
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,6 +145,7 @@ 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');
|
148
149
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
149
150
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
|
150
151
|
});
|
@@ -193,6 +194,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
193
194
|
before(() => {
|
194
195
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
195
196
|
cy.barsPreLoaderWait();
|
197
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
196
198
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(6);
|
197
199
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(options);
|
198
200
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
@@ -231,6 +233,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
231
233
|
before(() => {
|
232
234
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
233
235
|
cy.barsPreLoaderWait();
|
236
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
234
237
|
dragAndDropIntoCategoriesPage.steps.addMultipleOptionFields(2);
|
235
238
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle', 'Parrot', 'Whale',]);
|
236
239
|
dragAndDropIntoCategoriesPage.steps.checkAllowMultipleInstancesOfSameDraggableOptionCheckbox();
|
@@ -324,6 +327,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
324
327
|
before(() => {
|
325
328
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
326
329
|
cy.barsPreLoaderWait();
|
330
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
327
331
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Bat', 'Eagle']);
|
328
332
|
dragAndDropIntoCategoriesPage.steps.allotPoints(5);
|
329
333
|
});
|
@@ -18,6 +18,7 @@ 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');
|
21
22
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
22
23
|
});
|
23
24
|
|
@@ -43,6 +44,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
|
|
43
44
|
cy.log('Navigate to drag and drop into categories question type');
|
44
45
|
dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
|
45
46
|
cy.barsPreLoaderWait();
|
47
|
+
dragAndDropIntoCategoriesPage.steps.addTextInQuestionInstructionsInputField('Navigating to drag and drop into categories');
|
46
48
|
dragAndDropIntoCategoriesPage.steps.setGroupedOptions();
|
47
49
|
dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
|
48
50
|
});
|
@@ -378,6 +378,7 @@ 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();
|
381
382
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(0, 'rgb(255, 0, 0)');
|
382
383
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(1, 'rgb(0, 133, 89)');
|
383
384
|
drawingResponsePage.steps.verifyCSSOfDefaultFontStrokeFillColorBlockInEditTab(2, 'rgb(128, 25, 0)');
|
@@ -595,6 +596,7 @@ describe('Create item page - Drawing response: Customize special characters, Cus
|
|
595
596
|
});
|
596
597
|
|
597
598
|
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();
|
598
600
|
for (let i = 0; i < 6; i++) {
|
599
601
|
drawingResponsePage.steps.clickOnAddColorBlockInDefaultFontStrokeColorBlockSection();
|
600
602
|
drawingResponsePage.steps.clickOnEditTabColorPaletteOkButton();
|
@@ -48,13 +48,19 @@ 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
|
-
rulerPage.
|
52
|
-
rulerPage.steps.clickOnRulerVisibilityButton();
|
51
|
+
utilities.verifyElementVisibilityState(rulerPage.rulerVisibilityButtonPreviewTab(), 'notExist');
|
53
52
|
utilities.verifyElementVisibilityState(rulerPage.rulerPreviewTab(), 'visible');
|
54
53
|
rulerPage.steps.verifyLengthOfRulerInPreview('12in');
|
55
54
|
rulerPage.steps.verifyColorOfRulerInPreview(1);
|
56
55
|
rulerPage.steps.verifyRulerOpacityInPreview('0.6');
|
57
56
|
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();
|
58
64
|
});
|
59
65
|
|
60
66
|
it('CSS of the \'Hide ruler\' button', { tags: 'css' }, () => {
|
@@ -11,6 +11,7 @@ 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');
|
14
15
|
fillInTheGapsDragAndDropPage.steps.addMultipleOptionFields(3);
|
15
16
|
fillInTheGapsDragAndDropPage.steps.allotPoints(10);
|
16
17
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Bark', 'Stem', 'Trunk']);
|
@@ -33,7 +34,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Response level
|
|
33
34
|
fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1 });
|
34
35
|
fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 10);
|
35
36
|
fillInTheGapsDragAndDropPage.steps.switchToGradingView();
|
36
|
-
fillInTheGapsDragAndDropPage.steps.
|
37
|
+
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
|
37
38
|
fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
|
38
39
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
39
40
|
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.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(0);
|
172
172
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
|
173
173
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
|
174
174
|
fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
@@ -13,6 +13,7 @@ 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');
|
16
17
|
fillInTheGapsDragAndDropPage.steps.addOption();
|
17
18
|
fillInTheGapsDragAndDropPage.steps.addOption();
|
18
19
|
fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Petals', 'Leaves', 'Roots', 'Stem']);
|
@@ -55,7 +55,9 @@ 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);
|
58
59
|
cy.visit(`/item-engine/demo/render-item/correct-answer-view/${utilities.base64Encoding(itemReferenceID)}`);
|
60
|
+
cy.wait(2000);
|
59
61
|
break;
|
60
62
|
default:
|
61
63
|
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.verifyAddShowHideButtonCheckboxChecked();
|
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.verifyIncorrectOptionIcon(1);
|
93
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(1);
|
101
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(1);
|
113
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(1);
|
121
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(0);
|
172
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(0);
|
180
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(1);
|
193
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(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.verifyIncorrectOptionIcon(1);
|
201
|
+
fillInTheGapsDropdownPage.steps.verifyIncorrectOptionIcon(2);
|
202
202
|
fillInTheGapsDropdownPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
203
203
|
fillInTheGapsDropdownPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
204
204
|
});
|