itemengine-cypress-automation 1.0.201-28thMayRepoUpdate-e720349.0 → 1.0.201

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/cypress/e2e/ILC/AudioPlayerNew/headerSection.js +1 -1
  2. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +1 -1
  3. package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -0
  4. package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +1 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +4 -4
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
  7. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
  8. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionMinimumAndPenaltyScoring.js +18 -18
  9. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +1 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -0
  11. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editTabBasicSection.js +5 -7
  12. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +5 -5
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/additionalSettingsForDropdowns.js +2 -2
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +2 -2
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +28 -28
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +1 -1
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsBasic.js +4 -4
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/backgroundImageAndCanvasProperties.js +4 -3
  19. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeightsScoring.js +2 -2
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/partialDifferentWeigtsCorrectPointsGreaterThanAlternativePoints.js +2 -2
  21. package/cypress/e2e/ILC/ImageHighlight/additionalSettings.js +3 -3
  22. package/cypress/e2e/ILC/ImageHighlight/editTabScoring.js +1 -1
  23. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsBasic.js +6 -6
  24. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +18 -18
  25. package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/partialEqualWeightsBasic.js +6 -6
  26. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +2 -1
  27. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +0 -14
  28. package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -12
  29. package/cypress/e2e/ILC/NumberLineLabel/layoutSection.js +6 -2
  30. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +2 -1
  31. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +2 -0
  32. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -2
  33. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  34. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  35. package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  36. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsBasic.js +1 -1
  37. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  38. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +1 -1
  39. package/cypress/e2e/ILC/TextSelection/Scoring/partialEqualWeightsWithCorrectPointsGreaterThanAlternativePoints.js +1 -1
  40. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +2 -2
  41. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +1 -1
  42. package/cypress/e2e/ILC/TextSelection/headerSection.js +3 -2
  43. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +1 -0
  44. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +3 -1
  45. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +4 -4
  46. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +1 -1
  47. package/cypress/e2e/ILC/VideoResponseNew/customizePlaybackControlsStandardRecorderStyle.js +1 -1
  48. package/cypress/e2e/ILC/VideoResponseNew/editTabBasicSection.js +3 -2
  49. package/cypress/e2e/ILC/chartsDotsPlot/headerSection.js +1 -1
  50. package/cypress/pages/audioPlayerPage.js +2 -0
  51. package/cypress/pages/chartsLinePage.js +2 -2
  52. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -1
  53. package/cypress/pages/components/commonComponents.js +1 -0
  54. package/cypress/pages/components/createQuestionBasePage.js +1 -1
  55. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  56. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -0
  57. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +2 -2
  58. package/cypress/pages/components/imageCanvasComponent.js +10 -0
  59. package/cypress/pages/dialogBoxBase.js +3 -2
  60. package/cypress/pages/dragAndDropIntoCategoriesPage.js +2 -23
  61. package/cypress/pages/drawingResponsePage.js +1 -1
  62. package/cypress/pages/fillInTheGapsOverImageTextPage.js +2 -1
  63. package/cypress/pages/listOrderingPage.js +9 -6
  64. package/cypress/pages/numberLineLabelPage.js +2 -0
  65. package/cypress/pages/numberLinePage.js +55 -54
  66. package/cypress/pages/textSelectionPage.js +0 -3
  67. package/cypress/pages/videoResponsePage.js +5 -1
  68. package/package.json +2 -2
