itemengine-cypress-automation 1.0.166 → 1.0.169-uploadResponseMigration-83ab996.0

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