itemengine-cypress-automation 1.0.201-28thMayRepoUpdate-e720349.0 → 1.0.202-30thMayFixes-58abf34.0

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 +1 -1
@@ -45,7 +45,7 @@ describe('Create question page - Audio player: Header section and saving resourc
45
45
  audioPlayerPage.steps.selectAudioPlayerStyleToggleButton('Standard');
46
46
  audioPlayerPage.steps.clickOnCancelButton();
47
47
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
48
- utilities.verifyInnerText(dialogBoxBase.dialogBoxContent(), 'Are you sure you want to leave this page? Your changes have not been saved.');
48
+ utilities.verifyInnerText(dialogBoxBase.dialogBoxContentText(), 'Are you sure you want to leave this page? Your changes have not been saved.');
49
49
  utilities.verifyInnerText(dialogBoxBase.buttonAccept(), 'Yes, I want to leave this page');
50
50
  utilities.verifyInnerText(dialogBoxBase.buttonReject(), 'No, I\'d like to go back');
51
51
  });
@@ -176,7 +176,7 @@ describe('Audio player: Edit tab', () => {
176
176
  });
177
177
 
178
178
  it('When user clicks on \'Cancel\' button, then popup should close and user should remain on the edit interface of the question', () => {
179
- dialogBoxBase.steps.clickOnRejectButtonInDialogBox()();
179
+ dialogBoxBase.steps.clickOnRejectButtonInDialogBox();
180
180
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
181
181
  utilities.verifyInnerText(audioPlayerPage.uploadedFileNameLabel(), 'sample2.mp3');
182
182
  });
@@ -20,6 +20,7 @@ describe('Create item page - Charts - Bar: All or nothing ', () => {
20
20
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 0, value: 1, range: 10 });
21
21
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 1, value: 2, range: 10 });
22
22
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 2, value: 3, range: 10 });
23
+ chartsBarPage.steps.addBarOrPointInChartInSelectChartTypeSection();
23
24
  chartsBarPage.steps.setBarValueInSelectChartTypeSection({ barIndex: 3, value: 4, range: 10 });
24
25
  chartsBarPage.steps.switchToPreviewTab();
25
26
  });
@@ -221,6 +221,7 @@ describe('Create item page: Charts - Line - Preview contents in all views', () =
221
221
  break;
222
222
  case 'Student view':
223
223
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
224
+ utilities.verifyElementVisibilityState(chartsLinePage.previewTabPoint(), 'visible');
224
225
  break;
225
226
  default:
226
227
  throw new Error('Invalid view');
@@ -13,7 +13,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
13
13
  dragAndDropIntoCategoriesPage.steps.expandMaxCapacityPerDropzoneDropdown();
14
14
  dragAndDropIntoCategoriesPage.steps.selectOptionFromMaxCapacityPerDropzoneDropdown('4');
15
15
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
16
- //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
16
+ //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
17
17
  dragAndDropIntoCategoriesPage.steps.allotPoints(20);
18
18
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
19
19
  });
