itemengine-cypress-automation 1.0.205-8thJuneFixes-5ad148f.0 → 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 +2 -2
@@ -46,7 +46,7 @@ describe('Create Item page - Multiple selection grid: Manually and non scored',
46
46
  multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
47
47
  multipleSelectionGridPage.steps.expandScoringTypeDropdown();
48
48
  multipleSelectionGridPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
49
- ////multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
49
+ //multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
50
50
  multipleSelectionGridPage.steps.switchToPreviewTab();
51
51
  });
52
52
 
@@ -21,7 +21,7 @@ describe('Create item page - Multiple selection grid: Partial different weights
21
21
  multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 1 }, { row: 2, column: 0 }, { row: 2, column: 2 }, { row: 3, column: 0 }, { row: 3, column: 1 }, { row: 4, column: 2 }]);
22
22
  multipleSelectionGridPage.steps.allotPartialDifferentWeightsPoints({ 0: 5, 1: 7, 2: 4, 3: 8 });
23
23
  multipleSelectionGridPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '24');
24
- ////multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
24
+ //multipleSelectionGridPage.steps.checkAllowStudentToCheckAnswerCheckbox();
25
25
  multipleSelectionGridPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
@@ -58,11 +58,11 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
58
58
  shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
59
59
  shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
60
60
  shortTextResponsePage.steps.switchToStudentView();
61
- cy.log('When the user clicks on \'Check answer\' button, red cross mark icon should be displayed besides the response field, Incorrect answer label and border should not be displayed and no correct answer wrapper should be displayed');
61
+ /*cy.log('When the user clicks on \'Check answer\' button, red cross mark icon should be displayed besides the response field, Incorrect answer label and border should not be displayed and no correct answer wrapper should be displayed');
62
62
  shortTextResponsePage.steps.checkAnswer();
63
63
  shortTextResponsePage.steps.verifyIncorrectIcon();
64
64
  shortTextResponsePage.steps.verifyIncorrectAttemptBorder();
65
- shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
65
+ shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();*/
66
66
  });
67
67
 
68
68
  it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside correct response and correct answer border should be displayed and correct answer wrapper should not be displayed in the question preview', () => {
@@ -73,11 +73,11 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
73
73
  shortTextResponsePage.steps.verifyCorrectAttemptBorder();
74
74
  shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
75
75
  shortTextResponsePage.steps.switchToStudentView();
76
- cy.log('When the user clicks on \'Check answer\' button, then green checkmark icon should be displayed besides response fields, Correct answer label and border should not be displayed and no correct answer container should be displayed and no correct answer container should be displayed')
76
+ /*cy.log('When the user clicks on \'Check answer\' button, then green checkmark icon should be displayed besides response fields, Correct answer label and border should not be displayed and no correct answer container should be displayed and no correct answer container should be displayed')
77
77
  shortTextResponsePage.steps.checkAnswer();
78
78
  shortTextResponsePage.steps.verifyCorrectIcon();
79
79
  shortTextResponsePage.steps.verifyCorrectAttemptBorder();
80
- shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();
80
+ shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();*/
81
81
  });
82
82
  });
83
83
  });
@@ -93,7 +93,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
93
93
  });
94
94
  };
95
95
 
96
- 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', () => {
96
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
97
97
  if (view === 'Grading view') {
98
98
  studentViewPage.steps.submitResponse();
99
99
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
@@ -104,12 +104,17 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
104
104
  singleSelectionPage.steps.switchToGradingView();
105
105
  singleSelectionPage.steps.verifyPreviewScore(0, 20);
106
106
  }
107
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
107
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
108
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
109
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
110
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
108
111
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
109
112
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
113
+ //correct answer section
114
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
110
115
  });
111
116
 
112
- 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 border and label should not be displayed below the question preview', () => {
117
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
113
118
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
114
119
  if (view === 'Grading view') {
115
120
  studentViewPage.steps.submitResponse();
@@ -121,12 +126,16 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
121
126
  singleSelectionPage.steps.switchToGradingView();
122
127
  singleSelectionPage.steps.verifyPreviewScore(0, 20);
123
128
  }
124
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
125
- singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
129
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
130
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
131
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
132
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
126
133
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
134
+ //correct answer section
135
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
127
136
  });
