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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/cypress/e2e/ILC/BrainingCampManipulative/additionalSettings.js +83 -0
  2. package/cypress/e2e/ILC/BrainingCampManipulative/editTabBasicSection.js +200 -0
  3. package/cypress/e2e/ILC/BrainingCampManipulative/editTabScoringSection.js +56 -0
  4. package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +95 -0
  5. package/cypress/e2e/ILC/BrainingCampManipulative/headerSection.js +71 -0
  6. package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +72 -0
  7. package/cypress/e2e/ILC/BrainingCampManipulative/toolSettings.js +71 -0
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -2
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +22 -11
  10. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettings.js +432 -0
  11. package/cypress/e2e/ILC/EssayResponse/essayResponseAdditionalSettingsBasic.js +134 -0
  12. package/cypress/e2e/ILC/FeedbackScaleNew/feedbackScaleStylePreviewTab.js +161 -0
  13. package/cypress/e2e/ILC/FeedbackScaleNew/numbersFeedbackScaleStyle.js +308 -0
  14. package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +216 -0
  15. package/cypress/e2e/ILC/FeedbackScaleNew/starsHeartsFeedbackScaleStyle.js +336 -0
  16. package/cypress/e2e/ILC/FeedbackScaleNew/textFeedbackScaleStyle.js +570 -0
  17. package/cypress/e2e/ILC/FeedbackScaleNew/thumbsFeedbackScaleStyle.js +214 -0
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettings.js +356 -0
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDrop/fillInTheGapsDragAndDropAdditionalSettingsResponseAccordion.js +299 -0
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/clickAndDrop.js +18 -7
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/clickAndDrop.js +11 -6
  22. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +355 -0
  23. package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +0 -1
  24. package/cypress/e2e/ILC/Graphing/toolsControlsAndBackgroundSection.js +2 -36
  25. package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +22 -34
  26. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +8 -24
  27. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +5 -25
  28. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +68 -114
  29. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +67 -111
  30. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +71 -123
  31. package/cypress/e2e/ILC/GridFill/scoring/allOrNothingScoringCellShadeCount.js +41 -63
  32. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +21 -25
  33. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsBasic.js +50 -85
  34. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +68 -115
  35. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +54 -98
  36. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +72 -120
  37. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +3 -3
  38. package/cypress/e2e/ILC/Matching/maximumCapacityPerDropzoneSection.js +309 -0
  39. package/cypress/e2e/ILC/Matching/specifyCorrectAnswerSection.js +1 -1
  40. package/cypress/e2e/ILC/Matching/toolSettings.js +72 -0
  41. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabBasicSection.js +1033 -0
  42. package/cypress/e2e/ILC/MultipleSelectionGridNew/test.js +28 -0
  43. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithAlternatePointsGreaterThanCorrectPoints.js +236 -0
  44. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +239 -0
  45. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +278 -0
  46. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +178 -0
  47. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsBasic.js +407 -0
  48. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithAlternatePointsGreaterThanCorrectPoints.js +273 -0
  49. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternatePoints.js +278 -0
  50. package/cypress/e2e/ILC/NumberLine/Scoring/partialEqualWeigtsWithCorrectPointsEqualToAlternatePoints.js +228 -0
  51. package/cypress/e2e/ILC/NumberLine/additionalSettings.js +120 -0
  52. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +659 -0
  53. package/cypress/e2e/ILC/NumberLine/checkAnswerFunctionalityForAllViews.smoke.js +149 -0
  54. package/cypress/e2e/ILC/NumberLine/editTabScoringSection.js +151 -0
  55. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +171 -0
  56. package/cypress/e2e/ILC/NumberLine/headerSection.js +76 -0
  57. package/cypress/e2e/ILC/NumberLine/minimumScoringPenaltyPointsAndRoundingDropdown.js +54 -0
  58. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +200 -0
  59. package/cypress/e2e/ILC/NumberLine/specifyCorrectAnswerSection.js +67 -0
  60. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +135 -0
  61. package/cypress/e2e/ILC/NumberLine/toolSettings.js +73 -0
  62. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +372 -0
  63. package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1014 -0
  64. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +235 -0
  65. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +235 -0
  66. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +235 -0
  67. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +457 -0
  68. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +342 -0
  69. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +342 -0
  70. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +342 -0
  71. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +155 -0
  72. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +314 -0
  73. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +275 -0
  74. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +314 -0
  75. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +290 -0
  76. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +142 -0
  77. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.js +137 -0
  78. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +4 -4
  79. package/cypress/fixtures/theme/ilc.json +14 -26
  80. package/cypress/pages/brainingCampManipulativePage.js +122 -0
  81. package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -1
  82. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -0
  83. package/cypress/pages/components/autoScoredStudentViewSettings.js +1 -1
  84. package/cypress/pages/components/colorPopupComponent.js +2 -2
  85. package/cypress/pages/components/defaultToolDropdown.js +77 -0
  86. package/cypress/pages/components/gridQuestionCommonComponent.js +629 -2
  87. package/cypress/pages/components/index.js +3 -0
  88. package/cypress/pages/components/maximumCapacityPerDropzoneComponent.js +1 -1
  89. package/cypress/pages/components/measuringToolComponent.js +2 -2
  90. package/cypress/pages/components/resetPopupComponent.js +74 -0
  91. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -1
  92. package/cypress/pages/components/setPointsPopupBase.js +6 -4
  93. package/cypress/pages/components/specifyRowsAndColumnsComponent.js +60 -3
  94. package/cypress/pages/components/toolSettingsComponent.js +80 -12
  95. package/cypress/pages/components/toolsAndControlsComponent.js +69 -0
  96. package/cypress/pages/dragAndDropIntoCategoriesPage.js +0 -8
  97. package/cypress/pages/feedbackScalePage copy.js +716 -0
  98. package/cypress/pages/feedbackScalePage.js +591 -449
  99. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +3 -1
  100. package/cypress/pages/graphingPage.js +9 -145
  101. package/cypress/pages/gridFillPage.js +135 -120
  102. package/cypress/pages/highlightPage.js +0 -394
  103. package/cypress/pages/index.js +5 -2
  104. package/cypress/pages/matchingPage.js +78 -20
  105. package/cypress/pages/multipleSelectionGridPage.js +88 -1
  106. package/cypress/pages/numberLinePage.js +723 -0
  107. package/cypress/pages/singleSelectionGridPage.js +86 -0
  108. package/cypress/pages/textSelectionPage.js +582 -0
  109. package/cypress/support/migrationHelpers/extractLrnQuestionData.js +3 -12
  110. package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +0 -1
  111. package/cypress/support/migrationHelpers/migrationScript.js +0 -10
  112. package/cypress/support/migrationHelpers/verifyIeQuestionData.js +0 -8
  113. package/package.json +2 -2
