itemengine-cypress-automation 1.0.253-TEMSmokeTestUpdates-82559a5.0 → 1.0.253

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddFeatureRadioButton.js +231 -0
  2. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +213 -0
  3. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAudioPlayerStyle.js +148 -0
  4. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabStudentViewSettings.js +249 -0
  5. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerHeaderSectionAndButtons.js +164 -0
  6. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTab.js +444 -0
  7. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabSupportedFileTypes.js +102 -0
  8. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerPreviewTabTranscript.js +134 -0
  9. package/cypress/e2e/ILC/CkEditorEquationEditor/equationEditorBasicFile.js +46 -0
  10. package/cypress/e2e/ILC/CkEditorInsertTable/insertTableEditorBasicFile.js +98 -0
  11. package/cypress/e2e/ILC/CkEditorInsertTable/tableDimension&FooterProperties.js +147 -0
  12. package/cypress/e2e/ILC/CkEditorInsertTable/tableHeaders.js +127 -0
  13. package/cypress/e2e/ILC/CkEditorInsertTable/tableRowAndColumn.js +71 -0
  14. package/cypress/e2e/ILC/CkEditorInsertTable/tableStyle.js +154 -0
  15. package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -0
  16. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingAlternativePointsGreaterThanCorrectPoints.js +41 -17
  17. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +24 -12
  18. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +47 -20
  19. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +43 -16
  20. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/manuallyAndNonScoredScoring.js +5 -5
  21. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionAlternativePointsGreaterThanCorrectPoints.js +52 -21
  22. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionBasic.js +23 -11
  23. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +55 -21
  24. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsGreaterThanAlternativePoints.js +53 -21
  25. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneAlternativePointsGreaterThanCorrectPoints.js +48 -19
  26. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +23 -11
  27. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +47 -17
  28. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +50 -19
  29. package/cypress/e2e/ILC/DrawingResponse/drawingResponseCustomizeAdditionalOptions.js +0 -2
  30. package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +3 -0
  31. package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -3
  32. package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +2 -1
  33. package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +4 -4
  34. package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions4.js +261 -0
  35. package/cypress/e2e/ILC/EssayResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
  36. package/cypress/e2e/ILC/EssayResponseBasic/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -2
  37. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/responseLevelAlternateAnswerBasicScoring.js +1 -1
  38. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/dropzoneAlternateAnswerPopup.js +2 -2
  39. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +5 -3
  40. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialDifferentWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  41. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +3 -2
  42. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/dropdownAlternateAnswerPopup.js +1 -0
  43. package/cypress/e2e/ILC/GridFill/customizeLayoutFillColor.js +3 -0
  44. package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +15 -0
  45. package/cypress/e2e/ILC/GridFill/customizeLayoutSectionShadeCellsGridBorders.js +10 -0
  46. package/cypress/e2e/ILC/GridFill/scoring/partialEqualWeightsWithCorrectPointsEqualToAlternativePoints.js +2 -1
  47. package/cypress/e2e/ILC/GridFill/specifyCorrectAnswerSection.js +3 -2
  48. package/cypress/e2e/ILC/NumberLine/toolsAndControls.js +56 -8
  49. package/cypress/e2e/ILC/TextEntryMath/Scoring/allOrNothingCorrectPointsGreaterThanAlternatePoints.js +1 -1
  50. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  51. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  52. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialDifferentWeightsScoringBasic.js +4 -4
  53. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
  54. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsEqualToAlternativePoints.js +1 -1
  55. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsCorrectPointsGreaterThanAlternativePoints.js +3 -3
  56. package/cypress/e2e/ILC/TextEntryMath/Scoring/partialEqualWeightsScoringBasic.js +2 -2
  57. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +16 -16
  58. package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +4 -5
  59. package/cypress/e2e/ILC/TextEntryMath/customSettings.js +8 -22
  60. package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +19 -19
  61. package/cypress/e2e/ILC/TextEntryMathWithImage/backgroundImageAndCanvasProperties.js +2 -2
  62. package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -5
  63. package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +1 -4
  64. package/cypress/e2e/ILC/ToolAudioPlayerNew/studentViewSettings.js +8 -2
  65. package/cypress/fixtures/theme/ilc.json +9 -5
  66. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +615 -0
  67. package/cypress/pages/components/ckEditorEquationEditorComponent.js +41 -0
  68. package/cypress/pages/components/ckEditorInsertTableComponent.js +741 -0
  69. package/cypress/pages/components/essayResponseCommonComponents.js +145 -7
  70. package/cypress/pages/components/imageCanvasComponent.js +2 -2
  71. package/cypress/pages/components/index.js +2 -1
  72. package/cypress/pages/components/layoutSectionComponent.js +25 -4
  73. package/cypress/pages/components/numberLineCommonComponent.js +39 -0
  74. package/cypress/pages/components/optionsWrapperComponent.js +1 -1
  75. package/cypress/pages/components/scoringSectionBaseEditTab.js +1 -0
  76. package/cypress/pages/dragAndDropIntoCategoriesPage.js +28 -0
  77. package/cypress/pages/fillInTheGapsDragAndDropPage.js +1 -1
  78. package/cypress/pages/graphingPage.js +8 -8
  79. package/cypress/pages/gridFillPage.js +11 -11
  80. package/cypress/pages/multipleSelectionPage.js +12 -0
  81. package/cypress/pages/singleSelectionPage.js +1 -1
  82. package/cypress/pages/textEntryMathPage.js +18 -0
  83. package/cypress/pages/textEntryMathWithImagePage.js +15 -2
  84. package/cypress/pages/textSelectionPage.js +7 -1
  85. package/package.json +1 -1
