itemengine-cypress-automation 1.0.47 → 1.0.50

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettings.js +1 -1139
  2. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsBasic.js +202 -0
  3. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsCustomSpecialCharachters.js +120 -0
  4. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsMultilineResponse.js +189 -0
  5. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsResponseAccordions.js +431 -0
  6. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAdditionalSettingsStudentResponseAreaAndLayout.js +262 -0
  7. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingScoring.js +1 -763
  8. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingWithAlternateAnswer.js +613 -0
  9. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextAllOrNothingWithAlternateAnswerMatchFromAllResponsesTrue.js +172 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextConditionalCheckboxes.js +0 -154
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextEditTabBasicSection.js +1 -76
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextMatchFromAllResponses.js +162 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsScoring.js +0 -999
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswer.js +849 -0
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialDifferentWeightsWithAlternateAnswerMatchFromAllResponsesTrue.js +171 -0
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsScoring.js +0 -885
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswer.js +738 -0
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextPartialEqualWeightsWithAlternateAnswerMatchFromAllResponsesTrue.js +168 -0
  19. package/cypress/e2e/ILC/FillInTheGapsOverImageText/fillInTheGapsOverImageTextSupportedFileTypes.js +86 -0
  20. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +246 -0
  21. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingCorrectPointsEqualToAlternatePoints.js +246 -0
  22. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +246 -0
  23. package/cypress/e2e/ILC/ListOrdering/{listOrderingAllOrNothingScoring.js → ListOrderingScoringFiles/allOrNothingScoring.js} +3 -3
  24. package/cypress/e2e/ILC/ListOrdering/{listOrderingManuallyAndNonScoredScoring.js → ListOrderingScoringFiles/manuallyAndNonScoredScoring.js} +3 -3
  25. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +316 -0
  26. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +287 -0
  27. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +316 -0
  28. package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialDifferentWeightsScoring.js → ListOrderingScoringFiles/partialDifferentWeightsScoring.js} +3 -3
  29. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +286 -0
  30. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +258 -0
  31. package/cypress/e2e/ILC/ListOrdering/ListOrderingScoringFiles/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +287 -0
  32. package/cypress/e2e/ILC/ListOrdering/{listOrderingPartialEqualWeightsScoring.js → ListOrderingScoringFiles/partialEqualWeightsScoring.js} +3 -3
  33. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingAlternatePointsGreaterThanCorrectPoints.js +261 -0
  34. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingCorrectPointsEqualToAlternatePoints.js +261 -0
  35. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +261 -0
  36. package/cypress/e2e/ILC/ListSorting/{listSortingAllOrNothingScoring.js → ListSortingScoringFiles/allOrNothingScoring.js} +3 -3
  37. package/cypress/e2e/ILC/ListSorting/{listSortingManuallyAndNonScoredScoring.js → ListSortingScoringFiles/manuallyAndNonScoredScoring.js} +3 -3
  38. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsAlternatePointsGreaterThanCorrectPoints.js +338 -0
  39. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsCorrectPointsEqualToAlternatePoints.js +303 -0
  40. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialDifferentWeightsCorrectPointsGreaterThanAlternatePoints.js +337 -0
  41. package/cypress/e2e/ILC/ListSorting/{listSortingPartialDifferentWeightsScoring.js → ListSortingScoringFiles/partialDifferentWeightsScoring.js} +3 -3
  42. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsAlternatePointsGreaterThanCorrectPoints.js +307 -0
  43. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsCorrectPointsEqualToAlternatePoints.js +272 -0
  44. package/cypress/e2e/ILC/ListSorting/ListSortingScoringFiles/partialEqualWeightsCorrectPointsGreaterThanAlternatePoints.js +307 -0
  45. package/cypress/e2e/ILC/ListSorting/{listSortingPartialEqualWeightsScoring.js → ListSortingScoringFiles/partialEqualWeightsScoring.js} +3 -3
  46. package/cypress/e2e/ILC/Passage/multipageContentEditTab.js +242 -0
  47. package/cypress/e2e/ILC/Passage/passageAdditionalSettings.js +99 -0
  48. package/cypress/e2e/ILC/Passage/passageEditTab.js +241 -0
  49. package/cypress/e2e/ILC/Passage/passageHeaderSection.js +73 -0
  50. package/cypress/e2e/ILC/Passage/passagePreviewTab.js +246 -0
  51. package/package.json +1 -1
  52. package/cypress/e2e/ILC/ListOrdering/listOrderingAllOrNothingScoringWithAlternateAnswer.js +0 -712
  53. package/cypress/e2e/ILC/ListOrdering/listOrderingPartialDifferentWeightsScoringWithAlternateAnswer.js +0 -895
  54. package/cypress/e2e/ILC/ListOrdering/listOrderingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -807
  55. package/cypress/e2e/ILC/ListSorting/listSortingAllOrNothingScoringWithAlternateAnswer.js +0 -759
  56. package/cypress/e2e/ILC/ListSorting/listSortingPartialDifferentWeightsScoringWithAlternateTab.js +0 -952
  57. package/cypress/e2e/ILC/ListSorting/listSortingPartialEqualWeightsScoringWithAlternateAnswer.js +0 -860