@@ -24,213 +24,169 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
24
24
  gridFillPage.steps.switchToPreviewTab();
25
25
  });
26
26
 
27
- it('When the user selects \'Grading\' view without attempting the question, correct answer tick should be displayed in correct answer cell', () => {
27
+ it('When the user selects \'Grading\' view without attempting the question, correct icons in responses from correct accordion should be displayed in the correct answers section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
28
28
  gridFillPage.steps.switchToGradingView();
29
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
30
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
31
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
32
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
33
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
34
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
35
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
36
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
37
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
29
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
30
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
31
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
32
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
33
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
34
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
35
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
38
36
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
39
37
  });
40
38
 
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 icon, border, background should be displayed in all the responses from correct accordion and a status message with text \'Your answer is correct\' should be displayed', () => {
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 icon should be displayed in all the responses from correct accordion in response grid, correct answer section and a status message with text \'Your answer is correct\' should be displayed', () => {
42
40
  gridFillPage.steps.resetQuestionPreview();
43
41
  gridFillPage.steps.selectCellPreviewTab(0, 0);
44
42
  gridFillPage.steps.selectCellPreviewTab(0, 1);
45
43
  gridFillPage.steps.selectCellPreviewTab(0, 2);
46
44
  gridFillPage.steps.verifyPreviewScore(20, 20);
47
45
  gridFillPage.steps.switchToGradingView();
48
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
49
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
50
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
51
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
52
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
53
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
46
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
47
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
48
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
54
49
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
50
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
51
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
55
52
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
56
53
  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 and a status message with text \'Your answer is correct\' should be displayed')
57
54
  gridFillPage.steps.checkAnswer();
58
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
59
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
60
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
61
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
62
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
63
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
55
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
56
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
57
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
64
58
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
65
59
  });
