itemengine-cypress-automation 1.0.283-updatedPackageFile-3c0db7c.0 → 1.0.284-IEI-4866-bc2c255.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. package/cypress/e2e/Gzip/gzip.js +7 -7
  2. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +21 -21
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +9 -9
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +7 -6
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +10 -9
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +11 -10
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/additionalSettings.js +1 -1
  8. package/cypress/e2e/ILC/EditItem/editItem.ts +133 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingGroupedScoring.js +4 -4
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +15 -15
  11. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  12. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  13. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/blankResponseScoring.js +214 -0
  14. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +4 -4
  15. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +14 -14
  16. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsBasic.js +8 -8
  17. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  18. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  19. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsBasic.js +8 -8
  20. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  21. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  22. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  23. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/blankResponseScoring.js +228 -0
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/Scoring/manuallyAndNonScored.js +3 -3
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/blankResponseScoring.js +242 -0
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/blankResponseScoring.js +245 -0
  28. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/blankResponseScoring.js +237 -0
  29. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingGroupedScoring.js +4 -4
  30. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  31. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +14 -14
  32. package/cypress/e2e/ILC/Matching/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  33. package/cypress/e2e/ILC/Matching/Scoring/blankResponseScoring.js +239 -0
  34. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +2 -2
  35. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  36. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  37. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  38. package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  39. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsBasic.js +4 -4
  40. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +14 -14
  41. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +14 -14
  42. package/cypress/e2e/ILC/Matching/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +14 -14
  43. package/cypress/e2e/ILC/Matching/questionInstructionsAndPromptSection.js +3 -2
  44. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  45. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsEqualToAlternativePoints.js +7 -7
  46. package/cypress/e2e/ILC/MatchingDropdown/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  47. package/cypress/e2e/ILC/MatchingDropdown/Scoring/blankResponseScoring.js +212 -0
  48. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +2 -2
  49. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
  50. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  51. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternatePoints.js +7 -7
  52. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternatePoints.js +7 -7
  53. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsBasic.js +4 -4
  54. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +7 -7
  55. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +7 -7
  56. package/cypress/e2e/ILC/MatchingDropdown/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +7 -7
  57. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/blankResponseScoring.js +366 -0
  58. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/blankResponseScoring.js +306 -0
  59. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +243 -0
  60. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +242 -0
  61. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +289 -0
  62. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +284 -0
  63. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +238 -0
  64. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +279 -0
  65. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialDifferentWeightsScoringBasic.js +641 -0
  66. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +278 -0
  67. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +228 -0
  68. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +234 -0
  69. package/cypress/e2e/ILC/TextEntryMath/MathTemplateScoring/partialEqualWeightsScoringBasic.js +237 -0
  70. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAddEvaluation.js +134 -0
  71. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingBasicForAlternateAnswer.js +138 -0
  72. package/cypress/e2e/ILC/TextEntryMath/Scoring/blankResponseScoring.js +263 -0
  73. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  74. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasicForAlternateAnswer.js +166 -0
  75. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +3 -3
  76. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +3 -3
  77. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +193 -0
  78. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +5 -5
  79. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchExact.js +1 -1
  80. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +1 -1
  81. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodsWithoutSetResponse.js +4 -4
  82. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +8 -8
  83. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +1 -1
  84. package/cypress/pages/audioPlayerPage.js +4 -4
  85. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +17 -0
  86. package/cypress/pages/components/equationEditorFlyout.js +1 -1
  87. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +1 -1
  88. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +5 -1
  89. package/cypress/pages/components/gridQuestionCommonComponent.js +41 -1
  90. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  91. package/cypress/pages/createItemPage.js +38 -1
  92. package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -1
  93. package/cypress/pages/fillInTheGapsDragAndDropPage.js +45 -3
  94. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +35 -2
  95. package/cypress/pages/listOrderingPage.js +1 -1
  96. package/cypress/pages/matchingPage.js +34 -7
  97. package/cypress/pages/multipleSelectionPage.js +17 -2
  98. package/cypress/pages/numberLineLabelPage.js +3 -3
  99. package/cypress/pages/readingRulerPage.js +5 -3
  100. package/cypress/pages/singleSelectionPage.js +5 -2
  101. package/cypress/pages/textEntryMathPage.js +19 -5
  102. package/cypress/pages/textSelectionPage.js +1 -1
  103. package/package.json +1 -1