128
137
 
129
- 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 border and a label should not be displayed below the question preview', () => {
138
+ 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 border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
130
139
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
131
140
  if (view === 'Grading view') {
132
141
  studentViewPage.steps.submitResponse();
@@ -138,9 +147,13 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
138
147
  singleSelectionPage.steps.verifyPreviewScore(20, 20);
139
148
  singleSelectionPage.steps.switchToGradingView();
140
149
  }
141
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
150
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
151
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
152
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
153
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
142
154
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
143
155
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
156
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
144
157
  });
145
158
  });
146
159
  });
@@ -1,7 +1,6 @@
1
1
  import { singleSelectionPage } from "../../../pages/singleSelectionPage";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
- const grepTags = Cypress.env('grepTags');
5
4
 
6
5
  const options = ['Pollution caused by treating chemical waste', 'Pollution caused by cement production', 'Pollution caused by methane production', 'Pollution caused by cement and methane production'];
7
6
 
@@ -26,28 +25,31 @@ describe('Create item page - Single selection: All or nothing with alternative a
26
25
  singleSelectionPage.steps.switchToPreviewTab();
27
26
  });
28
27
 
29
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the correct accordion, correct answer label and border should not be displayed', () => {
28
+ it('When the user selects \'Grading\' view without attempting the question, no icon should be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
30
29
  singleSelectionPage.steps.switchToGradingView();
31
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
32
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
33
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
34
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
30
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
31
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
32
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
33
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
35
34
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
36
35
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
37
- singleSelectionPage.steps.switchToStudentView();
36
+ //correct answer section
37
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
38
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
38
39
  });
39
40
 
40
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
41
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from correct accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
41
42
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
42
43
  singleSelectionPage.steps.verifyPreviewScore(20, 20);
43
44
  singleSelectionPage.steps.switchToGradingView();
44
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
45
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
46
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
47
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
45
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
46
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
47
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
48
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
48
49
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
49
50
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
50
- singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
52
+ //singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
53
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
52
54
  singleSelectionPage.steps.checkAnswer();
53
55
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
@@ -60,17 +62,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
60
62
 
61
63
  singleSelectionPage.tests.verifyPointsCorrectAnswerLabelAndBorderCSSAndA11y('single selection');
62
64
 
63
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label should not be displayed below the question preview', () => {
65
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion and unattempted correct options from the correct accordion, correct answer border and a label should not be displayed below the question preview and correct', () => {
64
66
  singleSelectionPage.steps.resetQuestionPreview();
65
67
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
66
68
  singleSelectionPage.steps.verifyPreviewScore(10, 20);
67
69
  singleSelectionPage.steps.switchToGradingView();
68
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
69
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
70
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
71
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
70
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
71
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
72
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
73
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
72
74
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
73
75
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
76
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
74
77
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
75
78
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
76
79
  singleSelectionPage.steps.checkAnswer();
@@ -82,18 +85,20 @@ describe('Create item page - Single selection: All or nothing with alternative a
82
85
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
83
86
  });
84
87
 
85
- 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 only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
88
+ 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 only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
86
89
  singleSelectionPage.steps.resetQuestionPreview();
87
90
  singleSelectionPage.steps.checkOptionInPreviewTab(3);
88
91
  singleSelectionPage.steps.verifyPreviewScore(0, 20);
89
92
  singleSelectionPage.steps.switchToGradingView();