@@ -63,14 +63,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
63
63
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
64
64
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
65
65
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
66
- cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
66
+ /*cy.log('When the user has attempted the question with responses from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
67
67
  listOrderingPage.steps.checkAnswer()
68
68
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
69
69
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
70
70
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
71
71
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
72
72
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
73
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
73
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
74
74
  });
75
75
 
76
76
  it('When the user attempts the question with responses from the alternative accordion, then the user should be awarded with points specified for alternative accordion (less than full points) and on switching to \'Grading\' view, correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
@@ -88,14 +88,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
88
88
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
89
89
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
90
90
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
91
- cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
91
+ /*cy.log('When the user has attempted the question with responses from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
92
92
  listOrderingPage.steps.checkAnswer()
93
93
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
94
94
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
95
95
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
96
96
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
97
97
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
98
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
98
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
99
99
  });
100
100
 
101
101
  it('When the user attempts the question with partially correct options exclusively from the correct accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -112,14 +112,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
112
112
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
113
113
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
114
114
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
115
- cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
115
+ /* cy.log('When the user has attempted the question with partially correct options exclusively from the correct accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
116
116
  listOrderingPage.steps.checkAnswer()
117
117
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
118
118
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
119
119
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
120
120
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
121
121
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
122
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
122
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
123
123
  });
124
124
 
125
125
  it('When the user attempts the question with partially correct options exclusively from the alternative accordion, then the user should be awarded points of the correctly attempted response and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -136,14 +136,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
136
136
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
137
137
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
138
138
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
139
- cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
139
+ /*cy.log('When the user has attempted the question with partially correct options exclusively from the alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, correct/incorrect status message and correct answer section should not be displayed')
140
140
  listOrderingPage.steps.checkAnswer()
141
141
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
142
142
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
143
143
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
144
144
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
145
145
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
146
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
146
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
147
147
  });
148
148
 
149
149
  it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case correct accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the alternative accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -161,14 +161,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
161
161
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
162
162
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
163
163
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
164
- cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
164
+ /* cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
165
165
  listOrderingPage.steps.checkAnswer()
166
166
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
167
167
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
168
168
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
169
169
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('sprout');
170
170
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
171
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
171
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
172
172
  });
173
173
 
174
174
  it('When the user attempts the question partially correct with equal number of correct responses from correct and alternative accordion then user should be awarded with points of the accordion that awards more points i.e. in this case alternative accordion and on switching to \'Grading\' view, correct icon should be displayed besides response field with correct answer responses, incorrect icon should be displayed beside responses from the correct accordion, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -186,14 +186,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
186
186
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
187
187
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
188
188
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
189
- cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
189
+ /*cy.log('When the user has attempted the question with equal number of correct responses from correct and alternative accordion and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed beside incorrect responses correct/incorrect status message and correct answer section should not be displayed')
190
190
  listOrderingPage.steps.checkAnswer()
191
191
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
192
192
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('sprout');
193
193
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
194
194
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
195
195
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
196
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
196
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
197
197
  });
198
198
 
199
199
  it('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then user should be awarded with points of the tab with more points i.e. in this case correct accordion and on switching to \'Grading\' view the correct icon should be displayed beside the common option and incorrect icon should be displayed beside the incorrect responses, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -210,14 +210,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
210
210
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
211
211
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
212
212
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
213
- cy.log('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then on selecting the \'Check answer\' button the correct icon should be displayed beside the common option and incorrect should be displayed beside the incorrectly ordered options, correct/incorrect status message and correct answer section should not be displayed')
213
+ /* cy.log('Race condition: When the user attempts the question with the common option between correct accordion and alternative accordion then on selecting the \'Check answer\' button the correct icon should be displayed beside the common option and incorrect should be displayed beside the incorrectly ordered options, correct/incorrect status message and correct answer section should not be displayed')
214
214
  listOrderingPage.steps.checkAnswer();
215
215
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
216
216
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
217
217
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
218
218
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('sprout');
219
219
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
220
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
220
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
221
221
  });
222
222
 
223
223
  it('When user attempts the question incorrectly then user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed beside all the options, correct/incorrect status message should not be displayed and correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -234,14 +234,14 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
234
234
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
235
235
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
236
236
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
237
- cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then incorrect icons should be displayed beside all the options, correct/incorrect status message and correct answer section should not be displayed')
237
+ /*cy.log('When user attempts the question incorrectly and clicks on the \'Check Answer\' button, then incorrect icons should be displayed beside all the options, correct/incorrect status message and correct answer section should not be displayed')
238
238
  listOrderingPage.steps.checkAnswer();
239
239
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
240
240
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
241
241
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
242
242
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('sprout');
243
243
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
244
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
244
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
245
245
  });
246
246
 
247
247
  it('Overachiever case: When the user attempts the question with more number of correct options from the correct accordion than the alternative accordion but the score of the responses selected from the alternative accordion overpowers the combined score of the correct accordion answers then correct icons should be displayed for the alternative accordion options, incorrect icon should be displayed for the correct accordion options and points awarded should be of the alternative accordion, correct/incorrect status message should not be displayed correct answer section with all correct answers from the correct accordion should be displayed', () => {
@@ -274,7 +274,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
274
274
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(['seed', 'sprout', 'plant', 'flower', 'fruit']);
275
275
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
276
276
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
277
- cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
277
+ /* cy.log('Overachiever case: When the user has attempted the question with more number of correct options from the correct accordion than the alternative accordion, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion options, correct/incorrect status message and correct answer section should not be displayed')
278
278
  listOrderingPage.steps.checkAnswer();
279
279
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
280
280
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
@@ -282,7 +282,7 @@ describe('Create Item page - List ordering: Partial different weights scoring wi
282
282
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
283
283
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('fruit');
284
284
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
285
- listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
285
+ listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();*/
286
286
  });
