itemengine-cypress-automation 1.0.166-migrationScripts-b8c79a0.0 → 1.0.166

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +83 -0
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +200 -0
  3. package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +56 -0
  4. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +95 -0
  5. package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +71 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +72 -0
  7. package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +71 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +22 -11
  10. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
  11. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
  12. package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +161 -0
  13. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +308 -0
  14. package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +216 -0
  15. package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +336 -0
  16. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +570 -0
  17. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +214 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +356 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +18 -7
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +11 -6
  22. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +355 -0
  23. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +0 -1
  24. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +2 -36
  25. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +22 -34
  26. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +8 -24
  27. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +5 -25
  28. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +68 -114
  29. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +67 -111
  30. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +71 -123
  31. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +41 -63
  32. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +21 -25
  33. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +50 -85
  34. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +68 -115
  35. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +54 -98
  36. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +72 -120
  37. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
  38. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +309 -0
  39. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  40. package/cypress/e2e/ILC/Matching/toolSettings.js +72 -0
  41. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +1033 -0
  42. package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +28 -0
  43. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +236 -0
  44. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +239 -0
  45. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +278 -0
  46. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +178 -0
  47. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +407 -0
  48. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +273 -0
  49. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +278 -0
  50. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +228 -0
  51. package/cypress/e2e/ILC/NumberLine/additionalSettings.js +120 -0
  52. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +659 -0
  53. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +149 -0
  54. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +151 -0
  55. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +171 -0
  56. package/cypress/e2e/ILC/NumberLine/headerSection.js +76 -0
  57. package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +54 -0
  58. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +200 -0
  59. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +67 -0
  60. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +135 -0
  61. package/cypress/e2e/ILC/NumberLine/toolSettings.js +73 -0
  62. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +372 -0
  63. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1014 -0
  64. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +235 -0
  65. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +235 -0
  66. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +235 -0
  67. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +457 -0
  68. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +342 -0
  69. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +342 -0
  70. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +342 -0
  71. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +155 -0
  72. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +314 -0
  73. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +275 -0
  74. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +314 -0
  75. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +290 -0
  76. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +142 -0
  77. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +137 -0
  78. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
  79. package/cypress/fixtures/theme/ilc.json +14 -26
  80. package/cypress/pages/brainingCampManipulativePage.js +122 -0
  81. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
  82. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  83. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  84. package/cypress/pages/components/colorPopupComponent.js +2 -2
  85. package/cypress/pages/components/defaultToolDropdown.js +77 -0
  86. package/cypress/pages/components/gridQuestionCommonComponent.js +629 -2
  87. package/cypress/pages/components/index.js +3 -0
  88. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  89. package/cypress/pages/components/measuringToolComponent.js +2 -2
  90. package/cypress/pages/components/resetPopupComponent.js +74 -0
  91. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  92. package/cypress/pages/components/setPointsPopupBase.js +6 -4
  93. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +60 -3
  94. package/cypress/pages/components/toolSettingsComponent.js +80 -12
  95. package/cypress/pages/components/toolsAndControlsComponent.js +69 -0
  96. package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -8
  97. package/cypress/pages/feedbackScalePage copy.js +716 -0
  98. package/cypress/pages/feedbackScalePage.js +591 -449
  99. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
  100. package/cypress/pages/graphingPage.js +9 -145
  101. package/cypress/pages/gridFillPage.js +135 -120
  102. package/cypress/pages/highlightPage.js +0 -394
  103. package/cypress/pages/index.js +5 -2
  104. package/cypress/pages/matchingPage.js +78 -20
  105. package/cypress/pages/multipleSelectionGridPage.js +88 -1
  106. package/cypress/pages/numberLinePage.js +723 -0
  107. package/cypress/pages/singleSelectionGridPage.js +86 -0
  108. package/cypress/pages/textSelectionPage.js +582 -0
  109. package/cypress/support/migrationHelpers/extractLrnQuestionData.js +3 -12
  110. package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +0 -1
  111. package/cypress/support/migrationHelpers/migrationScript.js +0 -10
  112. package/cypress/support/migrationHelpers/verifyIeQuestionData.js +0 -8
  113. package/package.json +2 -2