90
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
91
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
92
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
93
- singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(3);
93
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
94
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
95
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
96
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(3);
94
97
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
95
98
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
96
- singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
99
+ //correct answer section
100
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
101
+ //singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
97
102
  /*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 border and a label should not be displayed below the question preview')
98
103
  singleSelectionPage.steps.checkAnswer();
99
104
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
@@ -141,27 +146,30 @@ describe('Create item page - Single selection: All or nothing with alternative a
141
146
  singleSelectionPage.steps.switchToPreviewTab();
142
147
  });
143
148
 
144
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the alternative accordion, correct answer label and border should not be displayed', () => {
149
+ it('When the user selects \'Grading\' view without attempting the question, no icons should only be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer from alternative accordion should be displayed in correct answer section', () => {
145
150
  singleSelectionPage.steps.switchToGradingView();
146
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
147
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
148
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
149
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
151
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
152
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
153
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
154
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
150
155
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
151
156
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
152
- singleSelectionPage.steps.switchToStudentView();
157
+ //correct answer section
158
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
159
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
153
160
  });
154
161
 
155
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the correct accordion and unattempted correct options from the alternative accordion, correct answer border and a label should not be displayed below the question preview', () => {
162
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the correct accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
156
163
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
157
164
  singleSelectionPage.steps.verifyPreviewScore(10, 20);
158
165
  singleSelectionPage.steps.switchToGradingView();
159
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
160
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
161
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
162
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
166
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
167
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
168
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
169
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
163
170
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
164
171
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
172
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
165
173
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
166
174
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
167
175
  singleSelectionPage.steps.checkAnswer();
@@ -173,17 +181,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
173
181
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
174
182
  });
175
183
 
176
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
184
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from alternative accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
177
185
  singleSelectionPage.steps.resetQuestionPreview();
178
186
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
179
187
  singleSelectionPage.steps.verifyPreviewScore(20, 20);
180
188
  singleSelectionPage.steps.switchToGradingView();
181
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
182
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
183
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
184
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
189
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
190
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
191
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
192
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
185
193
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
186
194
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
195
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
187
196
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
197
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
189
198
  singleSelectionPage.steps.checkAnswer();
@@ -195,17 +204,19 @@ describe('Create item page - Single selection: All or nothing with alternative a
195
204
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
196
205
  });
197
206
 
198
- 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 only be displayed besides unattempted correct options from the alternative accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
207
+ 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 only be displayed besides unattempted correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from alternative accordion should be displayed in correct answer section', () => {
199
208
  singleSelectionPage.steps.resetQuestionPreview();
200
209
  singleSelectionPage.steps.checkOptionInPreviewTab(0);
201
210
  singleSelectionPage.steps.verifyPreviewScore(0, 20);
202
211
  singleSelectionPage.steps.switchToGradingView();
203
- singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(0);
204
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
205
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
206
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
212
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
213
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
214
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
215
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
207
216
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
208
217
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
218
+ //correct answer section
219
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(2);
209
220
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
210
221
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides incorrect responses, correct icons should not be displayed besides unattempted correct options, incorrect answer border and a label should not be displayed below the question preview')
211
222
  singleSelectionPage.steps.checkAnswer();
@@ -234,27 +245,30 @@ describe('Create item page - Single selection: All or nothing with alternative a
234
245
  singleSelectionPage.steps.switchToPreviewTab();
235
246
  });
236
247
 
237
- it('When the user selects \'Grading\' view without attempting the question, correct icons should only be displayed besides correct options from the correct accordion, correct answer label and border should not be displayed', () => {
248
+ it('When the user selects \'Grading\' view without attempting the question, no icons should only be displayed besides unattempted options, correct answer label and border should not be displayed and correct answer from correct accordion should be displayed in correct answer section', () => {
238
249
  singleSelectionPage.steps.switchToGradingView();
239
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
240
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
241
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
242
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
250
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
251
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
252
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
253
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
243
254
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
244
255
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
245
- singleSelectionPage.steps.switchToStudentView();
256
+ //correct answer section
257
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
258
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
246
259
  });
247
260
 
248
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview', () => {
261
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from correct accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
249
262
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
250
263
  singleSelectionPage.steps.verifyPreviewScore(20, 20);
251
264
  singleSelectionPage.steps.switchToGradingView();
252
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
253
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
254
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
255
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
265
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
266
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
267
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
268
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
256
269
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
257
270
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
271
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
258
272
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
259
273
  /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed besides correct responses, correct answer border and a label should not be displayed below the question preview')
260
274
  singleSelectionPage.steps.checkAnswer();
@@ -266,17 +280,18 @@ describe('Create item page - Single selection: All or nothing with alternative a
266
280
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
267
281
  });
268
282
 
269
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview', () => {
283
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (same as correct answer points) and on switching to \'Grading\' view, correct icons should be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview and correct answer section should not be displayed', () => {
270
284
  singleSelectionPage.steps.resetQuestionPreview();
271
285
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
272
286
  singleSelectionPage.steps.verifyPreviewScore(20, 20);
273
287
  singleSelectionPage.steps.switchToGradingView();
274
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
275
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(1);
276
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(2);
277
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
288
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
289
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
290
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(2);
291
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
278
292
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
279
293
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
294
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
280
295
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
281
296
  /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icons should only be displayed besides correct responses from the alternative accordion, correct answer border and a label should not be displayed below the question preview')
282
297
  singleSelectionPage.steps.checkAnswer();
@@ -288,17 +303,19 @@ describe('Create item page - Single selection: All or nothing with alternative a
288
303
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
289
304
  });
290
305
 
291
- 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 only be displayed besides unattempted correct options from the correct accordion, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview', () => {
306
+ 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 correct options, incorrect answer border and an \'Incorrect answer\' label should be displayed below the question preview and correct answer from correct accordion should be displayed in correct answer section', () => {
292
307
  singleSelectionPage.steps.resetQuestionPreview();
293
308
  singleSelectionPage.steps.checkOptionInPreviewTab(0);
294
309
  singleSelectionPage.steps.verifyPreviewScore(0, 20);
295
310
  singleSelectionPage.steps.switchToGradingView();
296
- singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(0);
297
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
298
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
299
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
311
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(0);
312
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
313
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
314
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
300
315
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
301
316
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
317
+ //correct answer section
318
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
302
319
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
303
320
  /*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 border and a label should not be displayed below the question preview')
304
321
  singleSelectionPage.steps.checkAnswer();
@@ -1,4 +1,4 @@
1
- import abortEarlySetup from "../../../support/helpers/abortEarly";
1
+ /*import abortEarlySetup from "../../../support/helpers/abortEarly";
2
2
  import { singleSelectionPage } from "../../../pages";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
@@ -108,4 +108,4 @@ describe('Create Item page - Single Selection - Block', () => {
108
108
 
109
109
  singleSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
110
110
  });
111
- });
111
+ });*/
@@ -42,50 +42,58 @@ describe('Question Preview: Non Scored', () => {
42
42
 
43
43
  singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Non scored');
44
44
 
45
- 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', () => {
45
+ it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides the unattempted options, correct answer label and border should not be displayed and correct answer section should be displayed with correct answer', () => {
46
46
  singleSelectionPage.steps.switchToGradingView();
47
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
47
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
48
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
49
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
50
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
48
51
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
49
52
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
50
- singleSelectionPage.steps.switchToStudentView();
53
+ //correct answer section
54
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
55
+ singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
51
56
  });
