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
@@ -27,142 +27,186 @@ describe('Create item page - Grid fill : Partial equal with alternative answers'
27
27
 
28
28
  it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion', () => {
29
29
  gridFillPage.steps.switchToGradingView();
30
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
31
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
32
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
33
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
34
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
35
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
30
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
31
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
32
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
33
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
34
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
35
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
36
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
37
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
38
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
36
39
  });
37
40
 
38
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct answer section and correct/incorrect status message should not be displayed', () => {
41
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct/incorrect status message should not be displayed', () => {
39
42
  gridFillPage.steps.resetQuestionPreview();
40
43
  gridFillPage.steps.selectCellPreviewTab(0, 0);
41
44
  gridFillPage.steps.selectCellPreviewTab(0, 1);
42
45
  gridFillPage.steps.selectCellPreviewTab(0, 2);
43
46
  gridFillPage.steps.verifyPreviewScore(15, 15);
44
47
  gridFillPage.steps.switchToGradingView();
45
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
46
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
47
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
48
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
49
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
50
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
51
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
52
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
53
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
48
54
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
49
55
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
50
56
  cy.log('When the user has selected the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from correct accordion and correct/incorrect status message should not be displayed')
51
57
  gridFillPage.steps.checkAnswer();
52
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
53
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
54
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
58
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
59
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
60
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
61
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
62
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
63
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
55
64
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
56
65
  });
57
66
 
58
- 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 responses from alternative accordion, correct answer section and correct/incorrect status message should not be displayed', () => {
67
+ 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 responses from alternative accordion, correct/incorrect status message should not be displayed', () => {
59
68
  gridFillPage.steps.resetQuestionPreview();
60
69
  gridFillPage.steps.selectCellPreviewTab(0, 2);
61
70
  gridFillPage.steps.selectCellPreviewTab(0, 3);
62
71
  gridFillPage.steps.selectCellPreviewTab(0, 4);
63
72
  gridFillPage.steps.verifyPreviewScore(15, 15);
64
73
  gridFillPage.steps.switchToGradingView();
65
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
66
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
67
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
74
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
75
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
76
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
77
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
78
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
79
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
68
80
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
69
81
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
70
82
  cy.log('When the user has selected the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in responses from alternative accordion, correct/incorrect status message and correct answer section should not be displayed')
71
83
  gridFillPage.steps.checkAnswer();
72
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
73
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
74
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
84
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
85
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
86
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
87
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
88
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
89
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
75
90
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
76
91
  });
77
92
 
78
- it('When the user attempts the question with partially correct answer cell 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 correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
93
+ it('When the user attempts the question with partially correct answer cell 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 responses, only correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
79
94
  gridFillPage.steps.resetQuestionPreview();
80
95
  gridFillPage.steps.selectCellPreviewTab(0, 0);
81
96
  gridFillPage.steps.selectCellPreviewTab(0, 1);
82
97
  gridFillPage.steps.verifyPreviewScore(10, 15);
83
98
  gridFillPage.steps.switchToGradingView();
84
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
85
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
86
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
87
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
88
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
99
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
100
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
101
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
102
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
103
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
104
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
105
+ gridFillPage.steps.verifyDefaultGridInSpecifyCorrectAnswerSection(0, 2);
89
106
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
90
107
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
91
108
  cy.log('When the user has selected the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in selected responses from correct accordion , correct/incorrect status message should not be displayed')
92
109
  gridFillPage.steps.checkAnswer();
93
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
94
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
110
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
111
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
112
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
113
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
95
114
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
96
115
  });
97
116
 
