itemengine-cypress-automation 1.0.185-repoUpdate26April-b17eb46.0 → 1.0.185

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +1 -1
  2. package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +1 -1
  3. package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +1 -1
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +1 -1
  5. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +8 -5
  6. package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +28 -417
  7. package/cypress/e2e/ILC/EssayResponse/editCategoryFlyout.js +1 -1
  8. package/cypress/e2e/ILC/FeedbackScaleNew/headerSection.js +1 -29
  9. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +2 -2
  10. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/studentViewSettings.js +1 -1
  11. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/studentViewSettings.js +1 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editTabScoring.js +0 -1
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +2 -2
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/studentViewSettings.js +1 -1
  15. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/studentViewSettings.js +1 -1
  16. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -4
  17. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  18. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/studentViewSettings.js +1 -1
  19. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +5 -5
  20. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +4 -3
  21. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialEqualWeightsWithAlternativePointsGreaterThanCorrectPoints.js +1 -1
  22. package/cypress/e2e/ILC/FillInTheGapsTextNew/headerSection.js +0 -1
  23. package/cypress/e2e/ILC/FillInTheGapsTextNew/studentViewSettings.js +1 -1
  24. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithAlternativePointsGreaterThanCorrectPoints.js +2 -2
  25. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsEqualToAlternatePoints.js +2 -2
  26. package/cypress/e2e/ILC/Graphing/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +2 -2
  27. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +2 -2
  28. package/cypress/e2e/ILC/Graphing/studentViewSettings.js +1 -1
  29. package/cypress/e2e/ILC/GridFill/checkAnswerFunctionalityForAllViews.smoke.js +2 -2
  30. package/cypress/e2e/ILC/GridFill/gridLayoutContents.js +3 -11
  31. package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +3 -3
  32. package/cypress/e2e/ILC/GridFill/studentViewSettingsSection.js +1 -1
  33. package/cypress/e2e/ILC/Matching/studentViewSettings.js +1 -1
  34. package/cypress/e2e/ILC/MultipleSelection/allOrNothingWithAlternativeAnswer.js +0 -1
  35. package/cypress/e2e/ILC/MultipleSelectionGridNew/studentViewSettings.js +1 -1
  36. package/cypress/e2e/ILC/NumberLine/Scoring/allOrNothingWithCorrectPointsGreaterThanAlternativePoints.js +3 -3
  37. package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +1 -57
  38. package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +1 -1
  39. package/cypress/e2e/ILC/NumberLine/studentViewSettings.js +1 -1
  40. package/cypress/e2e/ILC/NumberLine/toolSettings.js +1 -2
  41. package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
  42. package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -49
  43. package/cypress/e2e/ILC/ShortTextResponseNew/studentViewSettings.js +1 -1
  44. package/cypress/e2e/ILC/SingleSelectionGridNew/studentViewSettings.js +1 -1
  45. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  46. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingAlternatePointsMoreThanCorrectPoints.js +1 -0
  47. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsEqualToAlternatePoints.js +1 -0
  48. package/cypress/e2e/ILC/TextSelection/Scoring/allOrNothingCorrectPointsMoreThanAlternatePoints.js +1 -0
  49. package/cypress/e2e/ILC/TextSelection/Scoring/basicScoringForAllTextSelectionTypes.smoke.js +1 -0
  50. package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +1 -0
  51. package/cypress/e2e/ILC/TextSelection/checkAnswerFunctionalityForAllViews.smoke.js +2 -1
  52. package/cypress/e2e/ILC/TextSelection/editTabScoringSection.js +4 -5
  53. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -6
  54. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +5 -5
  55. package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
  56. package/cypress/fixtures/constants.js +1 -1
  57. package/cypress/fixtures/equationEditorCategoriesAndSymbols .js +20 -20
  58. package/cypress/fixtures/theme/ilc.json +18 -20
  59. package/cypress/pages/audioPlayerPage.js +504 -274
  60. package/cypress/pages/brainingCampManipulativePage.js +1 -1
  61. package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +3 -3
  62. package/cypress/pages/components/autoScoredStudentViewSettings.js +5 -5
  63. package/cypress/pages/components/commonComponents.js +0 -1
  64. package/cypress/pages/components/draggableOptionContainer.js +0 -1
  65. package/cypress/pages/components/equationEditorFlyout.js +2 -3
  66. package/cypress/pages/components/essayResponseCommonComponents.js +2 -8
  67. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -1
  68. package/cypress/pages/components/imageCanvasComponent.js +1 -2
  69. package/cypress/pages/components/index.js +0 -3
  70. package/cypress/pages/components/optionsWrapperComponent.js +2 -13
  71. package/cypress/pages/components/playbackControlsBaseComponent.js +13 -20
  72. package/cypress/pages/components/toolSettingsComponent.js +0 -6
  73. package/cypress/pages/contentBlocksPage.js +2 -18
  74. package/cypress/pages/createItemPage.js +8 -75
  75. package/cypress/pages/dialogBoxBase.js +2 -2
  76. package/cypress/pages/drawingResponsePage.js +4 -24
  77. package/cypress/pages/feedbackScalePage.js +0 -3
  78. package/cypress/pages/graphingPage.js +1 -19
  79. package/cypress/pages/gridFillPage.js +8 -25
  80. package/cypress/pages/index.js +1 -2
  81. package/cypress/pages/itemPreviewSettingsPage.js +0 -4
  82. package/cypress/pages/listOrderingPage.js +557 -435
  83. package/cypress/pages/matchingPage.js +1 -1
  84. package/cypress/pages/multipleSelectionPage.js +1 -23
  85. package/cypress/pages/numberLinePage.js +132 -1370
  86. package/cypress/pages/rulerPage.js +2 -6
  87. package/cypress/pages/textSelectionPage.js +23 -461
  88. package/package.json +1 -1
  89. package/cypress/e2e/ILC/AudioPlayerNew/allSupportedFileTypes.js +0 -79
  90. package/cypress/e2e/ILC/AudioPlayerNew/barAudioPlayerStyle.js +0 -345
  91. package/cypress/e2e/ILC/AudioPlayerNew/compactAudioPlayerStyle.js +0 -429
  92. package/cypress/e2e/ILC/AudioPlayerNew/previewContents.smoke.js +0 -162
  93. package/cypress/e2e/ILC/AudioPlayerNew/standardAudioPlayerStyle.js +0 -489
  94. package/cypress/e2e/ILC/AudioPlayerNew/uploadAndAddAudioFile.js +0 -313
  95. package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +0 -230
  96. package/cypress/e2e/ILC/ListOrderingDropdown/checkAnswerFunctionalityForAllViews.smoke.js +0 -124
  97. package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +0 -201
  98. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +0 -216
  99. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +0 -214
  100. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +0 -251
  101. package/cypress/e2e/ILC/ListOrderingNew/Scoring/allOrNothingPenaltyScoring.js +0 -52
  102. package/cypress/e2e/ILC/ListOrderingNew/Scoring/manuallyAndNonScored.js +0 -128
  103. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -279
  104. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsBasic.js +0 -109
  105. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +0 -278
  106. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -278
  107. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +0 -335
  108. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +0 -250
  109. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsBasic.js +0 -161
  110. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +0 -216
  111. package/cypress/e2e/ILC/ListOrderingNew/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +0 -252
  112. package/cypress/e2e/ILC/ListOrderingNew/additionalSettings.js +0 -118
  113. package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -243
  114. package/cypress/e2e/ILC/ListOrderingNew/checkAnswerFunctionalityForAllViews.smoke.js +0 -128
  115. package/cypress/e2e/ILC/ListOrderingNew/editTabBasicSection.js +0 -155
  116. package/cypress/e2e/ILC/ListOrderingNew/editTabScoring.js +0 -195
  117. package/cypress/e2e/ILC/ListOrderingNew/headerSection.js +0 -78
  118. package/cypress/e2e/ILC/ListOrderingNew/minimumScoringPenaltyPointsAndRoundingDropdown.js +0 -194
  119. package/cypress/e2e/ILC/ListOrderingNew/previewContentsForAllViews.smoke.js +0 -176
  120. package/cypress/e2e/ILC/ListOrderingNew/specifyCorrectAnswerSection.js +0 -112
  121. package/cypress/e2e/ILC/ListOrderingNew/studentViewSettings.js +0 -244
  122. package/cypress/e2e/ILC/NumberLine/LayoutSection.js +0 -181
  123. package/cypress/e2e/ILC/NumberLine/lineSettingsSection.js +0 -33
  124. package/cypress/e2e/ILC/NumberLine/numberLineSection.js +0 -46
  125. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -696
  126. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +0 -173
  127. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/layoutSection.js +0 -183
  128. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/numberLineSection.js +0 -73
  129. package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +0 -204
  130. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -288
  131. package/cypress/e2e/ILC/NumberLineLabel/checkAnswerFunctionalityForAllViews.smoke.js +0 -153
  132. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -164
  133. package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +0 -120
  134. package/cypress/e2e/ILC/TextSelection/additionalSettings.js +0 -125
  135. package/cypress/e2e/ILC/TextSelection/headerSection.js +0 -73
  136. package/cypress/e2e/ILC/TextSelection/questionInstructionsAndQuestion.js +0 -179
  137. package/cypress/e2e/ILC/TextSelection/specifyCorrectAnswerSection.js +0 -89
  138. package/cypress/e2e/ILC/TextSelection/studentViewSettings.js +0 -436
  139. package/cypress/e2e/ILC/TextSelection/styleAndLayoutCustomizationAccordion.js +0 -277
  140. package/cypress/e2e/ILC/TextSelection/textSelectionModesInPreviewTab.js +0 -222
  141. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyCorrectAnswerSection.js +0 -260
  142. package/cypress/e2e/ILC/TextSelection/textSelectionModesInSpecifyPossibleOptionsSection.js +0 -380
  143. package/cypress/pages/components/layoutSectionComponent.js +0 -1191
  144. package/cypress/pages/components/numberLineCommonComponent.js +0 -36
  145. package/cypress/pages/components/styleAndLayoutCustomizationAccordionComponent.js +0 -46
  146. package/cypress/pages/numberLineLabelPage.js +0 -333
