itemengine-cypress-automation 1.0.67 → 1.0.69

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. package/cypress/e2e/ILC/AudioResponse/audioResponseAdditionalSettings.js +1 -1
  2. package/cypress/e2e/ILC/AudioResponse/audioResponseAdditionalSettingsBasic.js +10 -12
  3. package/cypress/e2e/ILC/AudioResponse/audioResponseScoringSection.js +2 -2
  4. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesAdditionalSettingsBasic.js +25 -35
  5. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScored.js +1 -1
  6. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesManuallyAndNonScoredEditTabScoring.js +1 -1
  7. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenCell.js +2 -1
  8. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenCellsAlternatePointsGreaterThanCorrectPoints.js +0 -1
  9. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsEqualToAlternatePoints.js +0 -1
  10. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenCellsCorrectPointsGreaterThanAlternatePoints.js +0 -1
  11. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenResponses.js +2 -1
  12. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenResponsesAlternatePointsGreaterThanCorrectPoints.js +0 -1
  13. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsEqualToAlternatePoints.js +0 -1
  14. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/groupedOptionsTotalScoreDividedBetweenResponsesCorrectPointsGreaterThanAlternatePoints.js +0 -1
  15. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothing.js +1 -1
  16. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothingAlternatePointsGreaterThanCorrectPoints.js +1 -1
  17. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothingCorrectPointsEqualToAlternatePoints.js +1 -1
  18. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardAllOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
  19. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardPartialScoreForEachCell.js +1 -1
  20. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenCell.js +2 -1
  21. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenCellAlternatePointsGreaterThanCorrectPoints.js +0 -1
  22. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenCellCorrectPointsEqualToAlternatePoints.js +0 -1
  23. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenCellCorrectPointsGreaterThanAlternatePoints.js +0 -1
  24. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenResponse.js +2 -1
  25. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenResponseAlternatePointsGreaterThanCorrectPoints.js +0 -1
  26. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenResponseCorrectPointsEqualToAlternatePoints.js +0 -1
  27. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesScoring/standardTotalScoreDividedBetweenResponseCorrectPointsGreaterThanAlternatePoints.js +0 -1
  28. package/cypress/e2e/ILC/DragAndDropIntoCategories/dragAndDropIntoCategoriesSetCorrectAnswerSection.js +2 -2
  29. package/cypress/fixtures/theme/ilc.json +2 -1
  30. package/cypress/pages/audioPlayerPage.js +2 -2
  31. package/cypress/pages/components/additionalSettingsPanel.js +46 -14
  32. package/cypress/pages/components/autoScoredAdditionalSettings.js +6 -6
  33. package/cypress/pages/components/autoScoredPreviewBase.js +6 -8
  34. package/cypress/pages/components/autoScoredScoringSection.js +22 -18
  35. package/cypress/pages/components/autoScoredScoringSectionMultipleResponsesType.js +60 -9
  36. package/cypress/pages/components/autoScoredSetCorrectAnswerSection.js +7 -7
  37. package/cypress/pages/components/createQuestionBasePage.js +8 -2
  38. package/cypress/pages/components/draggableOptionsContainer.js +2 -1
  39. package/cypress/pages/components/equationEditorFlyout.js +2 -1
  40. package/cypress/pages/components/essayResponseCommonComponents.js +10 -4
  41. package/cypress/pages/components/figOverImageCommonComponent.js +2 -1
  42. package/cypress/pages/components/fillInTheGapsCommonComponents.js +34 -14
  43. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +1 -1
  44. package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +7 -7
  45. package/cypress/pages/components/listSortingAndOrderingBase.js +1 -1
  46. package/cypress/pages/components/mcqAdditionalSettingsBase.js +10 -0
  47. package/cypress/pages/components/mcqQuestionCommonComponents.js +1 -1
  48. package/cypress/pages/components/mcqScoringComponent.js +1 -1
  49. package/cypress/pages/components/previewScoringAndShowCorrectAnswerComponent.js +20 -18
  50. package/cypress/pages/components/questionInstructionsComponent.js +1 -1
  51. package/cypress/pages/components/scoringSectionBase.js +30 -1
  52. package/cypress/pages/components/setPointsPopupBase.js +2 -1
  53. package/cypress/pages/components/uploadImageSectionComponent.js +8 -8
  54. package/cypress/pages/createItemPage.js +83 -1
  55. package/cypress/pages/dialogBoxBase.js +3 -7
  56. package/cypress/pages/dragAndDropIntoCategoriesPage.js +5 -4
  57. package/cypress/pages/essayResponsePage.js +1 -0
  58. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -0
  59. package/cypress/pages/fillInTheGapsScoring.js +215 -317
  60. package/cypress/pages/highlightImagePage.js +6 -4
  61. package/cypress/pages/highlightPage.js +1 -2
  62. package/cypress/pages/index.js +4 -0
  63. package/cypress/pages/listMatchingPage.js +5 -4
  64. package/cypress/pages/listMatchingScoring.js +274 -272
  65. package/cypress/pages/listOrderingPage.js +23 -14
  66. package/cypress/pages/listSortingPage.js +7 -9
  67. package/cypress/pages/multipleSelectionPage.js +2 -1
  68. package/cypress/pages/shortTextResponsePage.js +9 -0
  69. package/cypress/pages/singleSelectionPage.js +1 -0
  70. package/cypress/pages/uploadResponsePage.js +296 -15
  71. package/cypress/pages/videoResponsePage.js +5 -6
  72. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { audioResponsePage } from '../../../pages/audioResponsePage';
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
4
 
