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
@@ -175,7 +175,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
175
175
  dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
176
176
  });
177
177
 
178
- it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with dropzone cell numeration should be displayed', () => {
178
+ it('When the user attempts the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
179
179
  if (view === 'Grading view') {
180
180
  studentViewPage.steps.clearResponses();
181
181
  };
@@ -198,7 +198,7 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
198
198
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
199
199
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
200
200
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
201
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
201
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
202
202
  });
203
203
 
204
204
  it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
@@ -84,7 +84,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
84
84
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
85
85
  });
86
86
 
87
- it('When the user drops an option in one of the dropzone cells, the option should get removed from the options container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
87
+ it('When the user drops an option in one of the dropzone cells, the option should get removed from the response container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
88
88
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0 });
89
89
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneCellOfSpecifyCorrectAnswerSection(0, ['Bat']);
90
90
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Eagle', 'Parrot', 'Whale']);
@@ -122,7 +122,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
122
122
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Parrot', 'Whale']);
123
123
  });
124
124
 
125
- it('When the user selects an option from the filled dropzone cell, the options container as well as all dropzone cells should get active for dropping the option', () => {
125
+ it('When the user selects an option from the filled dropzone cell, the response container as well as all dropzone cells should get active for dropping the option', () => {
126
126
  dragAndDropIntoCategoriesPage.steps.clickOnDraggableOptionInDropzoneCellOfSpecifyCorrectAnswerSection('Bat', 0);
127
127
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfDraggableOptionsContainerInSpecifyCorrectAnswerSection();
128
128
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
@@ -149,7 +149,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
149
149
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
150
150
  });
151
151
 
152
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
152
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
153
153
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Bat');
154
154
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
155
155
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Bat', 'Eagle', 'Parrot', 'Whale']);
@@ -253,7 +253,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
253
253
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInPreviewTab();
254
254
  });
255
255
 
256
- it('When the user drops an option in one of the dropzone cells, the option should get removed from the options container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
256
+ it('When the user drops an option in one of the dropzone cells, the option should get removed from the response container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
257
257
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
258
258
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
259
259
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Eagle', 'Parrot', 'Whale']);
@@ -291,7 +291,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
291
291
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Parrot', 'Whale']);
292
292
  });
293
293
 
294
- it('When the user selects an option from the filled dropzone cell, the options container as well as all dropzone cells should get active for dropping the option', () => {
294
+ it('When the user selects an option from the filled dropzone cell, the response container as well as all dropzone cells should get active for dropping the option', () => {
295
295
  dragAndDropIntoCategoriesPage.steps.clickOnDraggableOptionInDropzoneCellOfPreviewTab('Bat', 0);
296
296
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfDraggableOptionsContainerInPreviewTab();
297
297
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfAllDropzonesInPreviewTab();
@@ -324,11 +324,6 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
324
324
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Eagle']);
325
325
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Bat']);
326
326
  });
327
-
328
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
329
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerPreviewTab('Eagle', 0);
330
- dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Whale', 'Platypus', 'Eagle']);
331
- });
332
327
  });
333
328
 
334
329
  describe('Click and drop cases for \'Grouped\' response options layout in \'Specify correct answer\' section', () => {
@@ -408,7 +403,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
408
403
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
409
404
  });
410
405
 
411
- it('When the user drops an option in one of the dropzone cells, the option should get removed from the respective group of the options container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
406
+ it('When the user drops an option in one of the dropzone cells, the option should get removed from the respective group of the response container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
412
407
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0 });
413
408
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneCellOfSpecifyCorrectAnswerSection(0, ['Bat']);
414
409
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, ['Eagle', 'Whale', 'Platypus']);
@@ -447,7 +442,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
447
442
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, ['Whale', 'Platypus']);
448
443
  });
449
444
 
