itemengine-cypress-automation 1.0.185-repoUpdate26April-b17eb46.0 → 1.0.186-packageUpdate-5632086.0

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
@@ -26,7 +26,7 @@ describe('Create question page - Essay Response: Edit category', () => {
26
26
 
27
27
  it('Title of the flyout should be \'Edit category\'', () => {
28
28
  utilities.verifyElementVisibilityState(editCategoryFlyout.dialogBoxTitle(), 'exist');
29
- utilities.verifyInnerText(editCategoryFlyout.dialogBoxTitle(), 'Edit category');
29
+ utilities.verifyInnerText(editCategoryFlyout.dialogBoxTitle(), 'Edit Category');
30
30
  });
31
31
 
32
32
  it('\'Select the symbols to display to the students.\' help text should be displayed below the title', () => {
@@ -1,7 +1,5 @@
1
- import { dialogBoxBase } from "../../../pages";
2
1
  import { feedbackScalePage } from "../../../pages/feedbackScalePage";
3
2
  import abortEarlySetup from "../../../support/helpers/abortEarly";
4
- import utilities from "../../../support/helpers/utilities";
5
3
 
6
4
  describe('Create question page - Feedback scale: Header section and Saving question', () => {
7
5
  before(() => {
@@ -32,33 +30,7 @@ describe('Create question page - Feedback scale: Header section and Saving quest
32
30
  feedbackScalePage.steps.navigateToCreateQuestion('feedback scale')
33
31
  });
34
32
 
35
- it('When user has made no edits and clicks on Cancel button, the user should be directed back to the \'Select a Question\' page', () => {
36
- feedbackScalePage.steps.clickOnCancelButton();
37
- utilities.verifyElementVisibilityState(feedbackScalePage.selectAQuestionHeaderText(), 'visible');
38
- utilities.verifyElementVisibilityState(feedbackScalePage.questionTypeOptionTitle(), 'visible');
39
- });
40
-
41
- it('When user has made some edits/changes and clicks on Cancel button, a popup should be displayed', () => {
42
- feedbackScalePage.steps.selectQuestionType('feedback scale');
43
- feedbackScalePage.steps.addTextInQuestionInstructionsInputField('Feedback scale');
44
- feedbackScalePage.steps.clickOnCancelButton();
45
- utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
46
- });
47
-
48
- dialogBoxBase.tests.verifyContentsOfLeavePagePopupWithCSSAnda11y();
49
-
50
- it(`Clicking on \'No, I'd like to go back\' button should close the popup and user should remain on the edit interface of the question`, () => {
51
- dialogBoxBase.steps.clickOnRejectButtonInDialogBox();
52
- feedbackScalePage.steps.verifyEditTabSelectedState();
53
- utilities.verifyTextContent(feedbackScalePage.questionInstructionsInputField(), 'Feedback scale');
54
- });
55
-
56
- it(`Clicking on \'Yes, I want to leave this page\' button should discard all changes and direct the user to the \'Select a question\' page.`, () => {
57
- feedbackScalePage.steps.clickOnCancelButton();
58
- dialogBoxBase.steps.clickOnAcceptButtonInDialogBox();
59
- utilities.verifyElementVisibilityState(feedbackScalePage.selectAQuestionHeaderText(), 'visible');
60
- utilities.verifyElementVisibilityState(feedbackScalePage.questionTypeOptionTitle(), 'visible');
61
- });
33
+ feedbackScalePage.tests.verifyCancelButton('feedback scale');
62
34
  });
63
35
 
64
36
  describe('Saving a question', () => {
@@ -30,11 +30,11 @@ describe('Preview tab contents for all views', () => {
30
30
  fillInTheGapsDragAndDropPage.steps.focusInOptionsInputField(0);
31
31
  fillInTheGapsDragAndDropPage.steps.selectImageOptionFromCKEditorToolbar();
32
32
  fillInTheGapsDragAndDropPage.steps.addImageToInputField();
33
- fillInTheGapsDragAndDropPage.steps.addTextInputToOptionsInputFieldWithImage(0);
33
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(0, 'Petals');
34
34
  cy.log('Add bold text to input field')
35
35
  fillInTheGapsDragAndDropPage.steps.focusInOptionsInputField(1);
36
36
  fillInTheGapsDragAndDropPage.steps.selectBoldOptionFromCKEditorToolbar();
37
- fillInTheGapsDragAndDropPage.steps.addBoldTextInputToOptionsInputField(1);
37
+ fillInTheGapsDragAndDropPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
38
38
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzoneSpecifyCorrectAnswerSection({ 'Solve the following': 1, 'Petals': 2, 'This is a bold option': 0 });
39
39
  fillInTheGapsDragAndDropPage.steps.allotPoints(10);
40
40
  fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
@@ -327,7 +327,7 @@ describe('Create Item page - Fill in the gaps with drag and drop: Student view s
327
327
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
328
328
  fillInTheGapsDragAndDropPage.steps.switchToEditTab();
329
329
  fillInTheGapsDragAndDropPage.steps.expandMaxCheckAnswerAttemptsDropdown();
330
- fillInTheGapsDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
330
+ fillInTheGapsDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
331
331
  fillInTheGapsDragAndDropPage.steps.switchToPreviewTab();
332
332
  fillInTheGapsDragAndDropPage.steps.verifyCheckAnswerButtonEnabled();
333
333
  fillInTheGapsDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
@@ -171,7 +171,7 @@ describe('Create Item page - Fill in the gaps with dropdown: Student view settin
171
171
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
172
172
  fillInTheGapsDropdownPage.steps.switchToEditTab();
173
173
  fillInTheGapsDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
174
- fillInTheGapsDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
174
+ fillInTheGapsDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
175
175
  fillInTheGapsDropdownPage.steps.switchToPreviewTab();
176
176
  fillInTheGapsDropdownPage.steps.verifyCheckAnswerButtonEnabled();
177
177
  fillInTheGapsDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
@@ -189,7 +189,6 @@ describe('Create item page - fill in the gaps over image - drag and drop: Scorin
189
189
  });
190
190
  });
191
191
 
192
- //Failing die to https://redmine.zeuslearning.com/issues/567278
193
192
  describe('Auto scored: Partial - different weights scoring - Specify correct answer section', () => {
194
193
  abortEarlySetup();
195
194
  before(() => {
@@ -28,16 +28,16 @@ describe('Preview tab contents for all views', () => {
28
28
  fillInTheGapsOverImageDragAndDropPage.steps.insertResponseArea(80);
29
29
  fillInTheGapsOverImageDragAndDropPage.steps.insertTextArea(20, 'This is a text area');
30
30
  cy.log('Add image to option input field')
31
- fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(0, 'Petals');
32
31
  fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(0);
33
32
  fillInTheGapsOverImageDragAndDropPage.steps.selectImageOptionFromCKEditorToolbar();
34
33
  fillInTheGapsOverImageDragAndDropPage.steps.addImageToInputField();
34
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(0, 'Petals');
35
35
  cy.log('Add bold text to input field')
36
36
  fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(1);
37
37
  fillInTheGapsOverImageDragAndDropPage.steps.selectBoldOptionFromCKEditorToolbar();
38
38
  fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(1, 'This is a bold option');
39
39
  cy.log('Add equation to option input field')
40
- fillInTheGapsOverImageDragAndDropPage.steps.editOptionInputField(2, 'Solve the following');
40
+ fillInTheGapsOverImageDragAndDropPage.steps.enterTextInOptionInputField(2, 'Solve the following');
41
41
  fillInTheGapsOverImageDragAndDropPage.steps.focusInOptionsInputField(2);
42
42
  fillInTheGapsOverImageDragAndDropPage.steps.selectEquationEditorOptionFromCKEditorToolbar();
43
43
  fillInTheGapsOverImageDragAndDropPage.steps.addGenericEquationUsingEquationEditorToCKEditorInputField();
@@ -360,7 +360,7 @@ describe('Create Item page - Fill in the gaps over image - drag and drop: Studen
360
360
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
361
361
  fillInTheGapsOverImageDragAndDropPage.steps.switchToEditTab();
362
362
  fillInTheGapsOverImageDragAndDropPage.steps.expandMaxCheckAnswerAttemptsDropdown();
363
- fillInTheGapsOverImageDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
363
+ fillInTheGapsOverImageDragAndDropPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
364
364
  fillInTheGapsOverImageDragAndDropPage.steps.switchToPreviewTab();
365
365
  fillInTheGapsOverImageDragAndDropPage.steps.verifyCheckAnswerButtonEnabled();
366
366
  fillInTheGapsOverImageDragAndDropPage.steps.clickAndDropOptionInDropzonePreviewTab({ 'Petals': 0 });
@@ -196,7 +196,7 @@ describe('Create Item page - Fill in the gaps over image - dropdown: Student vie
196
196
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
197
197
  fillInTheGapsOverImageDropdownPage.steps.switchToEditTab();
198
198
  fillInTheGapsOverImageDropdownPage.steps.expandMaxCheckAnswerAttemptsDropdown();
199
- fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
199
+ fillInTheGapsOverImageDropdownPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
200
200
  fillInTheGapsOverImageDropdownPage.steps.switchToPreviewTab();
201
201
  fillInTheGapsOverImageDropdownPage.steps.verifyCheckAnswerButtonEnabled();
202
202
  fillInTheGapsOverImageDropdownPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsForDropdown[0] }]);
@@ -203,17 +203,17 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
203
203
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
204
204
  fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(12.6, 15);
205
205
  fillInTheGapsOverImageTextPage.steps.switchToGradingView();
206
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
206
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
207
207
  fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
208
- fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
208
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
209
209
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
210
210
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
211
211
  fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
212
212
  cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with response area numeration should be displayed')
213
213
  fillInTheGapsOverImageTextPage.steps.checkAnswer();
214
- fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
214
+ fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
215
215
  fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
216
- fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(2);
216
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
217
217
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
218
218
  fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerSectionNotExists();
219
219
  });
@@ -187,7 +187,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial equa
187
187
  fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(1);
188
188
  fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(2);
189
189
  fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
190
- fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Branch']);
190
+ fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Roots']);
191
191
  fillInTheGapsOverImageTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
192
192
  cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion and clicks on the \'Check answer\' button, correct icons should be displayed beside correct accordion responses, incorrect icons should be displayed beside alternative accordion responses, correct/incorrect answer label and its border, correct answer container should not be displayed')
193
193
  fillInTheGapsOverImageTextPage.steps.checkAnswer();
@@ -121,7 +121,7 @@ describe('Create Item page - drag and drop into categories: Student view setting
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
  fillInTheGapsOverImageTextPage.steps.switchToEditTab();
123
123
  fillInTheGapsOverImageTextPage.steps.expandMaxCheckAnswerAttemptsDropdown();
124
- fillInTheGapsOverImageTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
124
+ fillInTheGapsOverImageTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
125
125
  fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
126
126
  fillInTheGapsOverImageTextPage.steps.verifyCheckAnswerButtonEnabled();
127
127
  fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
@@ -196,20 +196,20 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
196
196
  fillInTheGapsTextPage.steps.expandCorrectAnswerAccordion();
197
197
  fillInTheGapsTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.2, 2: 1.6 });
198
198
  fillInTheGapsTextPage.steps.switchToPreviewTab();
199
- fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Branch' }]);
199
+ fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
200
200
  fillInTheGapsTextPage.steps.verifyPreviewScore(10.4, 23);
201
201
  fillInTheGapsTextPage.steps.switchToGradingView();
202
- fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
202
+ fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
203
203
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
204
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
204
+ fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
205
205
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
206
206
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Stem']);
207
207
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
208
208
  cy.log('When the user attempts the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on the \'Check answer\' button, correct icon icons should be displayed beside the correct responses from the correct accordion, incorrect icons should be displayed beside the incorrectly answered responses, correct/incorrect answer status message and correct answer section should not be displayed')
209
209
  fillInTheGapsTextPage.steps.checkAnswer();
210
- fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
210
+ fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
211
211
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
212
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
212
+ fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
213
213
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
214
214
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
215
215
  });
@@ -199,16 +199,17 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
199
199
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaves' }, { responseIndex: 2, responseText: 'Branch' }]);
200
200
  fillInTheGapsTextPage.steps.verifyPreviewScore(12.6, 15);
201
201
  fillInTheGapsTextPage.steps.switchToGradingView();
202
- fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(0);
202
+ fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
203
203
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
204
- fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
204
+ fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
205
205
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
206
206
  fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
207
207
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
208
208
  cy.log('When the user attempts the question with more number of correct responses from the alternative accordion than the correct accordion but the score of the individual response selected from the correct accordion overpowers the combined score of the alternative accordion answers and clicks on \'Check answer\' button, then correct icons should be displayed for the correct accordion response, incorrect icon should be displayed for the alternative accordion responses, correct/incorrect answer status message should not be displayed and correct answer section with all correct answers from the correct accordion along with response area numeration should be displayed')
209
209
  fillInTheGapsTextPage.steps.checkAnswer();
210
+ fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(0);
210
211
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
211
- fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(2);
212
+ fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
212
213
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
213
214
  fillInTheGapsTextPage.steps.verifyCorrectAnswerSectionNotExists();
214
215
  });
@@ -183,7 +183,7 @@ describe('Create item page - Fill in the gaps with text: Partial equal weights w
183
183
  fillInTheGapsTextPage.steps.verifyIncorrectOptionIcon(1);
184
184
  fillInTheGapsTextPage.steps.verifyCorrectOptionIcon(2);
185
185
  fillInTheGapsTextPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
186
- fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Branch']);
186
+ fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Petals', 'Leaves', 'Roots']);
187
187
  fillInTheGapsTextPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
188
188
  cy.log('When the user has attempted the question with more number of correct responses from the correct accordion than the alternative accordion but the score of the individual response selected from the alternative accordion overpowers the combined score of the correct accordion answers and clicks on the \'Check answer\' button, correct icons should be displayed for the alternative accordion response, incorrect icon should be displayed for the correct accordion responses, correct/incorrect answer status message and correct answer section should not be displayed')
189
189
  fillInTheGapsTextPage.steps.checkAnswer();
@@ -57,7 +57,6 @@ describe('Create item page - Fill in the gaps with text: Header section and savi
57
57
  it('Validation error messages should disappear when required input fields are filled', () => {
58
58
  fillInTheGapsTextPage.steps.addTextInQuestionInstructionsInputField('Question instruction');
59
59
  fillInTheGapsTextPage.steps.allotPoints(10);
60
- fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }]);
61
60
  fillInTheGapsTextPage.steps.verifyErrorMessageIsNotDisplayed();
62
61
  fillInTheGapsTextPage.steps.verifySpecifyCorrectAnswerErrorIconNotExists();
63
62
  });
@@ -114,7 +114,7 @@ describe('Create Item page - Fill in the gaps with text: Student view settings',
114
114
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
115
115
  fillInTheGapsTextPage.steps.switchToEditTab();
116
116
  fillInTheGapsTextPage.steps.expandMaxCheckAnswerAttemptsDropdown();
117
- fillInTheGapsTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
117
+ fillInTheGapsTextPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
118
118
  fillInTheGapsTextPage.steps.switchToPreviewTab();
119
119
  fillInTheGapsTextPage.steps.verifyCheckAnswerButtonEnabled();
120
120
  fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }]);
@@ -161,7 +161,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
161
161
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
162
162
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
163
163
  utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
164
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
164
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
165
165
 
166
166
  //Correct answer section
167
167
  utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
@@ -183,7 +183,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
183
183
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
184
184
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
185
185
  utilities.verifyElementCount(graphingPage.graphPolygonPreviewTab(), 1);
186
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
186
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
187
187
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
188
188
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();
189
189
  });