@@ -1021,21 +1021,21 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
1021
1021
  it('When \'Ignore zeros after decimal\' checkbox is checked and user attempts the question with decimals then the answer should be treated as correct', () => {
1022
1022
  textEntryMathPage.steps.resetQuestionPreview();
1023
1023
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1024
- equationEditorFlyout.steps.enterTextInPreviewInputField('12.0x+1.00y');
1024
+ equationEditorFlyout.steps.enterTextInPreviewInputField('12.0x+y');
1025
1025
  equationEditorFlyout.steps.clickOnOkButton();
1026
1026
  textEntryMathPage.steps.switchToGradingView();
1027
1027
  textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1028
1028
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1029
1029
  });
1030
1030
 
1031
- it.skip('When \'Ignore zeros after decimal\' checkbox is checked and user attempts the question with decimals then the answer should be treated as correct', () => {
1031
+ it('When \'Ignore zeros after decimal\' checkbox is checked and user attempts the question with decimals then the answer should be treated as incorrect', () => {
1032
1032
  textEntryMathPage.steps.resetQuestionPreview();
1033
1033
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1034
- equationEditorFlyout.steps.enterTextInPreviewInputField('12.0002x+1.2y');
1034
+ equationEditorFlyout.steps.enterTextInPreviewInputField('12.0002x+y');
1035
1035
  equationEditorFlyout.steps.clickOnOkButton();
1036
1036
  textEntryMathPage.steps.switchToGradingView();
1037
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1038
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1037
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
1038
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1039
1039
  });
1040
1040
 
1041
1041
  //Ignore unit coefficient
@@ -1120,20 +1120,6 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
1120
1120
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1121
1121
  });
1122
1122
 
