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.
Files changed (138) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +16 -4
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +1 -1
  3. package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
  4. package/cypress/e2e/ILC/ChartsBar/headerSection.js +2 -50
  5. package/cypress/e2e/ILC/ChartsLine/editQuestion.smoke.js +1 -3
  6. package/cypress/e2e/ILC/ChartsLine/headerSection.js +1 -18
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +0 -1
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/supportedFileTypes.js +2 -4
  9. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -72
  10. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -38
  11. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -38
  12. package/cypress/e2e/ILC/Graphing/headerSection.js +4 -37
  13. package/cypress/e2e/ILC/GridFill/headerSection.js +3 -3
  14. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -39
  15. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
  16. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -39
  17. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -37
  18. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +0 -39
  19. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -36
  20. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -2
  21. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -24
  22. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -24
  23. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -24
  24. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsBasic.js +1 -1
  25. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +1 -1
  26. package/cypress/e2e/ILC/ListOrderingDropdown/editTabBasicSection.js +0 -24
  27. package/cypress/e2e/ILC/ListOrderingDropdown/specifyCorrectAnswerSection.js +10 -6
  28. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/specifyCorrectAnswerSection.js +1 -2
  29. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -23
  30. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +9 -35
  31. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -41
  32. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -30
  33. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -50
  34. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabBasicSection.js +0 -24
  35. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/editTabScoring.js +1 -4
  36. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/headerSection.js +1 -35
  37. package/cypress/e2e/ILC/Matching/clickAndDrop.js +5 -3
  38. package/cypress/e2e/ILC/Matching/draggableOptions.js +0 -4
  39. package/cypress/e2e/ILC/Matching/headerSection.js +11 -36
  40. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +15 -2
  41. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +0 -79
  42. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +0 -42
  43. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -42
  44. package/cypress/e2e/ILC/NumberLine/headerSection.js +4 -34
  45. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -81
  46. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -43
  47. package/cypress/e2e/ILC/NumberLineLabel/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -43
  48. package/cypress/e2e/ILC/NumberLineLabel/headerSection.js +4 -37
  49. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +1 -2
  50. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/editQuestion.smoke.js +1 -1
  51. package/cypress/e2e/ILC/ShortTextResponseNew/headerSection.js +4 -2
  52. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -86
  53. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -86
  54. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
  55. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -3
  56. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  57. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  58. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +3 -10
  59. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -4
  60. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +3 -5
  61. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  62. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +0 -4
  63. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +0 -64
  64. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +0 -2
  65. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +0 -2
  66. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +0 -64
  67. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +0 -65
  68. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  69. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  70. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  71. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +0 -8
  72. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -2
  73. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -2
  74. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -2
  75. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +0 -1
  76. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +0 -2
  77. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -2
  78. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +3 -27
  79. package/cypress/e2e/ILC/ThinkSphere/createReviewItem.js +1 -1
  80. package/cypress/e2e/ILC/ThinkSphere/editTabBasicSection.js +1 -1
  81. package/cypress/e2e/ILC/ThinkSphere/editThinkSphereQuestion.smoke.js +145 -54
  82. package/cypress/e2e/ILC/ThinkSphere/equationEditorEditCategoryFlyOut.js +2 -0
  83. package/cypress/e2e/ILC/ThinkSphere/planPhase.js +45 -5
  84. package/cypress/e2e/ILC/ThinkSphere/previewTabPlanSection.js +8 -8
  85. package/cypress/e2e/ILC/ThinkSphere/previewTabReviewSection.js +97 -0
  86. package/cypress/e2e/ILC/ThinkSphere/solvePhase.js +3 -3
  87. package/cypress/e2e/ILC/ThinkSphere/studentViewPlanTabSection.js +393 -0
  88. package/cypress/e2e/ILC/ThinkSphere/studentViewReviewTabSection.js +141 -0
  89. package/cypress/e2e/ILC/ToolAudioPlayerNew/headerSection.js +1 -1
  90. package/cypress/e2e/ILC/UploadResponse/editTabBasicSection.js +0 -34
  91. package/cypress/e2e/ILC/UploadResponse/headerSection.js +1 -38
  92. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +29 -14
  93. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -16
  94. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  95. package/cypress/pages/chartsBarPage.js +0 -20
  96. package/cypress/pages/components/createQuestionBasePage.js +0 -7
  97. package/cypress/pages/components/defaultToolDropdown.js +1 -1
  98. package/cypress/pages/components/desmosToolComponent.js +1 -1
  99. package/cypress/pages/components/scoringSectionBaseEditTab.js +0 -3
  100. package/cypress/pages/desmos3DGraphingPage.js +4 -149
  101. package/cypress/pages/desmosGeometryPage.js +4 -184
  102. package/cypress/pages/graphingPage.js +4 -26
  103. package/cypress/pages/gridFillPage.js +6 -16
  104. package/cypress/pages/listOrderingPage.js +1 -32
  105. package/cypress/pages/matchingPage.js +7 -26
  106. package/cypress/pages/numberLineLabelPage.js +0 -26
  107. package/cypress/pages/numberLinePage.js +0 -15
  108. package/cypress/pages/textEntryMathPage.js +0 -21
  109. package/cypress/pages/thinkSpherePage.js +316 -5
  110. package/cypress/pages/uploadResponsePage.js +1 -2
  111. package/cypress/pages/videoResponsePage.js +0 -3
  112. package/cypress/support/helpers/createItem.js +22 -3
  113. package/cypress/support/helpers/utilities.js +13 -0
  114. package/package.json +1 -1
  115. package/cypress/e2e/ILC/ChartsBar/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -33
  116. package/cypress/e2e/ILC/ChartsBar/editTabBasicSection.js +0 -37
  117. package/cypress/e2e/ILC/Graphing/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
  118. package/cypress/e2e/ILC/Graphing/checkAddAlternativeButton.js +0 -35
  119. package/cypress/e2e/ILC/Graphing/editQuestion.smoke.js +0 -28
  120. package/cypress/e2e/ILC/Graphing/editTabBasicSection.js +0 -38
  121. package/cypress/e2e/ILC/GridFill/addAlternateButton.js +0 -40
  122. package/cypress/e2e/ILC/GridFill/scoring/checkLabelSaveAsYouGo.js +0 -75
  123. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -86
  124. package/cypress/e2e/ILC/ListOrderingDropdown/checkAddAlternativeButton.js +0 -35
  125. package/cypress/e2e/ILC/ListOrderingDropdown/headerSection.js +0 -108
  126. package/cypress/e2e/ILC/ListOrderingNew/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -52
  127. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -101
  128. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/checkAddAlternativeButton.js +0 -38
  129. package/cypress/e2e/ILC/Matching/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -98
  130. package/cypress/e2e/ILC/Matching/checkAlternativeButton.js +0 -38
  131. package/cypress/e2e/ILC/Matching/editTabBasicSection.js +0 -41
  132. package/cypress/e2e/ILC/NumberLine/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -73
  133. package/cypress/e2e/ILC/NumberLine/checkAddAlternativeButton.js +0 -32
  134. package/cypress/e2e/ILC/NumberLine/editTabSection.js +0 -38
  135. package/cypress/e2e/ILC/NumberLineLabel/Scoring/checkScoringLabelBannerAndCorrectAnswerSection.js +0 -76
  136. package/cypress/e2e/ILC/NumberLineLabel/checkAddAlternativeButton.js +0 -34
  137. package/cypress/e2e/ILC/NumberLineLabel/editTabSection.js +0 -38
  138. package/cypress/e2e/ILC/TextEntryMath/headerSection.js +0 -43