@@ -203,7 +203,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
203
203
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
204
204
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
205
205
  utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
206
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
206
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
207
207
 
208
208
  //Correct answer section
209
209
  utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
@@ -226,7 +226,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
226
226
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
227
227
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
228
228
  utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
229
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
229
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
230
230
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
231
231
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();
232
232
  });
@@ -229,7 +229,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
229
229
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
230
230
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
231
231
  utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
232
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
232
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
233
233
 
234
234
  //Correct answer section
235
235
  utilities.verifyElementCount(graphingPage.graphCircleCorrectAnswerSection(), 2);
@@ -252,7 +252,7 @@ describe('Create Item page - Graphing: All or nothing with alternative answer',
252
252
  utilities.verifyElementCount(graphingPage.graphLinePreviewTab(), 1);
253
253
  graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: 2, xRange: 20, y: 1, yRange: 20 }, { x: 2, xRange: 20, y: -5, yRange: 20 }]);
254
254
  utilities.verifyElementCount(graphingPage.graphLineSegmentsPreviewTab(), 1);
255
- graphingPage.steps.verifyCorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
255
+ graphingPage.steps.verifyIncorrectPointsPlottedOnGraphPreviewTab([{ x: 6, xRange: 20, y: 0, yRange: 20 }, { x: 6, xRange: 20, y: 5, yRange: 20 }]);
256
256
  graphingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