@@ -1,712 +0,0 @@
1
- import { listOrderingPage } from "../../../pages/listOrderingPage";
2
- import abortEarlySetup from "../../../support/helpers/abortEarly";
3
- import utilities from "../../../support/helpers/utilities";
4
-
5
- let options = ['sprout', 'plant', 'flower', 'seed'];
6
- let correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
7
- let alternateCorrectAnswerArray = ['seed', 'flower', 'sprout', 'plant'];
8
-
9
- describe('Create Item page - List ordering: All or nothing scoring with alternate answer', () => {
10
- before(() => {
11
- cy.loginAs('admin');
12
- });
13
-
14
- describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are more than Alternate Answer points', () => {
15
- abortEarlySetup();
16
- before(() => {
17
- cy.log('Navigating to list ordering question type');
18
- listOrderingPage.steps.navigateToCreateQuestion('list ordering');
19
- cy.log('Adding question instructions, setting correct answer order and adding points for Autoscored scoring type and switching to Preview tab');
20
- cy.barsPreLoaderWait();
21
- listOrderingPage.steps.addQuestionInstructions();
22
- listOrderingPage.steps.addInputToOptionsInputField(options);
23
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
24
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('sprout', 1);
25
- listOrderingPage.steps.allotPoints('20');
26
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
27
- listOrderingPage.steps.clickOnAddAlternateAnswerButton();
28
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
29
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('plant', 3);
30
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('flower', 1);
31
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(alternateCorrectAnswerArray);
32
- listOrderingPage.steps.allotPoints('12');
33
- listOrderingPage.steps.expandAdditonalSettings();
34
- listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
35
- listOrderingPage.steps.switchToPreviewTab();
36
- });
37
-
38
- it('When the user selects \'Show correct answer\' checkbox without attempting the question then correct/incorrect icons should not be displayed, correct/incorrect answer label and border should not be displayed and the correct tab order should be displayed in the \'Correct answers:\' container ', () => {
39
- cy.log('Total points displayed besides Show correct answer checkbox should be of Correct Answer points')
40
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
41
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
42
- listOrderingPage.steps.verifyCorrectIncorrectBorderNotVisible();
43
- listOrderingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
44
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
45
- cy.log('Post step: Unchecking the show correct answer checkbox')
46
- listOrderingPage.steps.uncheckShowCorrectAnswerCheckbox();
47
- });
48
-
49
- it('When the user attempts the question according to the correct tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
50
- listOrderingPage.steps.resetQuestionPreview(options);
51
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
52
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
53
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(correctAnswerArray);
54
- listOrderingPage.steps.verifyPreviewTabScoreText(20, 20);
55
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
56
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
57
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
58
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
59
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
60
- listOrderingPage.steps.verifyCorrectAttemptBorder();
61
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
62
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
63
-
64
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
65
-
66
- cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
67
- listOrderingPage.steps.checkAnswer()
68
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
69
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
70
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
71
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
72
- listOrderingPage.steps.verifyCorrectAttemptBorder();
73
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
74
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
75
- });
76
-
77
- it('When the user attempts the question according to the alternate tab then user should be awarded with points of the alternate tab(less than full points) and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
78
- listOrderingPage.steps.resetQuestionPreview(options);
79
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
80
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
81
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
82
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(alternateCorrectAnswerArray);
83
- listOrderingPage.steps.verifyPreviewTabScoreText(12, 20);
84
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
85
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
86
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
87
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
88
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
89
- listOrderingPage.steps.verifyCorrectAttemptBorder();
90
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
91
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
92
-
93
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
94
-
95
- cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
96
- listOrderingPage.steps.checkAnswer()
97
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
98
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
99
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
100
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
101
- listOrderingPage.steps.verifyCorrectAttemptBorder();
102
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
103
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
104
- });
105
-
106
- it('When the user attempts the question partially correct exclusively according to the correct tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the correct tab with numeration', () => {
107
- listOrderingPage.steps.resetQuestionPreview(options);
108
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
109
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
110
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'sprout', 'plant', 'seed']);
111
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
112
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
113
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
114
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
115
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
116
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
117
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
118
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
119
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'flower'], ['1', '4']);
120
-
121
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
122
-
123
- cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
124
- listOrderingPage.steps.checkAnswer()
125
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
126
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
127
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
128
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
129
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
130
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
131
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
132
- });
133
-
134
- it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the correct tab with numeration', () => {
135
- listOrderingPage.steps.resetQuestionPreview(options);
136
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
137
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
138
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
139
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
140
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
141
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
142
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
143
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
144
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
145
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
146
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '4']);
147
-
148
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
149
-
150
- cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
151
- listOrderingPage.steps.checkAnswer()
152
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
153
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
154
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
155
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
156
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
157
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
158
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
159
- });
160
-
161
- it('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the options ordered according to the correct tab and red cross-mark icons should be displayed beside the options ordered according to the alternate tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the correct tab with numeration', () => {
162
- listOrderingPage.steps.resetQuestionPreview(options);
163
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
164
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
165
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
166
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'sprout', 'flower', 'plant']);
167
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
168
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
169
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
170
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
171
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
172
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
173
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
174
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
175
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['plant', 'flower'], ['3', '4']);
176
-
177
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
178
-
179
- cy.log('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the options ordered according to the correct tab and red cross-mark icons should be displayed beside the options ordered according to the alternate tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
180
- listOrderingPage.steps.checkAnswer()
181
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
182
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
183
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
184
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
185
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
186
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
187
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
188
- });
189
-
190
- it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the correct tab with numeration', () => {
191
- listOrderingPage.steps.resetQuestionPreview(options);
192
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
193
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
194
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'plant', 'flower', 'sprout']);
195
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
196
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
197
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
198
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
199
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
200
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
201
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
202
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
203
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['sprout', 'plant', 'flower'], ['2', '3', '4']);
204
-
205
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
206
-
207
- cy.log('Race condition:When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
208
- listOrderingPage.steps.checkAnswer();
209
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
210
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
211
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
212
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
213
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
214
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
215
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
216
- });
217
-
218
- it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all the options, the correct answer container with all correct answers from the alternate tab along with numeration should be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
219
- listOrderingPage.steps.resetQuestionPreview(options);
220
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
221
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
222
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
223
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
224
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
225
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
226
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
227
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
228
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
229
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
230
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
231
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
232
-
233
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
234
-
235
- cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed beside all the options, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
236
- listOrderingPage.steps.checkAnswer();
237
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
238
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
239
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
240
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
241
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
242
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
243
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
244
- });
245
- });
246
-
247
- //Failing due to - https://redmine.zeuslearning.com/issues/537481
248
- describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Alternate Answer points are more than Correct Answer points', () => {
249
- abortEarlySetup();
250
- before(() => {
251
- cy.log('Navigating to list ordering question type');
252
- listOrderingPage.steps.navigateToCreateQuestion('list ordering');
253
- cy.log('Adding question instructions, setting correct answer order and adding points for Autoscored scoring type and switching to Preview tab');
254
- cy.barsPreLoaderWait();
255
- listOrderingPage.steps.addQuestionInstructions();
256
- listOrderingPage.steps.addInputToOptionsInputField(options);
257
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
258
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('sprout', 1);
259
- listOrderingPage.steps.allotPoints('20');
260
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
261
- listOrderingPage.steps.clickOnAddAlternateAnswerButton();
262
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
263
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('plant', 3);
264
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('flower', 1);
265
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(alternateCorrectAnswerArray);
266
- listOrderingPage.steps.allotPoints('25');
267
- listOrderingPage.steps.expandAdditonalSettings();
268
- listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
269
- listOrderingPage.steps.switchToPreviewTab();
270
- });
271
-
272
- it('When the user selects \'Show correct answer\' checkbox without ordering the options then correct/incorrect icons should not be displayed, correct/incorrect answer label and border should not be displayed and the alternate tab order should be displayed in the \'Correct answers:\' container', () => {
273
- cy.log('Total points displayed besides Show correct answer checkbox should be of alternate answer points')
274
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
275
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
276
- listOrderingPage.steps.verifyCorrectIncorrectBorderNotVisible();
277
- listOrderingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
278
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(alternateCorrectAnswerArray, ['1', '2', '3', '4']);
279
- cy.log('Post step: Unchecking the show correct answer checkbox')
280
- listOrderingPage.steps.uncheckShowCorrectAnswerCheckbox();
281
- });
282
-
283
- it('When the user attempts the question according to the correct tab then user should be awarded with points of the correct tab(less than full points) and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
284
- listOrderingPage.steps.resetQuestionPreview(options);
285
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
286
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
287
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(correctAnswerArray);
288
- listOrderingPage.steps.verifyPreviewTabScoreText(20, 25);
289
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
290
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
291
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
292
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
293
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
294
- listOrderingPage.steps.verifyCorrectAttemptBorder();
295
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
296
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
297
-
298
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
299
-
300
- cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
301
- listOrderingPage.steps.checkAnswer()
302
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
303
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
304
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
305
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
306
- listOrderingPage.steps.verifyCorrectAttemptBorder();
307
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
308
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
309
- });
310
-
311
- it('When the user attempts the question according to the alternate tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
312
- listOrderingPage.steps.resetQuestionPreview(options);
313
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
314
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
315
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
316
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(alternateCorrectAnswerArray);
317
- listOrderingPage.steps.verifyPreviewTabScoreText(25, 25);
318
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
319
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
320
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
321
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
322
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
323
- listOrderingPage.steps.verifyCorrectAttemptBorder();
324
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
325
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
326
-
327
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
328
-
329
- cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
330
- listOrderingPage.steps.checkAnswer()
331
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
332
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
333
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
334
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
335
- listOrderingPage.steps.verifyCorrectAttemptBorder();
336
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
337
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
338
- });
339
-
340
- it('When the user attempts the question partially correct exclusively according to the correct tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
341
- listOrderingPage.steps.resetQuestionPreview(options);
342
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
343
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
344
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'sprout', 'plant', 'seed']);
345
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
346
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
347
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
348
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
349
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
350
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
351
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
352
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
353
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'flower', 'sprout', 'plant'], ['1', '2', '3', '4']);
354
-
355
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
356
-
357
- cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
358
- listOrderingPage.steps.checkAnswer()
359
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
360
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
361
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
362
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
363
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
364
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
365
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
366
- });
367
-
368
- it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
369
- listOrderingPage.steps.resetQuestionPreview(options);
370
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
371
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
372
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
373
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
374
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
375
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
376
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
377
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
378
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
379
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
380
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '4']);
381
-
382
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
383
-
384
- cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
385
- listOrderingPage.steps.checkAnswer()
386
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
387
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
388
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
389
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
390
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
391
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
392
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
393
- });
394
-
395
- it('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the options ordered according to the alternate tab and red cross-mark icons should be displayed beside the options ordered according to the correct tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the alternate tab with numeration', () => {
396
- listOrderingPage.steps.resetQuestionPreview(options);
397
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
398
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
399
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
400
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'sprout', 'flower', 'plant']);
401
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
402
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
403
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
404
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
405
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
406
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
407
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
408
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
409
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['sprout', 'plant'], ['2', '3']);
410
-
411
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
412
-
413
- cy.log('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the options ordered according to the alternate tab and red cross-mark icons should be displayed beside the options ordered according to the correct tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
414
- listOrderingPage.steps.checkAnswer()
415
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
416
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
417
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
418
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
419
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
420
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
421
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
422
- });
423
-
424
- it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the alternate tab with numeration', () => {
425
- listOrderingPage.steps.resetQuestionPreview(options);
426
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
427
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
428
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'plant', 'flower', 'sprout']);
429
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
430
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
431
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
432
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
433
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
434
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
435
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
436
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
437
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['flower', 'sprout', 'plant'], ['2', '3', '4']);
438
-
439
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
440
-
441
- cy.log('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
442
- listOrderingPage.steps.checkAnswer()
443
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
444
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
445
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
446
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
447
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
448
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
449
- });
450
-
451
- it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all the options, the correct answer container with all correct answers from the alternate tab along with numeration should be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
452
- listOrderingPage.steps.resetQuestionPreview(options);
453
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
454
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
455
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
456
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 25);
457
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
458
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
459
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
460
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
461
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
462
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(alternateCorrectAnswerArray, ['1', '2', '3', '4']);
463
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
464
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
465
-
466
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
467
-
468
- cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed beside all the options, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
469
- listOrderingPage.steps.checkAnswer();
470
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
471
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
472
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
473
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
474
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
475
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
476
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
477
- });
478
- });
479
-
480
- describe('Question Preview: AutoScored - All or Nothing with alternate answer: Alternate answer case: When Correct Answer points are equal to the Alternate Answer points', () => {
481
- abortEarlySetup();
482
- before(() => {
483
- cy.log('Navigating to list ordering question type');
484
- listOrderingPage.steps.navigateToCreateQuestion('list ordering');
485
- cy.log('Adding question instructions, setting correct answer order and adding points for Autoscored scoring type and switching to Preview tab');
486
- cy.barsPreLoaderWait();
487
- listOrderingPage.steps.addQuestionInstructions();
488
- listOrderingPage.steps.addInputToOptionsInputField(options);
489
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
490
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('sprout', 1);
491
- listOrderingPage.steps.allotPoints('20');
492
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(correctAnswerArray);
493
- listOrderingPage.steps.clickOnAddAlternateAnswerButton();
494
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('seed', 0);
495
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('plant', 3);
496
- listOrderingPage.steps.clickAndReorderOptionInSetCorrectAnswerSection('flower', 1);
497
- listOrderingPage.steps.verifyOptionsTextContentInSetCorrectAnswerSection(alternateCorrectAnswerArray);
498
- listOrderingPage.steps.allotPoints('20');
499
- listOrderingPage.steps.expandAdditonalSettings();
500
- listOrderingPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
501
- listOrderingPage.steps.switchToPreviewTab();
502
- });
503
-
504
- it('When the user selects \'Show correct answer\' checkbox without attempting the question then correct/incorrect icons should not be displayed, correct/incorrect answer label and border should not be displayed and the correct tab order should be displayed in the \'Correct answers:\' container', () => {
505
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
506
- listOrderingPage.steps.verifyCorrectIncorrectBorderNotVisible();
507
- listOrderingPage.steps.verifyCorrectIncorrectIconsDoesNotExist();
508
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
509
- cy.log('Post step: Unchecking the show correct answer checkbox')
510
- listOrderingPage.steps.uncheckShowCorrectAnswerCheckbox();
511
- });
512
-
513
- it('When the user attempts the question according to the correct tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
514
- listOrderingPage.steps.resetQuestionPreview(options);
515
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
516
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
517
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(correctAnswerArray);
518
- listOrderingPage.steps.verifyPreviewTabScoreText(20, 20);
519
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
520
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
521
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
522
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
523
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
524
- listOrderingPage.steps.verifyCorrectAttemptBorder();
525
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
526
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
527
-
528
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
529
-
530
- cy.log('When the user attempts the question according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
531
- listOrderingPage.steps.checkAnswer()
532
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
533
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
534
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
535
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
536
- listOrderingPage.steps.verifyCorrectAttemptBorder();
537
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
538
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
539
- });
540
-
541
- it('When the user attempts the question according to the alternate tab then user should be awarded with full points and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed', () => {
542
- listOrderingPage.steps.resetQuestionPreview(options);
543
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
544
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
545
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
546
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(alternateCorrectAnswerArray);
547
- listOrderingPage.steps.verifyPreviewTabScoreText(20, 20);
548
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
549
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
550
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
551
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
552
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
553
- listOrderingPage.steps.verifyCorrectAttemptBorder();
554
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
555
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
556
-
557
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
558
-
559
- cy.log('When the user attempts the question according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside all the options, \'Correct\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
560
- listOrderingPage.steps.checkAnswer()
561
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
562
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
563
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
564
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
565
- listOrderingPage.steps.verifyCorrectAttemptBorder();
566
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Correct');
567
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
568
- });
569
-
570
- it('When the user attempts the question partially correct exclusively according to the correct tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the correct tab with numeration', () => {
571
- listOrderingPage.steps.resetQuestionPreview(options);
572
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
573
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
574
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'sprout', 'plant', 'seed']);
575
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
576
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
577
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
578
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
579
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
580
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
581
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
582
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
583
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'flower'], ['1', '4']);
584
-
585
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
586
-
587
- cy.log('When the user attempts the question partially correct exclusively according to the correct tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the correct tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
588
- listOrderingPage.steps.checkAnswer()
589
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
590
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
591
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('plant');
592
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
593
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
594
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
595
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
596
- });
597
-
598
- it('When the user attempts the question partially correct exclusively according to the alternate tab then 0 points should be awarded and on selecting \'Show correct answer\' checkbox green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should contain the correct answers of the incorrectly attempted options from the alternate tab with numeration', () => {
599
- listOrderingPage.steps.resetQuestionPreview(options);
600
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 1);
601
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['plant', 'flower', 'sprout', 'seed']);
602
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
603
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
604
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
605
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
606
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
607
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
608
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
609
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
610
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['seed', 'plant'], ['1', '4']);
611
-
612
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
613
-
614
- cy.log('When the user attempts the question partially correct exclusively according to the alternate tab then on selecting \'Check answer\' button green check-mark icons should be displayed beside the options at the correct position with respect to the alternate tab and red cross-mark icons should be displayed beside the incorrectly attempted options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
615
- listOrderingPage.steps.checkAnswer()
616
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
617
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('flower');
618
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
619
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
620
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
621
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
622
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
623
- });
624
-
625
- it('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icons should be displayed beside the options ordered according to the correct tab and red cross-mark icons should be displayed beside the options ordered according to the alternate tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the correct tab with numeration', () => {
626
- listOrderingPage.steps.resetQuestionPreview(options);
627
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
628
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 1);
629
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('plant', 3);
630
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'sprout', 'flower', 'plant']);
631
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
632
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
633
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
634
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
635
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
636
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
637
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
638
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
639
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['plant', 'flower'], ['3', '4']);
640
-
641
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
642
-
643
- cy.log('When the user attempts the question partially correct with equal number of correct options order form the correct and alternate tab then on selecting the \'Check answer\' button the green check-mark icons should be displayed beside the options ordered according to the correct tab and red cross-mark icons should be displayed beside the options ordered according to the alternate tab \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
644
- listOrderingPage.steps.checkAnswer()
645
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
646
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('sprout');
647
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
648
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
649
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
650
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
651
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
652
- });
653
-
654
- it('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then user should be awarded with 0 points and on selecting the \'Show correct answer\' checkbox the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should have correct options of the incorrectly ordered options from the correct tab with numeration', () => {
655
- listOrderingPage.steps.resetQuestionPreview(options);
656
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('seed', 0);
657
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
658
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['seed', 'plant', 'flower', 'sprout']);
659
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
660
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
661
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
662
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
663
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
664
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
665
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
666
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
667
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(['sprout', 'plant', 'flower'], ['2', '3', '4']);
668
-
669
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
670
-
671
- cy.log('Race condition: When the user attempts the question with the common option between correct tab and alternate tab then on selecting the \'Check answer\' button the green check-mark icon should be displayed beside the common option and red cross-marks should be displayed beside the incorrectly ordered options, \'Incorrect\' label and border should be displayed and the \'Correct answers:\' container should not be displayed')
672
- listOrderingPage.steps.checkAnswer()
673
- listOrderingPage.steps.verifyCorrectOptionsCheckmarkIcon('seed');
674
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
675
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
676
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
677
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
678
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
679
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
680
- });
681
-
682
- it('When user attempts the question incorrectly then on selecting \'Show correct answer\' checkbox, the user should be awarded 0 points and red cross-mark icons should be displayed beside all the options, the correct answer container with all correct answers from the alternate tab along with numeration should be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview', () => {
683
- listOrderingPage.steps.resetQuestionPreview(options);
684
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('sprout', 3);
685
- listOrderingPage.steps.clickAndReorderOptionInPrevewTab('flower', 0);
686
- listOrderingPage.steps.verifyTextContentOfOptionsInPreviewTab(['flower', 'plant', 'seed', 'sprout']);
687
- listOrderingPage.steps.verifyPreviewTabScoreText(0, 20);
688
- listOrderingPage.steps.checkShowCorrectAnswerCheckbox();
689
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
690
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
691
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
692
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
693
- listOrderingPage.steps.verifyCorrectAnswerContainerContents(correctAnswerArray, ['1', '2', '3', '4']);
694
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
695
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
696
-
697
- listOrderingPage.steps.verifyQuestionPreviewStateWhenShowCorrectAnswerIsUnchecked();
698
-
699
- cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then red cross-mark icons should be displayed beside all the options, the correct answer container should not be displayed and correct/incorrect answer label and border for the question should not be displayed below the question preview')
700
- listOrderingPage.steps.checkAnswer();
701
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('flower');
702
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('plant');
703
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('seed');
704
- listOrderingPage.steps.verifyIncorrectOptionsCrossmarkIcon('sprout');
705
- listOrderingPage.steps.verifyCorrectAnswerContainerDoesNotExist();
706
- listOrderingPage.steps.verifyIncorrectAttemptBorder();
707
- listOrderingPage.steps.verifyCorrectIncorrectAnswerLabel('Incorrect');
708
- });
709
-
710
- listOrderingPage.tests.verifyMinimumScoreAwardedIfAttemptedFunctionalityForIncorrectAnswer('20');
711
- });
712
- });