450
- it('When the user selects an option from the filled dropzone cell, the options container as well as all dropzone cells should get active for dropping the option', () => {
445
+ it('When the user selects an option from the filled dropzone cell, the response container as well as all dropzone cells should get active for dropping the option', () => {
451
446
  dragAndDropIntoCategoriesPage.steps.clickOnDraggableOptionInDropzoneCellOfSpecifyCorrectAnswerSection('Bat', 0);
452
447
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfDraggableOptionsContainerInSpecifyCorrectAnswerSection();
453
448
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
@@ -474,7 +469,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
474
469
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInSpecifyCorrectAnswerSection();
475
470
  });
476
471
 
477
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
472
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
478
473
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Bat');
479
474
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerSpecifyCorrectAnswerSection('Eagle');
480
475
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
@@ -588,7 +583,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
588
583
  dragAndDropIntoCategoriesPage.steps.verifyInactiveStateOfAllDropzonesInPreviewTab();
589
584
  });
590
585
 
591
- it('When the user drops an option in one of the dropzone cells, the option should get removed from the respective group of the options container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
586
+ it('When the user drops an option in one of the dropzone cells, the option should get removed from the respective group of the response container, the dropzone cell should get filled with that option and the other dropzone cells should return to inactive state', () => {
592
587
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
593
588
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Bat']);
594
589
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Eagle', 'Whale', 'Platypus']);
@@ -627,7 +622,7 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
627
622
  dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Whale', 'Platypus']);
628
623
  });
629
624
 
630
- it('When the user selects an option from the filled dropzone cell, the options container as well as all dropzone cells should get active for dropping the option', () => {
625
+ it('When the user selects an option from the filled dropzone cell, the response container as well as all dropzone cells should get active for dropping the option', () => {
631
626
  dragAndDropIntoCategoriesPage.steps.clickOnDraggableOptionInDropzoneCellOfPreviewTab('Bat', 0);
632
627
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfDraggableOptionsContainerInPreviewTab();
633
628
  dragAndDropIntoCategoriesPage.steps.verifyActiveStateOfAllDropzonesInPreviewTab(1);
@@ -661,14 +656,8 @@ describe('Create Item Page: Drag and drop into categories: Click and drop cases
661
656
  dragAndDropIntoCategoriesPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Bat']);
662
657
  });
663
658
 
664
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
665
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromDropzoneToOptionContainerPreviewTab('Eagle');
666
- dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Whale', 'Platypus', 'Eagle']);
667
- dragAndDropIntoCategoriesPage.steps.verifyGroupedContainerContentsInPreviewTab(1, groupedOptions[1]);
668
- });
669
-
670
659
  it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
671
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Whale': 0, 'Platypus': 1, 'Eagle': 0 });
660
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Whale': 0, 'Platypus': 1 });
672
661
  dragAndDropIntoCategoriesPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
673
662
  dragAndDropIntoCategoriesPage.steps.verifyEmptyGroupInPreviewTab(0);
674
663
  });
@@ -83,7 +83,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
83
83
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
84
84
  });
85
85
 
86
- it('When the user drops an option in one of the dropzone, the option should get removed from the options container, the dropzone should get filled with that option and the other dropzone should remain in inactive state', () => {
86
+ it('When the user drops an option in one of the dropzone, the option should get removed from the response container, the dropzone should get filled with that option and the other dropzone should remain in inactive state', () => {
87
87
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
88
88
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
89
89
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Flower', 'Stem', 'Seed']);
@@ -148,7 +148,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
148
148
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
149
149
  });
150
150
 
151
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
151
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
152
152
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
153
153
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
154
154
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Petals', 'Flower', 'Stem', 'Seed']);
@@ -251,7 +251,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
251
251
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
252
252
  });
253
253
 
254
- it('When the user drops an option in one of the dropzone, the option should get removed from the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
254
+ it('When the user drops an option in one of the dropzone, the option should get removed from the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
255
255
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
256
256
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals']);
257
257
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Flower', 'Stem', 'Seed']);
@@ -322,11 +322,6 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
322
322
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
323
323
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(2, ['Petals']);
324
324
  });