@@ -23,126 +23,91 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
23
23
  it('When the user selects \'Grading\' view without attempting the question, then 0 points should be awarded and correct answer cells should be displayed with correct icon, border and background', () => {
24
24
  gridFillPage.steps.verifyPreviewScore(0, 15);
25
25
  gridFillPage.steps.switchToGradingView();
26
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
27
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
28
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
29
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
30
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
31
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
32
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
33
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
34
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
35
- });
36
-
37
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in all incorrect response cells, correct icon should be displayed in all correct response cells should be displayed and correct/incorrect status message should not be displayed', () => {
26
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
27
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 3);
28
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 4);
29
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
30
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
31
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
32
+ });
33
+
34
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in all incorrect response cells in response grid, correct answer icon should be displayed in correct answer section and correct/incorrect status message should not be displayed', () => {
38
35
  gridFillPage.steps.selectCellPreviewTab(1, 1);
39
- gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
40
36
  gridFillPage.steps.verifyPreviewScore(0, 15);
41
37
  gridFillPage.steps.switchToGradingView();
42
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
43
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
44
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
45
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
46
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
47
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
48
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
49
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
50
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
51
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
52
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
38
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
39
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
40
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
41
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
53
42
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
54
43
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
55
44
  cy.log('When the user attempts the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in all incorrect responses and correct/incorrect status message should not be displayed')
56
45
  gridFillPage.steps.checkAnswer();
57
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
58
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
46
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
59
47
  });
60
48
 
61
- it('When the user attempts the question partially correct, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses and correct/incorrect status message should not be displayed', () => {
49
+ it('When the user attempts the question partially correct, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed in the correct response cell in response grid, correct answer icon should be displayed in correct answer section and correct/incorrect status message should not be displayed', () => {
62
50
  gridFillPage.steps.resetQuestionPreview();
63
51
  gridFillPage.steps.selectCellPreviewTab(0, 0);
64
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
65
52
  gridFillPage.steps.verifyPreviewScore(5, 15);
66
53
  gridFillPage.steps.switchToGradingView();
67
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
68
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
69
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
70
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
71
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
72
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
73
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
74
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
54
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
55
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
56
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
57
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
75
58
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
76
59
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
77
60
  cy.log('When the user attempts the question partially correct and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses and correct/incorrect status message should not be displayed')
78
61
  gridFillPage.steps.checkAnswer();
79
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
80
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
62
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
81
63
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
82
64
  });
83
65
 
84
- it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, and correct/incorrect status message should not be displayed', () => {
66
+ it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response in response grid, correct answer icon should be displayed in correct answer section and correct/incorrect status message should not be displayed', () => {
85
67
  gridFillPage.steps.resetQuestionPreview();
86
68
  gridFillPage.steps.selectCellPreviewTab(0, 0);
87
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
88
69
  gridFillPage.steps.selectCellPreviewTab(0, 1);
89
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
90
70
  gridFillPage.steps.selectCellPreviewTab(0, 2);
91
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 2);
92
71
  gridFillPage.steps.selectCellPreviewTab(1, 1);
93
- gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
94
72
  gridFillPage.steps.verifyPreviewScore(15, 15);
95
73
  gridFillPage.steps.switchToGradingView();
96
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
97
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
98
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
99
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
100
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
101
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
102
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
103
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
74
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
75
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
76
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
77
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
78
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
79
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
80
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
104
81
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
105
82
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
106
83
  cy.log('When the user attempts the question partially correct and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer responses, incorrect icons should be displayed in all incorrect responses and correct/incorrect status message should not be displayed')
107
84
  gridFillPage.steps.checkAnswer();
108
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
109
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
110
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
111
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
112
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
113
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
114
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
115
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
85
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
86
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
87
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
88
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
116
89
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
117
90
  });
118
91
 
119
- 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 in all the correct responses, correct/incorrect status message should not be displayed', () => {
92
+ 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 in all the correct responses, correct answer section and correct/incorrect status message should not be displayed', () => {
120
93
  gridFillPage.steps.resetQuestionPreview();
121
94
  gridFillPage.steps.selectCellPreviewTab(0, 0);
122
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
123
95
  gridFillPage.steps.selectCellPreviewTab(0, 1);
124
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
125
96
  gridFillPage.steps.selectCellPreviewTab(0, 2);
126
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 2);
127
97
  gridFillPage.steps.verifyPreviewScore(15, 15);
128
98
  gridFillPage.steps.switchToGradingView();
129
99
  gridFillPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
130
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
131
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
132
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
133
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
134
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
135
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
100
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
101
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
102
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
103
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
136
104
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
137
105
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
138
106
  cy.log('When user clicks on Check answer button after he attempts the question correctly, then correct icon should be displayed in the correct answer responses, correct/incorrect status message should not be displayed')