@@ -130,10 +130,11 @@ describe('Create Item Page: Matching: Click and drop cases for \'Standard\' and
130
130
  matchingPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
131
131
  });
132
132
 
133
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should not be displayed', () => {
133
+ it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
134
134
  matchingPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
135
135
  matchingPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Petals', 'Flower', 'Stem']);
136
- matchingPage.steps.verifyErrorMessageIsNotDisplayed();
136
+ utilities.verifyInnerText(matchingPage.errorMessage(), 'Error: Please set a correct answer.');
137
+ utilities.verifyElementVisibilityState(matchingPage.errorMessage(), 'visible');
137
138
  });
138
139
 
139
140
 
@@ -441,7 +442,8 @@ describe('Create Item Page: Matching: Click and drop cases for \'Standard\' and
441
442
  matchingPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
442
443
  matchingPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions);
443
444
  matchingPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(1, groupedOptionsTwo);
444
- matchingPage.steps.verifyErrorMessageIsNotDisplayed();
445
+ utilities.verifyInnerText(matchingPage.errorMessage(), 'Error: Please set a correct answer.');
446
+ utilities.verifyElementVisibilityState(matchingPage.errorMessage(), 'visible');
445
447
  });
446
448
 
447
449
  it('When the user fills a dropzone, the dropzone should get filled with the option and the \'Error: Please set a correct answer\' error message should disappear', () => {
@@ -137,10 +137,6 @@ describe('Create Item page - Matching: Draggable options section', () => {
137
137
  matchingPage.steps.verifyDeleteOptionButtonDisabledState();
138
138
  });
139
139
 
140
- it('When the user not entering text in the option input fields, then the \'Add group\' button should be disable', () => {
141
- utilities.verifyElementDisabled(matchingPage.addGroupButton());
142
- });
143
-
144
140
  it('When the user enters text in the options input field, the error messages should disappear', () => {
145
141
  matchingPage.steps.enterTextInOneOptionInputField(0, 'option 1');
146
142
  matchingPage.steps.enterTextInOneOptionInputField(1, 'option 2');
@@ -1,12 +1,9 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { dialogBoxBase, matchingPage, itemPreviewPage } from "../../../pages";
3
- import { browseItemsPage } from "../../../pages/components";
2
+ import { dialogBoxBase, matchingPage } from "../../../pages";
4
3
  import utilities from "../../../support/helpers/utilities";
5
4
  const options = ['Flower', 'Leaves', 'Flowers'];
6
5
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
7
6
 
8
- var itemReferenceID = "";
9
-
10
7
  describe('Create item page - Matching : Header section and Saving question', () => {
11
8
  before(() => {
12
9
  cy.loginAs('admin');
@@ -47,11 +44,19 @@ describe('Create item page - Matching : Header section and Saving question', ()
47
44
  });
48
45
 
49
46
  describe('Validation error messages', () => {
50
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all prompt values', 'Please enter all option values', 'Please set points']);
47
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
51
48
 
52
49
  it('Validation error messages should be displayed below required input fields', () => {
53
50
  matchingPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
54
- matchingPage.steps.verifyWarningIconOnRequiredFields(['Please enter all prompt values', 'Please enter all option values', 'Please set points']);
51
+ matchingPage.steps.verifyPromptInputFieldErrorMessage(0);
52
+ matchingPage.steps.verifyPromptInputFieldErrorMessage(1);
53
+ matchingPage.steps.verifyPromptInputFieldErrorMessage(2);
54
+ matchingPage.steps.verifyOptionsInputFieldErrorMessage(3);
55
+ matchingPage.steps.verifyOptionsInputFieldErrorMessage(4);
56
+ matchingPage.steps.verifyOptionsInputFieldErrorMessage(5);
57
+ matchingPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
58
+ matchingPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
59
+ matchingPage.steps.verifySpecifyCorrectAnswerErrorMessage();
55
60
  });
56
61
 
57
62
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -73,35 +78,5 @@ describe('Create item page - Matching : Header section and Saving question', ()
73
78
  });
74
79
  matchingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
75
80
  });
76
-
77
- describe('Saving a question with incomplete authoring', () => {
78
- abortEarlySetup();
79
- before(() => {
80
- matchingPage.steps.navigateToCreateQuestion('matching');
81
- cy.barsPreLoaderWait();
82
- });
83
-
84
- 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', () => {
85
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all prompt values', 'Please enter all option values', 'Please set points']);
86
- matchingPage.steps.saveAQuestionWithIncompleteAuthoring();
87
- });
88
- matchingPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
89
- });
90
- });
91
-
92
- describe('Save as you go - Browse item page contents', () => {
93
- abortEarlySetup();
94
- before(() => {
95
- matchingPage.steps.navigateToCreateQuestion('matching');
96
- cy.barsPreLoaderWait();
97
- matchingPage.steps.saveAQuestionWithIncompleteAuthoring();
98
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
99
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
100
- browseItemsPage.steps.navigateToBrowseItemsPage();
101
- });
102
-
103
- it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
104
- browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
105
- });
106
81
  });