257
257
  graphingPage.steps.verifyCorrectAnswerSectionNotExist();
258
258
  });
@@ -227,9 +227,9 @@ describe('Graphing: Add background shapes section', () => {
227
227
  graphingPage.steps.switchToEditTab();
228
228
  graphingPage.steps.clickOnGraphTitle();
229
229
  graphingPage.steps.enterTextInTitlePopupAddLabelInputField('Edit graph title');
230
- graphingPage.steps.clickOnTitlePopupSaveButton();
230
+ graphingPage.steps.clickOnTitlePopupCancelButton();
231
231
  graphingPage.steps.switchToPreviewTab();
232
- utilities.verifyInnerText(graphingPage.graphTitlePreviewTab(), 'Edit graph title');
232
+ utilities.verifyInnerText(graphingPage.graphTitlePreviewTab(), 'Graph title');
233
233
  });
234
234
 
235
235
  //X axis
@@ -103,7 +103,7 @@ describe('Create Item page - Graphing: Student view settings', () => {
103
103
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
104
104
  graphingPage.steps.switchToEditTab();
105
105
  graphingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
106
- graphingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
106
+ graphingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
107
107
  graphingPage.steps.switchToPreviewTab();
108
108
  graphingPage.steps.verifyCheckAnswerButtonEnabled();
109
109
  graphingPage.steps.selectGraphToolOptionPreviewTab('Vector');
@@ -62,8 +62,8 @@ describe('Create item page - grid fill - Check answer functionality', () => {
62
62
  break;
63
63
  case 'Student view':
64
64
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
65
- cy.log('Clearing responses in student view');
66
- studentViewPage.steps.clearResponses();
65
+ cy.log('Adding wait so that student view loads properly');
66
+ cy.wait(5000);
67
67
  break;
68
68
  }
69
69
  });
@@ -84,7 +84,7 @@ describe('Create Item page - Grid fill : Grid layout', () => {
84
84
  gridFillPage.steps.verifyRowInputStepperIncreaseButtonIsDisabled();
85
85
  gridFillPage.steps.verifyColumnInputStepperIncreaseButtonIsDisabled();
86
86
  gridFillPage.steps.expandOpenTheGridSelectorDropdown();
87
- gridFillPage.steps.verifySelectedRowsAndColumns(9, 17);
87
+ gridFillPage.steps.verifySelectedRowsAndColumns(9,17);
88
88
  gridFillPage.steps.collapseOpenTheGridSelectorDropdown();
89
89
  });
90
90
 
@@ -142,20 +142,16 @@ describe('Create Item page - Grid fill : Grid layout', () => {
142
142
  gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
143
143
  });
144
144
 
145
- it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell height input field then value should reset to 44 and an help text should be displayed', () => {
145
+ it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell height input field then value should reset to 44', () => {
146
146
  gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
147
147
  gridFillPage.steps.updateValueInCellHeightInputField(20);
148
148
  gridFillPage.steps.verifyCellHeightInputField(44);
149
- utilities.verifyElementVisibilityState(gridFillPage.makeResponsiveHelpText(), 'visible');
150
- utilities.verifyInnerText(gridFillPage.makeResponsiveHelpText(), 'The cell dimension was automatically adjusted to be at least 44 pixels.');
151
149
  });
