itemengine-cypress-automation 1.0.194-packageUpdate1-2424cfe.0 → 1.0.195-15thMayUpdates-cc82cc7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +6 -6
  2. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +4 -4
  3. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +4 -4
  4. package/cypress/e2e/ILC/AudioPlayerNew/customizePlayerLayoutSettings.js +27 -12
  5. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +7 -7
  6. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +1 -1
  7. package/cypress/e2e/ILC/AudioResponseNew/customizePlaybackControls.js +2 -2
  8. package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +9 -8
  9. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +7 -7
  11. package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +2 -2
  12. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +2 -2
  13. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +11 -9
  14. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -1
  15. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +1 -0
  16. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -1
  17. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +2 -2
  18. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +4 -6
  19. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownSettings.js +3 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +1 -1
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +11 -11
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +1 -1
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +4 -4
  24. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  25. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/responseLevelAlternateAnswersBasicScoring.js +6 -4
  26. package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +6 -3
  27. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
  28. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
  29. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  30. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountAllOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  31. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountPartialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -1
  32. package/cypress/e2e/ILC/GridFill/scoring/cellShadeCountallOrNothingCorrectPointsEqualToAlternativePoints.js +2 -1
  33. package/cypress/e2e/ILC/GridFill/scoring/cellshadeCountAllOrNothingAlternativePointsGreaterThanCorrectPoints.js +2 -1
  34. package/cypress/e2e/ILC/GridFill/scoring/matchExactAndCellShadeCountCombinedScoring.js +2 -1
  35. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -3
  36. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -3
  37. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +4 -3
  38. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +6 -5
  39. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +6 -5
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +2 -1
  41. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +2 -1
  42. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -2
  43. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +3 -2
  44. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +1 -1
  45. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -3
  46. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +4 -4
  47. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  48. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  49. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  50. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +4 -4
  51. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  52. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +4 -4
  53. package/cypress/e2e/ILC/Matching/additionalSettings.js +4 -4
  54. package/cypress/e2e/ILC/Matching/draggableOptions.js +1 -1
  55. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  56. package/cypress/e2e/ILC/Matching/studentViewSettings.js +3 -3
  57. package/cypress/e2e/ILC/Matching/studentViewSettingsForGroupedLayout.js +4 -4
  58. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +0 -4
  59. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +78 -86
  60. package/cypress/e2e/ILC/MultipleSelection/checkAnswerFunctionalityForAllViews.smoke.js +1 -6
  61. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +12 -12
  62. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +9 -5
  63. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  64. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +9 -21
  65. package/cypress/e2e/ILC/NumberLineLabel/editTabBasicSection.js +6 -5
  66. package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/numberLineSection.js +2 -2
  67. package/cypress/e2e/ILC/Ruler/rulerEditTabBasicsSection.js +5 -5
  68. package/cypress/e2e/ILC/Ruler/rulerEditTabFunctionality.js +2 -2
  69. package/cypress/e2e/ILC/Ruler/rulerHeaderSection.js +12 -21
  70. package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +13 -13
  71. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +5 -5
  72. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +7 -7
  73. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +3 -3
  74. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +5 -4
  75. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +5 -5
  76. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +5 -5
  77. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +1 -1
  78. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +30 -30
  79. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +2 -2
  80. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  81. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -1
  82. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -1
  83. package/cypress/e2e/ILC/TextSelection/Scoring/manuallyAndNonScored.js +1 -1
  84. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -1
  85. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  86. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  87. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  88. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -1
  89. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  90. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  91. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  92. package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -2
  93. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +9 -9
  94. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -5
  95. package/cypress/e2e/ILC/UploadResponse/studentViewSettingsSection.js +1 -1
  96. package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +19 -19
  97. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsCompactRecorderStyle.js +1 -1
  98. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsStandardRecorderStyle.js +8 -8
  99. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +3 -3
  100. package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -3
  101. package/cypress/e2e/ILC/VideoResponseNew/standardRecorderStyle.js +2 -2
  102. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosFourFunctionCalculatorPreviewContents.smoke.js +1 -1
  103. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosGraphingCalculatorPreviewContents.smoke.js +1 -1
  104. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosMatrixCalculatorPreviewContents.smoke.js +1 -1
  105. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorEditTabBasicSection.js +6 -6
  106. package/cypress/e2e/ThirdPartyQuestions/Desmos/desmosScientificCalculatorPreviewContents.smoke.js +1 -1
  107. package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/additionalSettings.js +5 -7
  108. package/cypress/e2e/ThirdPartyQuestions/DesmosGraphing/studentViewSettings.js +6 -33
  109. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorEditTabBasicSection.js +3 -3
  110. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/3DGraphingCalculatorPreviewTabContents.smoke.js +2 -2
  111. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorEditTabBasicSection.js +3 -3
  112. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/casCalculatorPreviewTabContents.smoke.js +1 -1
  113. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorEditTabBasicSection.js +4 -4
  114. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/geometryCalculatorPreviewTabContents.smoke.js +2 -2
  115. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorEditTabBasicSection.js +3 -3
  116. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/graphingCalculatorPreviewTabContents.smoke.js +2 -2
  117. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorEditTabBasicSection.js +3 -3
  118. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/probablityCalculatorPreviewTabContents.smoke.js +1 -1
  119. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorEditTabBasicSection.js +3 -3
  120. package/cypress/e2e/ThirdPartyQuestions/GeoGebra/scientificCalculatorPreviewTabContents.smoke.js +2 -2
  121. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/additionalSettings.js +4 -4
  122. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/headerSection.js +0 -2
  123. package/cypress/e2e/ThirdPartyQuestions/GeogebraActivity/insertResourceLink.js +1 -1
  124. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
  125. package/cypress/fixtures/theme/ilc.json +8 -2
  126. package/cypress/fixtures/uploads/sample1.txt +4 -0
  127. package/cypress/fixtures/uploads/sample2.txt +13 -0
  128. package/cypress/fixtures/uploads/sample300kb.txt +1 -0
  129. package/cypress/pages/audioPlayerPage.js +3 -2
  130. package/cypress/pages/chartsLinePage.js +2 -1
  131. package/cypress/pages/components/ariaLabelSectionComponent.js +1 -0
  132. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
  133. package/cypress/pages/components/colorPopupComponent.js +1 -1
  134. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  135. package/cypress/pages/components/editCategoryFlyout.js +26 -17
  136. package/cypress/pages/components/enableOuterBorderComponent.js +5 -5
  137. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -1
  138. package/cypress/pages/components/imageCanvasComponent.js +14 -8
  139. package/cypress/pages/components/layoutSectionComponent.js +1 -1
  140. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  141. package/cypress/pages/components/numberLineCommonComponent.js +2 -2
  142. package/cypress/pages/components/questionInputFieldComponent.js +1 -1
  143. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +1 -0
  144. package/cypress/pages/desmosGraphingPage.js +1 -1
  145. package/cypress/pages/desmosToolPage.js +16 -4
  146. package/cypress/pages/drawingResponsePage.js +3 -3
  147. package/cypress/pages/essayResponsePage.js +1 -0
  148. package/cypress/pages/feedbackScalePage.js +13 -3
  149. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +19 -11
  150. package/cypress/pages/geoGebraActivityPage.js +12 -3
  151. package/cypress/pages/geoGebraToolsPage.js +1 -1
  152. package/cypress/pages/graphingPage.js +7 -8
  153. package/cypress/pages/matchingPage.js +8 -12
  154. package/cypress/pages/multipleSelectionPage.js +35 -1
  155. package/cypress/pages/numberLineLabelPage.js +1 -1
  156. package/cypress/pages/numberLinePage.js +36 -8
  157. package/cypress/pages/rulerPage.js +0 -6
  158. package/cypress/pages/selectQuestionResourceToolPage.js +0 -4
  159. package/cypress/pages/singleSelectionPage.js +1 -2
  160. package/cypress/pages/uploadResponsePage.js +2 -2
  161. package/cypress/pages/videoResponsePage.js +11 -11
  162. package/package.json +1 -1
  163. package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +0 -366
  164. package/cypress/e2e/ILC/UploadResponse/uploadResponseAdditionalSettings.js +0 -41
  165. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingForAllViews.smoke.js +0 -0
  166. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingGroupedScoring.js +0 -0
  167. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
  168. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +0 -0
  169. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  170. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/manuallyAndNonScored.js +0 -0
  171. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -0
  172. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsBasic.js +0 -0
  173. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
  174. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  175. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsBasic.js +0 -0
  176. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +0 -0
  177. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +0 -0
  178. /package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/{FillInTheGapsOverImageDragAndDropScoring → Scoring}/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +0 -0
  179. /package/cypress/e2e/ILC/UploadResponse/{uploadResponseEditTabBasicSections.js → editTabBasicSection.js} +0 -0
  180. /package/cypress/e2e/ILC/UploadResponse/{uploadResponseHeaderSection.js → headerSection.js} +0 -0
  181. /package/cypress/e2e/ILC/UploadResponse/{uplodResponsePreviewUploadedFileProperties.js → uploadedFileProperties.js} +0 -0