139
107
  gridFillPage.steps.checkAnswer();
140
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
141
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
142
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
143
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
144
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
145
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
108
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
109
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
110
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
146
111
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
147
112
  });
148
113
  });
@@ -345,7 +310,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
345
310
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
346
311
  gridFillPage.steps.selectCellPreviewTab(1, 1);
347
312
  gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
348
- gridFillPage.steps.verifyPreviewScore(5, 27);
313
+ gridFillPage.steps.verifyPreviewScore(7, 27);
349
314
  });
350
315
 
351
316
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -371,7 +336,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
371
336
  gridFillPage.steps.switchToPreviewTab();
372
337
  gridFillPage.steps.selectCellPreviewTab(0, 4);
373
338
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
374
- gridFillPage.steps.verifyPreviewScore(-2, 27);
339
+ gridFillPage.steps.verifyPreviewScore(-0.33, 27);
375
340
  });
376
341
 
377
342
  it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
@@ -380,7 +345,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
380
345
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 1);
381
346
  gridFillPage.steps.selectCellPreviewTab(0, 4);
382
347
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
383
- gridFillPage.steps.verifyPreviewScore(7, 27);
348
+ gridFillPage.steps.verifyPreviewScore(8.67, 27);
384
349
  });
385
350
 
386
351
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect response should get deducted from the awarded points', () => {
@@ -391,7 +356,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
391
356
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
392
357
  gridFillPage.steps.selectCellPreviewTab(1, 1);
393
358
  gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
394
- gridFillPage.steps.verifyPreviewScore(5, 27);
359
+ gridFillPage.steps.verifyPreviewScore(8.34, 27);
395
360
  });
396
361
 
397
362
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -416,7 +381,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
416
381
  gridFillPage.steps.switchToPreviewTab();
417
382
  gridFillPage.steps.selectCellPreviewTab(0, 4);
418
383
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
419
- gridFillPage.steps.verifyPreviewScore(-2, 27);
384
+ gridFillPage.steps.verifyPreviewScore(-4, 27);
420
385
  });
421
386
 
422
387
  it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
@@ -425,7 +390,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
425
390
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
426
391
  gridFillPage.steps.selectCellPreviewTab(0, 4);
427
392
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
428
- gridFillPage.steps.verifyPreviewScore(7, 27);
393
+ gridFillPage.steps.verifyPreviewScore(5, 27);
429
394
  });
430
395
 
431
396
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect cell should get deducted from the awarded points', () => {
@@ -436,7 +401,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
436
401
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
437
402
  gridFillPage.steps.selectCellPreviewTab(1, 1);
438
403
  gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
439
- gridFillPage.steps.verifyPreviewScore(5, 27);
404
+ gridFillPage.steps.verifyPreviewScore(1, 27);
440
405
  });
441
406
 
442
407
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -460,7 +425,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
460
425
  gridFillPage.steps.switchToPreviewTab();
461
426
  gridFillPage.steps.selectCellPreviewTab(0, 4);
462
427
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
463
- gridFillPage.steps.verifyPreviewScore(-2, 27);
428
+ gridFillPage.steps.verifyPreviewScore(-2.25, 27);
464
429
  });
465
430
 
466
431
  it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
@@ -469,7 +434,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
469
434
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
470
435
  gridFillPage.steps.selectCellPreviewTab(0, 4);
471
436
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
472
- gridFillPage.steps.verifyPreviewScore(7, 27);
437
+ gridFillPage.steps.verifyPreviewScore(6.75, 27);
473
438
  });
474
439
 
475
440
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points for each incorrect cell should get deducted from the awarded points', () => {
@@ -480,7 +445,7 @@ describe('Create item page - Grid fill : Partial equal weights', () => {
480
445
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
481
446
  gridFillPage.steps.selectCellPreviewTab(1, 4);
482
447
  gridFillPage.steps.verifyCellSelectedPreviewTab(1, 4);
483
- gridFillPage.steps.verifyPreviewScore(5, 27);
448
+ gridFillPage.steps.verifyPreviewScore(4.5, 27);
484
449
  });
485
450
 
486
451
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -27,162 +27,130 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
27
27
 
28
28
  it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the alternative accordion', () => {
29
29
  gridFillPage.steps.switchToGradingView();