287
287
  });
288
288
  });
@@ -50,14 +50,14 @@ describe('Create Item page - List ordering: Partial equal weights', () => {
50
50
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
51
51
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
52
52
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
53
- cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect status message and correct answer section should not be displayed')
53
+ /*cy.log('When the user has attempted the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, correct/incorrect status message and correct answer section should not be displayed')
54
54
  listOrderingPage.steps.checkAnswer();
55
55
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('sprout');
56
56
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
57
57
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
58
58
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('flower');
59
59
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
60
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
60
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
61
61
  });
62
62
 
63
63
  it('When the user attempts the question partially correct, then the user should be awarded points of the correctly attempted responses and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
@@ -74,14 +74,14 @@ describe('Create Item page - List ordering: Partial equal weights', () => {
74
74
  listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
75
75
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
76
76
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
77
- cy.log('When user attempts the question partially correct and clicks on \'Check Answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message and correct answer section should not be displayed')
77
+ /*cy.log('When user attempts the question partially correct and clicks on \'Check Answer\' button, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, correct/incorrect status message and correct answer section should not be displayed')
78
78
  listOrderingPage.steps.checkAnswer()
79
79
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
80
80
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('seed');
81
81
  listOrderingPage.steps.verifyIncorrectOptionIconHorizontalOrientation('plant');
82
82
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
83
83
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
84
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
84
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
85
85
  });
86
86
 
87
87
  it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed', () => {
@@ -98,14 +98,14 @@ describe('Create Item page - List ordering: Partial equal weights', () => {
98
98
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
99
99
  listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
100
100
  listOrderingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
101
- cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, then correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed')
101
+ /*cy.log('When user attempts the question correctly and clicks on the \'Check Answer\' button, then correct icons should be displayed beside all the correct responses, correct/incorrect status message and correct answer section should not be displayed')
102
102
  listOrderingPage.steps.checkAnswer();
103
103
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('sprout');
104
104
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('seed');
105
105
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('plant');
106
106
  listOrderingPage.steps.verifyCorrectOptionIconHorizontalOrientation('flower');
107
107
  listOrderingPage.steps.verifyCorrectAnswerSectionNotExists();
108
- listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
108
+ listOrderingPage.steps.verifyCorrectIncorrectStatusMessageNotExists();*/
109
109
  });
110
110
  });
111
111
 