52
57
 
53
- it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, correct icons should be displayed besides correct options, incorrect answer border and label should not be displayed below the question preview', () => {
58
+ it('When the user attempts the question incorrectly, then on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, no icons should be displayed besides unattempted options, incorrect answer border and label should not be displayed below the question preview and correct anser section should be displayed with correct answer', () => {
54
59
  singleSelectionPage.steps.checkOptionInPreviewTab(2);
55
60
  singleSelectionPage.steps.switchToGradingView();
56
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
57
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
58
- singleSelectionPage.steps.verifyIncorrectOptionIconGradingView(2);
59
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
61
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
62
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
63
+ singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
64
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
60
65
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
66
+ //correct answer section
67
+ singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
61
68
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
62
- 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')
69
+ /*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')
63
70
  singleSelectionPage.steps.checkAnswer();
64
71
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
65
72
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
66
73
  singleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
67
74
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
68
75
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
69
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
76
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
70
77
  });
71
78
 
72
- it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct answer border and a label should not be displayed below the question preview', () => {
79
+ it('When user attempts the question correctly, then on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, no icons should be displayed besides unattempted responses, correct answer border, a label and correct answer section should not be displayed below the question preview', () => {
73
80
  singleSelectionPage.steps.resetQuestionPreview();
74
81
  singleSelectionPage.steps.checkOptionInPreviewTab(1);
75
82
  singleSelectionPage.steps.switchToGradingView();
76
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(0);
77
- singleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
78
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
79
- singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
83
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
84
+ singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
85
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
86
+ singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
80
87
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
88
+ singleSelectionPage.steps.verifyCorrectAnswerSectionNotExist();
81
89
  singleSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
82
- 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')
90
+ /*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')
83
91
  singleSelectionPage.steps.checkAnswer();
84
92
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(0);
85
93
  singleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
86
94
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
87
95
  singleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
88
96
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
89
- singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();
97
+ singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
90
98
  });
91
99
  });
@@ -1,4 +1,4 @@
1
- import { singleSelectionPage } from "../../../pages/singleSelectionPage";
1
+ /*import { singleSelectionPage } from "../../../pages/singleSelectionPage";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
4
  const css = Cypress.env('css');
@@ -100,4 +100,4 @@ describe('Create Item page - True or False', () => {
100
100
 
101
101
  singleSelectionPage.tests.verifySavedSuccessfullySnackbarCSSAndA11y();
102
102
  });
103
- });
103
+ });*/
@@ -0,0 +1,89 @@
1
+ import { singleSelectionGridPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Multiple selection grid - Additional settings', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('Additional settings: Row style and layout section - Row numeration edit tab contents', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
13
+ cy.barsPreLoaderWait();
14
+ singleSelectionGridPage.steps.expandAdditionalSettings();
15
+ });
16
+
17
+ singleSelectionGridPage.tests.verifyRowNumerationContents();
18
+ });
19
+
20
+ describe('Additional settings: Row style and layout section - Row numeration specify correct answer section', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
24
+ cy.barsPreLoaderWait();
25
+ singleSelectionGridPage.steps.expandAdditionalSettings();
26
+ });
27
+
28
+ singleSelectionGridPage.tests.verifyRowNumerationEditTabFunctionality();
29
+ });
30
+
31
+ describe('Additional settings: Row style and layout section - Row numeration preview tab', () => {
32
+ abortEarlySetup();
33
+ before(() => {
34
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
35
+ cy.barsPreLoaderWait();
36
+ singleSelectionGridPage.steps.expandAdditionalSettings();
37
+ });
38
+
39
+ singleSelectionGridPage.tests.verifyRowNumerationPreviewTabFunctionality();
40
+ });
41
+
42
+ describe('Additional settings: Row style and layout section - Option alignment in cell: Specify correct answer', () => {
43
+ abortEarlySetup();
44
+ before(() => {
45
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
46
+ cy.barsPreLoaderWait();
47
+ singleSelectionGridPage.steps.expandAdditionalSettings();
48
+ });
49
+
50
+ singleSelectionGridPage.tests.verifyOptionAlignmentInCellContentsAndFunctionalityEditTab();
51
+ });
52
+
53
+ describe('Additional settings: Row style and layout section - Option alignment in cell: Preview tab', () => {
54
+ abortEarlySetup();
55
+ before(() => {
56
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
57
+ cy.barsPreLoaderWait();
58
+ singleSelectionGridPage.steps.expandAdditionalSettings();
59
+ singleSelectionGridPage.steps.switchToPreviewTab();
60
+ });
61
+
62
+ singleSelectionGridPage.tests.verifyOptionAlignmentInCellFunctionalityPreviewTab();
63
+ });
64
+
65
+ describe('Additional settings: ARIA label for row headers - Contents in edit tab', () => {
66
+ abortEarlySetup();
67
+ before(() => {
68
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
69
+ cy.barsPreLoaderWait();
70
+ singleSelectionGridPage.steps.expandAdditionalSettings();
71
+ singleSelectionGridPage.steps.addInputToRowInputStepper(2);
72
+ });
73
+
74
+ singleSelectionGridPage.tests.verifyARIALabelContentsAndFunctionalityEditTab();
75
+ });
76
+
77
+ describe('Additional settings: ARIA label for row headers - functionality in preview tab', () => {
78
+ abortEarlySetup();
79
+ before(() => {
80
+ singleSelectionGridPage.steps.navigateToCreateQuestion('single selection grid');
81
+ cy.barsPreLoaderWait();
82
+ singleSelectionGridPage.steps.expandAdditionalSettings();
83
+ singleSelectionGridPage.steps.addInputToRowInputStepper(2);
84
+ singleSelectionGridPage.steps.switchToPreviewTab();
85
+ });
86
+
87
+ singleSelectionGridPage.tests.verifyARIALabelFunctionalityPreviewTab();
88
+ });
89
+ });