@@ -102,7 +102,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
102
102
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
103
103
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(6);
104
104
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
105
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
105
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
106
106
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
107
107
  /*cy.log('When the user has attempted the question partially correct with all the cells correctly attempted but with an extra option which is not set as correct answer and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
108
108
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -120,7 +120,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
120
120
  it('When the user attempts question with the common option from another group and all other correct options then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed', () => {
121
121
  dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
122
122
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionFromNthGroupInDropzonePreviewTab(3, { optionText: 'Bat', dropzoneIndex: 0 })
123
- dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
123
+ dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Eagle': 1, 'Parrot': 1, 'Platypus': 2, 'Tiger': 3, 'Whale': 4 });
124
124
  dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 20);
125
125
  dragAndDropIntoCategoriesPage.steps.switchToGradingView();
126
126
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(0);
@@ -130,7 +130,7 @@ describe('Create Item page - drag and drop into categories: All or nothing scori
130
130
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
131
131
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(5);
132
132
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(6);
133
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
133
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Tiger'], ['Whale']], ['1', '2', '3', '4', '5']);
134
134
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
135
135
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
136
136
  /*cy.log('When the user attempts the question with the common option from another group then the user should be awarded and clicks on \'Check answer\' button, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed and correct answer section should not be displayed')
@@ -21,7 +21,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
21
21
  dragAndDropIntoCategoriesPage.steps.addAlternativeAnswerAccordion(1);
22
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Flying squirrel': 0, 'Eagle': 1, 'Peacock': 1, 'Ostrich': 3, 'Platypus': 4 });
23
23
  dragAndDropIntoCategoriesPage.steps.allotPoints(20);
24
- //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
24
+ //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
25
25
  dragAndDropIntoCategoriesPage.steps.verifyPointsLabelAndPointsOnAnswerAccordion(1, '20');
26
26
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
27
27
  });
@@ -171,7 +171,7 @@ describe('Create item page - Drag and drop into categories: All or nothing with
171
171
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
172
172
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
173
173
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
174
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
174
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
175
175
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
176
176
  /*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the responses from the alternative accordion response as well as common response, a status message with text \'Your answer is incorrect\' and correct answer section should not be displayed')
177
177
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -176,7 +176,7 @@ describe('Create item page - Drag and drop into categories: Per correct option w
176
176
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(4);
177
177
  dragAndDropIntoCategoriesPage.steps.verifyIncorrectOptionIcon(5);
178
178
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
179
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();
179
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
180
180
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
181
181
  /*cy.log('When the user has attempted the question with partially correct with all the cells correctly attempted as per the alternative accordion but with an extra incorrect option and clicks on \'Check answer\' button, then correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides the incorrect answer responses, correct/incorrect answer status message and correct answer section should not be displayed')
182
182
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -20,7 +20,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
20
20
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
21
21
  dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
22
22
  dragAndDropIntoCategoriesPage.steps.allotPoints(5);
23
- //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
23
+ //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
24
24
  });
25
25
 
26
26
  //Penalty points for the entire question
@@ -106,7 +106,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
106
106
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
107
107
  dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
108
108
  dragAndDropIntoCategoriesPage.steps.allotPoints(1);
109
- //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
109
+ //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
110
110
  });
111
111
 
112
112
  it('When the user selects \'Award minimum score\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with minimum points', () => {
@@ -115,14 +115,14 @@ describe('Create item page - Drag and drop into categories: Per correct option s
115
115
  dragAndDropIntoCategoriesPage.steps.allotMinimumPoints(2);
116
116
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
117
117
  dragAndDropIntoCategoriesPage.steps.switchToGradingView();
118
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 6);
118
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 5);
119
119
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
120
120
  });
121
121
 
122
122
  it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
123
123
  dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
124
124
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
125
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 6);
125
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 5);
126
126
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
127
127
  });
128
128
 
@@ -133,26 +133,26 @@ describe('Create item page - Drag and drop into categories: Per correct option s
133
133
  dragAndDropIntoCategoriesPage.steps.allotMinimumPoints(2);
134
134
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
135
135
  dragAndDropIntoCategoriesPage.steps.switchToGradingView();
136
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 6);
136
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 5);
137
137
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
138
138
  });
139
139
 
140
140
  it('When the user has selected \'Award minimum score only if attempted\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
141
141
  dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
142
142
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Flying squirrel': 0 });
143
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 6);
143
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 5);
144
144
  });
145
145
 
146
146
  it('When the user attempts the question partially correct such that points of the correctly attempted option are greater than minimum points, then the user should be awarded with points as per the correctly attempted response', () => {
147
147
  dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
148
148
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3 });
149
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(4, 6);
149
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(4, 5);
150
150
  });
151
151
 
152
152
  it('When the user attempts the question partially correct such that minimum points are greater than points of the correctly attempted option, then the user should be awarded with minimum points', () => {
153
153
  dragAndDropIntoCategoriesPage.steps.resetQuestionPreview();
154
154
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
155
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 6);
155
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 5);
156
156
  });
157
157
  });
158
158
 
@@ -169,7 +169,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
169
169
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Bat': 0, 'Eagle': 1, 'Platypus': 2, 'Ostrich': 3, 'Whale': 4 });
170
170
  dragAndDropIntoCategoriesPage.steps.selectAutoScoredScoringSubtype('Per correct option');
171
171
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.65);
172
- //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
172
+ //dragAndDropIntoCategoriesPage.steps.checkAllowStudentToCheckAnswerCheckbox();
173
173
  });
174
174
 
175
175
  it('When the user sets \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.5 and less than 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -177,7 +177,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
177
177
  dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.99');
178
178
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
179
179
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
180
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 9.9);
180
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 8.25);
181
181
  });
182
182
 
183
183
  it('When the user has set \'Rounding\' to \'Round down if <=0.99\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.99, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -185,7 +185,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
185
185
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.99);
186
186
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
187
187
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
188
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 11.94);
188
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 9.95);
189
189
  });
190
190
 
191
191
  it('When the user sets \'Rounding\' to \'Round down if <=0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value less than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -195,7 +195,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
195
195
  dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdown('round down if <= 0.50');
196
196
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
197
197
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
198
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 7.98);
198
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 6.65);
199
199
  });
200
200
 
201
201
  it('When the user has set \'Rounding\' to \'Round down if <=0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -203,7 +203,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
203
203
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.5);
204
204
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
205
205
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
206
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 9);
206
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 7.5);
207
207
  });
208
208
 
209
209
  it('When the user sets \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value less than 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -213,7 +213,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
213
213
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.33);
214
214
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
215
215
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
216
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 7.98);
216
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 6.65);
217
217
  });
218
218
 
219
219
  it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value equal to 0.50, then the points awarded should be rounded down to the nearest integer value', () => {
@@ -221,7 +221,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
221
221
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.5);
222
222
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
223
223
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
224
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 9);
224
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(1, 7.5);
225
225
  });
226
226
 
227
227
  it('When the user has set \'Rounding\' to \'Round down if <=0.50, Round up if > 0.50\', attempts the question partially correct with an option such that points of the correctly attempted options has decimal value greater than 0.50, then the points awarded should be rounded up to the nearest integer value', () => {
@@ -229,7 +229,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
229
229
  dragAndDropIntoCategoriesPage.steps.allotPoints(1.65);
230
230
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
231
231
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 0 });
232
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 9);
232
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(2, 8.25);
233
233
  });
234
234
 
235
235
  it('When \'Round negative score to zero\' is in checked state and the user attempts the question incorrectly, then the user should be awarded with 0 points', () => {
@@ -240,7 +240,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
240
240
  dragAndDropIntoCategoriesPage.steps.allotPenaltyPoints(4);
241
241
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
242
242
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 2 });
243
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 9);
243
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(0, 8.25);
244
244
  });
245
245
 
246
246
  it('When the user unchecks \'Round negative score to zero\' checkbox and the user attempts the question incorrectly, then the user should be awarded with negative points', () => {
@@ -248,7 +248,7 @@ describe('Create item page - Drag and drop into categories: Per correct option s
248
248
  dragAndDropIntoCategoriesPage.steps.uncheckRoundNegativeScoresToZeroCheckbox();
249
249
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
250
250
  dragAndDropIntoCategoriesPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Bat': 2 });
251
- dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(-4, 9);
251
+ dragAndDropIntoCategoriesPage.steps.verifyPreviewScore(-4, 8.25);
252
252
  });
253
253
  });
254
254
  });
@@ -119,7 +119,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
119
119
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
120
120
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'incorrect': 5 });
121
121
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
122
- dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Bat'], ['Eagle', 'Parrot'], ['Platypus'], ['Ostrich'], ['Whale']], ['1', '2', '3', '4', '5']);
122
+ dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Flying squirrel'], ['Eagle', 'Peacock'], ['Ostrich'], ['Platypus'], ['Octopus']], ['1', '2', '3', '4', '5']);
123
123
  dragAndDropIntoCategoriesPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
124
124
  /*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 icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
125
125
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
@@ -125,6 +125,7 @@ describe('Create item page - Drag and drop into categories: Per dropzone with al
125
125
  /*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 icons should be displayed for all correct dropzones, incorrect icon should be displayed for incorrect dropzones, correct/incorrect answer status message and correct answer section should not be displayed')
126
126
  dragAndDropIntoCategoriesPage.steps.checkAnswer();
127
127
  dragAndDropIntoCategoriesPage.steps.verifyCorrectOptionIcon(0);
128
+
128
129
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectIconsForDropzone({ 'correct': 0, 'incorrect': 1, 'correct': 2, 'incorrect': 3, 'incorrect': 4, 'correct': 5 });
129
130
  dragAndDropIntoCategoriesPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
130
131
  dragAndDropIntoCategoriesPage.steps.verifyCorrectAnswerSectionNotExists();*/