1123
- it('When \'Check for parenthesis groups\' is checked and user attempts the question with different parenthesis then the answer should be treated as correct', () => {
1124
- textEntryMathPage.steps.switchToEditTab();
1125
- textEntryMathPage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
1126
- textEntryMathPage.steps.clickOnCustomSettingsAccordion();
1127
- textEntryMathPage.steps.checkCustomSettingsCheckbox('Check for parenthesis groups');
1128
- textEntryMathPage.steps.switchToPreviewTab();
1129
- textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1130
- equationEditorFlyout.steps.enterTextInPreviewInputField('(a+b+c)');
1131
- equationEditorFlyout.steps.clickOnOkButton();
1132
- textEntryMathPage.steps.switchToGradingView();
1133
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1134
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1135
- });
1136
-
1137
1123
  it('When \'Check for parenthesis groups\' checkbox is checked and user attempts the question with same parenthesis then the answer should be treated as correct', () => {
1138
1124
  textEntryMathPage.steps.resetQuestionPreview();
1139
1125
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
@@ -1326,14 +1312,14 @@ describe('Create Item page - Text entry math: Evaluation methods - Custom settin
1326
1312
  textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1327
1313
  });
1328
1314
 
1329
- it('When \'Ignore extra spaces\' checkbox is unchecked and user attempts the question with expression with extra spaces in-between the equation then the answer should be treated as correct', () => {
1315
+ it('When \'Ignore extra spaces\' checkbox is unchecked and user attempts the question with expression with extra spaces in-between the equation then the answer should be treated as incorrect', () => {
1330
1316
  textEntryMathPage.steps.resetQuestionPreview();
1331
1317
  textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
1332
1318
  equationEditorFlyout.steps.enterTextInPreviewInputField('Correct 1');
1333
1319
  equationEditorFlyout.steps.clickOnOkButton();
1334
1320
  textEntryMathPage.steps.switchToGradingView();
1335
- textEntryMathPage.steps.verifyCorrectResponseIcon(0);
1336
- textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
1321
+ textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
1322
+ textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
1337
1323
  });
1338
1324
 
1339
1325
  it('When \'Ignore extra spaces\' is checked and user attempts the question with extra spaces then the answer should be treated as incorrect', () => {
@@ -35,7 +35,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
35
35
  textEntryMathWithImagePage.steps.allotPoints(20);
36
36
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
37
37
  equationEditorFlyout.steps.clearAll();
38
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
38
+ equationEditorFlyout.steps.enterTextInPreviewInputField('12');
39
39
  equationEditorFlyout.steps.clickOnOkButton();
40
40
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
41
41
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
46
46
 
47
47
  it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
48
48
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
49
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
49
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
50
50
  equationEditorFlyout.steps.clickOnOkButton();
51
51
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
52
52
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -77,7 +77,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
77
77
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
78
78
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
79
79
  equationEditorFlyout.steps.clearAll();
80
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
80
+ equationEditorFlyout.steps.enterTextInPreviewInputField('12');
81
81
  equationEditorFlyout.steps.clickOnOkButton();
82
82
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
83
83
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
@@ -133,7 +133,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
133
133
  textEntryMathWithImagePage.steps.verifyPreviewScore(0, 20);
134
134
  }
135
135
  textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
136
- textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
136
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
137
137
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
138
138
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
139
139
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(0);
@@ -144,13 +144,13 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
144
144
 
145
145
  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, and \'Your answer is incorrect\' label should be displayed', () => {
146
146
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
147
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
147
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
148
148
  equationEditorFlyout.steps.clickOnOkButton();
149
149
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
150
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
150
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
151
151
  equationEditorFlyout.steps.clickOnOkButton();
152
152
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
153
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 3');
153
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '15');
154
154
  equationEditorFlyout.steps.clickOnOkButton();
155
155
  if (view === 'Grading view') {
156
156
  studentViewPage.steps.submitResponse();
@@ -166,7 +166,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
166
166
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(1);
167
167
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
168
168
  textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
169
- textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
169
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
170
170
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
171
171
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
172
172
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -177,12 +177,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
177
177
  studentViewPage.steps.clearResponses();
178
178
  }
179
179
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
180
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
180
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
181
181
  equationEditorFlyout.steps.clickOnOkButton();
182
182
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
183
183
  equationEditorFlyout.steps.enterQuadraticEquation();
184
184
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
185
- equationEditorFlyout.steps.enterTextInPreviewInputField('6*3.14');
185
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 2, '13');
186
186
  equationEditorFlyout.steps.clickOnOkButton();
187
187
  if (view === 'Grading view') {
188
188
  studentViewPage.steps.submitResponse();
@@ -198,7 +198,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
198
198
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
199
199
  textEntryMathWithImagePage.steps.verifyIncorrectResponseIcon(2);
200
200
  textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
201
- textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
201
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
202
202
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
203
203
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
204
204
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -209,7 +209,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
209
209
  studentViewPage.steps.clearResponses();
210
210
  }
211
211
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
212
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
212
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
213
213
  equationEditorFlyout.steps.clickOnOkButton();
214
214
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
215
215
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -227,7 +227,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
227
227
  textEntryMathWithImagePage.steps.verifyCorrectResponseIcon(1);
228
228
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectIconNotExist(2);
229
229
  textEntryMathWithImagePage.steps.verifyResponseFieldNumerationPreviewTab();
230
- textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Correct1', '2x2y2+4xy+4', '6×π']);
230
+ textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['12', '2⁢x2⁢y2+4⁢x⁢y+4', '6×π']);
231
231
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(1, '2 x squared y squared plus 4 x y plus 4');
232
232
  textEntryMathWithImagePage.steps.verifyCorrectAnswerResponsesAriaLabel(2, '6 times pi');
233
233
  textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
@@ -238,7 +238,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
238
238
  studentViewPage.steps.clearResponses();
239
239
  }
240
240
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
241
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
241
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
242
242
  equationEditorFlyout.steps.clickOnOkButton();
243
243
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
244
244
  equationEditorFlyout.steps.enterQuadraticEquation();
@@ -279,7 +279,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
279
279
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
280
280
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
281
281
  equationEditorFlyout.steps.clearAll();
282
- textEntryMathWithImagePage.steps.enterTextInPreviewInputField('Correct1');
282
+ textEntryMathWithImagePage.steps.enterTextInPreviewInputField('12');
283
283
  equationEditorFlyout.steps.clickOnOkButton();
284
284
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
285
285
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
@@ -303,10 +303,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
303
303
  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', () => {
304
304
  textEntryMathWithImagePage.steps.resetQuestionPreview();
305
305
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
306
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
306
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
307
307
  equationEditorFlyout.steps.clickOnOkButton();
308
308
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
309
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
309
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '13');
310
310
  equationEditorFlyout.steps.clickOnOkButton();