98
- it('When the user attempts the question with partially correct answer cells 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 responses from alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
117
+ it('When the user attempts the question with partially correct answer cells 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 color should be displayed in the selected responses, only correct icon should be displayed in unselected responses from alternative accordion and correct/incorrect status message should not be displayed', () => {
99
118
  gridFillPage.steps.resetQuestionPreview();
100
119
  gridFillPage.steps.selectCellPreviewTab(0, 4);
101
120
  gridFillPage.steps.verifyPreviewScore(5, 15);
102
121
  gridFillPage.steps.switchToGradingView();
103
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
104
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
105
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
106
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
122
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
123
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
124
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
125
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
126
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
127
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
128
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
129
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
107
130
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
108
131
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
109
132
  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 selected responses from alternative accordion, correct/incorrect status message should not be displayed')
110
133
  gridFillPage.steps.checkAnswer();
111
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
134
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
135
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
112
136
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
113
137
  });
114
138
 
115
- 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 correct accordion, incorrect icon should be displayed in responses from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
139
+ 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 correct accordion, incorrect icon should be displayed in responses from the alternative accordion and correct/incorrect status message should not be displayed', () => {
116
140
  gridFillPage.steps.resetQuestionPreview();
117
141
  gridFillPage.steps.selectCellPreviewTab(0, 0);
118
142
  gridFillPage.steps.selectCellPreviewTab(0, 4);
119
143
  gridFillPage.steps.verifyPreviewScore(5, 15);
120
144
  gridFillPage.steps.switchToGradingView();
121
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
122
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
123
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
124
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
125
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
145
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
146
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
147
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
148
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
149
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
150
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
151
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
152
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
153
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
154
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
126
155
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
127
156
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
128
157
  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 correct accordion, incorrect icon should be displayed in response from alternative accordion, correct/incorrect status message should not be displayed')
129
158
  gridFillPage.steps.checkAnswer();
130
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
131
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
159
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
160
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
161
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
162
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
132
163
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
133
164
  });
134
165
 
135
- 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 correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
166
+ 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, border and background should be in the common response and only correct icon should be displayed in unselected response from correct accordion, and correct/incorrect status message should not be displayed', () => {
136
167
  gridFillPage.steps.resetQuestionPreview();
137
168
  gridFillPage.steps.selectCellPreviewTab(0, 2);
138
169
  gridFillPage.steps.verifyPreviewScore(5, 15);
139
170
  gridFillPage.steps.switchToGradingView();
140
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
141
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
142
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
143
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
171
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
172
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
173
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
174
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
175
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
176
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
177
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
178
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
144
179
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
145
180
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
146
181
  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')
147
182
  gridFillPage.steps.checkAnswer();
148
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
183
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
184
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
149
185
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
150
186
  });
151
187
 
152
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
188
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect response, correct icon should be displayed in unselected responses from correct accordion and correct/incorrect status message should not be displayed', () => {
153
189
  gridFillPage.steps.resetQuestionPreview();
154
190
  gridFillPage.steps.selectCellPreviewTab(1, 1);
155
191
  gridFillPage.steps.verifyPreviewScore(0, 15);
156
192
  gridFillPage.steps.switchToGradingView();
157
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
158
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
159
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
160
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
193
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
194
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
195
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
196
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
197
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
198
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
199
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
200
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
201
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
202
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
203
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
161
204
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
162
205
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
163
206
  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, no icon should be displayed beside unselected response, correct/incorrect status message should not be displayed')
164
207
  gridFillPage.steps.checkAnswer();
165
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
208
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
209
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
166
210
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
167
211
  });
168
212
  });
@@ -25,156 +25,195 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
25
25
  gridFillPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
28
- it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion in correct answer section', () => {
28
+ it('When the user selects \'Grading\' view without attempting the question, correct icons should be displayed in responses from the correct accordion', () => {
29
29
  gridFillPage.steps.switchToGradingView();
30
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
31
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
32
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
33
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
34
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
35
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
30
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
31
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
32
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
33
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
34
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
35
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
36
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
37
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
38
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
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 full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion, correct answer section and correct/incorrect answer 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 full points and on switching to \'Grading\' view, correct icons should be displayed in responses from correct accordion and correct/incorrect answer 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(15, 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.verifyCorrectAnswerSectionNotExists();
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);
50
55
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
51
56
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
52
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 responses from correct accordion, correct/incorrect answer status message should not be displayed')
53
58
  gridFillPage.steps.checkAnswer();
54
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
55
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
56
- 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);
57
65
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
58
66
  });
59
67
 
60
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in responses from alternative accordion, correct icon should be displayed in responses from correct accordion in 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 points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed in responses from alternative accordion, correct/incorrect status message should not be displayed', () => {
61
69
  gridFillPage.steps.resetQuestionPreview();
62
70
  gridFillPage.steps.selectCellPreviewTab(0, 2);