30
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
31
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
32
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
33
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
34
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
35
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3)
36
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
37
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
38
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
30
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
31
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 3);
32
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 4);
33
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
34
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
35
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
39
36
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
40
37
  });
41
38
 
42
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in the response from correct accordion, correct/incorrect status message should not be displayed', () => {
39
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded points of the correct accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in the response from correct accordion in response grid, correct answer icons should be displayed in responses from alternative accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
43
40
  gridFillPage.steps.resetQuestionPreview();
44
41
  gridFillPage.steps.selectCellPreviewTab(0, 0);
45
42
  gridFillPage.steps.selectCellPreviewTab(0, 1);
46
43
  gridFillPage.steps.selectCellPreviewTab(0, 2);
47
44
  gridFillPage.steps.verifyPreviewScore(9, 15);
48
45
  gridFillPage.steps.switchToGradingView();
49
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
50
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
51
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
52
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
53
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
54
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
46
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
47
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
48
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
49
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
50
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
51
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
55
52
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
56
53
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
57
54
  cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the responses from correct accordion, correct/incorrect status message should not be displayed')
58
55
  gridFillPage.steps.checkAnswer();
59
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
60
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
61
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
62
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
63
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
64
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
56
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
57
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
58
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
65
59
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
66
60
  });
67
61
 
68
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed in the response from alternative accordion, correct/incorrect status message should not be displayed', () => {
62
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icons should be displayed in the response from alternative accordion in response grid, correct answer section and correct/incorrect status message should not be displayed', () => {
69
63
  gridFillPage.steps.resetQuestionPreview();
70
64
  gridFillPage.steps.selectCellPreviewTab(0, 2);
71
65
  gridFillPage.steps.selectCellPreviewTab(0, 3);
72
66
  gridFillPage.steps.selectCellPreviewTab(0, 4);
73
67
  gridFillPage.steps.verifyPreviewScore(15, 15);
74
68
  gridFillPage.steps.switchToGradingView();
75
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
76
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
77
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
78
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
79
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
80
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
69
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
70
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
71
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
72
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
81
73
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
82
74
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
83
75
  cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the response from alternative accordion, correct/incorrect status message should not be displayed')
84
76
  gridFillPage.steps.checkAnswer();
85
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
86
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
87
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
88
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
89
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
90
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
77
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
78
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
79
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
91
80
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
92
81
  });
93
82
 
94
- it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded points of the correct accordion and on switching to \'Grading\' view, correct icon, border and background color should be displayed in the selected correct answer responses and only correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
83
+ it('When the user attempts the question with partially correct responses exclusively from the correct accordion, then the user should be awarded points of the correct accordion and on switching to \'Grading\' view, correct icon should be displayed in the responses from correct accordion, correct icon should be displayed in responses from alternative accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
95
84
  gridFillPage.steps.resetQuestionPreview();
96
85
  gridFillPage.steps.selectCellPreviewTab(0, 0);
97
86
  gridFillPage.steps.selectCellPreviewTab(0, 1);
98
87
  gridFillPage.steps.verifyPreviewScore(6, 15);
99
88
  gridFillPage.steps.switchToGradingView();
100
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
101
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
102
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
103
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
104
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
105
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
106
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
89
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
90
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
91
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
92
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
93
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
107
94
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
108
95
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
109
96
  cy.log('When the user has selected the question with partially correct responses exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icons should be displayed in the responses from correct accordion, correct/incorrect status message should not be displayed')
110
97
  gridFillPage.steps.checkAnswer();
111
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
112
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
113
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
114
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
98
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
99
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
115
100
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
116
101
  });
117
102
 
118
- it('When the user attempts the question with partially correct answer responses exclusively from the alternative accordion, then the user should be awarded points of the correctly selected response and on switching to \'Grading\' view, correct icon, border and background should be displayed in the correct answer response and only correct icon should be displayed in unselected response from alternative accordion, correct/incorrect status message should not be displayed', () => {
103
+ it('When the user attempts the question with partially correct answer responses exclusively from the alternative accordion, then the user should be awarded points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in the response from alternative accordion, correct icon should be displayed in responses from alternative accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
119
104
  gridFillPage.steps.resetQuestionPreview();
120
105
  gridFillPage.steps.selectCellPreviewTab(0, 4);
121
106
  gridFillPage.steps.verifyPreviewScore(5, 15);
122
107
  gridFillPage.steps.switchToGradingView();
123
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
124
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 2);
125
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
126
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
127
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 3);
128
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
129
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
130
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
108
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
109
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
110
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
111
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
131
112
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
132
113
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
133
114
  cy.log('When the user has selected the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the selected response from alternative accordion, no icon should be displayed beside unselected response, correct/incorrect status message should not be displayed')
134
115
  gridFillPage.steps.checkAnswer();
135
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
136
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
116
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
137
117
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
138
118
  });