@@ -121,7 +121,7 @@ describe('Create Item page - Number line : Student view settings', () => {
121
121
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
122
122
  numberLinePage.steps.switchToEditTab();
123
123
  numberLinePage.steps.expandMaxCheckAnswerAttemptsDropdown();
124
- numberLinePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
124
+ numberLinePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
125
125
  numberLinePage.steps.switchToPreviewTab();
126
126
  numberLinePage.steps.verifyCheckAnswerButtonEnabled();
127
127
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 1);
@@ -19,7 +19,6 @@ describe('Create Item page: Tool settings', () => {
19
19
  numberLinePage.tests.verifyToolSettingsContent();
20
20
  });
21
21
 
22
- //Failing due to https://redmine.zeuslearning.com/issues/568938
23
22
  describe('Tool settings: Edit tool settings', () => {
24
23
  abortEarlySetup();
25
24
  before(() => {
@@ -41,7 +40,7 @@ describe('Create Item page: Tool settings', () => {
41
40
  rulerPage.steps.selectOptionFromRotationDropdown('Allow rotation and display angle');
42
41
  rulerPage.steps.enterInputToOpacityInputField(60);
43
42
  rulerPage.steps.checkAddShowHideButtonCheckbox();
44
- toolSettingsComponent.steps.clickOnOkButton();
43
+ dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
45
44
  utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
46
45
  toolSettingsComponent.steps.verifyToolSelectedState(0);
47
46
  });
@@ -54,7 +54,7 @@ describe('Preview tab contents for all views', () => {
54
54
  }
55
55
  if (view === 'Student view') {
56
56
  studentViewPage.steps.submitResponse();
57
- utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
57
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
58
58
  }
59
59
  });
60
60
 
@@ -195,55 +195,7 @@ describe('Create Item page - Reading ruler: Edit Tab', () => {
195
195
  readingRulerPage.steps.verifyColorPopupIsDisplayed();
196
196
  });
197
197
 
198
- it('A title \'Select color\' should be displayed on the color popup', () => {
199
- readingRulerPage.steps.verifyColorPopupSelectColorTitle();
200
- });
201
-
202
- it('A \'Selected color\' label and color block displaying the selected color should be displayed', () => {
203
- readingRulerPage.steps.verifySelectedColorLabelAndSelectedColorBlock();
204
- });
205
-
206
- it('\'Cancel\' and \'Ok\' buttons should be displayed', () => {
207
- utilities.verifyInnerText(readingRulerPage.cancelButton(), 'Cancel');
208
- utilities.verifyElementVisibilityState(readingRulerPage.cancelButton(), 'visible');
209
- utilities.verifyInnerText(readingRulerPage.okButton(), 'OK');
210
- utilities.verifyElementVisibilityState(readingRulerPage.okButton(), 'visible');
211
- });
212
-
213
- it('CSS of color popup contents', { tags: 'css' }, () => {
214
- const labels = [readingRulerPage.selectedColorLabel, readingRulerPage.hexLabel]
215
- const inputFields = [readingRulerPage.hexInputField];
216
- labels.forEach(label => {
217
- utilities.verifyCSS(label(), {
218
- 'color': css.color.labels,
219
- 'font-size': css.fontSize.normal,
220
- 'font-weight': css.fontWeight.semibold
221
- });
222
- });
223
- inputFields.forEach(inputField => {
224
- utilities.verifyCSS(inputField(), {
225
- 'color': css.color.text,
226
- 'font-size': css.fontSize.default,
227
- 'font-weight': css.fontWeight.regular
228
- });
229
- });
230
- utilities.verifyCSS(readingRulerPage.okButton(), {
231
- 'color': css.color.primaryBtn,
232
- 'font-size': css.fontSize.default,
233
- 'font-weight': css.fontWeight.semibold,
234
- 'background-color': css.color.primaryBtnBg
235
- });
236
- utilities.verifyCSS(readingRulerPage.cancelButton(), {
237
- 'color': css.color.secondaryBtn,
238
- 'font-size': css.fontSize.default,
239
- 'font-weight': css.fontWeight.semibold,
240
- 'background-color': css.color.transparent
241
- });
242
- });
243
-
244
- it('Accessibility of color popup contents', { tags: 'a11y' }, () => {
245
- cy.checkAccessibility(readingRulerPage.dialogBoxContent());
246
- });
198
+ readingRulerPage.tests.verifyColorPopupSelectColorTitle();
247
199
 
248
200
  readingRulerPage.tests.verifySaturationAndOpacityGradientPalette('rgb(255, 255, 255)');
249
201
 
@@ -318,7 +318,7 @@ describe('Create Item page - Short text response : Student view settings', () =>
318
318
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
319
319
  shortTextResponsePage.steps.switchToEditTab();
320
320
  shortTextResponsePage.steps.expandMaxCheckAnswerAttemptsDropdown();
321
- shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
321
+ shortTextResponsePage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
322
322
  shortTextResponsePage.steps.switchToPreviewTab();
323
323
  shortTextResponsePage.steps.verifyCheckAnswerButtonEnabled();
324
324
  shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower');
@@ -172,7 +172,7 @@ describe('Create item page - single selection grid: Student view settings', () =
172
172
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer single times', () => {
173
173
  singleSelectionGridPage.steps.switchToEditTab();
174
174
  singleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
175
- singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
175
+ singleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
176
176
  singleSelectionGridPage.steps.switchToPreviewTab();
177
177
  singleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
178
178
  singleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
@@ -353,10 +353,10 @@ describe('Create Item page - Text entry math: Response evaluation methods and cu
353
353
  } else {
354
354
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.ignoreUnitCoefficient), 'notExist');
355
355
  }
356
- if (evaluationMethod.customSettings.includes('Check for parenthesis groups')) {
356
+ if (evaluationMethod.customSettings.includes('Check for parenthesis grouping')) {
357
357
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'visible');
358
358
  textEntryMathPage.steps.verifyCustomSettingsCheckboxIsUnchecked(customSettingsIds.checkForParenthesisGrouping);
359
- textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis groups');
359
+ textEntryMathPage.steps.verifyCustomSettingsCheckboxLabel(customSettingsIds.checkForParenthesisGrouping, 'Check for parenthesis grouping');
360
360
  } else {
361
361
  utilities.verifyElementVisibilityState(textEntryMathPage.customSettingsCheckboxContainer(customSettingsIds.checkForParenthesisGrouping), 'notExist');
362
362
  }
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Alternate Answer points are more than Correct Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are equal to Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -10,6 +10,7 @@ describe('Create Item page - Text selection: Preview tab Scoring Section - All o
10
10
  describe('Question Preview: AutoScored - All or Nothing with alternate answer: When Correct Answer points are more than Alternate Answer points', () => {
11
11
  abortEarlySetup();
12
12
  before(() => {
13
+ cy.log('Navigating to Text selection question type');
13
14
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
14
15
  cy.barsPreLoaderWait();
15
16
  textSelectionPage.steps.setQuestionAndOptionsInEditTab();
@@ -16,6 +16,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
16
16
  describe('Question Preview: Custom text selection type with All or nothing scoring', () => {
17
17
  abortEarlySetup();
18
18
  before(() => {
19
+ cy.log('Navigate to question, add input to stems and options, set correct answer and allot points and switch to preview tab');
19
20
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
20
21
  cy.barsPreLoaderWait();
21
22
  textSelectionPage.steps.addQuestionInstructions();
@@ -232,6 +232,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
232
232
  describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
233
233
  abortEarlySetup();
234
234
  before(() => {
235
+ cy.log('Navigating to Highlight question type');
235
236
  textSelectionPage.steps.navigateToCreateQuestion('text selection');
236
237
  cy.barsPreLoaderWait();
237
238
  textSelectionPage.steps.addTextInQuestionInstructionsInputField('Highlight the correct statements.');
@@ -93,11 +93,12 @@ describe('Create item page - Matching - Check answer functionality', () => {
93
93
 
94
94
  it('When the user attempts the question incorrectly and clicks on \'Check answer\' button, then incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' should be displayed. Correct answer section should not be displayed', () => {
95
95
  textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
96
+ textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
96
97
  checkAnswer(view);
97
98
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[0]);
98
99
  textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[1]);
99
100
  textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[2]);
100
- textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(paragraphTextArray[3]);
101
+ textSelectionPage.steps.verifyIncorrectIconForOption(paragraphTextArray[3]);
101
102
  textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
102
103
  textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();
103
104
  });
@@ -98,9 +98,8 @@ describe('Create item page - Text selection: Scoring section', () => {
98
98
 
99
99
  textSelectionPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
100
100
 
101
- it('\'Points per response:\' label should be displayed in the \'Specify correct answer\' section', () => {
102
- utilities.verifyInnerText(textSelectionPage.pointsPerResponseLabel(), 'Points per response:');
103
- utilities.verifyElementVisibilityState(textSelectionPage.pointsPerResponseLabel(), 'visible');
101
+ it('\'Points per response\' label should be displayed and a \'-\' should be displayed besides each response in the \'Specify correct answer\' section', () => {
102
+ textSelectionPage.steps.verifyPointsPerResponseLabel();
104
103
  });
105
104
 
106
105
  it('When the user gives a score input to \'Points\' input field, then the score should be equally divided among the dropzone \'Points per response\' label', () => {
@@ -188,12 +187,12 @@ describe('Create item page - Text selection: Scoring section', () => {
188
187
  it('When user has not selected an option in specify correct answer section, then the \'Set points\' button should be disabled', () => {
189
188
  utilities.verifyElementDisabled(textSelectionPage.setPointsButton());
190
189
  });
191
-
190
+
192
191
  it('When user selects an option in set correct answer section, then the \'Set points\' button should be enabled', () => {
193
192
  textSelectionPage.steps.selectOptionInSpecifyCorrectAnswerSection(paragraphTextArray[0]);
194
193
  textSelectionPage.steps.verifySetPointsButtonLabelAndEnabledState();
195
194
  });
196
-
195
+
197
196
  it('CSS of \'Set points\' button', { tags: 'css' }, () => {
198
197
  utilities.verifyCSS(textSelectionPage.setPointsButton(), {
199
198
  'color': css.color.activeButtons,
@@ -70,7 +70,7 @@ describe('Create item page - Text selection : Preview contents', () => {
70
70
  });
71
71
 
72
72
  it('Question instructions should be visible', () => {
73
- utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Select the correct statements.');
73
+ utilities.verifyInnerText(textSelectionPage.questionInstructionsText(), 'Highlight the correct statements.');
74
74
  utilities.verifyElementVisibilityState(textSelectionPage.questionInstructionsText(), 'visible');
75
75
  });
76
76
 
@@ -109,17 +109,18 @@ describe('Create item page - Text selection : Preview contents', () => {
109
109
 
110
110
  it('When user clicks on a selected option, then that option should be deselected', () => {
111
111
  textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
112
- textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
112
+ textSelectionPage.steps.verifyDeselectedStateOptionInPreviewTab(paragraphTextArray[0]);
113
113
  });
114
114
  } else if (view === 'Grading view') {
115
- it('The question text should be displayed with the selected correct options and status message \' Your answer is incorrect\' should be displayed', () => {
115
+ it('The question text should be displayed with the selected correct options and status message \' Your answer is correct\' should be displayed', () => {
116
+ textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[0]);
116
117
  textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[1]);
117
- textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
118
+ textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
118
119
  });
119
120
 
120
121
  it('The submitted answer options should not be editable', () => {
121
- textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[1]);
122
- textSelectionPage.steps.verifyOptionIsSelectedInPreviewTab(paragraphTextArray[1]);
122
+ textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[0]);
123
+ textSelectionPage.steps.verifyOptionIsSelectedInPreviewTab(paragraphTextArray[0]);
123
124
  textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[2]);
124
125
  textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
125
126
  });
@@ -5,7 +5,7 @@ import { dialogBoxBase, multipleSelectionPage, rulerPage } from "../../../pages"
5
5
 
6
6
  const css = Cypress.env('css');
7
7
 
8
- const tools = ['Ruler', 'Protractor', 'Reading ruler', 'Simple Calculator', 'Scientific Calculator'];
8
+ const tools = ['Ruler', 'Protractor', 'Reading ruler', 'Simple calculator', 'Scientific calculator'];
9
9
  const lengthOfRuler = ['15 cm', '30 cm', '40 cm'];
10
10
  const rotationOptions = ['None', 'Allow rotation', 'Allow rotation and display angle'];
11
11
  const unitOfMeasurementOptions = ['Centimeter', 'Inch', 'Pixel', 'Both centimeter and inch', 'Custom image'];
@@ -62,7 +62,7 @@ describe('Create Item page: Tool settings', () => {
62
62
  it(`When \'Tool settings\' accordion is expanded, then \'Add tools\' and \'Select the tools that will be displayed to the students.\' labels should be displayed. Three tools ${tools} should be displayed with their labels, icons, drag handle button and edit icon. By default tools should not be selected`, () => {
63
63
  utilities.verifyInnerText(toolSettingsComponent.addToolsLabel(), 'Add tools');
64
64
  utilities.verifyInnerText(toolSettingsComponent.toolSettingsHelpText(), 'Select the tools that will be displayed to the students.');
65
- utilities.verifyElementCount(toolSettingsComponent.toolButton(), 5);
65
+ utilities.verifyElementCount(toolSettingsComponent.toolButton(), 3);
66
66
  tools.forEach((toolName, toolIndex) => {
67
67
  toolSettingsComponent.steps.verifyToolButton(toolIndex, toolName);
68
68
  });
@@ -117,8 +117,8 @@ describe('Create Item page: Tool settings', () => {
117
117
  it(`'Length of ruler' label and dropdown should be displayed and by default ${lengthOfRuler[0]} should be selected`, () => {
118
118
  utilities.verifyInnerText(rulerPage.lengthOfRulerLabel(), 'Length of ruler');
119
119
  utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerLabel(), 'visible');
120
- rulerPage.steps.verifyLengthOfRulerOptions(lengthOfRuler[0]);
121
- utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerOptions(), 'exist');
120
+ rulerPage.steps.verifyInnerTextOfLengthOfRulerDropdown(lengthOfRuler[0]);
121
+ utilities.verifyElementVisibilityState(rulerPage.lengthOfRulerDropdown(), 'exist');
122
122
  });
123
123
 
124
124
  it(`When user expands the \'Unit of measurement\' dropdown then list with five option ${unitOfMeasurementOptions} should be displayed`, () => {
@@ -134,7 +134,7 @@ describe('Create Item page: Tool settings', () => {
134
134
 
135
135
  it(`When user expands the \'Length of ruler\' dropdown then list with three options ${lengthOfRuler} should be displayed`, () => {
136
136
  rulerPage.steps.expandLengthOfRulerDropdown();
137
- rulerPage.steps.verifyLengthOfRulerOptions(lengthOfRuler);
137
+ rulerPage.steps.verifyLengthOfRulerDropdownListOptions(lengthOfRuler);
138
138
  });
139
139
 
140
140
  it('When user selects an option from \'Length of ruler\' dropdown list, then dropdown list should disappear and selected option should be the active selection for the dropdown', () => {
@@ -32,7 +32,7 @@ describe('Tool settings content for all views', () => {
32
32
  toolSettingsComponent.steps.expandToolSettingsAccordion();
33
33
  toolSettingsComponent.steps.clickOnToolEditIcon(0);
34
34
  rulerPage.steps.checkAddShowHideButtonCheckbox();
35
- toolSettingsComponent.steps.clickOnOkButton();
35
+ dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
36
36
  createQuestionBasePage.steps.switchToPreviewTab();
37
37
  utilities.verifyElementVisibilityState(commonComponents.previewTabQuestionWrapper(), 'visible');
38
38
  break;
@@ -117,10 +117,10 @@ describe('Tool settings content for all views', () => {
117
117
  toolSettingsComponent.steps.expandToolSettingsAccordion();
118
118
  toolSettingsComponent.steps.clickOnToolEditIcon(0);
119
119
  rulerPage.steps.checkAddShowHideButtonCheckbox();
120
- toolSettingsComponent.steps.clickOnOkButton();
120
+ dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
121
121
  toolSettingsComponent.steps.clickOnToolEditIcon(1);
122
122
  rulerPage.steps.checkAddShowHideButtonCheckbox();
123
- toolSettingsComponent.steps.clickOnOkButton();
123
+ dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
124
124
  createQuestionBasePage.steps.switchToPreviewTab();
125
125
  break;
126
126
  case 'Item view':
@@ -9,7 +9,7 @@ const constants = {
9
9
  sampleSVGLink: "https://www.svgrepo.com/show/128943/3-flowers.svg",
10
10
  CKEditorEquationEditorPopupInputFieldEnteredEquationText: "x=3√8,What is the value of x?",
11
11
  CKEditorInputFieldEnteredEquationText: "x=83,What is the value of x?",
12
- CKEditorInputFieldEnteredEquationAriaLabel: "x equals the cube root of 8 comma cap w h of A t i s t h of e v A l u e o f x question mark",
12
+ CKEditorInputFieldEnteredEquationAriaLabel: "x equals the cube root of 8 comma cap w h of A t i s t h of e v A l u e o f x question mark question mark",
13
13
  sampleMp3Link: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3",
14
14
  sampleWAVLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.wav",
15
15
  sampleAACLink: "https://dl.espressif.com/dl/audio/ff-16b-1c-44100hz.aac",
@@ -80,17 +80,11 @@ export const equationEditorCategoriesAndSymbols = {
80
80
  ariaLabel: 'Comma',
81
81
  displayText: ','
82
82
  },
83
- divide: {
84
- title: 'Division',
85
- textElement: null,
86
- ariaLabel: 'Division',
87
- displayText: '÷'
88
- },
89
- multiply: {
90
- title: 'Multiply',
83
+ add: {
84
+ title: 'Addition',
91
85
  textElement: null,
92
- ariaLabel: 'Multiply',
93
- displayText: '×'
86
+ ariaLabel: 'Plus 6',
87
+ displayText: '+'
94
88
  },
95
89
  subtract: {
96
90
  title: 'Subtraction',
@@ -98,11 +92,17 @@ export const equationEditorCategoriesAndSymbols = {
98
92
  ariaLabel: 'Minus',
99
93
  displayText: '−'
100
94
  },
101
- add: {
102
- title: 'Addition',
95
+ multiply: {
96
+ title: 'Multiply',
103
97
  textElement: null,
104
- ariaLabel: 'Plus 6',
105
- displayText: '+'
98
+ ariaLabel: 'Multiply',
99
+ displayText: '×'
100
+ },
101
+ divide: {
102
+ title: 'Division',
103
+ textElement: null,
104
+ ariaLabel: 'Division',
105
+ displayText: '÷'
106
106
  },
107
107
  equalTo: {
108
108
  title: 'Equal To',
@@ -122,17 +122,17 @@ export const equationEditorCategoriesAndSymbols = {
122
122
  ariaLabel: 'MoveRight',
123
123
  displayText: null
124
124
  },
125
- clearAll: {
126
- title: 'Clear all',
127
- textElement: null,
128
- ariaLabel: 'ClearAll',
129
- displayText: null
130
- },
131
125
  clear: {
132
126
  title: 'Clear',
133
127
  textElement: null,
134
128
  ariaLabel: 'Clear',
135
129
  displayText: null
130
+ },
131
+ clearAll: {
132
+ title: 'Clear all',
133
+ textElement: null,
134
+ ariaLabel: 'ClearAll',
135
+ displayText: null
136
136
  }
137
137
  }
138
138
  },
@@ -47,8 +47,8 @@
47
47
  "highlightedTableCellBorder": "rgb(255, 255, 255)",
48
48
  "standardTableCellText": "rgb(51, 51, 51)",
49
49
  "editTableDeleteButton": "rgb(204, 39, 0)",
50
- "progressBarRemainingFill": "rgb(238, 241, 251)",
51
- "progressBarElapsedFill": "rgb(82, 0, 255)",
50
+ "progressBarRemainingFill": "rgb(194, 194, 194)",
51
+ "progressBarElapsedFill": "rgb(64, 134, 235)",
52
52
  "progressBarSliderHoverBackground": "rgba(25, 118, 210, 0.16)",
53
53
  "waveformCursorColor": "rgb(0, 0, 0)",
54
54
  "audioResponsePreviewComponentsFill": "rgb(64, 134, 235)",
@@ -135,11 +135,7 @@
135
135
  "uploadedFileName": "rgb(0, 0, 124)",
136
136
  "feedbackHeart": "rgb(255, 56, 0)",
137
137
  "manipulativeOptionContainerBorder": "rgb(186, 201, 255)",
138
- "cellIcon": "rgb(186, 201, 255)",
139
- "outerBorder": "rgb(186, 201, 255)",
140
- "playbackTime": "rgb(0, 0, 124)",
141
- "stopButtonBg": "rgb(187, 47, 10)",
142
- "stopButtonBorder": "rgb(92, 0, 0)"
138
+ "cellIcon": "rgb(186, 201, 255)"
143
139
  },
144
140
  "fontSize": {
145
141
  "extraSmall": "10px",
@@ -165,25 +161,27 @@
165
161
  "hoverBackground": "rgba(82, 0, 255, 0.2)",
166
162
  "hoverBorder": "rgba(82, 0, 255, 0.4)"
167
163
  },
168
- "aqua":{
169
- "background": "rgb(0, 112, 128)",
170
- "hoverBackground": "rgba(0, 112, 128, 0.2)",
171
- "hoverBorder": "rgba(0, 112, 128, 0.4)"
164
+ "darkGreen":{
165
+ "background": "rgb(186, 201, 255)",
166
+ "hoverBackground": "rgba(186, 201, 255, 0.4)",
167
+ "hoverBorder": "rgb(107, 139, 255)"
172
168
  },
173
169
  "brown":{
174
- "background": "rgb(128, 102, 69)",
175
- "hoverBackground": "rgba(128, 102, 69, 0.2)",
176
- "hoverBorder": "rgba(128, 102, 69, 0.4)"
170
+ "background": "rgb(128, 239, 255)",
171
+ "hoverBackground": "rgba(128, 239, 255, 0.4)",
172
+ "hoverBorder": "rgb(0, 156, 179)"
177
173
  },
178
174
  "grey":{
179
- "background": "rgb(102, 102, 102)",
180
- "hoverBackground": "rgba(102, 102, 102, 0.2)",
181
- "hoverBorder": "rgba(102, 102, 102, 0.4)"
175
+ "background": "rgb(255, 238, 215)",
176
+ "hoverBackground": "rgba(255, 238, 215, 0.4)",
177
+ "hoverBorder": "rgb(153, 134, 67)"
182
178
  },
183
179
  "black":{
184
- "background": "rgb(0, 0, 0)",
185
- "hoverBackground": "rgba(0, 0, 0, 0.2)",
186
- "hoverBorder": "rgba(0, 0, 0, 0.4)"
180
+ "title": "yellow",
181
+ "background": "rgb(255, 238, 78)",
182
+ "border": "rgb(64, 59, 20)",
183
+ "hoverBackground": "rgba(255, 238, 78, 0.4)",
184
+ "hoverBorder": "rgb(153, 141, 32)"
187
185
  }
188
186
  }
189
187
  }