itemengine-cypress-automation 1.0.204 → 1.0.205

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/audioOverviewAndTranscript.js +2 -2
  2. package/cypress/e2e/ILC/ChartsBar/Scoring/addAndDeleteBarAllOrNothingScoring.js +302 -0
  3. package/cypress/e2e/ILC/ChartsBar/Scoring/manuallyAndNonScored.js +282 -0
  4. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +385 -0
  5. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +386 -0
  6. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +386 -0
  7. package/cypress/e2e/ILC/ChartsBar/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +337 -0
  8. package/cypress/e2e/ILC/ChartsBar/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -1
  9. package/cypress/e2e/ILC/ChartsBar/chartFunctionalitySpecifyCorrectAnswerSection.js +258 -0
  10. package/cypress/e2e/ILC/ChartsBar/checkAnswerFunctionalityForAllViews.smoke.js +1 -1
  11. package/cypress/e2e/ILC/ChartsBar/gridSettings.js +439 -0
  12. package/cypress/e2e/ILC/ChartsBar/headerSection.js +105 -0
  13. package/cypress/e2e/ILC/ChartsBar/labelOptionsSection.js +450 -0
  14. package/cypress/e2e/ILC/ChartsBar/specifyCorrectAnswerSection.js +91 -0
  15. package/cypress/e2e/ILC/ChartsBar/toolSettings.js +73 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +3 -2
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +6 -6
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +169 -0
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +1 -1
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionProperties.js +223 -0
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDraggableOptionsPanel.js +119 -0
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneBorderStyleProperties.js +113 -0
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationDropzoneProperties.js +251 -0
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +277 -0
  28. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +0 -2
  29. package/cypress/e2e/ILC/EssayResponse/previewHyperlink.js +1 -5
  30. package/cypress/e2e/ILC/FeedbackScaleNew/editTabBasicSection.js +1 -0
  31. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/editTabBasicSection.js +4 -4
  32. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +1 -0
  33. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +14 -1
  34. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/styleAndLayoutCutomization.js +378 -0
  35. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +3 -3
  36. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +3 -1
  37. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/styleAndLayoutCustomization.js +479 -0
  38. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +3 -1
  39. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsCellShadeCountBasics.js +7 -7
  40. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/allOrNothingPenaltyScoring.js +1 -0
  41. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/manuallyAndNonScored.js +1 -0
  42. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +2 -2
  43. package/cypress/e2e/ILC/ListOrderingDropdown/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +2 -3
  44. package/cypress/e2e/ILC/ListOrderingDropdown/minimumScoringPenaltyPointsAndRoundingDropdown.js +7 -7
  45. package/cypress/e2e/ILC/ListOrderingDropdown/studentViewSettings.js +1 -1
  46. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -4
  47. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +10 -9
  48. package/cypress/e2e/ILC/Matching/toolSettings.js +1 -0
  49. package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
  50. package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +36 -16
  51. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +326 -176
  52. package/cypress/e2e/ILC/MultipleSelection/blockCreateItem.js +2 -2
  53. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +37 -15
  54. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsBasic.js +38 -17
  55. package/cypress/e2e/ILC/MultipleSelection/partialDifferentWeightsWithAlternativeAnswer.js +441 -186
  56. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsBasic.js +33 -14
  57. package/cypress/e2e/ILC/MultipleSelection/partialEqualWeightsWithAlternativeAnswer.js +330 -164
  58. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +1 -1
  59. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  60. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +4 -4
  61. package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +20 -7
  62. package/cypress/e2e/ILC/SingleSelection/allOrNothingWithAlternativeAnswer.js +83 -66
  63. package/cypress/e2e/ILC/SingleSelection/blockCreateItem.js +2 -2
  64. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +25 -17
  65. package/cypress/e2e/ILC/SingleSelection/trueOrFalseCreateItem.js +2 -2
  66. package/cypress/e2e/ILC/SingleSelectionGridNew/additionalSettings.js +89 -0
  67. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +3 -3
  68. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +2 -2
  69. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +2 -2
  70. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  71. package/cypress/e2e/ILC/VideoResponseNew/studentViewSettingsCompactRecorderStyle.js +0 -2
  72. package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +2 -2
  73. package/cypress/e2e/ILC/chartsDotsPlot/scoring/allOrNothingPenaltyScoring.js +1 -1
  74. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsBasic.js +15 -15
  75. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +21 -21
  76. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +17 -17
  77. package/cypress/e2e/ILC/chartsDotsPlot/scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +21 -21
  78. package/cypress/e2e/ILC/chartsDotsPlot/scoring/toleranceThresholdScoring.js +1 -1
  79. package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +8 -4
  80. package/cypress/e2e/ILC/chartsDotsPlot/toolSettings.js +0 -1
  81. package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +2 -2
  82. package/cypress/pages/audioResponsePage.js +1 -1
  83. package/cypress/pages/chartsBarPage.js +785 -5
  84. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
  85. package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
  86. package/cypress/pages/components/barAndLineChartComponent.js +180 -9
  87. package/cypress/pages/components/chartsCommonComponent.js +1 -0
  88. package/cypress/pages/components/connectorStyleStyleAndLayoutCustomizationComponent.js +77 -0
  89. package/cypress/pages/components/essayResponseCommonComponents.js +2 -3
  90. package/cypress/pages/components/figCommonStyleAndLayoutComponent.js +1 -1
  91. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +24 -7
  92. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +8 -4
  93. package/cypress/pages/components/gridQuestionCommonComponent.js +1 -1
  94. package/cypress/pages/components/imageCanvasComponent.js +112 -2
  95. package/cypress/pages/components/index.js +1 -0
  96. package/cypress/pages/components/layoutSectionComponent.js +4 -3
  97. package/cypress/pages/dragAndDropIntoCategoriesPage.js +960 -3
  98. package/cypress/pages/drawingResponsePage.js +2 -2
  99. package/cypress/pages/fillInTheGapsDragAndDropPage.js +4 -3
  100. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +18 -3
  101. package/cypress/pages/fillInTheGapsOverImageTextPage.js +65 -3
  102. package/cypress/pages/listOrderingPage.js +3 -3
  103. package/cypress/pages/multipleSelectionPage.js +77 -25
  104. package/cypress/pages/rulerPage.js +5 -0
  105. package/cypress/pages/singleSelectionPage.js +40 -1
  106. package/cypress/pages/videoResponsePage.js +1 -1
  107. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ /*import abortEarlySetup from "../../../support/helpers/abortEarly";
2
2
  import { multipleSelectionPage } from "../../../pages";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
@@ -107,4 +107,4 @@ describe('Create Item page - Multiple Selection - Block', () => {
107
107
 
108
108
  multipleSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
109
109
  });
110
- });
110
+ });*/
@@ -43,23 +43,36 @@ describe('Question Preview: Non Scored', () => {
43
43
 
44
44
  multipleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
45
45
 
46
- it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed besides correct answer options, correct answer label and border should not be displayed', () => {
46
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct responses', () => {
47
47
  multipleSelectionPage.steps.switchToGradingView();
48
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
48
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
49
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
50
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
51
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
49
52
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
50
53
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
51
- multipleSelectionPage.steps.switchToStudentView();
54
+ //correct answer section
55
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
56
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
57
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
58
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
59
+ multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
52
60
  });