66
60
 
67
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icon, border, background should be displayed in all the responses from alternative accordion, a status message with text \'Your answer is correct\' should be displayed', () => {
61
+ it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion and on switching to \'Grading\' view, correct icon should be displayed in all the responses from alternative accordion in response grid, correct answer section and a status message with text \'Your answer is correct\' should be displayed', () => {
68
62
  gridFillPage.steps.resetQuestionPreview();
69
63
  gridFillPage.steps.selectCellPreviewTab(0, 2);
70
64
  gridFillPage.steps.selectCellPreviewTab(0, 3);
71
65
  gridFillPage.steps.selectCellPreviewTab(0, 4);
72
66
  gridFillPage.steps.verifyPreviewScore(20, 20);
73
67
  gridFillPage.steps.switchToGradingView();
74
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
75
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
76
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
77
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
78
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
79
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
68
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
69
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
70
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
80
71
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
72
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
81
73
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
82
74
  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 responses from alternative accordion and a status message with text \'Your answer is correct\' should be displayed')
83
75
  gridFillPage.steps.checkAnswer();
84
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
85
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
86
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
87
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
88
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
89
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
76
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
77
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
78
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
90
79
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
91
80
  });
92
81
 
93
- it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon, border, background should be displayed in the responses from correct accordion, correct background should not be displayed in unselected response and a status message with text \'Your answer is incorrect\' should be displayed', () => {
82
+ it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the responses from correct accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
94
83
  gridFillPage.steps.resetQuestionPreview();
95
84
  gridFillPage.steps.selectCellPreviewTab(0, 0);
96
85
  gridFillPage.steps.selectCellPreviewTab(0, 1);
97
86
  gridFillPage.steps.verifyPreviewScore(0, 20);
98
87
  gridFillPage.steps.switchToGradingView();
99
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
100
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
101
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
102
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
103
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
104
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
105
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
88
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
89
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
90
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
91
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
92
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
106
93
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
107
94
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
108
95
  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 the response from correct accordion, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
109
96
  gridFillPage.steps.checkAnswer();
110
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
111
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
112
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
113
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
97
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
98
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
114
99
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
115
100
  });
116
101
 
117
- it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon, border, background should be displayed in the response from alternative accordion, correct icon and border should be displayed in the response from correct accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
102
+ it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the response from alternative accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
118
103
  gridFillPage.steps.resetQuestionPreview();
119
104
  gridFillPage.steps.selectCellPreviewTab(0, 3);
120
105
  gridFillPage.steps.verifyPreviewScore(0, 20);
121
106
  gridFillPage.steps.switchToGradingView();
122
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
123
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
124
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
125
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
126
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
127
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
128
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
129
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
107
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
108
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
109
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
110
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
130
111
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
131
112
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
132
113
  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 incorrect icon should be displayed in the partially selected response from alternative accordion, a status message with text \'Your answer is incorrect\' should be displayed')
133
114
  gridFillPage.steps.checkAnswer();
134
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
135
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
115
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
136
116
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
137
117
  });
138
118
 