325
-
326
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
327
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInPreviewTab('Flower');
328
- fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Flower', 'Stem', 'Seed']);
329
- });
330
325
  });
331
326
 
332
327
  describe('Click and drop cases for \'Grouped\' response options layout in \'Specify correct answer\' section', () => {
@@ -403,7 +398,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
403
398
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
404
399
  });
405
400
 
406
- it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
401
+ it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
407
402
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
408
403
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
409
404
  fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, ['Flower', 'Stem', 'Seed']);
@@ -469,7 +464,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
469
464
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
470
465
  });
471
466
 
472
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
467
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
473
468
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
474
469
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
475
470
  fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
@@ -583,7 +578,7 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
583
578
  fillInTheGapsDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
584
579
  });
585
580
 
586
- it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
581
+ it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
587
582
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
588
583
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals']);
589
584
  fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Flower', 'Stem', 'Seed']);
@@ -654,14 +649,8 @@ describe('Create Item Page: Fill in the gaps with drag and drop: Click and drop
654
649
  fillInTheGapsDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Flower']);
655
650
  });
656
651
 
657
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
658
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInPreviewTab('Flower');
659
- fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Petals', 'Flower', 'Stem', 'Seed']);
660
- fillInTheGapsDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(1, groupedOptions[1]);
661
- });
662
-
663
652
  it('When user has dropped all the options from a group in the response areas, then empty group should be displayed in the options container', () => {
664
- fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2, 'Petals': 3 , 'Flower':1});
653
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Seed': 2, 'Petals': 3 });
665
654
  fillInTheGapsDragAndDropPage.steps.verifyGroupedOptionsTitlePreviewTab(0, 'Group A')
666
655
  fillInTheGapsDragAndDropPage.steps.verifyEmptyGroupInPreviewTab(0);
667
656
  });
@@ -89,7 +89,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
89
89
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
90
90
  });
91
91
 
92
- it('When the user drops an option in one of the dropzone, the option should get removed from the options container, the dropzone should get filled with that option and the other dropzone should remain in inactive state', () => {
92
+ it('When the user drops an option in one of the dropzone, the option should get removed from the response container, the dropzone should get filled with that option and the other dropzone should remain in inactive state', () => {
93
93
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
94
94
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
95
95
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Flower', 'Stem', 'Seed']);
@@ -153,7 +153,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
153
153
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
154
154
  });
155
155
 
156
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
156
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
157
157
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
158
158
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
159
159
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInOptionsContainerSpecifyCorrectAnswerSection(['Petals', 'Flower', 'Stem', 'Seed']);
@@ -262,7 +262,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
262
262
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
263
263
  });
264
264
 
265
- it('When the user drops an option in one of the dropzone, the option should get removed from the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
265
+ it('When the user drops an option in one of the dropzone, the option should get removed from the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
266
266
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
267
267
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals']);
268
268
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Flower', 'Stem', 'Seed']);
@@ -332,11 +332,6 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
332
332
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Flower']);
333
333
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(1, ['Petals']);
334
334
  });
335
-
336
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container', () => {
337
- fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInOptionsContainerInPreviewTab('Flower');
338
- fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionsInOptionsContainerPreviewTab(['Stem', 'Seed', 'Flower']);
339
- });
340
335
  });
341
336
 
342
337
  describe('Click and drop cases for \'Grouped\' response options layout in \'Specify correct answer\' section', () => {
@@ -418,7 +413,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
418
413
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
419
414
  });
420
415
 
421
- it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
416
+ it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
422
417
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Petals': 0 });
423
418
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneSpecifyCorrectAnswerSection(0, ['Petals']);
424
419
  fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, ['Flower', 'Stem', 'Seed']);
@@ -483,7 +478,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
483
478
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInSpecifyCorrectAnswerSection();
484
479
  });
485
480
 