53
61
 
54
- it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
62
+ it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed beside the incorrect responses and no icons should be displayed besides unattempted responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer section should be displayed with correct responses', () => {
55
63
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
56
64
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
57
65
  multipleSelectionPage.steps.switchToGradingView();
58
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
59
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
60
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
61
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
66
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
67
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
68
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
69
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
62
70
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
71
+ //correct answer section
72
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
73
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
74
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
75
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
63
76
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
64
77
  /*cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
65
78
  multipleSelectionPage.steps.checkAnswer();
@@ -70,15 +83,21 @@ describe('Question Preview: Non Scored', () => {
70
83
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
71
84
  });
72
85
 
73
- it('When the user attempts the question partially correct, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
86
+ it('When the user attempts the question partially correct, then on switching to \'Grading\' view, no icons should be displayed besides unattempted correct options, correct icons should be displayed besides the correct responses and incorrect icons should be displayed beside the incorrect responses, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer section should be displayed with correct responses', () => {
74
87
  multipleSelectionPage.steps.resetQuestionPreview();
75
88
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
76
89
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
77
90
  multipleSelectionPage.steps.switchToGradingView();
78
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
79
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
80
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
91
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
92
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
93
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
94
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
81
95
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
96
+ //correct answer section
97
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
98
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
99
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
100
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
82
101
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
83
102
  /*cy.log('When the user has attempted the question incorrectly clicks on \'Check answer\' button, then correct icons should be displayed besides correct response and incorrect icon should be displayed beside incorrect option, incorrect answer border and a label should not be displayed below the question preview')
84
103
  multipleSelectionPage.steps.checkAnswer();
@@ -89,14 +108,17 @@ describe('Question Preview: Non Scored', () => {
89
108
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');*/
90
109
  });
91
110
 