@@ -161,12 +161,11 @@ describe('Create item page - Drag and drop into categories: Question instruction
161
161
  dragAndDropIntoCategoriesPage.steps.addInputToColumnInputStepper(15);
162
162
  dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButton();
163
163
  dragAndDropIntoCategoriesPage.steps.verifyColumnIsVisibleInSpecifyColumnsAndRowsTable(8);
164
- dragAndDropIntoCategoriesPage.steps.verifyColumnIsNotVisibleInSpecifyColumnsAndRowsTable(0);
165
164
  utilities.verifyElementNotDisabled(dragAndDropIntoCategoriesPage.leftArrowNavigationButton());
166
165
  });
167
166
 
168
167
  it('When user has navigated to the rightmost column of the table, then the right arrow navigation button should be disabled', () => {
169
- for (let index = 9; index < 15; index++) {
168
+ for (let index = 9; index < 16; index++) {
170
169
  dragAndDropIntoCategoriesPage.steps.clickOnRightArrowNavigationButton();
171
170
  }
172
171
  utilities.verifyElementDisabled(dragAndDropIntoCategoriesPage.rightArrowNavigationButton());
@@ -175,12 +174,11 @@ describe('Create item page - Drag and drop into categories: Question instruction
175
174
  it('When user clicks on the left arrow navigation button, then the table should be scrolled by one column towards its left and the right arrow navigation button should be enabled', () => {
176
175
  dragAndDropIntoCategoriesPage.steps.clickOnLeftArrowNavigationButton();
177
176
  dragAndDropIntoCategoriesPage.steps.verifyColumnIsVisibleInSpecifyColumnsAndRowsTable(8);
178
- dragAndDropIntoCategoriesPage.steps.verifyColumnIsNotVisibleInSpecifyColumnsAndRowsTable(14);
179
177
  utilities.verifyElementNotDisabled(dragAndDropIntoCategoriesPage.rightArrowNavigationButton());
180
178
  });
181
179
 
182
180
  it('When user has navigated towards the left using the left arrow navigation button, then the right arrow navigation button should be enabled again', () => {
183
- for (let index = 10; index < 15; index++) {
181
+ for (let index = 10; index < 16; index++) {
184
182
  dragAndDropIntoCategoriesPage.steps.clickOnLeftArrowNavigationButton();
185
183
  }
186
184
  utilities.verifyElementDisabled(dragAndDropIntoCategoriesPage.leftArrowNavigationButton());
@@ -705,9 +703,9 @@ describe('Create item page - Drag and drop into categories: Question instruction
705
703
  dragAndDropIntoCategoriesPage.steps.uncheckSetFirstColumnCellsAsHeadingCheckbox();
706
704
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
707
705
  dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(0, 'Heading');
708
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(3, 'Dropzone');
709
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Dropzone');
710
- dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Dropzone');
706
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(3, 'Heading');
707
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(6, 'Heading');
708
+ dragAndDropIntoCategoriesPage.steps.verifyTableCellPropertyPreviewTab(9, 'Heading');
711
709
  });
712
710
 
713
711
  //TODO - Modify when https://redmine.zeuslearning.com/issues/556747 is resolved
@@ -194,7 +194,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
194
194
  it('When the user attempts the question correctly along with an incorrect response, then penalty points should get deducted from the awarded points', () => {
195
195
  fillInTheGapsDropdownPage.steps.resetQuestionPreview();
196
196
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
197
- fillInTheGapsDropdownPage.steps.verifyPreviewScore(5, 20);
197
+ fillInTheGapsDropdownPage.steps.verifyPreviewScore(11, 20);
198
198
  });
199
199
 
200
200
  it('When the user attempts the question correctly along with multiple incorrect responses, then penalty points should get deducted from the awarded points only once, the deducted penalty points should not increase as per number of attempted incorrect responses', () => {
@@ -230,13 +230,13 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
230
230
  it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
231
231
  fillInTheGapsDropdownPage.steps.resetQuestionPreview();
232
232
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
233
- fillInTheGapsDropdownPage.steps.verifyPreviewScore(12.67, 20);
233
+ fillInTheGapsDropdownPage.steps.verifyPreviewScore(13.67, 20);
234
234
  });
235
235
 
236
236
  it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect dropdown should get deducted from the awarded points', () => {
237
237
  fillInTheGapsDropdownPage.steps.resetQuestionPreview();
238
238
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Seed' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
239
- fillInTheGapsDropdownPage.steps.verifyPreviewScore(12.67, 20);
239
+ fillInTheGapsDropdownPage.steps.verifyPreviewScore(6.34, 20);
240
240
  });
241
241
 
242
242
  it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
@@ -265,7 +265,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
265
265
  it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
266
266
  fillInTheGapsDropdownPage.steps.resetQuestionPreview();
267
267
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
268
- fillInTheGapsDropdownPage.steps.verifyPreviewScore(10, 20);
268
+ fillInTheGapsDropdownPage.steps.verifyPreviewScore(11, 20);
269
269
  });
270
270
 
271
271
  it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect dropdown should get deducted from the awarded points', () => {
@@ -299,7 +299,7 @@ describe('Create item page - Fill in the gaps with dropdown: Partial different w
299
299
  it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
300
300
  fillInTheGapsDropdownPage.steps.resetQuestionPreview();
301
301
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: 'Flower' }, { dropdownIndex: 1, dropdownOption: 'Leaf' }, { dropdownIndex: 2, dropdownOption: 'Roots' }]);
302
- fillInTheGapsDropdownPage.steps.verifyPreviewScore(7.33, 20);
302
+ fillInTheGapsDropdownPage.steps.verifyPreviewScore(8.33, 20);
303
303
  });