311
311
  textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
312
312
  textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
@@ -326,10 +326,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
326
326
  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', () => {
327
327
  textEntryMathWithImagePage.steps.resetQuestionPreview();
328
328
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
329
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
329
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
330
330
  equationEditorFlyout.steps.clickOnOkButton();
331
331
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
332
- equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 2');
332
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
333
333
  equationEditorFlyout.steps.clickOnOkButton();
334
334
  textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
335
335
  });
@@ -112,7 +112,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
112
112
  });
113
113
 
114
114
  it('When the user reaches the initial state by performing undo actions in canvas section, then specify correct answer section should not have response accordion', () => {
115
- for (var i = 0; i < 4; i++) {
115
+ for (var i = 0; i < 5; i++) {
116
116
  textEntryMathWithImagePage.steps.undoAction();
117
117
  };
118
118
  utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseAccordion(), 'notExist');
@@ -122,7 +122,7 @@ describe('Create item page - Text entry math: Question instructions, Options sec
122
122
  for (var i = 0; i < 4; i++) {
123
123
  textEntryMathWithImagePage.steps.redoAction();
124
124
  };
125
- utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 2);
125
+ utilities.verifyElementCount(textEntryMathWithImagePage.responseAccordion(), 3);
126
126
  });
127
127
 
128
128
  it('When user clicks on clear all in canvas, then response accordions in specified correct answer should disappear', () => {
@@ -31,7 +31,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
31
31
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(0);
32
32
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(0);
33
33
  equationEditorFlyout.steps.clearAll();
34
- textEntryMathWithImagePage.steps.enterTextInPreviewInputField('Correct1');
34
+ textEntryMathWithImagePage.steps.enterTextInPreviewInputField('12');
35
35
  equationEditorFlyout.steps.clickOnOkButton();
36
36
  textEntryMathWithImagePage.steps.expandResponseAccordionSpecifyCorrectAnswer(1);
37
37
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldSpecifyCorrectAnswerSection(1);
@@ -94,23 +94,23 @@ describe('Create item page - Text entry math: Preview contents', () => {
94
94
 
95
95
  it(`User should able to enter answers in the response fields for ${view}`, () => {
96
96
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
97
- equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
97
+ textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '12');
98
98
  equationEditorFlyout.steps.clickOnOkButton();
99
- textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(0, 'Correct1');
99
+ textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(0, '12');
100
100
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
101
101
  equationEditorFlyout.steps.enterQuadraticEquation();
102
102
  textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
103
103
  });
104
104
  } else if (view === 'Grading view') {
105
105
  it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
106
- textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
106
+ textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
107
107
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
108
108
  textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
109
109
  utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
110
110
  });
111
111
  } else {
112
112
  it(`The response input fields should be displayed filled with correct answers`, () => {
113
- textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
113
+ textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
114
114
  textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
115
115
  });
116
116
  }
@@ -120,10 +120,7 @@ describe('Create item page - Text selection : Preview contents', () => {
120
120
  });
121
121
 
122
122
  it('The submitted answer options should not be editable', () => {
123
- textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[1]);
124
- textSelectionPage.steps.verifyOptionIsSelectedInPreviewTab(paragraphTextArray[1]);
125
- textSelectionPage.steps.clickOnOptionInPreviewTab(paragraphTextArray[2]);
126
- textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[2]);
123
+ textSelectionPage.steps.verifyAnswerSectionNotEditableInPreviewTab();
127
124
  });