5
- const fontsizes = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
5
+ const fontsizes = ['Tiny', 'Small', 'Default', 'Normal', 'Big', 'Huge'];
6
6
  const font = ['16px', '12px', '14px', '17px', '20px', '24px'];
7
7
 
8
8
  describe('Create Item page - Audio response: Additional Settings', () => {
@@ -1,9 +1,7 @@
1
1
  import { audioResponsePage } from '../../../pages/audioResponsePage';
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  const css = Cypress.env('css');
4
-
5
- const fontsizes = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
6
- const font = ['16px', '12px', '14px', '17px', '20px', '24px'];
4
+ const fontSizes = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
7
5
 
8
6
  describe('Create Item page - Audio response: Additional Settings', () => {
9
7
  before(() => {
@@ -42,20 +40,20 @@ describe('Create Item page - Audio response: Additional Settings', () => {
42
40
  audioResponsePage.steps.expandAdditonalSettings();
43
41
  });
44
42
 
45
- audioResponsePage.tests.verifyFontSizeSectionContents();//bug posted https://redmine.zeuslearning.com/issues/526284
43
+ audioResponsePage.tests.verifyFontSizeSectionContents();
46
44
 
47
- fontsizes.forEach((option, count) => {
48
- it(`When the user selects '${option}' option from the Font Size dropdown, then font size for the question instructions in the student player should be changed to ${option} in the 'Preview' tab`, () => {
45
+ Object.keys(fontSizes).forEach((option, fontsIndex) => {
46
+ it(`When the user selects '${option}' option from the Font Size dropdown, then font size of the preview content should be changed to ${fontSizes[option]} in the preview tab`, () => {
49
47
  audioResponsePage.fontSizeDropdown()
50
48
  .click();
51
- audioResponsePage.fontSizeListOptions(count)
49
+ audioResponsePage.fontSizeListOptions(fontsIndex)
52
50
  .click();
53
51
  audioResponsePage.fontSizeDropdown()
54
52
  .verifyInnerText(`${option}`);
55
53
  cy.log('Switching to Preview tab.');
56
54
  audioResponsePage.steps.switchToPreviewTab();
57
55
  audioResponsePage.questionInstructionsText()
58
- .should('have.css', 'font-size', font[count]);//TO DO: Query posted https://redmine.zeuslearning.com/issues/526031
56
+ .should('have.css', 'font-size', fontSizes[option]);
59
57
  cy.log('Post step: Switch to Edit tab')
60
58
  audioResponsePage.steps.switchToEditTab();
61
59
  });
@@ -73,18 +71,18 @@ describe('Create Item page - Audio response: Additional Settings', () => {
73
71
  .should('be.visible');
74
72
  });
75
73
 
76
- fontsizes.forEach((option, count) => {
77
- it(`When the user selects '${option}' option from the Font Size dropdown, then font size for the question instructions in the student player should be changed to ${option} in the 'Preview' tab`, () => {
74
+ Object.keys(fontSizes).forEach((option, fontsIndex) => {
75
+ it(`When the user selects '${option}' option from the Font Size dropdown, then font size of the preview content should be changed to ${fontSizes[option]} in the preview tab`, () => {
78
76
  audioResponsePage.fontSizeDropdown()
79
77
  .click();
80
- audioResponsePage.fontSizeListOptions(count)
78
+ audioResponsePage.fontSizeListOptions(fontsIndex)
81
79
  .click();
82
80
  audioResponsePage.fontSizeDropdown()
83
81
  .verifyInnerText(`${option}`);
84
82
  cy.log('Switching to Preview tab.');
85
83
  audioResponsePage.steps.switchToPreviewTab();
86
84
  audioResponsePage.questionInstructionsText()
87
- .should('have.css', 'font-size', font[count]);
85
+ .should('have.css', 'font-size', fontSizes[option]);
88
86
  cy.log('Post step: Switch to Edit tab')
89
87
  audioResponsePage.steps.switchToEditTab();
90
88
  });
@@ -35,7 +35,7 @@ describe('Create question page - Audio Response: Scoring', () => {
35
35
  audioResponsePage.steps.switchToPreviewTab();
36
36
  });
37
37
 
38
- audioResponsePage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab()
38
+ audioResponsePage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Manually scored');
39
39
  });
40
40
 
41
41
  describe('Non Scored scoring type - Question creation page', () => {
@@ -55,6 +55,6 @@ describe('Create question page - Audio Response: Scoring', () => {
55
55
  audioResponsePage.steps.switchToPreviewTab();
56
56
  });
57
57
 
58
- audioResponsePage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab()
58
+ audioResponsePage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Non scored');
59
59
  });
60
60
  });
@@ -1,10 +1,8 @@
1
1
  import { dragAndDropIntoCategoriesPage } from "../../../pages";
2
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
3
3
  import utilities from "../../../support/helpers/utilities";
4
- const css = Cypress.env('css');
5
4
  const optionsArray = ['Bat', 'Eagle', 'Parrot', 'Whale'];
6
- const fontSizeDropdownOptions = ['Default', 'Small', 'Normal', 'Large', 'Extra large', 'Huge'];
7
- const fontSizes = ['16px', '12px', '14px', '17px', '20px', '24px'];
5
+ const fontSizes = { 'Tiny': '12px', 'Small': '14px', 'Default': '16px', 'Normal': '18px', 'Big': '22px', 'Huge': '26px' };
8
6
 
9
7
  describe('Create item page: Drag and drop into categories: Additional settings', () => {
10
8
  before(() => {
@@ -39,14 +37,6 @@ describe('Create item page: Drag and drop into categories: Additional settings',
39
37
  before(() => {
40
38
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
41
39
  cy.barsPreLoaderWait();
42
- dragAndDropIntoCategoriesPage.steps.addOption();
43
- dragAndDropIntoCategoriesPage.steps.addOption();
44
- dragAndDropIntoCategoriesPage.steps.addInputToOptionsForDragAndDropFields(optionsArray);
45
- dragAndDropIntoCategoriesPage.steps.allotPoints(20);
46
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Bat', 0);
47
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
48
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
49
- dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Platypus', 3);
50
40
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
51
41
  });
52
42
 
@@ -69,31 +59,31 @@ describe('Create item page: Drag and drop into categories: Additional settings',
69
59
  dragAndDropIntoCategoriesPage.steps.enterTextInRowHeadingInputField('Row heading');
70
60
  });
71
61
 
72
- fontSizeDropdownOptions.forEach((option, fontsIndex) => {
73
- it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the set correct answer section (options, labels) should be changed to ${option}`, () => {
62
+ Object.keys(fontSizes).forEach((option, fontsIndex) => {
63
+ it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the set correct answer section (options, labels) should be changed to ${fontSizes[option]}`, () => {
74
64
  dragAndDropIntoCategoriesPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex)
75
65
  dragAndDropIntoCategoriesPage.fontSizeDropdown()
76
66
  .verifyInnerText(`${option}`);
77
67
  dragAndDropIntoCategoriesPage.setCorrectAnswerDraggableOptionsWrapper('drag and drop into categories')
78
68
  .within(() => {
79
- utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
80
- 'font-size': fontSizes[fontsIndex]
69
+ utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.draggableOptionText(), 0), {
70
+ 'font-size': fontSizes[option]
81
71
  });
82
72
  });
83
73
  dragAndDropIntoCategoriesPage.setCorrectAnswerSectionCategoryGrid()
84
74
  .within(() => {
85
- utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
86
- 'font-size': fontSizes[fontsIndex]
75
+ utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.draggableOptionText(), 0), {
76
+ 'font-size': fontSizes[option]
87
77
  });
88
78
  });
89
79
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.setCorrectAnswerSectionCategoryTitle(), {
90
- 'font-size': fontSizes[fontsIndex]
80
+ 'font-size': fontSizes[option]
91
81
  });
92
82
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.setCorrectAnswerSectionRowTitle(), {
93
- 'font-size': fontSizes[fontsIndex]
83
+ 'font-size': fontSizes[option]
94
84
  });
95
85
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.rowHeadingSetCorrectAnswerSection(), {
96
- 'font-size': fontSizes[fontsIndex]
86
+ 'font-size': fontSizes[option]
97
87
  });
98
88
  });
99
89
  });
@@ -113,57 +103,57 @@ describe('Create item page: Drag and drop into categories: Additional settings',
113
103
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
114
104
  });
115
105
 
116
- fontSizeDropdownOptions.forEach((option, fontsIndex) => {
117
- it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview (options, question instructions question stems) should be changed to ${option} in the preview tab Answer table`, () => {
106
+ Object.keys(fontSizes).forEach((option, fontsIndex) => {
107
+ it(`When the user selects \'${option}\' option from the Font Size dropdown, then font size of the preview (options, question instructions question stems) should be changed to ${fontSizes[option]} in the preview tab Answer table`, () => {
118
108
  dragAndDropIntoCategoriesPage.steps.selectFontSizeOptionFromFontSizeDropdown(fontsIndex);
119
109
  utilities.verifyInnerText(dragAndDropIntoCategoriesPage.fontSizeDropdown(), `${option}`);
120
110
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
121
111
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.questionInstructionsText(), {
122
- 'font-size': fontSizes[fontsIndex]
112
+ 'font-size': fontSizes[option]
123
113
  });
124
114
  dragAndDropIntoCategoriesPage.previewTabDraggableOptionsWrapper('drag and drop into categories')
125
115
  .within(() => {
126
- utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
127
- 'font-size': fontSizes[fontsIndex]
116
+ utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.draggableOptionText(), 0), {
117
+ 'font-size': fontSizes[option]
128
118
  });
129
119
  });
130
120
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfPreviewTab('Bat', 0);
131
121
  dragAndDropIntoCategoriesPage.previewTabCategoryGrid()
132
122
  .within(() => {
133
- utilities.verifyCSS(dragAndDropIntoCategoriesPage.draggableOption(), {
134
- 'font-size': fontSizes[fontsIndex]
123
+ utilities.verifyCSS(utilities.getNthElement(dragAndDropIntoCategoriesPage.draggableOptionText(), 0), {
124
+ 'font-size': fontSizes[option]
135
125
  });
136
126
  });
137
127
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.previewTabCategoryTitle(), {
138
- 'font-size': fontSizes[fontsIndex]
128
+ 'font-size': fontSizes[option]
139
129
  });
140
130
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.previewTabRowTitle(), {
141
- 'font-size': fontSizes[fontsIndex]
131
+ 'font-size': fontSizes[option]
142
132
  });
143
133
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.rowHeadingPreviewTab(), {
144
- 'font-size': fontSizes[fontsIndex]
134
+ 'font-size': fontSizes[option]
145
135
  });
146
136
  cy.log('Font size of answer numeration and correct answer container when show correct answer is checked')
147
137
  dragAndDropIntoCategoriesPage.steps.checkShowCorrectAnswerCheckbox();
148
138
  dragAndDropIntoCategoriesPage.previewTabCategoryGrid()
149
139
  .within(() => {
150
140
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.categoryCellNumeration(), {
151
- 'font-size': fontSizes[fontsIndex]
141
+ 'font-size': fontSizes[option]
152
142
  });
153
143
  });
154
144
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.correctAnswerLabel(), {
155
- 'font-size': fontSizes[fontsIndex]
145
+ 'font-size': fontSizes[option]
156
146
  });
157
147
  dragAndDropIntoCategoriesPage.correctAnswerContainer()
158
148
  .within(() => {
159
149
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.categoryCellNumeration(), {
160
- 'font-size': fontSizes[fontsIndex]
150
+ 'font-size': fontSizes[option]
161
151
  });
162
152
  });
163
153
  dragAndDropIntoCategoriesPage.correctAnswerContainer()
164
154
  .within(() => {
165
155
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.correctAnswerOption(), {
166
- 'font-size': fontSizes[fontsIndex]
156
+ 'font-size': fontSizes[option]
167
157
  });
168
158
  });
169
159
  cy.log('Uncheck show correct answer checkbox')
@@ -173,7 +163,7 @@ describe('Create item page: Drag and drop into categories: Additional settings',
173
163
  dragAndDropIntoCategoriesPage.previewTabCategoryGrid()
174
164
  .within(() => {
175
165
  utilities.verifyCSS(dragAndDropIntoCategoriesPage.categoryCellNumeration(), {
176
- 'font-size': fontSizes[fontsIndex]
166
+ 'font-size': fontSizes[option]
177
167
  });
178
168
  });
179
169
  dragAndDropIntoCategoriesPage.steps.switchToEditTab();
@@ -35,7 +35,7 @@ describe('Create item page - drag and drop into categories: Preview tab scoring
35
35
  dragAndDropIntoCategoriesPage.steps.verifyDraggableResponsesPreviewTab('drag and drop into categories', answerResponseOptions);
36
36
  });
37
37
 
38
- dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab();
38
+ dragAndDropIntoCategoriesPage.tests.verifyShowCorrectAnswerAndPointsNotDisplayedInPreviewTab('Manually scored');
39
39
  });