139
- it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon, border, background should be displayed in the selected response from alternative accordion, correct icon and border should be displayed in the unselected response from alternative accordion and a status message with text \'Your answer is incorrect\' should be displayed', () => {
119
+ it('When the user attempts the question partially correct with all the responses correct as per the alternative accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the response from alternative accordion in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
140
120
  gridFillPage.steps.resetQuestionPreview();
141
121
  gridFillPage.steps.selectCellPreviewTab(0, 3);
142
122
  gridFillPage.steps.selectCellPreviewTab(0, 4);
143
123
  gridFillPage.steps.verifyPreviewScore(0, 20);
144
124
  gridFillPage.steps.switchToGradingView();
145
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
146
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
147
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
148
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
149
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
150
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
151
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
125
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
126
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
127
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
128
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
129
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
152
130
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
153
131
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
154
132
  cy.log('When the user has attempted the question with partially correct with all the response correct as per the alternative accordion but one response incomplete and clicks on \'Check answer\' button, then correct icon should be displayed in the response from the alternative accordion, incorrect icon should be displayed in the empty response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
155
133
  gridFillPage.steps.checkAnswer();
156
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
157
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
158
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
159
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
134
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
135
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
160
136
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
161
137
  });
162
138
 
163
- 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 0 points and on switching to \'Grading\' view, correct icon, border, background should be displayed in correct accordion responses, incorrect icon should be displayed in alternative accordion response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
139
+ 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 0 points and on switching to \'Grading\' view, correct icon should be displayed in correct accordion responses, incorrect icon should be displayed in alternative accordion response in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
164
140
  gridFillPage.steps.resetQuestionPreview();
165
141
  gridFillPage.steps.selectCellPreviewTab(0, 0);
166
142
  gridFillPage.steps.selectCellPreviewTab(0, 4);
167
143
  gridFillPage.steps.verifyPreviewScore(0, 20);
168
144
  gridFillPage.steps.switchToGradingView();
169
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
170
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
171
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
172
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
173
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
174
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
175
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
176
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
177
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
178
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
145
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
146
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
147
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
148
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
149
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
179
150
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
180
151
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
181
152
  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 response from correct accordion, incorrect icon should be displayed in response from alternative accordion and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
182
153
  gridFillPage.steps.checkAnswer();
183
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
184
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
185
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
186
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 4);
154
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
155
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
187
156
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
188
157
  });
189
158
 
190
- 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 0 points and on switching to \'Grading\' view, correct icon, border, background should be in the common response, correct icon should be displayed in unselected response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
159
+ 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 0 points and on switching to \'Grading\' view, correct icon should be in the common response in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
191
160
  gridFillPage.steps.resetQuestionPreview();
192
161
  gridFillPage.steps.selectCellPreviewTab(0, 2);
193
162
  gridFillPage.steps.verifyPreviewScore(0, 20);
194
163
  gridFillPage.steps.switchToGradingView();
195
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
196
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
197
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
198
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
199
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
200
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
201
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
202
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
164
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
165
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
166
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
167
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
203
168
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
204
169
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
205
170
  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, no icon should be displayed in unselected response area, a status message with text \'Your answer is incorrect\' should be displayed')
206
171
  gridFillPage.steps.checkAnswer();
207
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
208
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
172
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
209
173
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
210
174
  });
211
175
 
212
- 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 all incorrect responses, correct icon, border, background should be displayed in unselected responses from correct answer accordion, a status message with text \'Your answer is incorrect\' should be displayed', () => {
176
+ 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 all incorrect responses in response grid, correct icon should be displayed in responses from correct answer accordion in correct answer section, a status message with text \'Your answer is incorrect\' should be displayed', () => {
213
177
  gridFillPage.steps.resetQuestionPreview();
214
178
  gridFillPage.steps.selectCellPreviewTab(1, 2);
215
179
  gridFillPage.steps.verifyPreviewScore(0, 20);
216
180
  gridFillPage.steps.switchToGradingView();
217
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
218
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
219
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
220
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
221
- gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
222
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
223
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 0);
224
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 1);
225
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
226
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 2);
227
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
181
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
182
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
183
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
184
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
228
185
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
229
186
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
230
187
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed in all incorrect responses and status message with text \'Your answer is incorrect\' should be displayed')
231
188
  gridFillPage.steps.checkAnswer();
232
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 2);
233
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
189
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
234
190
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
235
191
  });
236
192
  });