107
82
  });
@@ -116,9 +116,22 @@ describe('Create Item page - Matching : Question Instructions and prompt section
116
116
  matchingPage.steps.verifyPromptContents(2);
117
117
  });
118
118
 
119
- it('When user focus in and out of any of the \'Prompt\' input field without typing anything, then an error message \'Error: Prompt is required\' error message should disappear', () => {
119
+ it('When user focus in and out of any of the \'Prompt\' input field without typing anything, then an error message \'Error: Prompt is required\' error message should be displayed', () => {
120
120
  matchingPage.steps.focusInAndFocusOutOfPromptInputField(1);
121
- matchingPage.steps.verifyErrorMessageIsNotDisplayed();
121
+ utilities.verifyInnerText(matchingPage.errorMessage(), 'Error: Prompt is required');
122
+ utilities.verifyElementVisibilityState(matchingPage.errorMessage(), 'visible');
123
+ });
124
+
125
+ it('CSS of error message', { tags: 'css' }, () => {
126
+ utilities.verifyCSS(matchingPage.errorMessage(), {
127
+ 'color': css.color.errorText,
128
+ 'font-size': css.fontSize.small,
129
+ 'font-weight': css.fontWeight.regular
130
+ });
131
+ });
132
+
133
+ it('Accessibility of error message', { tags: 'a11y' }, () => {
134
+ cy.checkAccessibility(matchingPage.errorMessage());
122
135
  });
123
136
 
124
137
  it('When user enters text in question prompt input field then error message should disappear', () => {
@@ -235,83 +235,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
235
235
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
236
236
  });
237
237
  });
