itemengine-cypress-automation 1.0.166-migrationScripts-b8c79a0.0 → 1.0.167-repoUpdate10April-1465c8c.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/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 +1 -1
@@ -21,8 +21,8 @@ describe('Create item page - Grid fill : Preview contents', () => {
21
21
  cy.barsPreLoaderWait();
22
22
  gridFillPage.steps.addTextInQuestionInstructionsInputField('Which of the following is the major contributor to increased carbon dioxide levels because of urbanization? Select your answer from the options below.');
23
23
  gridFillPage.steps.allotPoints(5);
24
- gridFillPage.steps.increaseColumnsCount(1);
25
- gridFillPage.steps.increaseRowsCount(1);
24
+ gridFillPage.steps.increaseColumnsInputStepperCount(1);
25
+ gridFillPage.steps.increaseRowsInputStepperCount(1);
26
26
  gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
27
27
  gridFillPage.steps.shadeCell(0, 0);
28
28
  gridFillPage.steps.selectHideCellButton();
@@ -91,12 +91,10 @@ describe('Create item page - Grid fill : Preview contents', () => {
91
91
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
92
92
  gridFillPage.steps.selectCellPreviewTab(0, 5);
93
93
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
94
- gridFillPage.steps.selectCellPreviewTab(1, 1);
95
- gridFillPage.steps.verifyCellSelectedPreviewTab(1, 1);
96
94
  });
97
95
 
98
96
  it('User should be able to unselect cells', () => {
99
- gridFillPage.steps.unselectCellPreviewTab(1, 1);
97
+ gridFillPage.steps.unselectCellPreviewTab(0, 0);
100
98
  });
101
99
 
102
100
  it('When user hovers over cell, then cell should be in interactive state', () => {
@@ -114,18 +112,8 @@ describe('Create item page - Grid fill : Preview contents', () => {
114
112
  });
115
113
 
116
114
  it(`The grid fill should be displayed filled with selected correct answer cells and status message \' Your answer is correct\' should be displayed`, () => {
117
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
118
115
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
119
116
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
120
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
121
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
122
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 0);
123
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
124
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
125
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 4);
126
- gridFillPage.steps.verifyCorrectResponseIcon(0, 5);
127
- gridFillPage.steps.verifyCorrectResponseBorder(0, 5);
128
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 5);
129
117
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
130
118
  });
131
119
 
@@ -140,18 +128,10 @@ describe('Create item page - Grid fill : Preview contents', () => {
140
128
  });
141
129
 
142
130
  it(`The grid fill should be displayed filled with selected correct answer cells`, () => {
143
- gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
144
131
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
145
132
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
146
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
147
- gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
148
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 0);
149
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
150
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
151
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 4);
152
- gridFillPage.steps.verifyCorrectResponseIcon(0, 5);
153
- gridFillPage.steps.verifyCorrectResponseBorder(0, 5);
154
- gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 5);
133
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
134
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 5);
155
135
  });
156
136
 
157
137
  it('Grid fill should not be editable', () => {
@@ -25,216 +25,170 @@ describe('Create item page - Grid fill: All or nothing with alternative answers'
25
25
  gridFillPage.steps.switchToPreviewTab();
26
26
  });
27
27
 
28
- it('When the user selects \'Grading\' view without attempting the question, correct icon should be displayed in responses from alternative accordion', () => {
28
+ it('When the user selects \'Grading\' view without attempting the question, no correct/incorrect icons should be displayed in response grid and correct icon should be displayed in responses from alternative accordion in correct answer section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
29
29
  gridFillPage.steps.switchToGradingView();
30
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
31
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
32
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
33
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
34
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
35
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
36
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
37
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
38
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
30
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 2);
31
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 3);
32
+ gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 4);
33
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
34
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
35
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
36
+ gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
39
37
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
40
38
  });
41
39
 
42
- it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icon, background and border should be displayed in responses from correct accordion, and a status message with text \'Your answer is correct\' should be displayed', () => {
40
+ it('When the user attempts the question with responses from the correct accordion, then the user should be awarded with points specified for correct accordion (less than overall points) and on switching to \'Grading\' view, correct icon should be displayed in responses from correct accordion, and a status message with text \'Your answer is correct\' should be displayed and correct responses from alternate accordion should be displayed in the correct answers section', () => {
43
41
  gridFillPage.steps.resetQuestionPreview();
44
42
  gridFillPage.steps.selectCellPreviewTab(0, 0);
45
43
  gridFillPage.steps.selectCellPreviewTab(0, 1);
46
44
  gridFillPage.steps.selectCellPreviewTab(0, 2);
47
45
  gridFillPage.steps.verifyPreviewScore(10, 20);
48
46
  gridFillPage.steps.switchToGradingView();
49
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
50
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
51
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
52
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
53
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
54
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
47
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
48
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
49
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
50
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
51
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
52
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
55
53
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
56
54
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
57
55
  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 status message with text \'Your answer is correct\' should be displayed')
58
56
  gridFillPage.steps.checkAnswer();
59
- gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
60
- gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
61
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
62
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 0);
63
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 1);
64
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
57
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
58
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
59
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
65
60
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
66
61
  });