63
71
  gridFillPage.steps.selectCellPreviewTab(0, 3);
64
72
  gridFillPage.steps.selectCellPreviewTab(0, 4);
65
73
  gridFillPage.steps.verifyPreviewScore(9, 15);
66
74
  gridFillPage.steps.switchToGradingView();
67
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
68
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
69
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
70
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
71
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
72
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
75
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
76
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
77
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
78
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
79
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
80
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(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 responses from alternative accordion and 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.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
87
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
88
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
89
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
90
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
80
91
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
81
92
  });
82
93
 
83
- it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response 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 correct 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 options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in the selected 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(10, 15);
88
99
  gridFillPage.steps.switchToGradingView();
89
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
90
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
91
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
92
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
93
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
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.verifyResponseCellHasDefaultBackgroundColor(0, 2);
106
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
94
107
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
95
108
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
96
109
  cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed in 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 options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in the responses from alternative accordion, correct icon should be displayed in responses from correct 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 options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in the selected responses from alternative accordion and correct/incorrect status message should not be displayed', () => {
104
119
  gridFillPage.steps.resetQuestionPreview();
105
120
  gridFillPage.steps.selectCellPreviewTab(0, 3);
106
121
  gridFillPage.steps.selectCellPreviewTab(0, 4);
107
122
  gridFillPage.steps.verifyPreviewScore(6, 15);
108
123
  gridFillPage.steps.switchToGradingView();
109
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
110
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
111
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
112
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
113
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
124
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
125
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
126
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
127
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
128
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
129
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
130
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
114
131
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
115
132
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
116
133
  cy.log('When the user has attempted 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 responses from alternative accordion and correct/incorrect status message should not be displayed');
117
134
  gridFillPage.steps.checkAnswer();
118
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
119
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
135
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
136
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
137
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
138
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
120
139
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
121
140
  });
122
141
 
123
- it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in response from the correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
142
+ it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed in response from the correct accordion, incorrect icon should be displayed in response from the alternative accordion, correct/incorrect status message should not be displayed', () => {
124
143
  gridFillPage.steps.resetQuestionPreview();
125
144
  gridFillPage.steps.selectCellPreviewTab(0, 0);
126
145
  gridFillPage.steps.selectCellPreviewTab(0, 4);
127
146
  gridFillPage.steps.verifyPreviewScore(5, 15);
128
147
  gridFillPage.steps.switchToGradingView();
129
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
130
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
131
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
132
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
133
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
148
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
149
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
150
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
151
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
152
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
153
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
154
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
155
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
156
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
157
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
134
158
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
135
159
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
136
160
  cy.log('When the user has attempted 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 correct answer responses, incorrect icon should be displayed in unselected cells and correct/incorrect status message should not be displayed');
137
161
  gridFillPage.steps.checkAnswer();
138
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
139
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
162
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
163
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
164
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
165
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
140
166
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
141
167
  });
142
168
 
143
- 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 attempted response and on switching to \'Grading\' view, correct icon should be in the common response, correct icons should be displayed in responses from correct accordion, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
169
+ 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 attempted response and on switching to \'Grading\' view, correct icon should be in the common response, correct icons should be displayed in responses from correct accordion should be displayed in unselected cells and correct/incorrect status message should not be displayed', () => {
144
170
  gridFillPage.steps.resetQuestionPreview();
145
171
  gridFillPage.steps.selectCellPreviewTab(0, 2);
146
172
  gridFillPage.steps.verifyPreviewScore(5, 15);
147
173
  gridFillPage.steps.switchToGradingView();
148
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
149
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
150
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
151
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
174
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
175
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
176
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
177
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
178
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
179
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
180
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
181
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
152
182
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
153
183
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
154
- cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer response, no icon should be displayed and correct/incorrect status message should not be displayed')
184
+ cy.log('When the user has attempted the question with common response between correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed in the correct answer response, no icon should be displayed in unselected cells and correct/incorrect status message should not be displayed')
155
185
  gridFillPage.steps.checkAnswer();
156
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
186
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
187
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
157
188
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
158
189
  });
159
190
 