@@ -1,366 +0,0 @@
1
- import { dialogBoxBase, chartsLinePage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../pages";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- import utilities from "../../../support/helpers/utilities";
4
- const grepTags = Cypress.env('grepTags');
5
- let correctAnswerViews = ['Question preview', 'Item preview', 'Grading view'];
6
- const views = utilities.getViews(correctAnswerViews);
7
- var itemReferenceID = "";
8
-
9
- describe('Create item page - Charts - Line: All or nothing ', () => {
10
- before(() => {
11
- cy.loginAs('admin');
12
- });
13
-
14
- if (!grepTags || !grepTags.includes('smoke')) {
15
- describe('Question preview modes: Student view and Grading view', () => {
16
- abortEarlySetup();
17
- before(() => {
18
- chartsLinePage.steps.navigateToCreateQuestion('charts');
19
- cy.barsPreLoaderWait();
20
- chartsLinePage.steps.selectLineButton();
21
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 1, range: 10 });
22
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
23
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 2, value: 3, range: 10 });
24
- chartsLinePage.steps.switchToPreviewTab();
25
- });
26
-
27
- chartsLinePage.tests.verifyPreviewModesAndScoreWhenPointsAndCorrectAnswersIsNotSet();
28
-
29
- it('When the user sets correct answer responses and allots points, then the alloted points should be displayed in the preview tab', () => {
30
- chartsLinePage.steps.switchToEditTab();
31
- chartsLinePage.steps.allotPoints(20);
32
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 2, range: 10 });
33
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 5, range: 10 });
34
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 1, range: 10 });
35
- chartsLinePage.steps.switchToPreviewTab();
36
- chartsLinePage.steps.verifyPreviewScore(0, 20);
37
- });
38
-
39
- it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
40
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 7, range: 10 });
41
- chartsLinePage.steps.resetQuestionPreview();
42
- chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 0, value: 1, range: 10 });
43
- chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 1, value: 2, range: 10 });
44
- chartsLinePage.steps.verifyPointValueInPreviewTab({ pointIndex: 2, value: 3, range: 10 });
45
- });
46
- });
47
- };
48
-
49
- views.forEach((view) => {
50
- describe(`Charts - Line: All or nothing scoring - ${view}`, { tags: 'smoke' }, () => {
51
- abortEarlySetup();
52
- before(() => {
53
- switch (view) {
54
- case 'Question preview':
55
- chartsLinePage.steps.navigateToCreateQuestion('charts');
56
- cy.barsPreLoaderWait();
57
- chartsLinePage.steps.addTextInQuestionInstructionsInputField('Set the point on the chart for the profits of the years');
58
- chartsLinePage.steps.selectLineButton();
59
- chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
60
- chartsLinePage.steps.addBarOrPointInChartInSelectChartTypeSection();
61
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 3, range: 10 });
62
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
63
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 3, value: 3, range: 10 });
64
- chartsLinePage.steps.lockPoint(1);
65
- chartsLinePage.steps.allotPoints(20);
66
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
67
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
68
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
69
- chartsLinePage.steps.switchToPreviewTab();
70
- break;
71
- case 'Item preview':
72
- cy.visit(`/item-engine/demo/edit-item/${utilities.base64Encoding(itemReferenceID)}`);
73
- itemPreviewPage.steps.switchToPreviewTab();
74
- break;
75
- case 'Grading view':
76
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
77
- break;
78
- }
79
- });
80
-
81
- beforeEach(() => {
82
- switch (view) {
83
- case 'Question preview':
84
- chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
85
- chartsLinePage.steps.resetQuestionPreview();
86
- break;
87
- case 'Item preview':
88
- itemPreviewPage.steps.switchToStudentView();
89
- itemPreviewPage.steps.resetQuestionPreview();
90
- break;
91
- case 'Grading view':
92
- cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
93
- break;
94
- }
95
- });
96
-
97
- if (view === 'Question preview') {
98
- after(() => {
99
- chartsLinePage.steps.clickOnSaveQuestionButton();
100
- utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
101
- itemReferenceID = itemPreviewPage.steps.getItemReferenceID();
102
- });
103
- };
104
-
105
- it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
106
- if (view === 'Grading view') {
107
- studentViewPage.steps.submitResponse();
108
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
109
- studentViewPage.steps.clickOnGoToGradingViewButton();
110
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
111
- } else {
112
- chartsLinePage.steps.switchToGradingView();
113
- chartsLinePage.steps.verifyPreviewScore(0, 20);
114
- }
115
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
116
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
117
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
118
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
119
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
120
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
121
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
122
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
123
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
124
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
125
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
126
- });
127
-
128
- //Fully incorrect case
129
- it('When the user incorrectly sets a point which was correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
130
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 5, range: 10 });
131
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 2, range: 10 });
132
- if (view === 'Grading view') {
133
- studentViewPage.steps.submitResponse();
134
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
135
- studentViewPage.steps.clickOnGoToGradingViewButton();
136
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
137
- } else {
138
- chartsLinePage.steps.verifyPreviewScore(0, 20);
139
- chartsLinePage.steps.switchToGradingView();
140
- }
141
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'incorrect');
142
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
143
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
144
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
145
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
146
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
147
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
148
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
149
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
150
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
151
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
152
- });
153
-
154
- //Partially correct cases
155
- it('When the user incorrectly sets a point which was set to 0 and correct by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
156
- if (view === 'Grading view') {
157
- studentViewPage.steps.clearResponses();
158
- }
159
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 4, value: 5, range: 10 });
160
- if (view === 'Grading view') {
161
- studentViewPage.steps.submitResponse();
162
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
163
- studentViewPage.steps.clickOnGoToGradingViewButton();
164
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
165
- } else {
166
- chartsLinePage.steps.verifyPreviewScore(0, 20);
167
- chartsLinePage.steps.switchToGradingView();
168
- }
169
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
170
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
171
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
172
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
173
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'incorrect');
174
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
175
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
176
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
177
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
178
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
179
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
180
- });
181
-
182
- it('When the user attempts the question partially correct by incorrectly setting a point which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
183
- if (view === 'Grading view') {
184
- studentViewPage.steps.clearResponses();
185
- }
186
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 2, range: 10 });
187
- if (view === 'Grading view') {
188
- studentViewPage.steps.submitResponse();
189
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
190
- studentViewPage.steps.clickOnGoToGradingViewButton();
191
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
192
- } else {
193
- chartsLinePage.steps.verifyPreviewScore(0, 20);
194
- chartsLinePage.steps.switchToGradingView();
195
- }
196
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
197
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
198
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
199
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
200
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
201
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
202
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
203
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
204
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
205
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
206
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
207
- });
208
-
209
- it('When the user attempts the question partially correct by incorrectly setting a point to zero which was incorrect by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
210
- if (view === 'Grading view') {
211
- studentViewPage.steps.clearResponses();
212
- }
213
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 0, range: 10 });
214
- if (view === 'Grading view') {
215
- studentViewPage.steps.submitResponse();
216
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
217
- studentViewPage.steps.clickOnGoToGradingViewButton();
218
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
219
- } else {
220
- chartsLinePage.steps.verifyPreviewScore(0, 20);
221
- chartsLinePage.steps.switchToGradingView();
222
- }
223
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
224
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
225
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
226
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
227
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
228
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
230
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
231
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
232
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
233
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
234
- });
235
-
236
- it('When the user attempts the question partially correct by incorrectly setting a point which was set to zero by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points, incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
237
- if (view === 'Grading view') {
238
- studentViewPage.steps.clearResponses();
239
- }
240
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 9, range: 10 });
241
- if (view === 'Grading view') {
242
- studentViewPage.steps.submitResponse();
243
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
244
- studentViewPage.steps.clickOnGoToGradingViewButton();
245
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
246
- } else {
247
- chartsLinePage.steps.verifyPreviewScore(0, 20);
248
- chartsLinePage.steps.switchToGradingView();
249
- }
250
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
251
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
252
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
253
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'incorrect');
254
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
255
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
256
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
257
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
258
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
259
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
260
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
261
- });
262
-
263
- it('When the user attempts the question partially correct by setting all points correctly except 1 then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed, correct icons should be displayed on the correctly attempted points and incorrect icons should be displayed on the incorrectly attempted points and correct answer section should be displayed with the correct answers', () => {
264
- if (view === 'Grading view') {
265
- studentViewPage.steps.clearResponses();
266
- }
267
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
268
- if (view === 'Grading view') {
269
- studentViewPage.steps.submitResponse();
270
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
271
- studentViewPage.steps.clickOnGoToGradingViewButton();
272
- gradingViewPage.steps.verifyGradingViewScore(0, 20);
273
- } else {
274
- chartsLinePage.steps.verifyPreviewScore(0, 20);
275
- chartsLinePage.steps.switchToGradingView();
276
- }
277
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
278
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
279
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'incorrect');
280
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
281
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
282
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
283
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 0, value: 3, range: 10 });
284
- chartsLinePage.steps.verifyLockedPointInCorrectAnswerSection({ pointIndex: 1, value: 2, range: 10 });
285
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
286
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 3, value: 5, range: 10 });
287
- chartsLinePage.steps.verifyPointInCorrectAnswerSection({ pointIndex: 4, value: 0, range: 10 });
288
- });
289
-
290
- //Fully correct
291
- it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed, correct icons should be displayed on the correctly attempted points and the correct answer section graph should not be displayed', () => {
292
- if (view === 'Grading view') {
293
- studentViewPage.steps.clearResponses();
294
- }
295
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 2, value: 6, range: 10 });
296
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 3, value: 5, range: 10 });
297
- if (view === 'Grading view') {
298
- studentViewPage.steps.submitResponse();
299
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
300
- studentViewPage.steps.clickOnGoToGradingViewButton();
301
- gradingViewPage.steps.verifyGradingViewScore(20, 20);
302
- } else {
303
- chartsLinePage.steps.verifyPreviewScore(20, 20);
304
- chartsLinePage.steps.switchToGradingView();
305
- }
306
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(0, 'correct');
307
- chartsLinePage.steps.verifyPointCorrectIncorrectIconNotExistsInPreviewTab(1);
308
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(2, 'correct');
309
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(3, 'correct');
310
- chartsLinePage.steps.verifyPointCorrectIncorrectIconInPreviewTab(4, 'correct');
311
- chartsLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
312
- chartsLinePage.steps.verifyCorrectAnswerSectionNotExist();
313
- });
314
- });
315
- });
316
-
317
- if (!grepTags || !grepTags.includes('smoke')) {
318
- describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
319
- abortEarlySetup();
320
- before(() => {
321
- chartsLinePage.steps.navigateToCreateQuestion('charts');
322
- cy.barsPreLoaderWait();
323
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 0, value: 1, range: 10 });
324
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 1, value: 2, range: 10 });
325
- chartsLinePage.steps.setPointValueInSelectChartTypeSection({ pointIndex: 2, value: 3, range: 10 });
326
- chartsLinePage.steps.allotPoints(20);
327
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 0, value: 4, range: 10 });
328
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 1, value: 5, range: 10 });
329
- chartsLinePage.steps.setPointValueInSpecifyCorrectAnswerSection({ pointIndex: 2, value: 6, range: 10 });
330
- });
331
-
332
- it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
333
- chartsLinePage.steps.expandMinimumScoringDropdown();
334
- chartsLinePage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
335
- chartsLinePage.steps.allotMinimumPoints(2);
336
- chartsLinePage.steps.switchToPreviewTab();
337
- chartsLinePage.steps.switchToGradingView();
338
- chartsLinePage.steps.verifyPreviewScore(2, 20);
339
- chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
340
- });
341
-
342
- it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
343
- chartsLinePage.steps.resetQuestionPreview();
344
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 10 });
345
- chartsLinePage.steps.verifyPreviewScore(2, 20);
346
- chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
347
- });
348
-
349
- it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
350
- chartsLinePage.steps.switchToEditTab();
351
- chartsLinePage.steps.expandMinimumScoringDropdown();
352
- chartsLinePage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
353
- chartsLinePage.steps.allotMinimumPoints(2);
354
- chartsLinePage.steps.switchToPreviewTab();
355
- chartsLinePage.steps.switchToGradingView();
356
- chartsLinePage.steps.verifyPreviewScore(0, 20);
357
- chartsLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
358
- });
359
-
360
- it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
361
- chartsLinePage.steps.setPointValueInPreviewTab({ pointIndex: 0, value: 2, range: 10 });
362
- chartsLinePage.steps.verifyPreviewScore(2, 20);
363
- });
364
- });
365
- };
366
- });
@@ -1,41 +0,0 @@
1
- import abortEarlySetup from "../../../support/helpers/abortEarly";
2
- import { uploadResponsePage } from "../../../pages";
3
- const css = Cypress.env('css');
4
-
5
- describe('Create question page - Upload Response: Additional Settings', () => {
6
- before(() => {
7
- cy.loginAs('admin');
8
- });
9
-
10
- describe('Additional Settings accordion', () => {
11
- abortEarlySetup();
12
- before(() => {
13
- uploadResponsePage.steps.navigateToCreateQuestion('upload response');
14
- cy.barsPreLoaderWait();
15
- });
16
-
17
- uploadResponsePage.tests.verifyAdditionalSettingsAccordionProperties();
18
- });
19
-
20
- describe('Additional settings: Font size contents', () => {
21
- abortEarlySetup();
22
- before(() => {
23
- uploadResponsePage.steps.navigateToCreateQuestion('upload response');
24
- cy.barsPreLoaderWait();
25
- uploadResponsePage.steps.expandAdditionalSettings();
26
- });
27
-
28
- uploadResponsePage.tests.verifyFontSizeSectionContents();
29
- });
30
-
31
- describe('Additional Settings: Details section', () => {
32
- abortEarlySetup();
33
- before(() => {
34
- uploadResponsePage.steps.navigateToCreateQuestion('upload response');
35
- cy.barsPreLoaderWait();
36
- uploadResponsePage.steps.expandAdditionalSettings();
37
- });
38
-
39
- uploadResponsePage.tests.verifyDetailsSection();
40
- });
41
- });