238
-
239
- 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', () => {
240
- abortEarlySetup();
241
- before(() => {
242
- numberLinePage.steps.navigateToCreateQuestion('Number line');
243
- cy.barsPreLoaderWait();
244
- numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
245
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
246
- numberLinePage.steps.allotPoints(12);
247
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
248
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
249
- numberLinePage.steps.addAlternativeAnswerAccordion(1);
250
- numberLinePage.steps.allotPoints(20);
251
- numberLinePage.steps.switchToPreviewTab();
252
- });
253
-
254
- 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', () => {
255
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
256
- numberLinePage.steps.verifyPreviewScore(12, 20);
257
- numberLinePage.steps.switchToGradingView();
258
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
259
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
260
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
261
- });
262
-
263
- it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
264
- numberLinePage.steps.resetQuestionPreview();
265
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
266
- numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
267
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
268
- numberLinePage.steps.verifyPreviewScore(20, 20);
269
- numberLinePage.steps.switchToGradingView();
270
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
271
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
272
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
273
- })
274
- });
275
-
276
- 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', () => {
277
- abortEarlySetup();
278
- before(() => {
279
- numberLinePage.steps.navigateToCreateQuestion('Number line');
280
- cy.barsPreLoaderWait();
281
- numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
282
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
283
- numberLinePage.steps.allotPoints(12);
284
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
285
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
286
- numberLinePage.steps.addAlternativeAnswerAccordion(1);
287
- numberLinePage.steps.allotPoints(20);
288
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
289
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
290
- numberLinePage.steps.expandCorrectAnswerAccordion();
291
- numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
292
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
293
- numberLinePage.steps.switchToPreviewTab();
294
- })
295
-
296
- 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', () => {
297
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
298
- numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
299
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
300
- numberLinePage.steps.verifyPreviewScore(12, 20);
301
- numberLinePage.steps.switchToGradingView();
302
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
303
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
304
- })
305
-
306
- it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
307
- numberLinePage.steps.resetQuestionPreview();
308
- numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Point');
309
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
310
- numberLinePage.steps.verifyPreviewScore(20, 20);
311
- numberLinePage.steps.switchToGradingView();
312
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
313
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
314
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
315
- })
316
- })
317
238
  });
@@ -238,46 +238,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
238
238
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
239
239
  });
240
240
  });
241
-
242
- describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
243
- abortEarlySetup();
244
- before(() => {
245
- numberLinePage.steps.navigateToCreateQuestion('Number line');
246
- cy.barsPreLoaderWait();
247
- numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
248
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
249
- numberLinePage.steps.allotPoints(12);
250
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
251
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
252
- numberLinePage.steps.addAlternativeAnswerAccordion(1);
253
- numberLinePage.steps.allotPoints(12);
254
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
255
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
256
- numberLinePage.steps.expandCorrectAnswerAccordion();
257
- numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
258
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
259
- numberLinePage.steps.switchToPreviewTab();
260
- });
261
-
262
- 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', () => {
263
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
264
- numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
265
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
266
- numberLinePage.steps.verifyPreviewScore(12, 12);
267
- numberLinePage.steps.switchToGradingView();
268
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
269
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
270
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
- });
272
-
273
- it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
274
- numberLinePage.steps.resetQuestionPreview();
275
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
276
- numberLinePage.steps.verifyPreviewScore(12, 12);
277
- numberLinePage.steps.switchToGradingView();
278
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
279
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
280
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
281
- })
282
- });
283
241
  });