486
- it('When the user selects a filled option and clicks in the options container, the selected option should get back in the options container and \'Error: Please set a correct answer\' error message should be displayed', () => {
481
+ it('When the user selects a filled option and clicks in the response container, the selected option should get back in the response container and \'Error: Please set a correct answer\' error message should be displayed', () => {
487
482
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropGroupedOptionInOptionsContainerInSpecifyCorrectAnswerSection('Petals');
488
483
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropGroupedOptionInOptionsContainerInSpecifyCorrectAnswerSection('Flower');
489
484
  fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedContainerContentsInSpecifyCorrectAnswerSection(0, groupedOptions[0]);
@@ -602,7 +597,7 @@ describe('Create Item Page: Fill in the gaps over image - drag and drop: Click a
602
597
  fillInTheGapsOverImageDragAndDropPage.steps.verifyInactiveStateOfAllDropzoneInPreviewTab();
603
598
  });
604
599
 
605
- it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the options container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
600
+ it('When the user drops an option in one of the dropzone, the option should get removed from the respective group of the response container, the dropzone should get filled with that option and the other dropzone should return to inactive state', () => {
606
601
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
607
602
  fillInTheGapsOverImageDragAndDropPage.steps.verifyDraggableOptionInDropzoneOfPreviewTab(0, ['Petals']);
608
603
  fillInTheGapsOverImageDragAndDropPage.steps.verifyGroupedContainerContentsInPreviewTab(0, ['Flower', 'Stem', 'Seed']);
@@ -13,6 +13,7 @@ const toolOptions = [...selectedToolOption, ...unselectedToolOption];
13
13
  describe('Create item page - Graphing - Preview contents in all views', () => {
14
14
  before(() => {
15
15
  cy.loginAs('admin');
16
+ graphingPage.steps.navigateToCreateQuestion('Graphing');
16
17
  });
17
18
 
18
19
  views.forEach((view) => {
@@ -54,8 +54,42 @@ describe('Graphing: Tools and controls - Edit tab and preview tab tool options',
54
54
  utilities.verifyElementVisibilityState(utilities.getNthElement(graphingPage.controlsTickIcon(), index), 'visible');
55
55
  });
56
56
  });
57
-
58
- graphingPage.tests.verifyDefaultToolDropdown(toolOptions);
57
+
58
+ it('\'Default tool\' label and dropdown should be displayed with \'Point\' option selected by default', () => {
59
+ utilities.verifyInnerText(graphingPage.defaultToolDropdownLabel(), 'Default tool');
60
+ utilities.verifyInnerText(graphingPage.defaultToolDropdown(), 'Point');
61
+ });
62
+
63
+ it(`${selectedToolOption} options should be displayed when the user expands the \'Default tool\' dropdown`, () => {
64
+ graphingPage.steps.expandDefaultToolDropdown();
65
+ selectedToolOption.forEach((dropdownOption) => {
66
+ utilities.verifyElementVisibilityState(graphingPage.defaultToolDropdownOptions(dropdownOption), 'exist');
67
+ });
68
+ utilities.verifyElementCount(graphingPage.defaultToolDropdownOptions(), 6);
69
+ graphingPage.steps.selectOptionFromDefaultToolDropdown('Point');
70
+ });
71
+
72
+ it('CSS of default tool dropdown', { tags: 'css' }, () => {
73
+ graphingPage.steps.expandDefaultToolDropdown();
74
+ utilities.verifyCSS(graphingPage.defaultToolDropdownLabel(), {
75
+ 'color': css.color.labels,
76
+ 'font-size': css.fontSize.normal,
77
+ 'font-weight': css.fontWeight.semibold
78
+ });
79
+ utilities.verifyCSS(graphingPage.defaultToolDropdownOptions('Point'), {
80
+ 'color': css.color.liText,
81
+ 'background-color': css.color.liTextSelectedBg,
82
+ 'font-size': css.fontSize.default,
83
+ 'font-weight': css.fontWeight.regular
84
+ });
85
+ utilities.verifyCSS(graphingPage.defaultToolDropdownOptions('Line'), {
86
+ 'color': css.color.liText,
87
+ 'background-color': css.color.transparent,
88
+ 'font-size': css.fontSize.default,
89
+ 'font-weight': css.fontWeight.regular
90
+ });
91
+ graphingPage.steps.selectOptionFromDefaultToolDropdown('Point');
92
+ });
59
93
 
60
94
  it(`The ${selectedToolOption} options should be displayed in the \'Specify correct answer\' section and ${toolOptions} should be displayed in the background graph section`, () => {
61
95
  selectedToolOption.forEach((toolOption) => {
@@ -101,10 +101,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
101
101
  gridFillPage.steps.switchToGradingView();
102
102
  gridFillPage.steps.verifyPreviewScore(0, 20);
103
103
  }
104
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 0);
105
- gridFillPage.steps.verifyCorrectIncorrectResponseIconNotExistPreviewTab(0, 1);
106
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
107
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
104
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
105
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
106
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
107
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
108
108
  });
109
109
 
110
110
  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 the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
@@ -114,15 +114,21 @@ describe('Create item page - Grid fill: All or nothing', () => {
114
114
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
115
115
  studentViewPage.steps.clickOnGoToGradingViewButton()
116
116
  gradingViewPage.steps.verifyGradingViewScore(0, 20);
117
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0,3);
118
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
119
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
117
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
118
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
119
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
120
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
120
121
  }
121
122
  if (view === 'Question preview' || view === 'Item preview') {
122
123
  gridFillPage.steps.switchToGradingView();
123
124
  gridFillPage.steps.verifyPreviewScore(0, 20);
124
125
  }
125
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0,3);
126
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
127
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 3);
128
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
129
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
130
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
131
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
126
132
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
127
133
  });
128
134
 
@@ -141,9 +147,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
141
147
  gridFillPage.steps.verifyPreviewScore(0, 20);
142
148
  gridFillPage.steps.switchToGradingView();
143
149
  };
144
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
145
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
146
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
150
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
151
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
152
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
153
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
147
154
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
148
155
  });