@@ -0,0 +1,214 @@
1
+ import { dialogBoxBase, fillInTheGapsDragAndDropPage, gradingViewPage, itemPreviewPage, studentViewPage } from "../../../../pages";
2
+ import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
+ import utilities from "../../../../support/helpers/utilities";
4
+ var itemReferenceID = "";
5
+
6
+ describe('Create item page - Fill in the gaps with drag and drop: Partial equal weights for blank responses', () => {
7
+ before(() => {
8
+ cy.loginAs('admin');
9
+ });
10
+
11
+ describe(`Auto scored - All or nothing`, () => {
12
+ abortEarlySetup();
13
+ before(() => {
14
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
15
+ cy.barsPreLoaderWait();
16
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop');
17
+ fillInTheGapsDragAndDropPage.steps.allotPoints(24);
18
+ fillInTheGapsDragAndDropPage.steps.addResponseArea();
19
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
20
+ });
21
+
22
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
23
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
24
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
25
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
26
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
27
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
28
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
29
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
30
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
31
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
32
+ });
33
+
34
+ it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
35
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
36
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
37
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
38
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
39
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
40
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
41
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
42
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
43
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
44
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
45
+ });
46
+
47
+ it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
48
+ fillInTheGapsDragAndDropPage.steps.switchToEditTab();
49
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
50
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
51
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
52
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
53
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
54
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
55
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
56
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
57
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
58
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
59
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
60
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
61
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
62
+ });
63
+
64
+ it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
65
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
66
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
67
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
68
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
69
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
70
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
71
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
72
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
73
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
74
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
75
+ });
76
+
77
+ it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
78
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
79
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
80
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
81
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
82
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
83
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
84
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
85
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
86
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
87
+ });
88
+
89
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
90
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
91
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
92
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
93
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
94
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
95
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
96
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
97
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
98
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
99
+ });
100
+
101
+ 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', () => {
102
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
103
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
104
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
105
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
106
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
107
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
108
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
109
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
110
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
111
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
112
+ });
113
+ });
114
+
115
+ describe(`Auto scored - Partial equal weights`, () => {
116
+ abortEarlySetup();
117
+ before(() => {
118
+ fillInTheGapsDragAndDropPage.steps.navigateToCreateQuestion('fill in the gaps with drag and drop');
119
+ cy.barsPreLoaderWait();
120
+ fillInTheGapsDragAndDropPage.steps.addTextInQuestionInstructionsInputField('Fill in the gaps with drag and drop');
121
+ fillInTheGapsDragAndDropPage.steps.selectAutoScoredScoringSubtype('Partial equal weights')
122
+ fillInTheGapsDragAndDropPage.steps.allotPoints(24);
123
+ fillInTheGapsDragAndDropPage.steps.addResponseArea();
124
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
125
+ });
126
+
127
+ it('When the user has not set any answer in the \'Specify correct answer\' section and switches to the \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
128
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
129
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
130
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
131
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
132
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
133
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
134
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
135
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
136
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([[''], [''], ['']]);
137
+ });
138
+
139
+ it('When the user has not set any answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the responses, full points should be allocated and correct answer section should not be displayed', () => {
140
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
141
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
142
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
143
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
144
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
145
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
146
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
147
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
148
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
149
+ });
150
+
151
+ it('When the user sets an answer in the \'Specify correct answer\' section then on switching to \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
152
+ fillInTheGapsDragAndDropPage.steps.switchToEditTab();
153
+ fillInTheGapsDragAndDropPage.steps.addInputToOptionsInputField(['Flower', 'Stem']);
154
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flower': 0, 'Stem': 2 });
155
+ fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
156
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
157
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
158
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
159
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
160
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
161
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
162
+ fillInTheGapsDragAndDropPage.steps.verifyDropzoneNumeration();
163
+ utilities.verifyInnerText(fillInTheGapsDragAndDropPage.correctAnswersLabel(), 'Correct answers');
164
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
165
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
166
+ });
167
+
168
+ it('When the user has set an answer in the \'Specify correct answer\' section and interacts with the question in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
169
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
170
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionWithIndexInDropzonePreviewTab({ 0: 0 });
171
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionOutsideDropzoneWithIndexPreviewTab(0);
172
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
173
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(8, 24);
174
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
175
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
176
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
177
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
178
+ });
179
+
180
+ it('When the user has set an answer in the \'Specify correct answer\' section and enters responses in the preview tab then correct icons should be displayed beside all the correct responses and incorrect icon beside the incorrect responses, points should be allocated for the correct answers and correct answer section should be displayed', () => {
181
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
182
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0 });
183
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
184
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(16, 24);
185
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
186
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
187
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
188
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
189
+ });
190
+
191
+ it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
192
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
193
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 0, 'Flower': 1 });
194
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 24);
195
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
196
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
197
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
198
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
199
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flower'], [''], ['Stem']]);
200
+ });
201
+
202
+ 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', () => {
203
+ fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
204
+ fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 0, 'Stem': 2 });
205
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(24, 24);
206
+ fillInTheGapsDragAndDropPage.steps.switchToGradingView();
207
+ fillInTheGapsDragAndDropPage.steps.verifyPreviewTabPointsBackgroundForCorrectAnswer();
208
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
209
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
210
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
211
+ fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();
212
+ });
213
+ });
214
+ });
@@ -87,7 +87,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
87
87
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0, 'Roots': 2 });
88
88
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
89
89
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
90
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
90
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
91
91
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
92
92
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
93
93
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Leaves'], ['Stem']]);
@@ -95,7 +95,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
95
95
  /*cy.log('When user clicks on Check answer button after he attempts the question partially correct with some correct, some incomplete, some incorrect options, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
96
96
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
97
97
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
98
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
98
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
99
99
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
100
100
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
101
101
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -105,7 +105,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
105
105
  fillInTheGapsDragAndDropPage.steps.resetQuestionPreview();
106
106
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Leaves': 1, 'Stem': 2 });
107
107
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
108
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
108
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
109
109
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
110
110
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
111
111
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -113,7 +113,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Manually and n
113
113
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
114
114
  /*cy.log('When user clicks on Check answer button after he attempts the question partially correct with all the dropzone correctly attempted but one dropzone incomplete then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, status message \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
115
115
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
116
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
116
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
117
117
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
118
118
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
119
119
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -79,7 +79,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
79
79
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
80
80
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(6, 15);
81
81
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
82
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
82
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
83
83
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
84
84
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
85
85
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -87,7 +87,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
87
87
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
88
88
  /*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 green check-mark should be displayed besides the correct answer responses, status message and correct answer section should not be displayed')
89
89
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
90
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
90
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
91
91
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
92
92
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
93
93
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
99
99
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
100
100
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(9, 15);
101
101
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
102
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
102
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
103
103
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
104
104
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
105
105
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -107,7 +107,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
107
107
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
108
108
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response status message and correct answer section should not be displayed')
109
109
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
110
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
110
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
111
111
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
112
112
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
113
113
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
121
121
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
122
122
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
123
123
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
124
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
124
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
125
125
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
126
126
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
127
127
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -129,7 +129,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
129
129
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
130
130
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
131
131
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
132
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
132
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
133
133
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
134
134
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
135
135
  });
@@ -180,16 +180,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
180
180
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7, 15);
181
181
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
182
182
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
183
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
184
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
183
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
184
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
185
185
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
186
186
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
187
187
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
188
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response status message and correct answer section should not be displayed')
189
189
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
190
190
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
191
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
192
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
191
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
192
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
193
193
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
194
194
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
195
195
  });
@@ -200,16 +200,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
200
200
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
201
201
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
202
202
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
203
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
204
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
203
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
204
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
205
205
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
206
206
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Stem'], ['Seed']]);
207
207
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
208
208
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then red cross-marks should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response status message and correct answer section should not be displayed')
209
209
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
210
210
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
211
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
212
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
211
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
212
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
213
213
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
214
214
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
215
215
  });
@@ -35,16 +35,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
35
35
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Roots': 2 });
36
36
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 20);
37
37
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
38
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
39
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
38
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
39
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
40
40
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
41
41
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
42
42
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
43
43
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
44
44
  /*cy.log('When the user attempts the question incorrectly and clicks on \'Check answer\' red cross-marks should be displayed besides all incorrect responses, a status message should not be displayed and correct answer section should not be displayed')
45
45
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
46
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
47
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
46
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
47
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
48
48
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
49
49
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
50
50
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -56,7 +56,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
56
56
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(9, 20);
57
57
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
58
58
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
59
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
59
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
60
60
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
61
61
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
62
62
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
@@ -64,7 +64,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
64
64
  /*cy.log('When the user attempts the question partially correct with some correct, some incomplete, some incorrect options and clicks on \'Check answer\' green check-mark should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer response, a status message should not be displayed and correct answer section should not be displayed')
65
65
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
66
66
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
67
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
67
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
68
68
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
69
69
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
70
70
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -75,7 +75,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
75
75
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
76
76
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(11, 20);
77
77
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
78
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
78
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
79
79
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
80
80
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
81
81
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -83,7 +83,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
83
83
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
84
84
  /*cy.log('When the user attempts the question partially correct with all the responses correctly attempted but one response incomplete and clicks on \'Check answer\' green check-mark should be displayed besides the correct answer responses, red cross-mark should be displayed besides incorrect answer response, a status message should not be displayed and correct answer section should not be displayed')
85
85
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
86
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
86
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
87
87
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
88
88
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
89
89
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -80,7 +80,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
80
80
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
81
81
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(9, 15);
82
82
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
83
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
83
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
84
84
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
85
85
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
86
86
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -88,7 +88,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
88
88
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
89
89
  /*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 green check-mark should be displayed besides the correct answer responses, a status message and correct answer section should not be displayed')
90
90
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
91
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
91
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
92
92
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
93
93
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
94
94
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -100,7 +100,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
100
100
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
101
101
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(8, 15);
102
102
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
103
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
103
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
104
104
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
105
105
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
106
106
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -108,7 +108,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
108
108
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
109
109
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message and correct answer section should not be displayed')
110
110
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
111
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
111
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
112
112
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
113
113
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
114
114
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -122,7 +122,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
122
122
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
123
123
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
124
124
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
125
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
125
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
126
126
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
127
127
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
128
128
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -130,7 +130,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
130
130
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
131
131
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
132
132
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
133
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
133
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
134
134
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
135
135
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
136
136
  });
@@ -181,16 +181,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
181
181
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7, 15);
182
182
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
183
183
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
184
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
185
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
184
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
185
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
186
186
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
187
187
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
188
188
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
189
189
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message and correct answer section should not be displayed')
190
190
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
191
191
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
192
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
193
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
192
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
193
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
194
194
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
195
195
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
196
196
  });
@@ -201,16 +201,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
201
201
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
202
202
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
203
203
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
204
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
205
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
204
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
205
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
206
206
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
207
207
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
208
208
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
209
209
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then red cross-marks should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message and correct answer section should not be displayed')
210
210
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
211
211
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
212
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
213
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
212
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
213
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
214
214
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
215
215
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
216
216
  });
@@ -79,7 +79,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
79
79
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flower': 1, 'Leaves': 2 });
80
80
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(9, 15);
81
81
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
82
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
82
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
83
83
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
84
84
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
85
85
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -87,7 +87,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
87
87
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
88
88
  /*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 green check-mark should be displayed besides the correct answer responses, a status message should not be displayed and correct answer section should not be displayed')
89
89
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
90
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
90
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
91
91
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
92
92
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
93
93
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -99,7 +99,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
99
99
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Stem': 1, 'Seed': 2 });
100
100
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(6, 15);
101
101
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
102
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
102
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
103
103
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
104
104
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
105
105
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -107,7 +107,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
107
107
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
108
108
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
109
109
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
110
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(0);
110
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
111
111
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
112
112
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(2);
113
113
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
121
121
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
122
122
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
123
123
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
124
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
124
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
125
125
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
126
126
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
127
127
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -129,7 +129,7 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
129
129
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
130
130
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
131
131
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(1);
132
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
132
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
133
133
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
134
134
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
135
135
  });
@@ -180,16 +180,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
180
180
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(7, 15);
181
181
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
182
182
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
183
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
184
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
183
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
184
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
185
185
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
186
186
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
187
187
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
188
  /*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 green check-mark should be displayed besides the correct answer responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
189
189
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
190
190
  fillInTheGapsDragAndDropPage.steps.verifyCorrectOptionIcon(0);
191
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
192
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
191
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
192
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
193
193
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
194
194
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
195
195
  });
@@ -200,16 +200,16 @@ describe('Create item page - Fill in the gaps with drag and drop: Partial differ
200
200
  fillInTheGapsDragAndDropPage.steps.verifyPreviewScore(0, 15);
201
201
  fillInTheGapsDragAndDropPage.steps.switchToGradingView();
202
202
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
203
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
204
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
203
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
204
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
205
205
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
206
206
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Petals'], ['Flower'], ['Leaves']]);
207
207
  fillInTheGapsDragAndDropPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
208
208
  /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then red cross-marks should be displayed besides all incorrect responses, no icon should be displayed beside unattempted response a status message should not be displayed and correct answer section should not be displayed')
209
209
  fillInTheGapsDragAndDropPage.steps.checkAnswer();
210
210
  fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(0);
211
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(1);
212
- fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectIconNotExist(2);
211
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(1);
212
+ fillInTheGapsDragAndDropPage.steps.verifyIncorrectOptionIcon(2);
213
213
  fillInTheGapsDragAndDropPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
214
214
  fillInTheGapsDragAndDropPage.steps.verifyCorrectAnswerSectionNotExists();*/
215
215
  });