40
40
 
41
41
  describe('Question Preview: Non scored', () => {
@@ -20,7 +20,7 @@ describe('Create Item Page: drag and drop into categories: Edit tab scoring type
20
20
  dragAndDropIntoCategoriesPage.steps.selectAScoringTypeFromScoringTypeDropdown('Manually scored');
21
21
  });
22
22
 
23
- it('When the user has selected \'Manually Scored\' option from the Scoring Type dropdown then the \'Set Correct Answer\' section should not be displayed; \'Scoring subtype\' dropdown should not be displayed; \'Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed; and inside \'Additional settings\' accordion \'Check answer\' section i.e. \'Allow students to check answer\' checkbox should not be displayed', () => {
23
+ it('When the user has selected \'Manually Scored\' option from the Scoring Type dropdown then the \'Set Correct Answer\' section should not be displayed; \'Scoring subtype\' dropdown should not be displayed; \'Points\' and \'Minimum score awarded (if attempted)\' labels and input fields should be displayed; and inside \'Additional settings\' accordion \'Check answer\' section i.e. \'Allow student to check answer\' checkbox should not be displayed', () => {
24
24
  dragAndDropIntoCategoriesPage.setCorrectAnswerLabel()
25
25
  .should('not.exist');
26
26
  dragAndDropIntoCategoriesPage.scoringSubtypeLabel()
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
23
22
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
24
23
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -49,6 +48,8 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
49
48
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
49
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
50
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
51
+ dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
52
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.50');
52
53
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
54
  });
54
55
 
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -19,7 +19,6 @@ describe('Create Item page - Drag and drop into categories: Preview tab scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
24
23
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
24
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -49,6 +48,8 @@ describe('Create Item page - Drag and drop into categories: Preview tab scoring
49
48
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
49
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
50
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
51
+ dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
52
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.50');
52
53
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
54
  });
54
55
 
@@ -19,7 +19,6 @@ describe('Create Item page - Drag and drop into categories: Preview tab scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -20,7 +20,6 @@ describe('Create Item page - Drag and drop into categories: Preview tab scoring
20
20
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
21
21
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
22
22
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
23
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
24
23
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
26
25
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -19,7 +19,6 @@ describe('Create Item page - Drag and drop into categories: Preview tab scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -58,7 +58,7 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
58
58
 
59
59
  it('CSS of \'Score\' and \'Show correct answer\'', { tags: 'css' }, () => {
60
60
  dragAndDropIntoCategoriesPage.previewScoreText()
61
- .verifyCSS(css.color.labels, css.fontSize.default, css.fontWeight.regular);
61
+ .verifyCSS(css.color.text, css.fontSize.default, css.fontWeight.regular);
62
62
  dragAndDropIntoCategoriesPage.showCorrectAnswerCheckboxLabel()
63
63
  .verifyCSS(css.color.labelText, css.fontSize.normal, css.fontWeight.regular);
64
64
  });
@@ -22,7 +22,7 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
22
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
- dragAndDropIntoCategoriesPage.steps.allotPoints(5);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(15);
26
26
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
27
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
28
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -22,7 +22,7 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
22
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
- dragAndDropIntoCategoriesPage.steps.allotPoints(15);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(10);
26
26
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
27
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
28
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -22,7 +22,7 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
22
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Whale', 2);
23
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Parrot', 2);
24
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Ostrich', 3);
25
- dragAndDropIntoCategoriesPage.steps.allotPoints(10);
25
+ dragAndDropIntoCategoriesPage.steps.allotPoints(5);
26
26
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
27
27
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
28
28
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -34,6 +34,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
34
34
 
35
35
  dragAndDropIntoCategoriesPage.tests.verifyPenaltyPointsFunctionalityForIncorrectAnswer(14, 40);
36
36
 
37
- dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 10);
37
+ dragAndDropIntoCategoriesPage.tests.verifyMinimumScoreIfAttemptedAndPenaltyPointsFunctionalityForIncorrectAnswer([1, 14, 12], 12, 40);
38
38
  });
39
39
  });
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
23
22
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
24
23
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -49,6 +48,8 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
49
48
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
49
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
50
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
51
+ dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
52
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.50');
52
53
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
54
  });