152
150
 
153
- it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell width input field then value should reset to 44 and an help text should be displayed', () => {
151
+ it('When \'Make responsive for mobile\' checkbox is checked and user enters value less than 44 in cell width input field then value should reset to 44', () => {
154
152
  gridFillPage.steps.verifyMakeResponsiveCheckboxChecked();
155
153
  gridFillPage.steps.updateValueInCellWidthInputField(20);
156
154
  gridFillPage.steps.verifyCellWidthInputField(44);
157
- utilities.verifyElementVisibilityState(gridFillPage.makeResponsiveHelpText(), 'visible');
158
- utilities.verifyInnerText(gridFillPage.makeResponsiveHelpText(), 'The cell dimension was automatically adjusted to be at least 44 pixels.');
159
155
  });
160
156
 
161
157
  it('When \'Make responsive for mobile\' checkbox is checked and user enters value more than 200 in cell height input field then value should reset to 200', () => {
@@ -175,10 +171,6 @@ describe('Create Item page - Grid fill : Grid layout', () => {
175
171
  gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
176
172
  });
177
173
 
178
- it('When \'Make responsive for mobile\' checkbox is unchecked then a the help text should not be displayed', () => {
179
- utilities.verifyElementVisibilityState(gridFillPage.makeResponsiveHelpText(), 'notExist');
180
- });
181
-
182
174
  it('When user unchecks \'Make responsive for mobile\' checkbox then values in cell height and cell width should remain unchanged', () => {
183
175
  gridFillPage.steps.verifyMakeResponsiveCheckboxUnchecked();
184
176
  gridFillPage.steps.verifyCellHeightInputField(200);
@@ -60,7 +60,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
60
60
  }
61
61
  if (view === 'Student view') {
62
62
  studentViewPage.steps.submitResponse();
63
- utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'exist');
63
+ utilities.verifyElementVisibilityState(studentViewPage.buttonGoToGradingView(), 'visible');
64
64
  }
65
65
  });