149
156
 
@@ -163,10 +170,12 @@ describe('Create item page - Grid fill: All or nothing', () => {
163
170
  gridFillPage.steps.verifyPreviewScore(0, 20);
164
171
  gridFillPage.steps.switchToGradingView();
165
172
  };
166
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
167
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
168
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
169
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
173
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
174
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
175
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
176
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
177
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
178
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 3);
170
179
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
171
180
  });
172
181
 
@@ -187,11 +196,12 @@ describe('Create item page - Grid fill: All or nothing', () => {
187
196
  gridFillPage.steps.verifyPreviewScore(0, 20);
188
197
  gridFillPage.steps.switchToGradingView();
189
198
  };
190
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
191
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
192
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
193
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 0);
194
- gridFillPage.steps.verifyCorrectResponseIconCorrectAnswerSection(0, 1);
199
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
200
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
201
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
202
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
203
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 3);
204
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
195
205
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
196
206
  });
197
207
 
@@ -211,8 +221,10 @@ describe('Create item page - Grid fill: All or nothing', () => {
211
221
  gridFillPage.steps.verifyPreviewScore(20, 20);
212
222
  gridFillPage.steps.switchToGradingView();
213
223
  }
214
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
215
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
224
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
225
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
226
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
227
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
216
228
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
217
229
  });
218
230
  });
@@ -84,15 +84,21 @@ describe('Create item page - grid fill - Check answer functionality', () => {
84
84
  gridFillPage.steps.selectCellPreviewTab(0, 4);
85
85
  gridFillPage.steps.selectCellPreviewTab(0, 2);
86
86
  checkAnswer(view);
87
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 4);
88
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 2);
87
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 4);
88
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 4);
89
+ gridFillPage.steps.verifyIncorrectResponseBackgroundColor(0, 4);
90
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 2);
91
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 2);
92
+ gridFillPage.steps.verifyIncorrectResponseBackgroundColor(0, 2);
89
93
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
90
94
  });