54
55
 
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -18,7 +18,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
18
18
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
19
19
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
20
20
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each cell');
21
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
22
21
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
23
22
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Peacock', 1);
@@ -19,7 +19,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.expandAdditonalSettings();
24
23
  dragAndDropIntoCategoriesPage.steps.checkAllowStudentsToCheckAnswerCheckbox();
25
24
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
@@ -49,6 +48,8 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
49
48
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
50
49
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
51
50
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
51
+ dragAndDropIntoCategoriesPage.steps.expandRoundingDropdown();
52
+ dragAndDropIntoCategoriesPage.steps.selectOptionFromRoundingDropdownOption('round down if <= 0.50');
52
53
  dragAndDropIntoCategoriesPage.steps.switchToPreviewTab();
53
54
  });
54
55
 
@@ -19,7 +19,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -19,7 +19,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -19,7 +19,6 @@ describe('Create Item page - drag and drop into categories: Preview tab Scoring
19
19
  dragAndDropIntoCategoriesPage.steps.setCorrectTabAnswerOptions();
20
20
  dragAndDropIntoCategoriesPage.steps.clickOnScoringSubtypeDropdown();
21
21
  dragAndDropIntoCategoriesPage.steps.selectScoringSubTypeDropdownOption('Total score divided between each correct response');
22
- dragAndDropIntoCategoriesPage.steps.uncheckRoundDownScoreCheckbox();
23
22
  dragAndDropIntoCategoriesPage.steps.clickOnAddAlternateAnswerButton();
24
23
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Flying squirrel', 0);
25
24
  dragAndDropIntoCategoriesPage.steps.clickAndDropDraggableOptionInCategoryCellOfSetCorrectAnswerSection('Eagle', 1);
@@ -4,12 +4,12 @@ const css = Cypress.env('css');
4
4
  const optionsForThreeResponses = ['Response 1', 'Response 2', 'Response 3'];
5
5
  const optionsForResponses = ['Response 1', 'Response 2'];
6
6
 
7
- describe('Create Item Page - drag and drop into categories: Set correct answer section, correct tab, alternate answer tab', () => {
7
+ describe('Create Item Page - drag and drop into categories: Specify correct answer section, correct tab, alternate answer tab', () => {
8
8
  before(() => {
9
9
  cy.loginAs('admin');
10
10
  });
11
11
 
12
- describe('Set correct answer section', () => {
12
+ describe('Specify correct answer section', () => {
13
13
  abortEarlySetup();
14
14
  before(() => {
15
15
  dragAndDropIntoCategoriesPage.steps.navigateToCreateQuestion('drag and drop into categories');
@@ -84,7 +84,8 @@
84
84
  "incorrectAnswerHighlightRegion": "rgba(209, 51, 51, 0.4)",
85
85
  "fileUploadProgressBarFill": "rgb(74, 147, 224)",
86
86
  "responseContainerPointer": "rgba(0, 0, 46, 0.4)",
87
- "activeHighlightBorder": "rgb(41, 0, 128)"
87
+ "activeHighlightBorder": "rgb(41, 0, 128)",
88
+ "hoverHighlightBorder": "rgb(66, 0, 204)"
88
89
  },
89
90
  "fontSize": {
90
91
  "extraSmall": "10px",
@@ -34,10 +34,10 @@ const selectors = {
34
34
  customizeUIControlAccordion: () => cy.get('.ngie-accordion-summary[role="button"]').eq(0),
35
35
  advancedPlayerSettingsAccordion: () => cy.get('.ngie-accordion-summary[role="button"]').eq(1),
36
36
  customizeControlPlayButton: () => cy.get('[data-ngie-testid="play-toggle-button"]'),
37
- customizeControlButtonLabel: () => cy.get('.audio-response-selection-panel-details').eq(0).find('.customized_button_label'),
37
+ customizeControlButtonLabel: () => cy.get('[data-ngie-testid="play-toggle-button"]').find('.ngie-toggle-button-label'),
38
38
  customizeControlPauseButton: () => cy.get('[data-ngie-testid="pause-toggle-button"]'),
39
39
  customizeControlSeekButton: () => cy.get('[data-ngie-testid="seek-toggle-button"]'),
40
- advancedPlayerButtonLabel: () => cy.get('.audio-response-selection-panel-details').eq(1).find('.customized_button_label'),
40
+ advancedPlayerButtonLabel: () => cy.get('[data-ngie-testid="timer-toggle-button"]').find('.ngie-toggle-button-label'),
41
41
  advancedPlayerTimerButton: () => cy.get('[data-ngie-testid="timer-toggle-button"]'),
42
42
  advancedPlayerProgressBarButton: () => cy.get('[data-ngie-testid="progress-bar-toggle-button"]'),
43
43
  advancedPlayerVolumeControlButton: () => cy.get('[data-ngie-testid="volume-control-toggle-button"]'),