92
- it('When the user attempts the question correctly, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should not be displayed, correct answer border and an \'Correct answer\' label should be displayed below the question preview', () => {
111
+ it('When the user attempts the question correctly, then on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, no icons should not be displayed besides unattempted responses, correct answer border and an \'Correct answer\' label should be displayed below the question preview and correct answer section should not be displayed', () => {
93
112
  multipleSelectionPage.steps.resetQuestionPreview();
94
113
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
95
114
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
96
115
  multipleSelectionPage.steps.switchToGradingView();
97
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
98
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
116
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
117
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
118
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
119
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
99
120
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
121
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
100
122
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
101
123
  /*cy.log('When the user has attempted the question with correct responses and clicks on \'Check answer\' button, then correct icon should be displayed besides correct response, correct answer border and a label should not be displayed below the question preview')
102
124
  multipleSelectionPage.steps.checkAnswer();
@@ -21,26 +21,38 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
21
21
  multipleSelectionPage.steps.switchToPreviewTab();
22
22
  });
23
23
 
24
- it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed besides correct answer options, correct answer label and border should not be displayed', () => {
24
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides unattempted options, correct answer section should be displayed', () => {
25
25
  multipleSelectionPage.steps.switchToGradingView();
26
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
27
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
26
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
27
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
28
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
29
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
28
30
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
29
31
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
30
- multipleSelectionPage.steps.switchToStudentView();
32
+ //correct answer section
33
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
34
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
35
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
36
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
37
+ multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
31
38
  });
32
39
 
33
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should be displayed besides correct options, incorrect answer label and border should not be displayed', () => {
40
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses,no icons should be displayed besides unattempted options, incorrect answer label and border should not be displayed and correct answer section with correct answer should be displayed', () => {
34
41
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
35
42
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
36
43
  multipleSelectionPage.steps.verifyPreviewScore(0, 20);
37
44
  multipleSelectionPage.steps.switchToGradingView();
38
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
39
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
40
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
41
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
45
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
46
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
47
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
48
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
42
49
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
43
50
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
51
+ //correct answer section
52
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
53
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
54
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
55
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
44
56
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
45
57
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should only be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer label and border should not be displayed')
46
58
  multipleSelectionPage.steps.checkAnswer();
@@ -52,17 +64,23 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
52
64
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();*/
53
65
  });
54
66
 
55
- it('When the user attempts the question partially correct, then the user should be awarded points as per the correctly attempted response and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, incorrect icons should be displayed beside the incorrect responses, correct/incorrect answer label and border should not be displayed', () => {
67
+ it('When the user attempts the question partially correct, then the user should be awarded points as per the correctly attempted response and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, no icons should be displayed besides unattempted options, incorrect icons should be displayed beside the incorrect responses, correct/incorrect answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
56
68
  multipleSelectionPage.steps.resetQuestionPreview();
57
69
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
58
70
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
59
71
  multipleSelectionPage.steps.verifyPreviewScore(14, 20);
60
72
  multipleSelectionPage.steps.switchToGradingView();
61
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
62
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
63
- multipleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
73
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
74
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
75
+ multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
76
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
64
77
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
65
78
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
79
+ //correct answer section
80
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
81
+ multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
82
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
83
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
66
84
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
67
85
  /*cy.log('When the user has attempted the question with partially correct responses and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses, correct icons should not be displayed besides unattempted correct options, incorrect icon should be displayed besides the incorrect responses, correct/incorrect answer label and border should not be displayed')
68
86
  multipleSelectionPage.steps.checkAnswer();
@@ -73,16 +91,19 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
73
91
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();*/
74
92
  });
75
93
 
76
- it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer label and border should not be displayed', () => {
94
+ it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, no icons should be displayed besides unattempted options, correct answer label and correct answer section should not be displayed', () => {
77
95
  multipleSelectionPage.steps.resetQuestionPreview();
78
96
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
79
97
  multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
80
98
  multipleSelectionPage.steps.verifyPreviewScore(20, 20);
81
99
  multipleSelectionPage.steps.switchToGradingView();
82
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
83
- multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
100
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(0);
101
+ multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
102
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
103
+ multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
84
104
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
85
105
  multipleSelectionPage.steps.verifyCorrectIncorrectBorderNotVisible();
106
+ multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
86
107
  multipleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
87
108
  /*cy.log('When the user has attempted the question question correctly and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer label and border should not be displayed')
88
109
  multipleSelectionPage.steps.checkAnswer();
@@ -283,7 +304,7 @@ describe('Create Item page - Multiple selection: Partial - different weights ',
283
304
  multipleSelectionPage.steps.expandMinimumScoringDropdown();
284
305
  multipleSelectionPage.steps.selectOptionFromMinimumScoringDropdown('No minimum score');
285
306
  });
286
-
307
+
287
308
  //Penalty points for each incorrect option - Automatically set penalty for each incorrect option to total points / no. of incorrect options
288
309
  it('When the user has set penalty scoring to \'Penalty points for each incorrect option\', and checks \'Automatically set penalty for each incorrect option to total points / no. of incorrect options\' checkbox and attempts the question incorrectly, then the user should be awarded with negative points', () => {
289
310
  multipleSelectionPage.steps.checkAutomaticallySetPenaltyPointsCheckbox();