@@ -278,46 +278,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
278
278
  cy.checkAccessibility(numberLinePage.previewTabQuestionWrapper());
279
279
  });
280
280
  });
281
-
282
- describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
283
- abortEarlySetup();
284
- before(() => {
285
- numberLinePage.steps.navigateToCreateQuestion('Number line');
286
- cy.barsPreLoaderWait();
287
- numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
288
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
289
- numberLinePage.steps.allotPoints(21);
290
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
291
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
292
- numberLinePage.steps.addAlternativeAnswerAccordion(1);
293
- numberLinePage.steps.allotPoints(12);
294
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
295
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [0]);
296
- numberLinePage.steps.expandCorrectAnswerAccordion();
297
- numberLinePage.steps.selectNumberLineControlOptionSpecifyCorrectAnswerSection('Delete');
298
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 0);
299
- numberLinePage.steps.switchToPreviewTab();
300
- });
301
-
302
- 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', () => {
303
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
304
- numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Delete');
305
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
306
- numberLinePage.steps.verifyPreviewScore(21, 21);
307
- numberLinePage.steps.switchToGradingView();
308
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
309
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
310
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
311
- });
312
-
313
- it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
314
- numberLinePage.steps.resetQuestionPreview();
315
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 0);
316
- numberLinePage.steps.verifyPreviewScore(12, 21);
317
- numberLinePage.steps.switchToGradingView();
318
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
319
- numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
320
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
321
- })
322
- });
323
281
  });
@@ -1,9 +1,7 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { dialogBoxBase, numberLinePage, itemPreviewPage } from "../../../pages";
3
- import { browseItemsPage } from "../../../pages/components";
2
+ import { dialogBoxBase, numberLinePage } from "../../../pages";
4
3
  import utilities from "../../../support/helpers/utilities";
5
4
  const range = 20.75;
6
- var itemReferenceID = "";
7
5
 
8
6
  describe('Create item page - Number line: Header section and saving question', () => {
9
7
  before(() => {
@@ -48,11 +46,11 @@ describe('Create item page - Number line: Header section and saving question', (
48
46
  });
49
47
 
50
48
  describe('Validation error messages', () => {
51
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
49
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
52
50
 
53
- it('Validation error messages should be displayed below required input fields', () => {
51
+ it('No validation error messages should be displayed below required input fields', () => {
54
52
  numberLinePage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
55
- numberLinePage.steps.verifyWarningIconOnRequiredFields(['Please set points'])
53
+ numberLinePage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
56
54
  });
57
55
 
58
56
  it('Validation error messages should disappear when required input fields are filled', () => {
@@ -74,33 +72,5 @@ describe('Create item page - Number line: Header section and saving question', (
74
72
 
75
73
  numberLinePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
76
74
  });
77
-
78
- describe('Saving a question with incomplete authoring', () => {
79
- abortEarlySetup();
80
- before(() => {
81
- numberLinePage.steps.navigateToCreateQuestion('Number line');
82
- cy.barsPreLoaderWait();
83
- });
84
- 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', () => {
85
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
86
- numberLinePage.steps.saveAQuestionWithIncompleteAuthoring();
87
- });
88
- numberLinePage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
89
- });
90
-
91
- describe('Save as you go - Browse item page contents', () => {
92
- abortEarlySetup();
93
- before(() => {
94
- numberLinePage.steps.navigateToCreateQuestion('Number line');
95
- cy.barsPreLoaderWait();
96
- numberLinePage.steps.saveAQuestionWithIncompleteAuthoring();
97
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
98
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
99
- browseItemsPage.steps.navigateToBrowseItemsPage();
100
- });
101
- it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
102
- browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
103
- });
104
- });
105
75
  });
106
76
  });
@@ -227,85 +227,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
227
227
  numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
228
228
  });
229
229
  });