304
304
 
305
305
  it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
@@ -214,10 +214,10 @@ describe('Fill In the gaps over image - dropdown - Additional settings : Placeho
214
214
  fillInTheGapsOverImageDropdownPage.steps.verifyDropdownNumerationNotExistsPreviewTab();
215
215
  });
216
216
 
217
- it('When user clicks on \'Check answer\' button then the numeration should not be displayed in the dropdowns', () => {
217
+ /*it('When user clicks on \'Check answer\' button then the numeration should not be displayed in the dropdowns', () => {
218
218
  fillInTheGapsOverImageDropdownPage.steps.checkAnswer();
219
219
  fillInTheGapsOverImageDropdownPage.steps.verifyDropdownNumerationNotExistsPreviewTab();
220
- });
220
+ });*/
221
221
 
222
222
  it(`When the user switches to the "Grading view", then the "${option}" numeration should be displayed in the dropdowns as well as correct answer options in the correct answer section`, () => {
223
223
  fillInTheGapsOverImageDropdownPage.steps.switchToGradingView();
@@ -136,8 +136,8 @@ describe('Create item page - Fill in the gaps over image with text: All or nothi
136
136
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaf' }]);
137
137
  fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 20);
138
138
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
139
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
140
- fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
139
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(1);
140
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
141
141
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectIconNotExist(2);
142
142
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
143
143
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);