itemengine-cypress-automation 1.0.119 → 1.0.121

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/editTabBasicSection.js +13 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +2 -0
  3. package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -0
  4. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +2 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +1 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +1 -4
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/allOrNothingForAllViews.smoke.js +273 -0
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/checkAnswerFunctionalityForAllViews.smoke.js +116 -0
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +136 -0
  11. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +224 -0
  12. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/checkAnswerFunctionalityForAllViews.smoke.js +120 -0
  13. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +158 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -4
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownAndDropdownMenuSection.js +246 -0
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +332 -0
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +409 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/headerSection.js +80 -0
  20. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +213 -0
  21. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/HeaderSection.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsBasic.js +2 -2
  23. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +1 -1
  24. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +2 -2
  25. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +68 -68
  26. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +6 -6
  27. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +1 -1
  28. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/setLimitSection.js +3 -289
  29. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specialCharactersSection.js +1 -1
  30. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/specifyCorrectAnswerSection.js +2 -2
  31. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +2 -23
  32. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +191 -0
  33. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +190 -0
  34. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +284 -0
  35. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/allOrNothingPenaltyScoring.js +52 -0
  36. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +113 -0
  37. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +217 -0
  38. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsBasic.js +234 -0
  39. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +217 -0
  40. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +217 -0
  41. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsBasic.js +136 -0
  42. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +197 -0
  43. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +169 -0
  44. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +197 -0
  45. package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +219 -0
  46. package/cypress/e2e/ILC/FillInTheGapsTextNew/checkAnswerFunctionalityForAllViews.smoke.js +115 -0
  47. package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabBasicSection.js +142 -0
  48. package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +152 -0
  49. package/cypress/e2e/ILC/FillInTheGapsTextNew/setLimitSection.js +39 -0
  50. package/cypress/e2e/ILC/MultipleSelection/studentViewSettings.js +2 -12
  51. package/cypress/e2e/ILC/ShortTextResponseNew/conditionalCheckboxes.js +497 -0
  52. package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +503 -0
  53. package/cypress/e2e/ILC/ShortTextResponseNew/responseAnswersAndAcceptedStudentInput.js +233 -0
  54. package/cypress/e2e/ILC/ShortTextResponseNew/specialCharactersSection.js +291 -0
  55. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +332 -0
  56. package/cypress/e2e/ILC/SingleSelection/studentViewSettings.js +2 -12
  57. package/cypress/e2e/ILC/TextEntryMath/editTabBasicSection.js +9 -8
  58. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +4 -4
  59. package/cypress/e2e/ILC/TextEntryMath/minimumScoringPenaltyPointsAndRoundingDropdown.js +8 -2
  60. package/cypress/e2e/ILC/TextEntryMath/specifyCorrectAnswerSection.js +5 -2
  61. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +334 -0
  62. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +419 -0
  63. package/cypress/e2e/ILC/TextEntryMathWithImage/checkAnswerFunctionalityForAllViews.smoke.js +166 -0
  64. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +166 -0
  65. package/cypress/e2e/ILC/UploadResponse/editTabScoringSection.js +51 -0
  66. package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +99 -0
  67. package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +71 -0
  68. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +155 -0
  69. package/cypress/e2e/ILC/UploadResponse/uploadResponseHeaderSection.js +66 -0
  70. package/cypress/e2e/migration/migration.js +6 -5
  71. package/cypress/e2e/migration/migration2.js +4 -3
  72. package/cypress/e2e/migration/migration3.js +4 -3
  73. package/cypress/e2e/migration/migration4.js +4 -3
  74. package/cypress/e2e/migration/migration5.js +4 -3
  75. package/cypress/fixtures/theme/ilc.json +3 -1
  76. package/cypress/pages/audioResponsePage.js +2 -1
  77. package/cypress/pages/components/additionalSettingsPanel.js +27 -0
  78. package/cypress/pages/components/autoScoredPreviewBase.js +1 -1
  79. package/cypress/pages/components/autoScoredScoringSection.js +1 -1
  80. package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +1 -1
  81. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +1 -1
  82. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +2 -2
  83. package/cypress/pages/components/autoScoredStudentViewSettings.js +8 -1
  84. package/cypress/pages/components/backgroundImageUploadComponent.js +5 -5
  85. package/cypress/pages/components/createQuestionBasePage.js +8 -2
  86. package/cypress/pages/components/essayResponseCommonComponents.js +6 -0
  87. package/cypress/pages/components/fillInTheGapsCommonComponents.js +13 -0
  88. package/cypress/pages/components/fillInTheGapsDragAndDropCommonComponents.js +40 -0
  89. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +422 -314
  90. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +438 -710
  91. package/cypress/pages/components/{figOverImageCanvasComponent.js → imageCanvasComponent.js} +274 -272
  92. package/cypress/pages/components/index.js +3 -3
  93. package/cypress/pages/components/maximumRecorderLengthComponent.js +55 -11
  94. package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +1 -1
  95. package/cypress/pages/components/questionInputFieldComponent.js +49 -23
  96. package/cypress/pages/components/scoringSectionBase.js +1 -1
  97. package/cypress/pages/createItemPage.js +67 -2
  98. package/cypress/pages/fillInTheGapsDragAndDropPage.js +172 -711
  99. package/cypress/pages/fillInTheGapsDropdownPage.js +75 -72
  100. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +4 -4
  101. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +109 -273
  102. package/cypress/pages/fillInTheGapsOverImageTextPage.js +49 -291
  103. package/cypress/pages/fillInTheGapsTextPage.js +52 -199
  104. package/cypress/pages/index.js +5 -5
  105. package/cypress/pages/multipleSelectionPage.js +1 -0
  106. package/cypress/pages/shortTextResponsePage.js +575 -33
  107. package/cypress/pages/singleSelectionGridPage.js +1 -2
  108. package/cypress/pages/singleSelectionPage.js +5 -6
  109. package/cypress/pages/textEntryMathPage.js +46 -22
  110. package/cypress/pages/textEntryMathWithImagePage.js +212 -0
  111. package/cypress/pages/uploadResponsePage.js +74 -21
  112. package/cypress/support/migrationHelpers/extractLrnQuestionData.js +73 -2
  113. package/cypress/support/migrationHelpers/lrnQestionTypesENUM.js +1 -0
  114. package/cypress/support/migrationHelpers/verifyIeQuestionData.js +49 -2
  115. package/package.json +1 -1
  116. package/cypress/e2e/ILC/AudioResponseNew/minimalRecorderStyle.js +0 -482
  117. package/cypress/e2e/ILC/EssayResponse/essayResponseEquationEditor.smoke.js +0 -412
  118. package/cypress/pages/components/figOverImageCommonComponent.js +0 -1113
  119. package/cypress/pages/dragAndDropIntoCategoriesAllOrNothingScoring.js +0 -1155
  120. package/cypress/pages/dragAndDropIntoCategoriesCellsScoring.js +0 -1561
  121. package/cypress/pages/dragAndDropIntoCategoriesResponseScoring.js +0 -1396
  122. package/cypress/pages/fillInTheGapsScoring.js +0 -5872
  123. package/cypress/pages/fillInTheGapsSetCorrectAnswerSection.js +0 -260