139
119
 
140
- it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from alternative accordion, incorrect icon should be displayed in responses from the correct accordion, correct/incorrect status message should not be displayed', () => {
120
+ it('When the user has attempts the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be displayed in responses from alternative accordion, incorrect icon should be displayed in responses from the correct accordion in response grid, correct icon should be displayed in responses from alternative accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
141
121
  gridFillPage.steps.resetQuestionPreview();
142
122
  gridFillPage.steps.selectCellPreviewTab(0, 0);
143
123
  gridFillPage.steps.selectCellPreviewTab(0, 4);
144
124
  gridFillPage.steps.verifyPreviewScore(5, 15);
145
125
  gridFillPage.steps.switchToGradingView();
146
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
147
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
148
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
149
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
150
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
151
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
152
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
153
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
154
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
155
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
126
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
127
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
128
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
129
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
130
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
156
131
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
157
132
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
158
133
  cy.log('When the user has selected the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the response from alternative accordion, incorrect icon should be displayed in response from correct accordion, correct/incorrect status message should not be displayed')
159
134
  gridFillPage.steps.checkAnswer();
160
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
161
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
162
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
163
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
135
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
136
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
164
137
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
165
138
  });
166
139
 
167
- it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be in the common response and response from alternative accordion and correct/incorrect status message should not be displayed', () => {
140
+ it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with points of the correctly selected response and on switching to \'Grading\' view, correct icon should be in the common response, correct icon should be displayed in responses from alternative accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
168
141
  gridFillPage.steps.resetQuestionPreview();
169
142
  gridFillPage.steps.selectCellPreviewTab(0, 2);
170
143
  gridFillPage.steps.verifyPreviewScore(5, 15);
171
144
  gridFillPage.steps.switchToGradingView();
172
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
173
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
174
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
175
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
176
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
177
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
178
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
179
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
145
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
146
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
147
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
148
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
180
149
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
181
150
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
182
151
  cy.log('When the user has selected the question with the common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer responses and correct/incorrect status message should not be displayed')
183
152
  gridFillPage.steps.checkAnswer();
184
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
185
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
153
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
186
154
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
187
155
  });
188
156
 
@@ -191,23 +159,15 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
191
159
  gridFillPage.steps.selectCellPreviewTab(1, 1);
192
160
  gridFillPage.steps.verifyPreviewScore(0, 15);
193
161
  gridFillPage.steps.switchToGradingView();
194
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
195
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
196
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
197
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
198
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
199
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
200
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
201
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
202
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
203
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
204
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
162
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
163
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
164
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
165
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
205
166
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
206
167
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
207
168
  cy.log('When the user has selected the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in incorrect responses and correct/incorrect status message should not be displayed')
208
169
  gridFillPage.steps.checkAnswer();
209
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
210
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
170
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
211
171
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
212
172
  });
213
173
 
@@ -228,28 +188,21 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
228
188
  gridFillPage.steps.selectCellPreviewTab(0, 4);
229
189
  gridFillPage.steps.verifyPreviewScore(7, 21);
230
190
  gridFillPage.steps.switchToGradingView();
231
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
232
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
233
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
234
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
235
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
236
- gridFillPage.steps.verifyCorrectResponseIcon(1, 0);
237
- gridFillPage.steps.verifyCorrectResponseBorder(1, 0);
238
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(1, 0);
239
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
240
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
241
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 1);
242
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 1);
191
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
192
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
193
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(1, 0);
194
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
195
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 1);
196
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0,3);
197
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
198
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(1,1);
243
199
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
244
200
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
245
201
  cy.log('When user attempts the question correctly and clicks on the \'Check answer\' button, green check-mark icons should be displayed beside the correct responses from the correct accordion, red cross-mark icons should be displayed beside the incorrectly answered responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
246
202
  gridFillPage.steps.checkAnswer();
247
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
248
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
249
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
250
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
251
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 1);
252
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 1);
203
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
204
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
205
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 1);
253
206
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
254
207
  });
255
208
  });