67
62
 
68
- it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with full points and on switching to \'Grading\' view, correct icon, background and border should be displayed in responses from alternative accordion and status message with text \'Your answer is correct\' should be displayed', () => {
63
+ 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 icon should be displayed in responses from alternative accordion and status message with text \'Your answer is correct\' should be displayed and correct answers section should not be displayed', () => {
69
64
  gridFillPage.steps.resetQuestionPreview();
70
65
  gridFillPage.steps.selectCellPreviewTab(0, 2);
71
66
  gridFillPage.steps.selectCellPreviewTab(0, 3);
72
67
  gridFillPage.steps.selectCellPreviewTab(0, 4);
73
68
  gridFillPage.steps.verifyPreviewScore(20, 20);
74
69
  gridFillPage.steps.switchToGradingView();
75
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
76
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
77
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
78
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
79
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
80
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
70
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
71
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
72
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
81
73
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
74
+ gridFillPage.steps.verifyCorrectAnswerSectionNotExists();
82
75
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
83
76
  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')
84
77
  gridFillPage.steps.checkAnswer();
85
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
86
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
87
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
88
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
89
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
90
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
78
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
79
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
80
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
91
81
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
92
82
  });
93
83
 
94
- 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 and border should be displayed in the selected responses from alternative accordion, incorrect icon should be displayed for partially selected correct accordion response and a status message with text \'Your answer is incorrect\' should be displayed', () => {
84
+ 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 selected responses from correct accordion, and a status message with text \'Your answer is incorrect\' should be displayed with correct icons in responses from alternate accordion should be displayed in the correct answers section', () => {
95
85
  gridFillPage.steps.resetQuestionPreview();
96
86
  gridFillPage.steps.selectCellPreviewTab(0, 0);
97
87
  gridFillPage.steps.selectCellPreviewTab(0, 1);
98
88
  gridFillPage.steps.verifyPreviewScore(0, 20);
99
89
  gridFillPage.steps.switchToGradingView();
100
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
101
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
102
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
103
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
104
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
105
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
106
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
107
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
108
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 1);
109
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 1);
90
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
91
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
92
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
93
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
94
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
110
95
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
111
96
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
112
97
  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 incorrect icon should be displayed for partially selected correct accordion responses, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
113
98
  gridFillPage.steps.checkAnswer();
114
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
115
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
116
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 1);
117
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 1);
99
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
100
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
118
101
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
119
102
  });
120
103
 
121
- 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, correct icon, background and border should be displayed in the selected alternative accordion responses, correct icon and border should be displayed for unselected alternative accordion response and a status message with text \'Your answer is incorrect\' should be displayed', () => {
104
+ 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, correct icon should be displayed in the selected alternative accordion responses and a status message with text \'Your answer is incorrect\' should be displayed with correct icons in responses from alternate accordion should be displayed in the correct answers section', () => {
122
105
  gridFillPage.steps.resetQuestionPreview();
123
106
  gridFillPage.steps.selectCellPreviewTab(0, 3);
124
107
  gridFillPage.steps.verifyPreviewScore(0, 20);
125
108
  gridFillPage.steps.switchToGradingView();
126
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
127
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
128
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
129
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
130
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
131
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
132
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
133
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
109
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
110
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
111
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
112
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
134
113
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
135
114
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
136
115
  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 correct answer responses, no icon/border should be displayed for unselected response cell and a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
137
116
  gridFillPage.steps.checkAnswer();
138
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
139
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
117
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
140
118
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
141
119
  });
142
120
 
143
- it('When the user attempts the question partially correct with all the responses correct as per the correct accordion but one response incomplete, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon, background and border should be displayed in the selected alternative accordion responses, correct icon and border should be displayed for unselected correct answer response and a status message with text \'Your answer is incorrect\' should be displayed', () => {
121
+ it('When the user attempts the question partially correct with all the responses correct as per the correct 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, correct icons in responses from alternate accordion should be displayed in the correct answers section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
144
122
  gridFillPage.steps.resetQuestionPreview();
145
123
  gridFillPage.steps.selectCellPreviewTab(0, 3);
146
124
  gridFillPage.steps.selectCellPreviewTab(0, 4);
147
125
  gridFillPage.steps.verifyPreviewScore(0, 20);
148
126
  gridFillPage.steps.switchToGradingView();
149
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
150
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
151
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
152
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
153
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
154
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
155
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
127
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
128
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
129
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
130
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
131
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
156
132
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
157
133
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
158
134
  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 and no icon should be displayed for unselected response, a status message with text \'Your answer is incorrect\' should be displayed')
159
135
  gridFillPage.steps.checkAnswer();
160
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
161
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 3);
162
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
163
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
136
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 3);
137
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
164
138
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
165
139
  });