@@ -44,9 +44,10 @@ describe('Create Item page - matching : Additional settings', () => {
44
44
 
45
45
  Object.keys(fontSizes).forEach((option) => {
46
46
  it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the specify correct answer section should change to ${fontSizes[option]} accordingly`, () => {
47
+ utilities.verifyElementVisibilityState(listOrderingPage.fontSizeDropdown(), 'visible');
47
48
  listOrderingPage.steps.selectFontSizeOptionFromFontSizeDropdown(option);
48
49
  utilities.verifyInnerText(listOrderingPage.fontSizeDropdown(), `${option}`);
49
- utilities.verifyCSS(utilities.getNthElement(listOrderingPage.optionSpecifyCorrectAnswerSection(), 0), {
50
+ utilities.verifyCSS(utilities.getNthElement(listOrderingPage.optionTextSpecifyCorrectAnswerSection(), 0), {
50
51
  'font-size': fontSizes[option]
51
52
  });
52
53
  });
@@ -99,20 +99,6 @@ describe('Create Item page - List ordering : Student view settings', () => {
99
99
  });
100
100
 
101
101
  listOrderingPage.tests.verifyEnableOuterBorderContents();
102
-
103
- it('The user should be able to uncheck the \'Enable outer border for question\' checkbox', () => {
104
- listOrderingPage.steps.uncheckEnableOuterBorderCheckbox();
105
- });
106
-
107
- it('CSS of \'Enable outer border for question\' checkbox - unchecked state', { tags: 'css' }, () => {
108
- utilities.verifyCSS(listOrderingPage.enableOuterBorderCheckbox().parent().find('svg'), {
109
- 'fill': css.color.uncheckedCheckbox
110
- });
111
- });
112
-
113
- it('Accessibility of \'Enable outer border for question\' checkbox - unchecked state', { tags: 'a11y' }, () => {
114
- cy.checkAccessibility(listOrderingPage.enableOuterBorderCheckbox().parents('[data-ngie-testid*="enable-outer-border-for-question-checkbox"]'));
115
- });
116
102
  });
117
103
 
118
104
  describe('Enable outer border for question: Preview tab', () => {
@@ -35,8 +35,8 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
35
35
  numberLinePage.steps.verifyRayOnNumberLineSpecifyCorrectAnswer('left', range, -7);
36
36
  numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Segment right/up hollow pt');
37
37
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, -4);
38
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -3]);
39
- numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -4, x2: -3 }]);
38
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -5]);
39
+ numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -5, x2: -4 }]);
40
40
  numberLinePage.steps.clickOnSaveQuestionButton();
41
41
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
42
42
  //Global variable issue, not working inside before
@@ -47,8 +47,8 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
47
47
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
48
48
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment right/up hollow pt');
49
49
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, -4);
50
- numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-4, -3]);
51
- numberLinePage.steps.verifyLineSegmentOnNumberLinePreviewTab(range, [{ x1: -4, x2: -3 }]);
50
+ numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [-4, -5]);
51
+ numberLinePage.steps.verifyLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
52
52
  studentViewPage.steps.submitResponse();
53
53
  studentViewPage.steps.clickOnGoToGradingViewButton();
54
54
  });
@@ -70,12 +70,12 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
70
70
  });
71
71
 
72
72
  it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
73
- numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -3]);
74
- numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -4, x2: -3 }]);
73
+ numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5]);
74
+ numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
75
75
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
76
- numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -3]);
76
+ numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -5]);
77
77
  numberLinePage.steps.verifyCorrectRayOnNumberLineCorrectAnswerSection('left', range, -7);
78
- numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -4, x2: -3 }]);
78
+ numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
79
79
  });
80
80
 
81
81
  it('Points and the total score should be displayed', () => {
@@ -115,8 +115,8 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
115
115
  numberLinePage.steps.verifyRayOnNumberLineSpecifyCorrectAnswer('left', range, -7);
116
116
  numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Segment right/up hollow pt');
117
117
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, -4);
118
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -3]);
119
- numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -4, x2: -3 }]);
118
+ numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -5]);
119
+ numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -5, x2: -4 }]);
120
120
  numberLinePage.steps.clickOnSaveQuestionButton();
121
121
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
122
122
  //Global variable issue, not working inside before
@@ -148,8 +148,8 @@ describe('Create item page - Number line: Grading view, Correct answer view cont
148
148
  });
149
149
 
150
150
  it('The correct answer set by user should be displayed in the correct answer view', () => {
151
- numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -3, 2]);
152
- numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -4, x2: -3 }]);
151
+ numberLinePage.steps.verifyCorrectPointsOnNumberLinePreviewTab(range, [-4, -5, 2]);
152
+ numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
153
153
  numberLinePage.steps.verifyCorrectRayOnNumberLinePreviewTab('left', range, -7);
154
154
  });
155
155
 
@@ -43,7 +43,9 @@ describe('Number line: Layout section', () => {
43
43
  it('When user unchecks \'Snap to ticks\' checkbox user should be able to attempt labels at decimal numbers', () => {
44
44
  numberLineLabelPage.steps.uncheckSnapToTicksCheckbox();
45
45
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLineSpecifyCorrectAnswer('1', 'horizontal', range, 1.5);
46
- numberLineLabelPage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [1.55]);
46
+ numberLineLabelPage.steps.verifyPointsNotExistOnNumberLineSpecifyCorrectAnswer(range, [1]);
47
+ numberLineLabelPage.steps.verifyPointsNotExistOnNumberLineSpecifyCorrectAnswer(range, [2]);
48
+ utilities.verifyElementCount(numberLineLabelPage.numberLinePointSpecifyCorrectAnswer(), '1');
47
49
  });
48
50
 
49
51
  it('When user checks \'Snap to ticks\' checkbox user should not be able to attempt labels at decimal numbers', () => {
@@ -109,7 +111,9 @@ describe('Number line: Layout section', () => {
109
111
  numberLineLabelPage.steps.uncheckSnapToTicksCheckbox();
110
112
  numberLineLabelPage.steps.switchToPreviewTab();
111
113
  numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('1', 'horizontal', range, 1.5);
112
- numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [1.55]);
114
+ numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [1]);
115
+ numberLineLabelPage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [2]);
116
+ utilities.verifyElementCount(numberLineLabelPage.numberLinePointPreviewTab(), '1');
113
117
  });
114
118
 
115
119
  it('When user checks \'Snap to ticks\' checkbox user should not be able to attempt labels at decimal numbers', () => {
@@ -95,7 +95,8 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
95
95
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
96
96
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
97
97
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
98
- textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();
98
+ textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
99
+ textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
99
100
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
100
101
 
101
102
  /*cy.log('When the user attempts the question partially correct exclusively according to the correct accordion then on selecting \'Check answer\' button correct icons should be displayed beside the correctly attempted options from the correct accordion and a status message with text \'Your answer is incorrect\' should be displayed')
@@ -24,6 +24,8 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
24
24
  textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
25
25
  });
26
26
  textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
27
+ cy.log('Waiting for page to re-load');
28
+ cy.wait(2000);
27
29
  customTextSelectionArray.forEach((text) => {
28
30
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', text);
29
31
  });
@@ -1,6 +1,5 @@
1
1
  import { textSelectionPage } from "../../../../pages";
2
2
  import abortEarlySetup from "../../../../support/helpers/abortEarly";
3
- import utilities from "../../../../support/helpers/utilities";
4
3
 
5
4
  const paragraphTextArray = ['All animals have a unique role to play in maintaining the balance of nature.', 'A lot of animal species exist in both, land and water. As a result, each of them has a purpose for their existence.', 'The animals divide into specific groups in biology. Amphibians are those which can live on both, land and water.', 'Mammals are ones which give birth to their offspring in the womb and have mammary glands.', 'Birds are creatures with feathers, beaks, and the ability to lay eggs.', 'Many animal species are undocumented even today.', 'Research is going on to discover new species in the far corners of the earth']
6
5
 
@@ -33,7 +32,7 @@ describe('Create item page - Text selection: Partial different weights', () => {
33
32
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
34
33
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
35
34
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
36
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
35
+ textSelectionPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
37
36
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
38
37
  });
39
38
 
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial different with alternative
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[3]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[4]);
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial different with alternative
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial different with alternative
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
@@ -30,7 +30,7 @@ describe('Create item page - Text selection: Partial equal weights', () => {
30
30
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
31
31
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
32
32
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
33
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
33
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
34
34
  textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
35
35
  });
36
36
 
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial equal with alternative answ
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[3]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[4]);
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial equal with alternative answ
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
@@ -38,7 +38,7 @@ describe('Create item page - Text selection: Partial equal with alternative answ
38
38
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[2]);
39
39
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
40
40
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[4]);
41
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
41
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
42
42
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
43
43
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
44
44
  textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[2]);
@@ -70,7 +70,7 @@ describe('Create Item page - Text selection : Additional settings', () => {
70
70
  textSelectionPage.steps.switchTextSelectionMode('Paragraph');
71
71
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
72
72
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
73
- textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
73
+ textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[1]);
74
74
  textSelectionPage.steps.allotPoints(5);
75
75
  });
76
76
 
@@ -85,7 +85,7 @@ describe('Create Item page - Text selection : Additional settings', () => {
85
85
  utilities.verifyCSS(textSelectionPage.previewTabQuestionTextParagraphs(), {
86
86
  'font-size': fontSizes[fontsIndex]
87
87
  });
88
- textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
88
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
89
89
  textSelectionPage.steps.switchToGradingView();
90
90
  utilities.verifyCSS(textSelectionPage.correctAnswersLabel(), {
91
91
  'font-size': fontSizes[fontsIndex]
@@ -138,7 +138,7 @@ describe('Create item page - Text selection: Scoring section', () => {
138
138
  it('When the user updates the entered points in \'All or nothing\' scoring type and switches to \'Partial equal weights\' scoring type, then the points should be equally divided and displayed besides each correct option', () => {
139
139
  textSelectionPage.steps.allotPoints(12);
140
140
  textSelectionPage.steps.selectAutoScoredScoringSubtype('Partial equal weights');
141
- textSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(4);
141
+ textSelectionPage.steps.verifyPartialEqualWeightsPointsPerResponseScore(6);
142
142
  });
143
143
 
144
144
  it('CSS of \'Points per response\' label and its displayed score', { tags: 'css' }, () => {
@@ -1,5 +1,6 @@
1
1
  import abortEarlySetup from "../../../support/helpers/abortEarly";
2
2
  import { dialogBoxBase, textSelectionPage } from "../../../pages";
3
+ import utilities from "../../../support/helpers/utilities";
3
4
  const options = ['Bat', 'Eagle'];
4
5
 
5
6
  describe('Create item page - Text selection: Header section and Saving question', () => {
@@ -46,13 +47,13 @@ describe('Create item page - Text selection: Header section and Saving question'
46
47
 
47
48
  it('Validation error messages should be displayed below required input fields', () => {
48
49
  textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconIsVisible();
49
- textSelectionPage.steps.verifySpecifyCorrectAnswerErrorMessage();
50
+ utilities.verifyInnerText(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'Error: Please set a correct answer.');
50
51
  });
51
52
 
52
53
  it('Validation error messages should disappear when required input fields are filled', () => {
53
54
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', 'Lorem');
54
55
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection('Lorem');
55
- textSelectionPage.steps.verifyErrorMessageIsNotDisplayed();
56
+ utilities.verifyElementVisibilityState(textSelectionPage.specifyCorrectAnswerErrorMessage(), 'notExist');
56
57
  textSelectionPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
57
58
  });
58
59
 
@@ -236,6 +236,7 @@ describe('Create Item page - Text selection: Student view settings', () => {
236
236
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[0]);
237
237
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[1]);
238
238
  textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[2]);
239
+ textSelectionPage.steps.clickOnOptionInSpecifyPossibleOptionsSection(paragraphTextArray[3]);
239
240
  textSelectionPage.steps.expandMaxNumberOfPossibleSelectionsDropdown();
240
241
  utilities.verifyElementVisibilityState(textSelectionPage.dropdownList(), 'visible');
241
242
  textSelectionPage.steps.verifyMaxNumberOfPossibleSelectionsDropdownListOptions(listOptions);
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
5
5
 
6
6
  const paragraphTextArray = ['Horses are not able to breat& through their mouth! Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
7
7
  const sentenceTextArray = ['Horses are not able to breat& through their mouth! ', 'Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
8
- const wordTextArray = ['Horses', 'are', 'not', 'able', 'to', 'breat&', 'through', 'their', 'mouth', 'Cows', 'can', 'sleep', 'standing', 'up', 'Dogs', 'have', 'e#cellent', 'hearing', 'Deers', 'possess', 'nearly', '300', 'degree', 'field', 'of', 'vision'];
8
+ const wordTextArray = ['Horses ', 'are ', 'not ', 'able ', 'to ', 'breat& ', 'through ', 'their ', 'mouth! ', 'Cows ', 'can ', 'sleep ', 'standing ', 'up?', 'Dogs ', 'have ', 'e#cellent ', '\'hearing\'.', 'Deers ', 'possess ', 'nearly, ', '300 ', 'degree ', 'field ', 'of ', 'vision'];
9
9
  const customTextArray = ['Cows can sleep', 'Dogs have e#cellent \'hearing\'', 'nearly, 300 degree field of vision.'];
10
10
 
11
11
  describe('Create Item page - Text selection: Text selection modes in Preview tab', () => {
@@ -23,6 +23,8 @@ describe('Create Item page - Text selection: Text selection modes in Preview tab
23
23
  textSelectionPage.steps.addInputToQuestionInputField(`${paragraphText}{enter}`);
24
24
  });
25
25
  textSelectionPage.steps.addInputToQuestionInputField('{backspace}');
26
+ cy.log('Adding wait for page to load');
27
+ cy.wait(2000)
26
28
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[0]);
27
29
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[1]);
28
30
  textSelectionPage.steps.selectOptionInSpecifyPossibleOptionsSection('Custom', customTextArray[2]);
@@ -5,7 +5,7 @@ const css = Cypress.env('css');
5
5
 
6
6
  const paragraphTextArray = ['Horses cannot breat& through their mouth! Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
7
7
  const sentenceTextArray = ['Horses cannot breat& through their mouth! ', 'Cows can sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
8
- const wordTextArray = ['Horses', 'cannot', 'breat&', 'through', 'their', 'mouth', 'Cows', 'can', 'sleep', 'standing', 'up', 'Dogs', 'have', 'e#cellent', 'hearing', 'Deers', 'possess', 'nearly', '300', 'degree', 'field', 'of', 'vision'];
8
+ const wordTextArray = ['Horses ', 'cannot ', 'breat& ', 'through ', 'their ', 'mouth! ', 'Cows ', 'can ', 'sleep ', 'standing ', 'up?', 'Dogs ', 'have ', 'e#cellent ', '\'hearing\'.', 'Deers ', 'possess ', 'nearly, ', '300 ', 'degree ', 'field ', 'of ', 'vision.'];
9
9
  const customTextArray = ['Cows can sleep', 'Dogs have e#cellent \'hearing\'', 'nearly, 300 degree field of vision.'];
10
10
 
11
11
  describe('Create Item page - Text selection: Text selection modes in Set correct answer section', () => {
@@ -89,7 +89,7 @@ describe('Create Item page - Text selection: Text selection modes in Set correct
89
89
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextParagraphs(), 3);
90
90
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextSpans(), 3);
91
91
  paragraphTextArray.forEach((paragraphText, index) => {
92
- utilities.verifyTextContent(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), paragraphText);
92
+ utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), paragraphText);
93
93
  })
94
94
  utilities.verifyElementVisibilityState(textSelectionPage.optionSpecifyCorrectAnswer(), 'notExist');
95
95
  });
@@ -151,7 +151,7 @@ describe('Create Item page - Text selection: Text selection modes in Set correct
151
151
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextParagraphs(), 3);
152
152
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextSpans(), 4);
153
153
  sentenceTextArray.forEach((sentenceText, index) => {
154
- utilities.verifyTextContent(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), sentenceText);
154
+ utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), sentenceText);
155
155
  })
156
156
  utilities.verifyElementVisibilityState(textSelectionPage.optionSpecifyCorrectAnswer(), 'notExist');
157
157
  });
@@ -213,7 +213,7 @@ describe('Create Item page - Text selection: Text selection modes in Set correct
213
213
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextParagraphs(), 3);
214
214
  utilities.verifyElementCount(textSelectionPage.specifyCorrectAnswerTextSpans(), 23);
215
215
  wordTextArray.forEach((wordText, index) => {
216
- utilities.verifyTextContent(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), wordText);
216
+ utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.specifyCorrectAnswerTextSpans(), index), wordText);
217
217
  })
218
218
  utilities.verifyElementVisibilityState(textSelectionPage.optionSpecifyCorrectAnswer(), 'notExist');
219
219
  });
@@ -6,7 +6,7 @@ const css = Cypress.env('css');
6
6
  const textSelectionModeArray = ['Custom', 'Paragraph', 'Sentence', 'Word'];
7
7
  const paragraphTextArray = ['Horses cannot breat& through their mouth! Cows sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
8
8
  const sentenceTextArray = ['Horses cannot breat& through their mouth! ', 'Cows sleep standing up?', 'Dogs have e#cellent \'hearing\'.', 'Deers possess nearly, 300 degree field of vision.'];
9
- const wordTextArray = ['Horses', 'cannot', 'breat&', 'through', 'their', 'mouth', 'Cows', 'sleep', 'standing', 'up', 'Dogs', 'have', 'e#cellent', 'hearing', 'Deers', 'possess', 'nearly', '300', 'degree', 'field', 'of', 'vision'];
9
+ const wordTextArray = ['Horses ', 'cannot ', 'breat& ', 'through ', 'their ', 'mouth! ', 'Cows ', 'sleep ', 'standing ', 'up?', 'Dogs ', 'have ', 'e#cellent ', '\'hearing\'.', 'Deers ', 'possess ', 'nearly, ', '300 ', 'degree ', 'field ', 'of ', 'vision.'];
10
10
  const customTextArray = ['Cows can sleep', 'Dogs have e#cellent \'hearing\'', 'nearly, 300 degree field of vision.'];
11
11
 
12
12
  describe('Create Item page - Text selection: Text selection modes in specify possible options section', () => {