160
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response in response grid, correct icon should be displayed in responses from correct accordion in correct answer section and correct/incorrect status message should not be displayed', () => {
191
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed in incorrect response, correct icons should be displayed in responses from the correct accordion and correct/incorrect status message should not be displayed', () => {
161
192
  gridFillPage.steps.resetQuestionPreview();
162
193
  gridFillPage.steps.selectCellPreviewTab(1, 1);
163
194
  gridFillPage.steps.verifyPreviewScore(0, 15);
164
195
  gridFillPage.steps.switchToGradingView();
165
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
166
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
167
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
168
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
196
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
197
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
198
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
199
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
200
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
201
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
202
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
203
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
204
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
205
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
206
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
169
207
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
170
208
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
171
209
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses and correct/incorrect status message should not be displayed')
172
210
  gridFillPage.steps.checkAnswer();
173
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 1);
211
+ gridFillPage.steps.verifyIncorrectResponseIcon(1, 1);
212
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 1);
174
213
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
175
214
  });
176
215
 
177
- it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternate tab answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, green check-mark icons should be displayed for the correct accordion response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border should not be displayed and correct answer section should be displayed with correct accordion answers for the responses marked incorrect', () => {
216
+ it('Overachiever case: When the user attempts the question with more number of correct responses from the alternate tab than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternate tab answers then on switching to the \'Grading view\', then points awarded should be of the correct accordion, green check-mark icons should be displayed for the correct accordion response, red cross-mark icon should be displayed for the alternate tab responses, correct/incorrect answer label and its border should not be displayed and correct answer container should be displayed with correct accordion answers for the responses marked incorrect', () => {
178
217
  cy.log('Pre-step: Switching to Edit tab and allotting points to alternate tab such that the difference between the points is substantial and the points per response are in decimal')
179
218
  gridFillPage.steps.switchToEditTab();
180
219
  gridFillPage.steps.deleteAlternativeAnswerAccordion(0);
@@ -191,19 +230,28 @@ describe('Create item page - Grid fill : Partial equal weights with alternative
191
230
  gridFillPage.steps.selectCellPreviewTab(0, 4);
192
231
  gridFillPage.steps.verifyPreviewScore(7.67, 23);
193
232
  gridFillPage.steps.switchToGradingView();
194
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
195
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
196
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
197
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
198
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
199
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
233
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
234
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
235
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
236
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
237
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
238
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
239
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
240
+ gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
241
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
242
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 3);
243
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
244
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
200
245
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
201
246
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
202
247
  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')
203
248
  gridFillPage.steps.checkAnswer();
204
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
205
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
206
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
249
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
250
+ gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
251
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
252
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 3);
253
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
254
+ gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
207
255
  gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
208
256
  });
209
257
  });
@@ -113,7 +113,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
113
113
  });
114
114
 
115
115
  it('CSS of warning message', { tags: 'css' }, () => {
116
- utilities.verifyCSS(gridFillPage.warningMessage().find('.min-max-answer-error-text'), {
116
+ utilities.verifyCSS(gridFillPage.WarningMessage().find('.min-max-answer-error-text'), {
117
117
  'color': css.color.warningText,
118
118
  'font-size': css.fontSize.normal,
119
119
  'font-weight': css.fontWeight.bold
@@ -121,7 +121,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
121
121
  });
122
122
 
123
123
  it('Accessibility of warning message in Edit tab', { tags: 'a11y' }, () => {
124
- cy.checkAccessibility(gridFillPage.warningMessage());
124
+ cy.checkAccessibility(gridFillPage.WarningMessage());
125
125
  });
126
126
 
127
127
  gridFillPage.tests.verifyWarningMessageDisappear();
@@ -148,7 +148,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
148
148
  gridFillPage.steps.switchToPreviewTab();
149
149
  gridFillPage.steps.selectCellPreviewTab(0, 0);
150
150
  gridFillPage.steps.checkAnswer();
151
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
151
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
152
152
  gridFillPage.steps.verifyCheckAnswerButtonEnabled();
153
153
  });
154
154
 
@@ -1,7 +1,7 @@
1
1
  import { matchingPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
- const css = Cypress.env('css');
4
+
5
5
  const promptTextArray = ['Wild', 'Aquatic', 'Pet'];
6
6
  const options = ['Petals', 'Leaves', 'Roots', 'Flowers'];
7
7