166
140
 
167
- 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 selected alternative accordion response, correct icon should be displayed for unselected response from alternative accordion, incorrect icon should be displayed in selected correct accordion response and a status message with text \'Your answer is incorrect\' should be displayed', () => {
141
+ 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 response from alternative accordion, incorrect icon should be displayed in responses from correct accordion, correct icons in responses from alternate accordion should be displayed in the correct answers section and a status message with text \'Your answer is incorrect\' should be displayed', () => {
168
142
  gridFillPage.steps.resetQuestionPreview();
169
143
  gridFillPage.steps.selectCellPreviewTab(0, 0);
170
144
  gridFillPage.steps.selectCellPreviewTab(0, 4);
171
145
  gridFillPage.steps.verifyPreviewScore(0, 20);
172
146
  gridFillPage.steps.switchToGradingView();
173
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
174
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
175
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
176
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
177
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
178
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
179
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
180
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
181
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
182
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
147
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
148
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
149
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
150
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
151
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
183
152
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
184
153
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
185
154
  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, background and border should be displayed in alternative accordion response, incorrect icon, background and border should be displayed in correct accordion response and a status message with text \'Your answer is incorrect\' should be displayed')
186
155
  gridFillPage.steps.checkAnswer();
187
- gridFillPage.steps.verifyIncorrectResponseIcon(0, 0);
188
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(0, 0);
189
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
190
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 4);
156
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 0);
157
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
191
158
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
192
159
  });
193
160
 
194
- 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, background and border should be in the common response and correct icon and border response from alternative answer accordion and a status message \'Your answer is incorrect\' should be displayed', () => {
161
+ 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, correct icons in responses from alternate accordion should be displayed in the correct answers section and a status message \'Your answer is incorrect\' should be displayed', () => {
195
162
  gridFillPage.steps.resetQuestionPreview();
196
163
  gridFillPage.steps.selectCellPreviewTab(0, 2);
197
164
  gridFillPage.steps.verifyPreviewScore(0, 20);
198
165
  gridFillPage.steps.switchToGradingView();
199
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
200
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
201
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
202
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
203
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
204
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
205
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
206
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
166
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
167
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
168
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
169
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
207
170
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
208
171
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
209
172
  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 responses, no icon should be displayed for unselected response area and a status message with text \'Your answer is incorrect\' should be displayed')
210
173
  gridFillPage.steps.checkAnswer();
211
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
212
- gridFillPage.steps.verifyCorrectResponseBorderAndBackgroundColor(0, 2);
174
+ gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 2);
213
175
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
214
176
  });
215
177
 
216
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon, background and border should be displayed in incorrect response, a status message with text \'Your answer is incorrect\' and correct icon and border with all correct answers from the alternative accordion should be displayed', () => {
178
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in incorrect response, correct icons in responses from alternate accordion should be displayed in the correct answers section, a status message with text \'Your answer is incorrect\'', () => {
217
179
  gridFillPage.steps.resetQuestionPreview();
218
180
  gridFillPage.steps.selectCellPreviewTab(1, 2);
219
181
  gridFillPage.steps.verifyPreviewScore(0, 20);
220
182
  gridFillPage.steps.switchToGradingView();
221
- gridFillPage.steps.verifyCorrectResponseIcon(0, 2);
222
- gridFillPage.steps.verifyCorrectResponseIcon(0, 3);
223
- gridFillPage.steps.verifyCorrectResponseIcon(0, 4);
224
- gridFillPage.steps.verifyCorrectResponseBorder(0, 2);
225
- gridFillPage.steps.verifyCorrectResponseBorder(0, 3);
226
- gridFillPage.steps.verifyCorrectResponseBorder(0, 4);
227
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 2);
228
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 3);
229
- gridFillPage.steps.verifyResponseCellHasDefaultBackgroundColor(0, 4);
230
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 2);
231
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
183
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
184
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 2);
185
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 3);
186
+ gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 4);
232
187
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
233
188
  gridFillPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
234
189
  cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icon, background and border should be displayed in incorrect response and a status message with text \'Your answer is incorrect\' should be displayed')
235
190
  gridFillPage.steps.checkAnswer();
236
- gridFillPage.steps.verifyIncorrectResponseIcon(1, 2);
237
- gridFillPage.steps.verifyIncorrectResponseBorderAndBackgroundColor(1, 2);
191
+ gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(1, 2);
238
192
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
239
193
  });
240
194
  });