230
-
231
- describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are more than correct answer points and alternative has blank response', () => {
232
- abortEarlySetup();
233
- before(() => {
234
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
235
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
236
- numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
237
- numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
238
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
239
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
240
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
241
- numberLineLabelPage.steps.allotPoints(12);
242
- numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
243
- numberLineLabelPage.steps.allotPoints(20);
244
- numberLineLabelPage.steps.switchToPreviewTab();
245
- })
246
-
247
- 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', () => {
248
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
249
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
250
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
251
- numberLineLabelPage.steps.verifyPreviewScore(12, 20);
252
- numberLineLabelPage.steps.switchToGradingView();
253
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
254
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
255
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
256
- })
257
-
258
- it('When user resets the option then full score should be awarded as alternative accordion has blank response', () => {
259
- numberLineLabelPage.steps.resetQuestionPreview();
260
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
261
- numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 3');
262
- numberLineLabelPage.steps.verifyPreviewScore(20, 20);
263
- numberLineLabelPage.steps.switchToGradingView();
264
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
265
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
266
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
267
- })
268
- })
269
-
270
- 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', () => {
271
- abortEarlySetup();
272
- before(() => {
273
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
274
- cy.barsPreLoaderWait();
275
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
276
- numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
277
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
278
- numberLineLabelPage.steps.allotPoints(12);
279
- numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
280
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
281
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
282
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
283
- numberLineLabelPage.steps.allotPoints(20);
284
- numberLineLabelPage.steps.expandCorrectAnswerAccordion();
285
- numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
286
- numberLineLabelPage.steps.switchToPreviewTab();
287
- });
288
-
289
- 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', () => {
290
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
291
- numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
292
- numberLineLabelPage.steps.verifyPreviewScore(12, 20);
293
- numberLineLabelPage.steps.switchToGradingView();
294
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
295
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
296
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
297
- })
298
-
299
- it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
300
- numberLineLabelPage.steps.resetQuestionPreview();
301
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
302
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
303
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
304
- numberLineLabelPage.steps.verifyPreviewScore(20, 20);
305
- numberLineLabelPage.steps.switchToGradingView();
306
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
307
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
308
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
309
- })
310
- })
311
230
  });
@@ -227,47 +227,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
227
227
  numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
228
228
  });
229
229
  });
230
-
231
- describe('Question Preview: AutoScored - All or Nothing with blank scoring: When alternative answer points are equal than correct answer points', () => {
232
- abortEarlySetup();
233
- before(() => {
234
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
235
- cy.barsPreLoaderWait();
236
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
237
- numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
238
- numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
239
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 0);
240
- numberLineLabelPage.steps.allotPoints(12);
241
- numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
242
- numberLineLabelPage.steps.allotPoints(12);
243
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
244
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
245
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
246
- numberLineLabelPage.steps.expandCorrectAnswerAccordion();
247
- numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
248
- numberLineLabelPage.steps.switchToPreviewTab();
249
- });
250
-
251
- 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', () => {
252
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
253
- numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
254
- numberLineLabelPage.steps.verifyPreviewScore(12, 12);
255
- numberLineLabelPage.steps.switchToGradingView();
256
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
257
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
258
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
259
- });
260
-
261
- it('When user attempts the question with responses from the alternative accordion then full score should be awarded', () => {
262
- numberLineLabelPage.steps.resetQuestionPreview();
263
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
264
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
265
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
266
- numberLineLabelPage.steps.verifyPreviewScore(12, 12);
267
- numberLineLabelPage.steps.switchToGradingView();
268
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
269
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
270
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
- });
272
- });
273
230
  });
@@ -227,47 +227,4 @@ describe('Create Item page - Number line: All or nothing with alternative answer
227
227
  numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();*/
228
228
  });
229
229
  });