66
66
 
@@ -73,7 +73,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
73
73
  utilities.verifyElementVisibilityState(gridFillPage.gridWrapperPreviewTab(), 'visible');
74
74
  gridFillPage.steps.verifyRowsCountPreviewTab(4);
75
75
  gridFillPage.steps.verifyColumnsCountPreviewTab(6);
76
- gridFillPage.steps.getCellCountInGridPreviewTab(24);
76
+ utilities.verifyElementCount(gridFillPage.cellInPreviewTab(), 24);
77
77
  });
78
78
 
79
79
  it('Cell with \'Hide\' customization should be displayed', () => {
@@ -163,7 +163,7 @@ describe('Create item page - Grid fill : Preview contents', () => {
163
163
  utilities.verifyCSS(utilities.getNthElement(gridFillPage.cellInPreviewTab(), 7), {
164
164
  'border-color': css.color.figDefaultComponentBorder
165
165
  });
166
- gridFillPage.steps.verifyDefaultResponseBackgroundColorPreviewTab(1, 2);
166
+ gridFillPage.steps.verifyDefaultResponseBackgroundColorPreviewTab(1,2);
167
167
  break;
168
168
  case 'Grading view':
169
169
  case 'Correct answer view':
@@ -192,7 +192,7 @@ describe('Create item page - Grid fill: Student view settings', () => {
192
192
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
193
193
  gridFillPage.steps.switchToEditTab();
194
194
  gridFillPage.steps.expandMaxCheckAnswerAttemptsDropdown();
195
- gridFillPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
195
+ gridFillPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
196
196
  gridFillPage.steps.switchToPreviewTab();
197
197
  gridFillPage.steps.verifyCheckAnswerButtonEnabled();
198
198
  gridFillPage.steps.selectCellPreviewTab(0, 0);
@@ -361,7 +361,7 @@ describe('Create Item page - Matching : Student view settings', () => {
361
361
  it('When the user selects \'No limit\' option from the dropdown then user should be able to check answer multiple times', () => {
362
362
  matchingPage.steps.switchToEditTab();
363
363
  matchingPage.steps.expandMaxCheckAnswerAttemptsDropdown();
364
- matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
364
+ matchingPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
365
365
  matchingPage.steps.switchToPreviewTab();
366
366
  matchingPage.steps.verifyCheckAnswerButtonEnabled();
367
367
  matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Petals', dropzoneIndex: 0 }]);
@@ -7,7 +7,6 @@ describe('Create item page - Multiple selection: All or nothing with alternative
7
7
  cy.loginAs('admin');
8
8
  });
9
9
 
10
- //Need to update once - https://redmine.zeuslearning.com/issues/553666 is resolved
11
10
  describe('Question preview: Auto scored - All or nothing with alternative answer - When \'Correct answer\' points are more than \'Alternative answer\' points', () => {
12
11
  abortEarlySetup();
13
12
  before(() => {
@@ -172,7 +172,7 @@ describe('Create item page - Multiple 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 multiple times', () => {
173
173
  multipleSelectionGridPage.steps.switchToEditTab();
174
174
  multipleSelectionGridPage.steps.expandMaxCheckAnswerAttemptsDropdown();
175
- multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('0');
175
+ multipleSelectionGridPage.steps.selectMaxCheckAnswerAttemptsDropdownListOption('no limit');
176
176
  multipleSelectionGridPage.steps.switchToPreviewTab();
177
177
  multipleSelectionGridPage.steps.verifyCheckAnswerButtonEnabled();
178
178
  multipleSelectionGridPage.steps.selectOptionsInPreviewTab({ row: 1, column: 0 });
@@ -176,7 +176,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
176
176
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
177
177
  });
178
178
 
179
- it('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
179
+ it.only('When the user has attempted the question with equal number of correct responses from correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the correctly attempted number line should be displayed correct and incorrectly attempted should be displayed for the alternative accordion number line, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
180
180
  numberLinePage.steps.resetQuestionPreview();
181
181
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Point');
182
182
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 2);
@@ -212,7 +212,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
212
212
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
213
213
  });
214
214
 
215
- it('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
215
+ it.only('Race condition : When the user attempts the question with the common response between correct and alternative accordion, then the user should be awarded with 0 points and on switching to \'Grading\' view, the attempted response should be displayed correct, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers from the correct accordion should be displayed', () => {
216
216
  numberLinePage.steps.resetQuestionPreview();
217
217
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment right/up hollow pt');
218
218
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, -4);
@@ -235,7 +235,7 @@ describe('Create Item page - Number line: All or nothing with alternative answer
235
235
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
236
236
  });
237
237
 
238
- it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
238
+ it.only('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
239
239
  numberLinePage.steps.resetQuestionPreview();
240
240
  numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
241
241
  numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
@@ -117,7 +117,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
117
117
  }
118
118
  numberLinePage.steps.verifyPointsNotExistOnNumberLinePreviewTab(range, [2]);
119
119
  numberLinePage.steps.verifyLineSegmentOnNumberLineNotExistPreviewTab(range, [-4, -3])
120
- numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
120
+ // numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
121
121
  numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
122
122
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -4, x2: -3 }]);
123
123
  });
@@ -682,60 +682,4 @@ describe('Create Item page - Number line: All or nothing ', () => {
682
682
  numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
683
683
  });
684
684
  });
685
-
686
- if (!grepTags || !grepTags.includes('smoke')) {
687
- describe('Question preview: Auto scored - All or nothing: Minimum scoring', () => {
688
- abortEarlySetup();
689
- before(() => {
690
- numberLinePage.steps.navigateToCreateQuestion('Number line');
691
- cy.barsPreLoaderWait();
692
- numberLinePage.steps.addTextInQuestionInstructionsInputField('Plot points on the number line');
693
- numberLinePage.steps.selectToolOptions(unselectedToolOption);
694
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Point');
695
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, 2);
696
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [2]);
697
- numberLinePage.steps.selectNumberLineToolOptionSpecifyCorrectAnswer('Segment right/up hollow pt');
698
- numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, -4);
699
- numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -3]);
700
- numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -4, x2: -3 }]);
701
- numberLinePage.steps.allotPoints(20);
702
- });
703
-
704
- 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', () => {
705
- numberLinePage.steps.expandMinimumScoringDropdown();
706
- numberLinePage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score');
707
- numberLinePage.steps.allotMinimumPoints(2);
708
- numberLinePage.steps.switchToPreviewTab();
709
- numberLinePage.steps.switchToGradingView();
710
- numberLinePage.steps.verifyPreviewScore(2, 20);
711
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
712
- });
713
-
714
- 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', () => {
715
- numberLinePage.steps.resetQuestionPreview();
716
- numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
717
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
718
- numberLinePage.steps.verifyPreviewScore(2, 20);
719
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
720
- });
721
-
722
- it('When the user selects \'Award minimum score only if attempted\' from the minimum scoring dropdown, does not attempt the question and switches to grading view, then the user should be awarded with 0 points', () => {
723
- numberLinePage.steps.switchToEditTab();
724
- numberLinePage.steps.expandMinimumScoringDropdown();
725
- numberLinePage.steps.selectOptionFromMinimumScoringDropdown('Award minimum score only if attempted');
726
- numberLinePage.steps.allotMinimumPoints(2);
727
- numberLinePage.steps.switchToPreviewTab();
728
- numberLinePage.steps.switchToGradingView();
729
- numberLinePage.steps.verifyPreviewScore(0, 20);
730
- numberLinePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
731
- });
732
-
733
- 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', () => {
734
- numberLinePage.steps.resetQuestionPreview();
735
- numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
736
- numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
737
- numberLinePage.steps.verifyPreviewScore(2, 20);
738
- });
739
- });
740
- };
741
685
  });
@@ -38,7 +38,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
38
38
  numberLinePage.steps.plotPointOnNumberLineSpecifyCorrectAnswer("horizontal", range, -4);
39
39
  numberLinePage.steps.verifyPointsPlottedOnNumberLineSpecifyCorrectAnswer(range, [-4, -3]);
40
40
  numberLinePage.steps.verifyLineSegmentOnNumberLineSpecifyCorrectAnswer(range, [{ x1: -4, x2: -3 }]);
41
- numberLinePage.steps.enterTextInLimitNumberOfResponsesInputField(10);
41
+ numberLinePage.steps.enterValueInLimitNumberOfResponsesInputField(10);
42
42
  numberLinePage.steps.switchToPreviewTab();
43
43
  break;
44
44
  case 'Item view':