itemengine-cypress-automation 1.0.342-save-as-you-go-updates-184015f.0 → 1.0.343-IEI-5600-IEI-5708-9440b5e.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
- package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
- package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
- package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
- package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
- package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
- package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
- package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
- package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
- package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
- package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
- package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
- package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
- package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
- package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
- package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
- package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
- package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
- package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
- package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
- package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
- package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
- package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
- package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
- package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
- package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
- package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
- package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
- package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
- package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
- package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
- package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
- package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
- package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
- package/cypress/pages/brainingCampManipulativePage.js +1 -1
- package/cypress/pages/chartsBarPage.js +0 -20
- package/cypress/pages/components/createQuestionBasePage.js +0 -7
- package/cypress/pages/components/defaultToolDropdown.js +1 -1
- package/cypress/pages/components/desmosToolComponent.js +1 -1
- package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
- package/cypress/pages/desmos3DGraphingPage.js +4 -149
- package/cypress/pages/desmosGeometryPage.js +4 -184
- package/cypress/pages/graphingPage.js +4 -26
- package/cypress/pages/gridFillPage.js +6 -16
- package/cypress/pages/listOrderingPage.js +1 -32
- package/cypress/pages/matchingPage.js +7 -26
- package/cypress/pages/numberLineLabelPage.js +0 -26
- package/cypress/pages/numberLinePage.js +0 -15
- package/cypress/pages/textEntryMathPage.js +0 -21
- package/cypress/pages/thinkSpherePage.js +316 -5
- package/cypress/pages/uploadResponsePage.js +1 -2
- package/cypress/pages/videoResponsePage.js +0 -3
- package/cypress/support/helpers/createItem.js +22 -3
- package/cypress/support/helpers/utilities.js +13 -0
- package/package.json +1 -1
- package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
- package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
- package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
- package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
- package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
- package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
- package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
- package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
- package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
- package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
- package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
- package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
- package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
- package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
- package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
- package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
- package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
- package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
- package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -183,14 +183,26 @@ describe('Create Item page - Audio response: Question instructions, Audio record
|
|
183
183
|
|
184
184
|
//Note: a11y is covered for Stop recording if silence is detected after section in HeaderSection file using verifyCreateItemWrapperContentsA11y
|
185
185
|
|
186
|
-
it('When the user has set \'Stop recording if silence is detected after\' value to \'0\' (zero) then a validation text \'Error: Value must be greater than 0 secs.\' should
|
186
|
+
it('When the user has set \'Stop recording if silence is detected after\' value to \'0\' (zero) then a validation text \'Error: Value must be greater than 0 secs.\' should be displayed', () => {
|
187
187
|
audioResponsePage.steps.setStopRecordingIfSilenceIsDetectedAfter('0');
|
188
|
-
utilities.
|
188
|
+
utilities.verifyInnerText(audioResponsePage.errorMessage(), 'Error: Value must be greater than 0 secs.');
|
189
189
|
});
|
190
190
|
|
191
|
-
it('When the user has set \'Stop recording if silence is detected after\' value to \'0\' (zero) then a validation text \'Error: Value must be greater than 0 secs.\' should
|
191
|
+
it('When the user has set \'Stop recording if silence is detected after\' value to \'0\' (zero) then a validation text \'Error: Value must be greater than 0 secs.\' should be displayed', () => {
|
192
192
|
audioResponsePage.steps.setStopRecordingIfSilenceIsDetectedAfter('0');
|
193
|
-
utilities.
|
193
|
+
utilities.verifyInnerText(audioResponsePage.errorMessage(), 'Error: Value must be greater than 0 secs.');
|
194
|
+
});
|
195
|
+
|
196
|
+
it('CSS of error message \'Error: Value must be greater than 0 secs.\'', { tags: 'css' }, () => {
|
197
|
+
utilities.verifyCSS(audioResponsePage.errorMessage(), {
|
198
|
+
'color': css.color.errorText,
|
199
|
+
'font-size': css.fontSize.small,
|
200
|
+
'font-weight': css.fontWeight.regular
|
201
|
+
});
|
202
|
+
});
|
203
|
+
|
204
|
+
it('Accessibility of \'Error: Value must be greater than 0 secs.\' is displayed', { tags: 'a11y' }, () => {
|
205
|
+
cy.checkAccessibility(audioResponsePage.errorMessage());
|
194
206
|
});
|
195
207
|
|
196
208
|
it('When the user updates the \'Stop recording if silence is detected after\' value the validation text should disappear. User should be able to add only numeric values and should not able to add decimal points', () => {
|
@@ -91,7 +91,7 @@ describe('Create item : Brainingcamp manipulative - Edit tab basics', () => {
|
|
91
91
|
|
92
92
|
it('When user focuses in and out of \'Enter a share code\' input field, then error message \'Error: Please enter share code.\' should not be displayed', () => {
|
93
93
|
brainingCampManipulativePage.steps.focusInAndFocusOutOfEnterAShareCodeInputField();
|
94
|
-
utilities.
|
94
|
+
utilities.verifyInnerText(brainingCampManipulativePage.errorMessage(), 'Error: Please enter share code.');
|
95
95
|
});
|
96
96
|
|
97
97
|
brainingCampManipulativePage.tests.verifyErrorMessageCSSAndA11y();
|
@@ -20,8 +20,8 @@ describe('Create item page - Charts - Bar horizontal orientation: Grading view,
|
|
20
20
|
before(() => {
|
21
21
|
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
22
22
|
cy.barsPreLoaderWait();
|
23
|
-
chartsBarPage.steps.selectHorizontalDirectionRadioButton();
|
24
23
|
chartsBarPage.steps.addTextInQuestionInstructionsInputField('Set the bar on the chart for the profits of the years');
|
24
|
+
chartsBarPage.steps.selectHorizontalDirectionRadioButton();
|
25
25
|
chartsBarPage.steps.selectAddBarOrPointToolbarOption();
|
26
26
|
chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
|
27
27
|
chartsBarPage.steps.setGraphTitle('Graph of profits');
|
@@ -1,11 +1,8 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { chartsBarPage, dialogBoxBase
|
3
|
-
import { browseItemsPage } from "../../../pages/components";
|
2
|
+
import { chartsBarPage, dialogBoxBase } from "../../../pages";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
const css = Cypress.env('css');
|
6
5
|
|
7
|
-
var itemReferenceID = "";
|
8
|
-
|
9
6
|
describe('Create item page - Charts - Bar: Header section and saving question', () => {
|
10
7
|
before(() => {
|
11
8
|
cy.loginAs('admin');
|
@@ -97,22 +94,7 @@ describe('Create item page - Charts - Bar: Header section and saving question',
|
|
97
94
|
cy.barsPreLoaderWait();
|
98
95
|
});
|
99
96
|
|
100
|
-
|
101
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
|
102
|
-
|
103
|
-
it('Validation error messages should be displayed below required input fields', () => {
|
104
|
-
chartsBarPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
105
|
-
chartsBarPage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
|
106
|
-
chartsBarPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
107
|
-
});
|
108
|
-
|
109
|
-
it('Validation error messages should disappear when required input fields are filled', () => {
|
110
|
-
chartsBarPage.steps.allotPoints(10);
|
111
|
-
chartsBarPage.steps.verifyErrorMessageIsNotDisplayed();
|
112
|
-
});
|
113
|
-
|
114
|
-
chartsBarPage.tests.verifyCreateItemWrapperContentsA11y();
|
115
|
-
});
|
97
|
+
chartsBarPage.tests.verifyCreateItemWrapperContentsA11y();
|
116
98
|
|
117
99
|
describe('Saving a question', () => {
|
118
100
|
it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
@@ -121,35 +103,5 @@ describe('Create item page - Charts - Bar: Header section and saving question',
|
|
121
103
|
|
122
104
|
chartsBarPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
123
105
|
});
|
124
|
-
|
125
|
-
describe('Saving a question with incomplete authoring', () => {
|
126
|
-
abortEarlySetup();
|
127
|
-
before(() => {
|
128
|
-
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
129
|
-
cy.barsPreLoaderWait();
|
130
|
-
});
|
131
|
-
|
132
|
-
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
133
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
|
134
|
-
chartsBarPage.steps.saveAQuestionWithIncompleteAuthoring();
|
135
|
-
});
|
136
|
-
chartsBarPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
137
|
-
});
|
138
|
-
});
|
139
|
-
|
140
|
-
describe('Save as you go - Browse item page contents', () => {
|
141
|
-
abortEarlySetup();
|
142
|
-
before(() => {
|
143
|
-
chartsBarPage.steps.navigateToCreateQuestion('charts');
|
144
|
-
cy.barsPreLoaderWait();
|
145
|
-
chartsBarPage.steps.saveAQuestionWithIncompleteAuthoring();
|
146
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
147
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
148
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
149
|
-
});
|
150
|
-
|
151
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
152
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
153
|
-
});
|
154
106
|
});
|
155
107
|
});
|
@@ -33,9 +33,7 @@ describe('Edit item - Charts -Line', () => {
|
|
33
33
|
|
34
34
|
it('User should be able to edit correct answer and save the question', () => {
|
35
35
|
chartsLinePage.steps.editItem();
|
36
|
-
chartsLinePage.steps.
|
37
|
-
chartsLinePage.steps.unlockPoint(0);
|
38
|
-
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 0, value: 3, range: 10 });
|
36
|
+
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 0, value: 2, range: 10 });
|
39
37
|
chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({pointIndex: 1, value: 6, range: 10 });
|
40
38
|
chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
|
41
39
|
});
|
@@ -95,28 +95,11 @@ describe('Create item page - Charts - Bar: Header section and saving question',
|
|
95
95
|
before(() => {
|
96
96
|
chartsLinePage.steps.navigateToCreateQuestion('charts');
|
97
97
|
cy.barsPreLoaderWait();
|
98
|
-
chartsLinePage.steps.selectLineButton();
|
99
98
|
});
|
100
99
|
|
101
|
-
|
102
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
|
103
|
-
|
104
|
-
it('Validation error messages should be displayed below required input fields', () => {
|
105
|
-
chartsLinePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
106
|
-
chartsLinePage.steps.verifyWarningIconOnRequiredFields(['Please set points']);
|
107
|
-
chartsLinePage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
108
|
-
});
|
109
|
-
|
110
|
-
it('Validation error messages should disappear when required input fields are filled', () => {
|
111
|
-
chartsLinePage.steps.allotPoints(10);
|
112
|
-
chartsLinePage.steps.verifyErrorMessageIsNotDisplayed();
|
113
|
-
});
|
114
|
-
|
115
|
-
chartsLinePage.tests.verifyCreateItemWrapperContentsA11y();
|
116
|
-
});
|
100
|
+
chartsLinePage.tests.verifyCreateItemWrapperContentsA11y();
|
117
101
|
|
118
102
|
describe('Saving a question', () => {
|
119
|
-
|
120
103
|
it('When user clicks on "Save question" button, then the question should get saved and a snackbar with text \'Saved successfully!\' should be displayed', () => {
|
121
104
|
chartsLinePage.steps.saveAQuestionAndVerifySnackbar();
|
122
105
|
});
|
@@ -377,7 +377,6 @@ describe('Create item page - Fill in the gaps: Question instructions, Options se
|
|
377
377
|
cy.barsPreLoaderWait();
|
378
378
|
fillInTheGapsOverImageTextPage.steps.uploadFile('highlightImage.jpg');
|
379
379
|
fillInTheGapsOverImageTextPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
380
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.uploadImageProgressBar(), 'visible');
|
381
380
|
fillInTheGapsOverImageTextPage.steps.verifyImageIsUploaded();
|
382
381
|
});
|
383
382
|
|
@@ -38,12 +38,10 @@ describe('Create item page - Fill in the gaps over image with text: Supported fi
|
|
38
38
|
});
|
39
39
|
});
|
40
40
|
|
41
|
-
it('When the user tries to uploads an image with unsupported file type, then an error message
|
41
|
+
it('When the user tries to uploads an image with unsupported file type, then an error message should not be displayed', () => {
|
42
42
|
fillInTheGapsOverImageTextPage.steps.uploadFileWithoutVerification('uploads/sample.heif');
|
43
43
|
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.errorMessage(), 'notExist');
|
44
|
-
fillInTheGapsOverImageTextPage.
|
44
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.canvasUploadedImage(), 'notExist')
|
45
45
|
});
|
46
|
-
|
47
|
-
fillInTheGapsOverImageTextPage.tests.verifyErrorMessageCSSAndA11y();
|
48
46
|
});
|
49
47
|
});
|
@@ -347,76 +347,4 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
347
347
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
348
348
|
});
|
349
349
|
});
|
350
|
-
|
351
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has no points plotted', () => {
|
352
|
-
abortEarlySetup();
|
353
|
-
before(() => {
|
354
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
355
|
-
cy.barsPreLoaderWait();
|
356
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
357
|
-
graphingPage.steps.allotPoints(12);
|
358
|
-
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
359
|
-
graphingPage.steps.allotPoints(20);
|
360
|
-
graphingPage.steps.switchToPreviewTab();
|
361
|
-
});
|
362
|
-
|
363
|
-
it('When user attempts the question with responses from the correct accordion, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
364
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
365
|
-
graphingPage.steps.verifyPreviewScore(12, 20);
|
366
|
-
graphingPage.steps.switchToGradingView();
|
367
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
368
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
369
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
370
|
-
});
|
371
|
-
|
372
|
-
it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
|
373
|
-
graphingPage.steps.resetQuestionPreview();
|
374
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
375
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
376
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
377
|
-
graphingPage.steps.verifyPreviewScore(20, 20);
|
378
|
-
graphingPage.steps.switchToGradingView();
|
379
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
380
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
381
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
382
|
-
});
|
383
|
-
});
|
384
|
-
|
385
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and correct answer has no points plotted', () => {
|
386
|
-
abortEarlySetup();
|
387
|
-
before(() => {
|
388
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
389
|
-
cy.barsPreLoaderWait();
|
390
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
391
|
-
graphingPage.steps.allotPoints(12);
|
392
|
-
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
393
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
394
|
-
graphingPage.steps.allotPoints(20);
|
395
|
-
graphingPage.steps.expandCorrectAnswerAccordion();
|
396
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
397
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
398
|
-
graphingPage.steps.switchToPreviewTab();
|
399
|
-
});
|
400
|
-
|
401
|
-
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
402
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
403
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
404
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
405
|
-
graphingPage.steps.verifyPreviewScore(12, 20);
|
406
|
-
graphingPage.steps.switchToGradingView();
|
407
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
408
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
409
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
410
|
-
});
|
411
|
-
|
412
|
-
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
413
|
-
graphingPage.steps.resetQuestionPreview();
|
414
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
415
|
-
graphingPage.steps.verifyPreviewScore(20, 20);
|
416
|
-
graphingPage.steps.switchToGradingView();
|
417
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
418
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
419
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
420
|
-
});
|
421
|
-
});
|
422
350
|
});
|
package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js
CHANGED
@@ -352,42 +352,4 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
352
352
|
graphingPage.steps.verifyCorrectAnswerSectionNotExist();*/
|
353
353
|
});
|
354
354
|
});
|
355
|
-
|
356
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
|
357
|
-
abortEarlySetup();
|
358
|
-
before(() => {
|
359
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
360
|
-
cy.barsPreLoaderWait();
|
361
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
362
|
-
graphingPage.steps.allotPoints(12);
|
363
|
-
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
364
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
365
|
-
graphingPage.steps.allotPoints(12);
|
366
|
-
graphingPage.steps.expandCorrectAnswerAccordion();
|
367
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
368
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
369
|
-
graphingPage.steps.switchToPreviewTab();
|
370
|
-
});
|
371
|
-
|
372
|
-
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
373
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
374
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
375
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
376
|
-
graphingPage.steps.verifyPreviewScore(12, 12);
|
377
|
-
graphingPage.steps.switchToGradingView();
|
378
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
379
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
380
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
381
|
-
});
|
382
|
-
|
383
|
-
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
384
|
-
graphingPage.steps.resetQuestionPreview();
|
385
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
386
|
-
graphingPage.steps.verifyPreviewScore(12, 12);
|
387
|
-
graphingPage.steps.switchToGradingView();
|
388
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
389
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
390
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
391
|
-
});
|
392
|
-
});
|
393
355
|
});
|
@@ -398,42 +398,4 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
|
|
398
398
|
cy.checkAccessibility(graphingPage.previewTabQuestionWrapper());
|
399
399
|
});
|
400
400
|
});
|
401
|
-
|
402
|
-
describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
|
403
|
-
abortEarlySetup();
|
404
|
-
before(() => {
|
405
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
406
|
-
cy.barsPreLoaderWait();
|
407
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
408
|
-
graphingPage.steps.allotPoints(21);
|
409
|
-
graphingPage.steps.addAlternativeAnswerAccordion(1);
|
410
|
-
graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
411
|
-
graphingPage.steps.allotPoints(12);
|
412
|
-
graphingPage.steps.expandCorrectAnswerAccordion();
|
413
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
414
|
-
graphingPage.steps.selectGraphControlOptionSpecifyCorrectAnswerSection('Undo');
|
415
|
-
graphingPage.steps.switchToPreviewTab();
|
416
|
-
});
|
417
|
-
|
418
|
-
it('When user attempts the question with responses from the correct accordion i.e select and resets an option, then the user should be awarded points specified for correct points accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
419
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
|
420
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
421
|
-
graphingPage.steps.selectGraphControlOptionPreviewTab('Undo');
|
422
|
-
graphingPage.steps.verifyPreviewScore(21, 21);
|
423
|
-
graphingPage.steps.switchToGradingView();
|
424
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
425
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
426
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
427
|
-
});
|
428
|
-
|
429
|
-
it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
|
430
|
-
graphingPage.steps.resetQuestionPreview();
|
431
|
-
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 3, xRange: 20, y: -5, yRange: 20 }]);
|
432
|
-
graphingPage.steps.verifyPreviewScore(12, 21);
|
433
|
-
graphingPage.steps.switchToGradingView();
|
434
|
-
graphingPage.steps.verifyCorrectAnswerSectionNotExist();
|
435
|
-
graphingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
436
|
-
graphingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
437
|
-
});
|
438
|
-
});
|
439
401
|
});
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
2
|
-
import { dialogBoxBase, graphingPage
|
3
|
-
import { browseItemsPage } from "../../../pages/components";
|
2
|
+
import { dialogBoxBase, graphingPage } from "../../../pages";
|
4
3
|
import utilities from "../../../support/helpers/utilities";
|
5
4
|
|
6
|
-
var itemReferenceID = "";
|
7
|
-
|
8
5
|
describe('Create item page - Graphing: Header section and saving question', () => {
|
9
6
|
before(() => {
|
10
7
|
cy.loginAs('admin');
|
@@ -48,11 +45,11 @@ describe('Create item page - Graphing: Header section and saving question', () =
|
|
48
45
|
});
|
49
46
|
|
50
47
|
describe('Validation error messages', () => {
|
51
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(
|
48
|
+
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
|
52
49
|
|
53
|
-
it('
|
50
|
+
it('No validation error messages should be displayed below required input fields', () => {
|
54
51
|
graphingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
55
|
-
graphingPage.steps.
|
52
|
+
graphingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
56
53
|
});
|
57
54
|
|
58
55
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
@@ -75,35 +72,5 @@ describe('Create item page - Graphing: Header section and saving question', () =
|
|
75
72
|
|
76
73
|
graphingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
77
74
|
});
|
78
|
-
|
79
|
-
describe('Saving a question with incomplete authoring', () => {
|
80
|
-
abortEarlySetup();
|
81
|
-
before(() => {
|
82
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
83
|
-
cy.barsPreLoaderWait();
|
84
|
-
});
|
85
|
-
|
86
|
-
it('User should be able to save the question with incomplete authoring and display a snackbar with the text "Saved successfully!" when the Save Question button is clicked', () => {
|
87
|
-
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
|
88
|
-
graphingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
89
|
-
});
|
90
|
-
graphingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
|
91
|
-
});
|
92
|
-
});
|
93
|
-
|
94
|
-
describe('Save as you go - Browse item page contents', () => {
|
95
|
-
abortEarlySetup();
|
96
|
-
before(() => {
|
97
|
-
graphingPage.steps.navigateToCreateQuestion('Graphing');
|
98
|
-
cy.barsPreLoaderWait();
|
99
|
-
graphingPage.steps.saveAQuestionWithIncompleteAuthoring();
|
100
|
-
utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
|
101
|
-
itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
|
102
|
-
browseItemsPage.steps.navigateToBrowseItemsPage();
|
103
|
-
});
|
104
|
-
|
105
|
-
it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
|
106
|
-
browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
|
107
|
-
});
|
108
75
|
});
|
109
76
|
});
|
@@ -44,12 +44,12 @@ describe('Create item page - Grid fill: Header section and Saving question', ()
|
|
44
44
|
describe('Validation error messages', () => {
|
45
45
|
dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
|
46
46
|
|
47
|
-
it('Validation error messages should be displayed below required input fields', () => {
|
47
|
+
it('Validation error messages and error icons should not be displayed below required input fields', () => {
|
48
48
|
gridFillPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
|
49
|
-
gridFillPage.steps.
|
49
|
+
gridFillPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
|
50
|
+
gridFillPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
|
50
51
|
});
|
51
52
|
|
52
|
-
//failed due to https://redmine.zeuslearning.com/issues/564243
|
53
53
|
it('Validation error messages should disappear when required input fields are filled', () => {
|
54
54
|
gridFillPage.steps.addTextInQuestionInstructionsInputField('Grid fill');
|
55
55
|
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js
CHANGED
@@ -190,43 +190,4 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
|
|
190
190
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
191
191
|
});
|
192
192
|
});
|
193
|
-
|
194
|
-
describe('Save as you go: Auto Scored - All or nothing with alternate answer - When Alternative answer has points that are more than Correct answer points and alternative answer is a blank response', () => {
|
195
|
-
abortEarlySetup();
|
196
|
-
before(() => {
|
197
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
198
|
-
cy.barsPreLoaderWait();
|
199
|
-
gridFillPage.steps.allotPoints(10);
|
200
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
201
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 1);
|
202
|
-
gridFillPage.steps.addAlternativeAnswerAccordion(1);
|
203
|
-
gridFillPage.steps.allotPoints(20);
|
204
|
-
gridFillPage.steps.switchToPreviewTab();
|
205
|
-
gridFillPage.steps.switchToGradingView();
|
206
|
-
});
|
207
|
-
//Save as You go - Blank Response points Greater than Correct Response points
|
208
|
-
it('When user has not attempted the question then user should not be awarded any points not even for blank response', () => {
|
209
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
210
|
-
gridFillPage.steps.verifyPreviewScore(0, 20);
|
211
|
-
|
212
|
-
});
|
213
|
-
|
214
|
-
it('When user has attempted the correct response then user should be awarded the alloted points for correct response', () => {
|
215
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
216
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
217
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
218
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
219
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
220
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
221
|
-
gridFillPage.steps.verifyPreviewScore(10, 20);
|
222
|
-
});
|
223
|
-
|
224
|
-
it('When user has attempted the blank response by selecting and unselecting then user should be awarded the alloted points for blank response', () => {
|
225
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
226
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
227
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
228
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
229
|
-
gridFillPage.steps.verifyPreviewScore(20, 20);
|
230
|
-
});
|
231
|
-
});
|
232
193
|
});
|
package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js
CHANGED
@@ -191,43 +191,4 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
|
|
191
191
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
|
192
192
|
});
|
193
193
|
});
|
194
|
-
|
195
|
-
describe('Save as you go: Auto Scored - All or nothing with alternate answer - When Correct answer points are equal to Alternative answer points and alternative answer is a blank response', () => {
|
196
|
-
abortEarlySetup();
|
197
|
-
before(() => {
|
198
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
199
|
-
cy.barsPreLoaderWait();
|
200
|
-
gridFillPage.steps.allotPoints(10);
|
201
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
202
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 1);
|
203
|
-
gridFillPage.steps.addAlternativeAnswerAccordion(1);
|
204
|
-
gridFillPage.steps.allotPoints(10);
|
205
|
-
gridFillPage.steps.switchToPreviewTab();
|
206
|
-
gridFillPage.steps.switchToGradingView();
|
207
|
-
});
|
208
|
-
|
209
|
-
//Save as You go - Blank Response points equal to Correct Response points
|
210
|
-
it('When user has not attempted the question then user should not be awarded any points not even for blank response', () => {
|
211
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
212
|
-
gridFillPage.steps.verifyPreviewScore(0, 10);
|
213
|
-
});
|
214
|
-
|
215
|
-
it('When user has attempted the correct response then user should be awarded the alloted points for correct response', () => {
|
216
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
217
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
218
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
219
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
220
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
221
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
222
|
-
gridFillPage.steps.verifyPreviewScore(10, 10);
|
223
|
-
});
|
224
|
-
|
225
|
-
it('When user has attempted the blank response by selecting and unselecting then user should be awarded the alloted points for blank response', () => {
|
226
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
227
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
228
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
229
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
230
|
-
gridFillPage.steps.verifyPreviewScore(10,10);
|
231
|
-
});
|
232
|
-
});
|
233
194
|
});
|
package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js
CHANGED
@@ -260,43 +260,4 @@ describe('Create item page - grid fill: All or nothing with alternative answers'
|
|
260
260
|
gridFillPage.steps.verifyPreviewScore(13, 20);
|
261
261
|
});
|
262
262
|
});
|
263
|
-
|
264
|
-
describe('Save as you go: Auto Scored - All or nothing with alternate answer - When Correct answer points are more than Alternative answer points and alternative answer is a blank response', () => {
|
265
|
-
abortEarlySetup();
|
266
|
-
before(() => {
|
267
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
268
|
-
cy.barsPreLoaderWait();
|
269
|
-
gridFillPage.steps.allotPoints(20);
|
270
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 0);
|
271
|
-
gridFillPage.steps.selectCellSpecifyCorrectAnswerSection(0, 1);
|
272
|
-
gridFillPage.steps.addAlternativeAnswerAccordion(1);
|
273
|
-
gridFillPage.steps.allotPoints(10);
|
274
|
-
gridFillPage.steps.switchToPreviewTab();
|
275
|
-
gridFillPage.steps.switchToGradingView();
|
276
|
-
});
|
277
|
-
|
278
|
-
// Save as You go - Blank Response points less than Correct Response points
|
279
|
-
it('When user has not attempted the question then user should not be awarded any points not even for blank response', () => {
|
280
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
281
|
-
gridFillPage.steps.verifyPreviewScore(0, 20);
|
282
|
-
});
|
283
|
-
|
284
|
-
it('When user has attempted the correct response then user should be awarded the alloted points for correct response', () => {
|
285
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
286
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
287
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
|
288
|
-
gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
|
289
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
290
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
291
|
-
gridFillPage.steps.verifyPreviewScore(20, 20);
|
292
|
-
});
|
293
|
-
|
294
|
-
it('When user has attempted the blank response by selecting and unselecting then user should be awarded the alloted points for blank response', () => {
|
295
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
296
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
297
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
298
|
-
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
|
299
|
-
gridFillPage.steps.verifyPreviewScore(10, 20);
|
300
|
-
});
|
301
|
-
});
|
302
263
|
});
|
@@ -142,41 +142,4 @@ describe('Create item page - Grid fill : All or nothing with alternate accordion
|
|
142
142
|
gridFillPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
143
143
|
});
|
144
144
|
});
|
145
|
-
|
146
|
-
describe('Save as you go - Handling blank responses for Cell shade count with alternate answers', () => {
|
147
|
-
abortEarlySetup();
|
148
|
-
before(() => {
|
149
|
-
gridFillPage.steps.navigateToCreateQuestion('grid fill');
|
150
|
-
cy.barsPreLoaderWait();
|
151
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
152
|
-
gridFillPage.steps.addInputToCellShadeCountInputField(2);
|
153
|
-
gridFillPage.steps.allotPoints(10);
|
154
|
-
gridFillPage.steps.clickOnAddAlternativeAnswerButton();
|
155
|
-
gridFillPage.steps.allotPoints(5);
|
156
|
-
gridFillPage.steps.uncheckMatchExactPositionOfCellsCheckbox();
|
157
|
-
gridFillPage.steps.switchToPreviewTab();
|
158
|
-
gridFillPage.steps.switchToGradingView();
|
159
|
-
});
|
160
|
-
|
161
|
-
it('When user has not attempted the question, no correct/incorrect status message should exist and score should be 0/10', () => {
|
162
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
163
|
-
gridFillPage.steps.verifyPreviewScore(0, 10);
|
164
|
-
});
|
165
|
-
|
166
|
-
it('When user selects the exact number of cells corresponding to the correct answer, full points should be awarded', () => {
|
167
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
168
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
169
|
-
gridFillPage.steps.verifyPreviewScore(10, 10);
|
170
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
171
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
172
|
-
});
|
173
|
-
|
174
|
-
it('When user toggles the same cells (providing a blank response), alternative answer points should be awarded', () => {
|
175
|
-
gridFillPage.steps.selectCellPreviewTab(0, 0);
|
176
|
-
gridFillPage.steps.selectCellPreviewTab(0, 1);
|
177
|
-
gridFillPage.steps.verifyPreviewScore(5, 10);
|
178
|
-
gridFillPage.steps.verifyCorrectIncorrectStatusMessageExists();
|
179
|
-
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
180
|
-
});
|
181
|
-
});
|
182
145
|
});
|