230
-
231
- describe('Question Preview: AutoScored - All or Nothing with blank scoring: When correct answer points are greater than alternative answer points', () => {
232
- abortEarlySetup();
233
- before(() => {
234
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
235
- cy.barsPreLoaderWait();
236
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
237
- numberLineLabelPage.steps.addTextInQuestionInstructionsInputField('Plot labels on the number line');
238
- numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
239
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
240
- numberLineLabelPage.steps.allotPoints(21);
241
- numberLineLabelPage.steps.addAlternativeAnswerAccordion(1);
242
- numberLineLabelPage.steps.allotPoints(12);
243
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 1', 'horizontal', range, 1);
244
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 2', 'horizontal', range, 2);
245
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('Label 3', 'horizontal', range, 3);
246
- numberLineLabelPage.steps.expandCorrectAnswerAccordion();
247
- numberLineLabelPage.steps.clickAndDropLabelInContainerSpecifyCorrectAnswer('Label 1');
248
- numberLineLabelPage.steps.switchToPreviewTab();
249
- });
250
-
251
- 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 (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', () => {
252
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 0);
253
- numberLineLabelPage.steps.clickAndDropLabelInContainerPreviewTab('Label 1');
254
- numberLineLabelPage.steps.verifyPreviewScore(21, 21);
255
- numberLineLabelPage.steps.switchToGradingView();
256
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
257
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
258
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
259
- });
260
-
261
- it('When user attempts the question with responses from the alternative accordion then less than full score should be awarded', () => {
262
- numberLineLabelPage.steps.resetQuestionPreview();
263
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 1', 'horizontal', range, 1);
264
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 2', 'horizontal', range, 2);
265
- numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 3);
266
- numberLineLabelPage.steps.verifyPreviewScore(12, 21);
267
- numberLineLabelPage.steps.switchToGradingView();
268
- numberLineLabelPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
269
- numberLineLabelPage.steps.verifyCorrectAnswerSectionNotExist();
270
- numberLineLabelPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
271
- });
272
- });
273
230
  });
@@ -1,9 +1,7 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { dialogBoxBase, numberLineLabelPage, itemPreviewPage } from "../../../pages";
3
- import { browseItemsPage } from "../../../pages/components";
2
+ import { dialogBoxBase, numberLineLabelPage } from "../../../pages";
4
3
  import utilities from "../../../support/helpers/utilities";
5
4
  const range = 20.75;
6
- var itemReferenceID = "";
7
5
 
8
6
  describe('Create item page - Number line: Header section and saving question', () => {
9
7
  before(() => {
@@ -48,15 +46,14 @@ describe('Create item page - Number line: Header section and saving question', (
48
46
  numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
49
47
  cy.barsPreLoaderWait();
50
48
  numberLineLabelPage.steps.navigateToLabelNumberLineTab();
51
- cy.wait(1000);
52
49
  });
53
50
 
54
51
  describe('Validation error messages', () => {
55
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please enter all label values', 'Please set points']);
52
+ dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton();
56
53
 
57
- it('Validation error messages should be displayed below required input fields', () => {
54
+ it('Validation error messages should not be displayed below input fields', () => {
58
55
  numberLineLabelPage.steps.verifyQuestionInstructionsErrorMessageIsNotDisplayed();
59
- numberLineLabelPage.steps.verifyWarningIconOnRequiredFields(['Please enter all label values', 'Please set points']);
56
+ numberLineLabelPage.steps.verifyPointsFieldErrorMessageIsNotDisplayed();
60
57
  numberLineLabelPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
61
58
  });
62
59
 
@@ -79,35 +76,5 @@ describe('Create item page - Number line: Header section and saving question', (
79
76
 
80
77
  numberLineLabelPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
81
78
  });
82
-
83
- describe('Saving a question with incomplete authoring', () => {
84
- abortEarlySetup();
85
- before(() => {
86
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
87
- cy.barsPreLoaderWait();
88
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
89
- });
90
- 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', () => {
91
- dialogBoxBase.tests.verifyRequiredFieldsWarningPopupOnClickingSaveButton(['Please set points']);
92
- numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
93
- });
94
- numberLineLabelPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
95
- });
96
-
97
- describe('Save as you go - Browse item page contents', () => {
98
- abortEarlySetup();
99
- before(() => {
100
- numberLineLabelPage.steps.navigateToCreateQuestion('Number line');
101
- cy.barsPreLoaderWait();
102
- numberLineLabelPage.steps.navigateToLabelNumberLineTab();
103
- numberLineLabelPage.steps.saveAQuestionWithIncompleteAuthoring();
104
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
105
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
106
- browseItemsPage.steps.navigateToBrowseItemsPage();
107
- });
108
- it('When user saves an incompletely authored question then a warning icon should be visible in browse items page', () => {
109
- browseItemsPage.steps.verifyWarningIconInBrowseItemPage(`${itemReferenceID}`);
110
- });
111
- });
112
79
  });
113
80
  });