128
125
  } else {
129
126
  it('The question text should be displayed with the selected correct options', () => {
@@ -184,7 +184,8 @@ describe('Student view settings - Allow students to download audio and Limit pla
184
184
  it('When user plays the audio in preview tab, play count displayed in the help text message should get updated.', () => {
185
185
  audioPlayerPage.steps.startPlayback();
186
186
  audioPlayerPage.steps.waitForPlaybackToBegin();
187
- audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10', '00:10');
187
+ audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10', '00:45');
188
+ audioPlayerPage.steps.addWaitToPlayAudio(30000);
188
189
  utilities.verifyInnerText(audioPlayerPage.playbackLimitHelpText(), 'You have 1 play remaining.');
189
190
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackLimitHelpText(), 'visible');
190
191
  });
@@ -205,7 +206,8 @@ describe('Student view settings - Allow students to download audio and Limit pla
205
206
  it('When user reaches maximum playback limit in preview tab, message displayed below audio player should be updated to \'You\'ve reached the playback limit for this audio clip.\' and play button should get disabled.', () => {
206
207
  audioPlayerPage.steps.startPlayback();
207
208
  audioPlayerPage.steps.waitForPlaybackToBegin();
208
- audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10', '00:10');
209
+ audioPlayerPage.steps.verifyAudioPlaybackTimer('00:10', '00:45');
210
+ audioPlayerPage.steps.addWaitToPlayAudio(30000);
209
211
  utilities.verifyInnerText(audioPlayerPage.playbackLimitHelpText(), 'You\'ve reached the playback limit for this audio clip.');
210
212
  utilities.verifyElementVisibilityState(audioPlayerPage.playbackLimitHelpText(), 'visible');
211
213
  audioPlayerPage.steps.verifyPlaybackPlayButtonDisabledState();
@@ -241,12 +243,16 @@ describe('Student view settings - Allow students to download audio and Limit pla
241
243
  audioPlayerPage.steps.uncheckLimitPlayAttemptsCheckbox();
242
244
  audioPlayerPage.steps.switchToPreviewTab();
243
245
  audioPlayerPage.steps.startPlayback();
246
+ audioPlayerPage.steps.addWaitToPlayAudio(45000);
244
247
  utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
245
248
  audioPlayerPage.steps.startPlayback();
249
+ audioPlayerPage.steps.addWaitToPlayAudio(45000);
246
250
  utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
247
251
  audioPlayerPage.steps.startPlayback();
252
+ audioPlayerPage.steps.addWaitToPlayAudio(45000);
248
253
  utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
249
254
  audioPlayerPage.steps.startPlayback();
255
+ audioPlayerPage.steps.addWaitToPlayAudio(45000);
250
256
  utilities.verifyElementNotDisabled(audioPlayerPage.playbackPlayButton());
251
257
  })
252
258
  });
@@ -148,7 +148,11 @@
148
148
  "addDotButtonBg": "rgb(0, 133, 89)",
149
149
  "minusDotButtonBg": "rgb(184, 61, 0)",
150
150
  "progressBarPin": "rgb(0, 0, 46)",
151
- "none": "rgba(255, 255, 255, 0)"
151
+ "none": "rgba(255, 255, 255, 0)",
152
+ "responseFieldText": "rgb(255, 255, 222)",
153
+ "backgroundColorText": "rgb(122, 61, 61)",
154
+ "newFontColor": "rgb(128, 25, 0)",
155
+ "newResponseFieldColor": "rgb(119, 60, 60)"
152
156
  },
153
157
  "fontSize": {
154
158
  "extraSmall": "10px",
@@ -174,22 +178,22 @@
174
178
  "hoverBackground": "rgba(82, 0, 255, 0.2)",
175
179
  "hoverBorder": "rgba(82, 0, 255, 0.4)"
176
180
  },
177
- "aqua":{
181
+ "aqua": {
178
182
  "background": "rgb(0, 112, 128)",
179
183
  "hoverBackground": "rgba(0, 112, 128, 0.2)",
180
184
  "hoverBorder": "rgba(0, 112, 128, 0.4)"
181
185
  },
182
- "brown":{
186
+ "brown": {
183
187
  "background": "rgb(128, 102, 69)",
184
188
  "hoverBackground": "rgba(128, 102, 69, 0.2)",
185
189
  "hoverBorder": "rgba(128, 102, 69, 0.4)"
186
190
  },
187
- "grey":{
191
+ "grey": {
188
192
  "background": "rgb(102, 102, 102)",
189
193
  "hoverBackground": "rgba(102, 102, 102, 0.2)",
190
194
  "hoverBorder": "rgba(102, 102, 102, 0.4)"
191
195
  },
192
- "black":{
196
+ "black": {
193
197
  "background": "rgb(0, 0, 0)",
194
198
  "hoverBackground": "rgba(0, 0, 0, 0.2)",
195
199
  "hoverBorder": "rgba(0, 0, 0, 0.4)"