@@ -0,0 +1,39 @@
1
+ import { fillInTheGapsTextPage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+ const css = Cypress.env('css');
4
+
5
+ describe('Create item page - Fill in the gaps with text: Set limit section', () => {
6
+ before(() => {
7
+ cy.loginAs('admin');
8
+ });
9
+
10
+ describe('Fill in the gaps with text: Set limit section - Edit tab contents', () => {
11
+ abortEarlySetup();
12
+ before(() => {
13
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
14
+ cy.barsPreLoaderWait();
15
+ });
16
+
17
+ fillInTheGapsTextPage.tests.verifySetLimitSectionContents();
18
+ });
19
+
20
+ describe('Fill in the gaps with text: Set limit section : Edit tab functionality', () => {
21
+ abortEarlySetup();
22
+ before(() => {
23
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
24
+ cy.barsPreLoaderWait();
25
+ });
26
+
27
+ fillInTheGapsTextPage.tests.verifySetLimitSectionEditTabFunctionality();
28
+ });
29
+
30
+ describe('Fill in the gaps with text: Set limit section : Preview tab functionality', () => {
31
+ abortEarlySetup();
32
+ before(() => {
33
+ fillInTheGapsTextPage.steps.navigateToCreateQuestion('fill in the gaps with text');
34
+ cy.barsPreLoaderWait();
35
+ });
36
+
37
+ fillInTheGapsTextPage.tests.verifySetLimitSectionPreviewTabFunctionality();
38
+ });
39
+ });
@@ -157,10 +157,7 @@ describe('Create Item page - Multiple selection: Student view settings', () => {
157
157
  multipleSelectionPage.steps.allotPoints(20);
158
158
  });
159
159
 
160
- it('\'Allow student to check answer\' label and checkbox should be displayed and it should be unchecked by default', () => {
161
- utilities.verifyInnerText(multipleSelectionPage.allowStudentToCheckAnswerLabel(), 'Allow student to check answer');
162
- multipleSelectionPage.steps.verifyAllowStudentsToCheckAnswerCheckboxUnchecked();
163
- });
160
+ multipleSelectionPage.tests.verifyAllowStudentsToCheckAnswerLabelAndCheckboxCSS();
164
161
 
165
162
  it('When user checks the \'Allow student to check answer\' checkbox then \'Disable previous incorrect options\' checkbox and \'Maximum check answer attempts\' dropdown should be displayed', () => {
166
163
  multipleSelectionPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
@@ -177,14 +174,7 @@ describe('Create Item page - Multiple selection: Student view settings', () => {
177
174
  multipleSelectionPage.steps.checkDisablePreviousIncorrectOptionCheckbox();
178
175
  });
179
176
 
180
- it('\'Maximum check answer attempts\' should have \'No limit\' selected by default and on expanding the dropdown options 1 to 10 should also be displayed', () => {
181
- utilities.verifyInnerText(multipleSelectionPage.maximumCheckAnswerAttemptsDropdownLabel(), 'Maximum check answer attempts');
182
- utilities.verifyInnerText(multipleSelectionPage.maximumCheckAnswerAttemptsDropdown(), maxCheckAnswerAttemptsOptions[0]);
183
- multipleSelectionPage.steps.expandMaxCheckAnswerAttemptsDropdown();
184
- maxCheckAnswerAttemptsOptions.forEach((option, index) => {
185
- utilities.verifyInnerText(utilities.getNthElement(multipleSelectionPage.maximumCheckAnswerAttemptsDropdownListOptions(), index), option)
186
- });
187
- });
177
+ multipleSelectionPage.tests.verifyMaxCheckAnswerAttemptsDropdown();
188
178
 
189
179
  it('CSS of \'Allow students to check answer\' section', { tags: 'css' }, () => {
190
180
  utilities.verifyCSS(multipleSelectionPage.allowStudentToCheckAnswerLabel(), {
@@ -0,0 +1,497 @@
1
+ import { shortTextResponsePage } from "../../../pages";
2
+ import abortEarlySetup from "../../../support/helpers/abortEarly";
3
+
4
+ describe('Create item page - Short text response: Conditional checkboxes', () => {
5
+ before(() => {
6
+ cy.loginAs('admin');
7
+ });
8
+
9
+ describe('All Conditional checkboxes unchecked', () => {
10
+ abortEarlySetup();
11
+ before(() => {
12
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
13
+ shortTextResponsePage.steps.allotPoints(10);
14
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
15
+ shortTextResponsePage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
16
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
17
+ shortTextResponsePage.steps.switchToPreviewTab();
18
+ });
19
+
20
+ it('When user attempts the question with a sentence which includes the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
21
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
22
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
23
+ shortTextResponsePage.steps.checkAnswer();
24
+ shortTextResponsePage.steps.verifyIncorrectIcon();
25
+ });
26
+
27
+ it('When user attempts the question with a sentence which includes the answer but incorrect casing then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
28
+ shortTextResponsePage.steps.switchToEditTab();
29
+ shortTextResponsePage.steps.switchToPreviewTab();
30
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is displayed');
31
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
32
+ shortTextResponsePage.steps.checkAnswer();
33
+ shortTextResponsePage.steps.verifyCorrectIcon();
34
+ });
35
+
36
+ it('When user attempts the question with a sentence which includes the answer, correct casing but extra spaces between correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
37
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
38
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
39
+ shortTextResponsePage.steps.checkAnswer();
40
+ shortTextResponsePage.steps.verifyIncorrectIcon();
41
+ });
42
+
43
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
44
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
45
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
46
+ shortTextResponsePage.steps.checkAnswer();
47
+ shortTextResponsePage.steps.verifyIncorrectIcon();
48
+ });
49
+
50
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the correct response field should be displayed', () => {
51
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
52
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
53
+ shortTextResponsePage.steps.checkAnswer();
54
+ shortTextResponsePage.steps.verifyIncorrectIcon();
55
+ });
56
+
57
+ it('When user attempts the question with the exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
58
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
59
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
60
+ shortTextResponsePage.steps.checkAnswer();
61
+ shortTextResponsePage.steps.verifyCorrectIcon(0);
62
+ });
63
+ });
64
+
65
+ describe('Only \'Validate if answer is included in the response\' checkbox checked', () => {
66
+ abortEarlySetup();
67
+ before(() => {
68
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
69
+ shortTextResponsePage.steps.allotPoints(10);
70
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
71
+ shortTextResponsePage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
72
+ shortTextResponsePage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
73
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
74
+ shortTextResponsePage.steps.switchToPreviewTab();
75
+ });
76
+
77
+ it('When user attempts the question with a sentence which includes the answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
78
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
79
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
80
+ shortTextResponsePage.steps.checkAnswer();
81
+ shortTextResponsePage.steps.verifyCorrectIcon();
82
+ });
83
+
84
+ it('When user attempts the question with a sentence that includes the answer with incorrect casing, then full score should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
85
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
86
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
87
+ shortTextResponsePage.steps.checkAnswer();
88
+ shortTextResponsePage.steps.verifyCorrectIcon();
89
+ });
90
+
91
+ it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
92
+ shortTextResponsePage.steps.resetQuestionPreview();
93
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
94
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
95
+ shortTextResponsePage.steps.checkAnswer();
96
+ shortTextResponsePage.steps.verifyIncorrectIcon();
97
+ });
98
+
99
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
100
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
101
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
102
+ shortTextResponsePage.steps.checkAnswer();
103
+ shortTextResponsePage.steps.verifyCorrectIcon();
104
+ });
105
+
106
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
107
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
108
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
109
+ shortTextResponsePage.steps.checkAnswer();
110
+ shortTextResponsePage.steps.verifyCorrectIcon();
111
+ });
112
+
113
+ it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
114
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
115
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
116
+ shortTextResponsePage.steps.checkAnswer();
117
+ shortTextResponsePage.steps.verifyCorrectIcon();
118
+ });
119
+ });
120
+
121
+ describe('Only \'Case sensitive\' checkbox checked', () => {
122
+ abortEarlySetup();
123
+ before(() => {
124
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
125
+ shortTextResponsePage.steps.allotPoints(10);
126
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
127
+ shortTextResponsePage.steps.checkConditionalCheckbox('Case sensitive');
128
+ shortTextResponsePage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
129
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
130
+ shortTextResponsePage.steps.switchToPreviewTab();
131
+ });
132
+
133
+ it('When user attempts the question with a sentence which includes the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
134
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
135
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
136
+ shortTextResponsePage.steps.checkAnswer();
137
+ shortTextResponsePage.steps.verifyIncorrectIcon();
138
+ });
139
+
140
+ it('When user attempts the question with a sentence that includes the answer with incorrect casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
141
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
142
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
143
+ shortTextResponsePage.steps.checkAnswer();
144
+ shortTextResponsePage.steps.verifyIncorrectIcon();
145
+ });
146
+
147
+ it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
148
+ shortTextResponsePage.steps.resetQuestionPreview();
149
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
150
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
151
+ shortTextResponsePage.steps.checkAnswer();
152
+ shortTextResponsePage.steps.verifyIncorrectIcon();
153
+ });
154
+
155
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
156
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
157
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
158
+ shortTextResponsePage.steps.checkAnswer();
159
+ shortTextResponsePage.steps.verifyIncorrectIcon();
160
+ });
161
+
162
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the correct response field should be displayed', () => {
163
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
164
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
165
+ shortTextResponsePage.steps.checkAnswer();
166
+ shortTextResponsePage.steps.verifyIncorrectIcon();
167
+ });
168
+
169
+ it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
170
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
171
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
172
+ shortTextResponsePage.steps.checkAnswer();
173
+ shortTextResponsePage.steps.verifyCorrectIcon();
174
+ });
175
+ });
176
+
177
+ describe('Only \'Ignore extra spaces\' checkbox checked', () => {
178
+ abortEarlySetup();
179
+ before(() => {
180
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
181
+ shortTextResponsePage.steps.allotPoints(10);
182
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
183
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
184
+ shortTextResponsePage.steps.switchToPreviewTab();
185
+ });
186
+
187
+ it('When user attempts the question with a sentence which includes the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
188
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
189
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
190
+ shortTextResponsePage.steps.checkAnswer();
191
+ shortTextResponsePage.steps.verifyIncorrectIcon();
192
+ });
193
+
194
+ it('When user attempts the question with a sentence that includes the answer with incorrect casing, then full points should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
195
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
196
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
197
+ shortTextResponsePage.steps.checkAnswer();
198
+ shortTextResponsePage.steps.verifyCorrectIcon();
199
+ });
200
+
201
+ it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
202
+ shortTextResponsePage.steps.resetQuestionPreview();
203
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
204
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
205
+ shortTextResponsePage.steps.checkAnswer();
206
+ shortTextResponsePage.steps.verifyIncorrectIcon();
207
+ });
208
+
209
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
210
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
211
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
212
+ shortTextResponsePage.steps.checkAnswer();
213
+ shortTextResponsePage.steps.verifyCorrectIcon();
214
+ });
215
+
216
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
217
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
218
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
219
+ shortTextResponsePage.steps.checkAnswer();
220
+ shortTextResponsePage.steps.verifyCorrectIcon();
221
+ });
222
+
223
+ it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
224
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
225
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
226
+ shortTextResponsePage.steps.checkAnswer();
227
+ shortTextResponsePage.steps.verifyCorrectIcon();
228
+ });
229
+ });
230
+
231
+ describe('\'Validate if answer is included in the response\' checkbox and \'Case sensitive\' checkbox are checked', () => {
232
+ abortEarlySetup();
233
+ before(() => {
234
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
235
+ shortTextResponsePage.steps.allotPoints(10);
236
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
237
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
238
+ shortTextResponsePage.steps.checkConditionalCheckbox('Case sensitive');
239
+ shortTextResponsePage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
240
+ shortTextResponsePage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
241
+ shortTextResponsePage.steps.switchToPreviewTab();
242
+ });
243
+
244
+ it('When user attempts the question with a sentence which includes the answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
245
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
246
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
247
+ shortTextResponsePage.steps.checkAnswer();
248
+ shortTextResponsePage.steps.verifyCorrectIcon();
249
+ });
250
+
251
+ it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
252
+ shortTextResponsePage.steps.switchToEditTab();
253
+ shortTextResponsePage.steps.switchToPreviewTab();
254
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
255
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
256
+ shortTextResponsePage.steps.checkAnswer();
257
+ shortTextResponsePage.steps.verifyIncorrectIcon();
258
+ });
259
+
260
+ it('When user attempts the question with a sentence that includes part of the answer with correct casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
261
+ shortTextResponsePage.steps.resetQuestionPreview();
262
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('This image has Flower');
263
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
264
+ shortTextResponsePage.steps.checkAnswer();
265
+ shortTextResponsePage.steps.verifyIncorrectIcon();
266
+ });
267
+
268
+ it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
269
+ shortTextResponsePage.steps.resetQuestionPreview();
270
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
271
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
272
+ shortTextResponsePage.steps.checkAnswer();
273
+ shortTextResponsePage.steps.verifyIncorrectIcon();
274
+ });
275
+
276
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
277
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
278
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
279
+ shortTextResponsePage.steps.checkAnswer();
280
+ shortTextResponsePage.steps.verifyIncorrectIcon();
281
+ });
282
+
283
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
284
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
285
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
286
+ shortTextResponsePage.steps.checkAnswer();
287
+ shortTextResponsePage.steps.verifyCorrectIcon();
288
+ });
289
+
290
+ it('When user attempts the question with exact answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
291
+ shortTextResponsePage.steps.resetQuestionPreview();
292
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
293
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
294
+ shortTextResponsePage.steps.checkAnswer();
295
+ shortTextResponsePage.steps.verifyCorrectIcon();
296
+ });
297
+ });
298
+
299
+ describe('\'Validate if answer is included in the response\' checkbox and \'Ignore extra spaces\' checkbox are checked', () => {
300
+ abortEarlySetup();
301
+ before(() => {
302
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
303
+ shortTextResponsePage.steps.allotPoints(10);
304
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
305
+ shortTextResponsePage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
306
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
307
+ shortTextResponsePage.steps.switchToPreviewTab();
308
+ });
309
+
310
+ it('When user attempts the question with a sentence which includes the answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
311
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
312
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
313
+ shortTextResponsePage.steps.checkAnswer();
314
+ shortTextResponsePage.steps.verifyCorrectIcon();
315
+ });
316
+
317
+ it('When user attempts the question with a sentence which includes the answer with incorrect casing then full points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
318
+ shortTextResponsePage.steps.switchToEditTab();
319
+ shortTextResponsePage.steps.switchToPreviewTab();
320
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
321
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
322
+ shortTextResponsePage.steps.checkAnswer();
323
+ shortTextResponsePage.steps.verifyCorrectIcon();
324
+ });
325
+
326
+ it('When user attempts the question with a sentence that includes part of the answer with correct casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
327
+ shortTextResponsePage.steps.resetQuestionPreview();
328
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('This image has Flower');
329
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
330
+ shortTextResponsePage.steps.checkAnswer();
331
+ shortTextResponsePage.steps.verifyIncorrectIcon();
332
+ });
333
+
334
+ it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
335
+ shortTextResponsePage.steps.resetQuestionPreview();
336
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
337
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
338
+ shortTextResponsePage.steps.checkAnswer();
339
+ shortTextResponsePage.steps.verifyIncorrectIcon();
340
+ });
341
+
342
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the response field should be displayed', () => {
343
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
344
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
345
+ shortTextResponsePage.steps.checkAnswer();
346
+ shortTextResponsePage.steps.verifyCorrectIcon();
347
+ });
348
+
349
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
350
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
351
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
352
+ shortTextResponsePage.steps.checkAnswer();
353
+ shortTextResponsePage.steps.verifyCorrectIcon();
354
+ });
355
+
356
+ it('When user attempts the question with exact answer, then full points should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
357
+ shortTextResponsePage.steps.resetQuestionPreview();
358
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
359
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
360
+ shortTextResponsePage.steps.checkAnswer();
361
+ shortTextResponsePage.steps.verifyCorrectIcon();
362
+ });
363
+ });
364
+
365
+ describe('\'Case sensitive\' checkbox and \'Ignore extra spaces\' checkbox are checked', () => {
366
+ abortEarlySetup();
367
+ before(() => {
368
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
369
+ shortTextResponsePage.steps.allotPoints(10);
370
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
371
+ shortTextResponsePage.steps.checkConditionalCheckbox('Case sensitive');
372
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
373
+ shortTextResponsePage.steps.switchToPreviewTab();
374
+ });
375
+
376
+ it('When user attempts the question with a sentence which includes the answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
377
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
378
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
379
+ shortTextResponsePage.steps.checkAnswer();
380
+ shortTextResponsePage.steps.verifyIncorrectIcon();
381
+ });
382
+
383
+ it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
384
+ shortTextResponsePage.steps.switchToEditTab();
385
+ shortTextResponsePage.steps.switchToPreviewTab();
386
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
387
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
388
+ shortTextResponsePage.steps.checkAnswer();
389
+ shortTextResponsePage.steps.verifyIncorrectIcon();
390
+ });
391
+
392
+ it('When user attempts the question with a sentence that includes part of the answer with correct casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
393
+ shortTextResponsePage.steps.resetQuestionPreview();
394
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('This image has Flower');
395
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
396
+ shortTextResponsePage.steps.checkAnswer();
397
+ shortTextResponsePage.steps.verifyIncorrectIcon();
398
+ });
399
+
400
+ it('When user attempts the question with a sentence which includes the answer with correct casing but extra spaces between the correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
401
+ shortTextResponsePage.steps.resetQuestionPreview();
402
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
403
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
404
+ shortTextResponsePage.steps.checkAnswer();
405
+ shortTextResponsePage.steps.verifyIncorrectIcon();
406
+ });
407
+
408
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
409
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
410
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
411
+ shortTextResponsePage.steps.checkAnswer();
412
+ shortTextResponsePage.steps.verifyIncorrectIcon();
413
+ });
414
+
415
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
416
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
417
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
418
+ shortTextResponsePage.steps.checkAnswer();
419
+ shortTextResponsePage.steps.verifyCorrectIcon();
420
+ });
421
+
422
+ it('When user attempts the question with exact answer, then full points should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
423
+ shortTextResponsePage.steps.resetQuestionPreview();
424
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
425
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
426
+ shortTextResponsePage.steps.checkAnswer();
427
+ shortTextResponsePage.steps.verifyCorrectIcon();
428
+ });
429
+ });
430
+
431
+ describe('All conditional checkboxes checked', () => {
432
+ abortEarlySetup();
433
+ before(() => {
434
+ shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
435
+ shortTextResponsePage.steps.allotPoints(10);
436
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
437
+ shortTextResponsePage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
438
+ shortTextResponsePage.steps.checkConditionalCheckbox('Case sensitive');
439
+ shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
440
+ shortTextResponsePage.steps.switchToPreviewTab();
441
+ });
442
+
443
+ it('When user attempts the question with a sentence which includes the answer then full points should be awarded and when user clicks on \'Check answer\' button, Green check mark beside the response field should be displayed', () => {
444
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
445
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
446
+ shortTextResponsePage.steps.checkAnswer();
447
+ shortTextResponsePage.steps.verifyCorrectIcon();
448
+ });
449
+
450
+ it('When user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
451
+ shortTextResponsePage.steps.switchToEditTab();
452
+ shortTextResponsePage.steps.switchToPreviewTab();
453
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('flower is Displayed in this image');
454
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
455
+ shortTextResponsePage.steps.checkAnswer();
456
+ shortTextResponsePage.steps.verifyIncorrectIcon();
457
+ });
458
+
459
+ it('When user attempts the question with a sentence that includes part of the answer with correct casing, then zero points should be awarded and when user clicks on \'Check answer\' button, a red cross mark should be displayed beside response field', () => {
460
+ shortTextResponsePage.steps.resetQuestionPreview();
461
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('This image has Flower');
462
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
463
+ shortTextResponsePage.steps.checkAnswer();
464
+ shortTextResponsePage.steps.verifyIncorrectIcon();
465
+ });
466
+
467
+ it('When user attempts the question with a sentence which includes the answer with correct casing but extra spaces between the correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the correct response field should be displayed', () => {
468
+ shortTextResponsePage.steps.resetQuestionPreview();
469
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
470
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
471
+ shortTextResponsePage.steps.checkAnswer();
472
+ shortTextResponsePage.steps.verifyIncorrectIcon();
473
+ });
474
+
475
+ it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then zero points should be awarded and when user clicks on \'Check answer\' button, red cross mark beside the response field should be displayed', () => {
476
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
477
+ shortTextResponsePage.steps.verifyPreviewScore(0, 10);
478
+ shortTextResponsePage.steps.checkAnswer();
479
+ shortTextResponsePage.steps.verifyIncorrectIcon();
480
+ });
481
+
482
+ it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user clicks on \'Check answer\' button, green check mark beside the correct response field should be displayed', () => {
483
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
484
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
485
+ shortTextResponsePage.steps.checkAnswer();
486
+ shortTextResponsePage.steps.verifyCorrectIcon();
487
+ });
488
+
489
+ it('When user attempts the question with exact answer, then full points should be awarded and when user clicks on \'Check answer\' button, a green check mark should be displayed beside response field', () => {
490
+ shortTextResponsePage.steps.resetQuestionPreview();
491
+ shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
492
+ shortTextResponsePage.steps.verifyPreviewScore(10, 10);
493
+ shortTextResponsePage.steps.checkAnswer();
494
+ shortTextResponsePage.steps.verifyCorrectIcon();
495
+ });
496
+ });
497
+ });