91
95
 
92
96
  it('When the user attempts the question partially correct and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct icons should be displayed besides correct responses, a status message with text \'Your answer is incorrect\' should be displayed. Correct answer section should not be displayed', () => {
93
97
  gridFillPage.steps.selectCellPreviewTab(0, 0);
94
98
  checkAnswer(view);
95
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
99
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
100
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
101
+ gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 0);
96
102
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
97
103
  });
98
104
 
@@ -101,9 +107,15 @@ describe('Create item page - grid fill - Check answer functionality', () => {
101
107
  gridFillPage.steps.selectCellPreviewTab(0, 1);
102
108
  gridFillPage.steps.selectCellPreviewTab(0, 3);
103
109
  checkAnswer(view);
104
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
105
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
106
- gridFillPage.steps.verifyIncorrectResponseIconPreviewTab(0, 3);
110
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
111
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
112
+ gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 0);
113
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
114
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
115
+ gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 1);
116
+ gridFillPage.steps.verifyIncorrectResponseBorder(0, 3);
117
+ gridFillPage.steps.verifyIncorrectResponseIcon(0, 3);
118
+ gridFillPage.steps.verifyIncorrectResponseBackgroundColor(0, 3);
107
119
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
108
120
  });
109
121
 
@@ -111,8 +123,12 @@ describe('Create item page - grid fill - Check answer functionality', () => {
111
123
  gridFillPage.steps.selectCellPreviewTab(0, 0);
112
124
  gridFillPage.steps.selectCellPreviewTab(0, 1);
113
125
  checkAnswer(view);
114
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 0);
115
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 1);
126
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 0);
127
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 0);
128
+ gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 0);
129
+ gridFillPage.steps.verifyCorrectResponseBorder(0, 1);
130
+ gridFillPage.steps.verifyCorrectResponseIcon(0, 1);
131
+ gridFillPage.steps.verifyCorrectResponseBackgroundColor(0, 1);
116
132
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
117
133
  });
118
134
  });
@@ -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.increaseColumnsInputStepperCount(1);
25
- gridFillPage.steps.increaseRowsInputStepperCount(1);
24
+ gridFillPage.steps.increaseColumnsCount(1);
25
+ gridFillPage.steps.increaseRowsCount(1);
26
26
  gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
27
27
  gridFillPage.steps.shadeCell(0, 0);
28
28
  gridFillPage.steps.selectHideCellButton();
@@ -91,10 +91,12 @@ 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);
94
96
  });
95
97
 
96
98
  it('User should be able to unselect cells', () => {
97
- gridFillPage.steps.unselectCellPreviewTab(0, 0);
99
+ gridFillPage.steps.unselectCellPreviewTab(1, 1);
98
100
  });
99
101
 
100
102
  it('When user hovers over cell, then cell should be in interactive state', () => {
@@ -112,8 +114,18 @@ describe('Create item page - Grid fill : Preview contents', () => {
112
114
  });
113
115
 
114
116
  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);
115
118
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
116
119
  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);
117
129
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
118
130
  });
119
131
 
@@ -128,10 +140,18 @@ describe('Create item page - Grid fill : Preview contents', () => {
128
140
  });
129
141
 
130
142
  it(`The grid fill should be displayed filled with selected correct answer cells`, () => {
143
+ gridFillPage.steps.verifyCellSelectedPreviewTab(0, 0);
131
144
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 4);
132
145
  gridFillPage.steps.verifyCellSelectedPreviewTab(0, 5);
133
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
134
- gridFillPage.steps.verifyCorrectResponseIconPreviewTab(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);
135
155
  });
136
156
 
137
157
  it('Grid fill should not be editable', () => {