itemengine-cypress-automation 1.0.285 → 1.0.289-27thJanRepoUpdate-e883226.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. package/cypress/e2e/ILC/CkEditorAudioPlayer/audioPlayerEditTabAddTranscriptRadioButton .js +4 -4
  2. package/cypress/e2e/ILC/DeleteItem/deleteItem.ts +140 -0
  3. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +4 -4
  4. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +97 -0
  5. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/manuallyAndNonScoredScoringEditTab.js +9 -0
  6. package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/styleAndLayoutCustomizationLayoutProperties.js +1 -1
  7. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/Scoring/manuallyAndNonScored.js +8 -0
  8. package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -1
  9. package/cypress/e2e/ILC/FillInTheGapsDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
  10. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/additionalSettings.js +27 -2
  11. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/draggableOptions.js +0 -1
  12. package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/manuallyAndNonScoredEditTab.js +16 -0
  13. package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/Scoring/manuallyAndNonScored.js +10 -0
  14. package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/manuallyAndNonScored.js +10 -1
  15. package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/manuallyAndNonScored.js +8 -0
  16. package/cypress/e2e/ILC/Graphing/Scoring/manuallyAndNonScoredScoring.js +8 -0
  17. package/cypress/e2e/ILC/Graphing/addBackgroundShapesSection.js +3 -3
  18. package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +1 -0
  19. package/cypress/e2e/ILC/GridFill/scoring/manuallyAndNonScored.js +8 -0
  20. package/cypress/e2e/ILC/ImageHighlight/Scoring/manuallyAndNonScored.js +8 -0
  21. package/cypress/e2e/ILC/ListOrderingDropdown/manuallyAndNonScoredEditTab.js +10 -0
  22. package/cypress/e2e/ILC/ListOrderingNew/manuallyAndNonScoredEditTab.js +10 -0
  23. package/cypress/e2e/ILC/ListOrderingNew/styleAndLayoutCustomizationSameList.js +3 -3
  24. package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/manuallyAndNonScoredEditTab.js +13 -0
  25. package/cypress/e2e/ILC/Matching/Scoring/manuallyAndNonScored.js +8 -0
  26. package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +1 -1
  27. package/cypress/e2e/ILC/MatchingDropdown/Scoring/manuallyAndNonScored.js +8 -0
  28. package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +1 -0
  29. package/cypress/e2e/ILC/MultipleSelection/manuallyAndNonScoredScoring.js +8 -0
  30. package/cypress/e2e/ILC/MultipleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
  31. package/cypress/e2e/ILC/MultipleSelectionGridNew/editTabScoringSection.js +5 -5
  32. package/cypress/e2e/ILC/NumberLine/Scoring/manualAndNonScoredScoring.js +8 -0
  33. package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +1 -1
  34. package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +2 -1
  35. package/cypress/e2e/ILC/NumberLineLabel/manuallyAndNonScoredEditTab.js +9 -0
  36. package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingWithAlternativeAnswer.js +2 -2
  37. package/cypress/e2e/ILC/ShortTextResponseNew/manuallyAndNonScoredScoring.js +8 -0
  38. package/cypress/e2e/ILC/SimpleCalculator/editTabFunctionality.js +0 -1
  39. package/cypress/e2e/ILC/SingleSelection/manuallyAndNonScoredScoring.js +8 -0
  40. package/cypress/e2e/ILC/SingleSelectionGridNew/Scoring/manuallyAndNonScored.js +8 -0
  41. package/cypress/e2e/ILC/TextEntryMath/customSettingsSeparators.ts +262 -75
  42. package/cypress/e2e/ILC/TextEntryMath/editTabScoringSection.js +92 -0
  43. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodSymbolsAreEquivalent.js +47 -0
  44. package/cypress/e2e/ILC/TextEntryMath/evaluationMethodValueIsEquivalent.js +47 -0
  45. package/cypress/e2e/ILC/TextEntryMath/responseEvaluationMethodsAndCustomSettings.js +2 -2
  46. package/cypress/e2e/ILC/TextSelection/ScoringGeneric/manuallyAndNonScored.js +8 -0
  47. package/cypress/e2e/ILC/ToolSettings/toolSettingsContent.js +2 -3
  48. package/cypress/e2e/ILC/UploadResponse/manuallyAndNonScoredScoring.js +8 -0
  49. package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +1 -1
  50. package/cypress/fixtures/evaluationMethodsAndCustomSettings.js +58 -1
  51. package/cypress/pages/audioPlayerPage.js +1 -2
  52. package/cypress/pages/components/ckEditorAudioPlayerComponent.js +12 -0
  53. package/cypress/pages/components/customSettingsSeparatorsComponent.ts +37 -0
  54. package/cypress/pages/components/draggableOptionContainer.js +2 -2
  55. package/cypress/pages/components/equationEditorFlyout.js +9 -0
  56. package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +0 -4
  57. package/cypress/pages/components/imageCanvasComponent.js +7 -7
  58. package/cypress/pages/components/layoutSectionComponent.js +8 -6
  59. package/cypress/pages/components/numberLineCommonComponent.js +8 -4
  60. package/cypress/pages/createItemPage.js +21 -1
  61. package/cypress/pages/dragAndDropIntoCategoriesPage.js +6 -6
  62. package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +23 -21
  63. package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +4 -0
  64. package/cypress/pages/graphingPage.js +14 -13
  65. package/cypress/pages/listOrderingPage.js +31 -4
  66. package/cypress/pages/multipleSelectionPage.js +10 -1
  67. package/cypress/pages/rulerPage.js +1 -0
  68. package/cypress/pages/singleSelectionPage.js +2 -0
  69. package/cypress/pages/studentViewPage.js +2 -0
  70. package/cypress/pages/textEntryMathPage.js +35 -16
  71. package/package.json +1 -1
@@ -144,6 +144,7 @@ describe('Create item page - Graphing: Grading view, Correct answer view content
144
144
  graphingPage.steps.plotPointsOnGraphSpecifyCorrectAnswerSection([{ x: -3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: 4, yRange: 20 }, { x: 3, xRange: 20, y: -4, yRange: 20 }, { x: -3, xRange: 20, y: 4, yRange: 20 }]);
145
145
  graphingPage.steps.clickOnSaveQuestionButton();
146
146
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
147
+ utilities.verifyElementVisibilityState(graphingPage.graphPreviewTab(), 'visible');
147
148
  //Global variable issue, not working inside before
148
149
  itemPreviewPage.referenceID()
149
150
  .invoke('text')
@@ -24,6 +24,10 @@ describe('Create Item page - Grid fill: Manually and non scored', () => {
24
24
  });
25
25
 
26
26
  gridFillPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
27
+
28
+ it('User should able to save question with manually scored scoring type', () => {
29
+ gridFillPage.steps.saveAQuestionAndVerifySnackbar();
30
+ });
27
31
  });
28
32
 
29
33
  describe('Question Preview: Non Scored', () => {
@@ -98,5 +102,9 @@ describe('Create Item page - Grid fill: Manually and non scored', () => {
98
102
  gridFillPage.steps.verifyCorrectResponseIconPreviewTab(0, 4);
99
103
  gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
100
104
  });
105
+
106
+ it('User should able to save question with non scored scoring type', () => {
107
+ gridFillPage.steps.saveAQuestionAndVerifySnackbar();
108
+ });
101
109
  });
102
110
  });
@@ -41,6 +41,10 @@ describe('Create Item page - Matching: Manually and non scored', () => {
41
41
  });
42
42
 
43
43
  imageHighlightPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
44
+
45
+ it('User should able to save question with manually scored scoring type', () => {
46
+ imageHighlightPage.steps.saveAQuestionAndVerifySnackbar();
47
+ });
44
48
  });
45
49
 
46
50
  describe('Question Preview: Non Scored', () => {
@@ -161,5 +165,9 @@ describe('Create Item page - Matching: Manually and non scored', () => {
161
165
  imageHighlightPage.steps.verifyHiddenHighlightRegion(3);
162
166
  imageHighlightPage.steps.verifyCorrectAnswerSectionNotExists();*/
163
167
  });
168
+
169
+ it('User should able to save question with non scored scoring type', () => {
170
+ imageHighlightPage.steps.saveAQuestionAndVerifySnackbar();
171
+ });
164
172
  });
165
173
  });
@@ -14,6 +14,7 @@ describe('Create Item page - List ordering: Scoring cases', () => {
14
14
  listOrderingPage.steps.navigateToCreateQuestion('list ordering');
15
15
  cy.barsPreLoaderWait();
16
16
  listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
17
+ listOrderingPage.steps.addInputToOptionsInputField(options);
17
18
  listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
18
19
  });
19
20
 
@@ -35,6 +36,10 @@ describe('Create Item page - List ordering: Scoring cases', () => {
35
36
  it('The user should be able to enter point in points input field', () => {
36
37
  listOrderingPage.steps.allotPoints(10);
37
38
  });
39
+
40
+ it('User should able to save question with manually scored scoring type', () => {
41
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
42
+ });
38
43
  });
39
44
 
40
45
  describe('Non scored scoring - Scoring section', () => {
@@ -62,10 +67,15 @@ describe('Create Item page - List ordering: Scoring cases', () => {
62
67
  listOrderingPage.steps.selectOrderingLayoutOption('Dropdown menu');
63
68
  listOrderingPage.steps.expandScoringTypeDropdown();
64
69
  listOrderingPage.steps.selectOptionFromScoringTypeDropdown('Non scored');
70
+ listOrderingPage.steps.selectPositionForAllOptionsSpecifyCorrectAnswerSection([{ optionIndex: 0, position: '2' }, { optionIndex: 1, position: '3' }, { optionIndex: 2, position: '4' }, { optionIndex: 3, position: '1' }])
65
71
  });
66
72
 
67
73
  listOrderingPage.tests.verifyContentsOfSpecifyCorrectAnswerSectionDropdownLayout();
68
74
 
69
75
  listOrderingPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
76
+
77
+ it('User should able to save question with non scored scoring type', () => {
78
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
79
+ });
70
80
  });
71
81
  });
@@ -14,6 +14,7 @@ describe('Create Item page - List ordering: Scoring cases', () => {
14
14
  listOrderingPage.steps.navigateToCreateQuestion('list ordering');
15
15
  cy.barsPreLoaderWait();
16
16
  listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
17
+ listOrderingPage.steps.addInputToOptionsInputField(options);
17
18
  });
18
19
 
19
20
  it('When the user selects \'Manually scored\' option from the scoring Type dropdown then the \'Specify correct answer\' section should not be displayed; \'Points\' and \'Minimum scoring\' label and dropdown should be displayed', () => {
@@ -34,6 +35,10 @@ describe('Create Item page - List ordering: Scoring cases', () => {
34
35
  it('The user should be able to enter point in points input field', () => {
35
36
  listOrderingPage.steps.allotPoints(10);
36
37
  });
38
+
39
+ it('User should able to save question with manually scored scoring type', () => {
40
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
41
+ });
37
42
  });
38
43
 
39
44
  describe('Non scored scoring - Scoring section', () => {
@@ -65,5 +70,10 @@ describe('Create Item page - List ordering: Scoring cases', () => {
65
70
  listOrderingPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
66
71
 
67
72
  listOrderingPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
73
+
74
+ it('User should able to save question with non scored scoring type', () => {
75
+ listOrderingPage.steps.clickAndReorderOptionInSpecifyCorrectAnswerSection('seed', 0);
76
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
77
+ });
68
78
  });
69
79
  });
@@ -138,21 +138,21 @@ describe('Create item page - List ordering: Style and layout Component', () => {
138
138
 
139
139
  it('By default, the default selected drag handle will be displayed in the preview tab', () => {
140
140
  listOrderingPage.steps.switchToPreviewTab();
141
- listOrderingPage.steps.verifyDragHandleIconSpecifyCorrectAnswer('drag icon', "SameList");
141
+ listOrderingPage.steps.verifyDragHandleIconPreviewTab('drag icon', "SameList");
142
142
  });
143
143
 
144
144
  it('When user selects arrows drag handle icon then arrow icons will be displayed in preview tab', () => {
145
145
  listOrderingPage.steps.switchToEditTab();
146
146
  listOrderingPage.steps.selectDragHandleOption(1);
147
147
  listOrderingPage.steps.switchToPreviewTab();
148
- listOrderingPage.steps.verifyDragHandleIconSpecifyCorrectAnswer('arrow icon', "SameList");
148
+ listOrderingPage.steps.verifyDragHandleIconPreviewTab('arrow icon', "SameList");
149
149
  });
150
150
 
151
151
  it('When user selects none option then drag handles will not be displayed in the preview tab', () => {
152
152
  listOrderingPage.steps.switchToEditTab();
153
153
  listOrderingPage.steps.selectDragHandleOption(2);
154
154
  listOrderingPage.steps.switchToPreviewTab();
155
- listOrderingPage.steps.verifyDragHandleIconSpecifyCorrectAnswer('none', "SameList");
155
+ listOrderingPage.steps.verifyDragHandleIconPreviewTab('none', "SameList");
156
156
  });
157
157
  });
158
158
 
@@ -15,6 +15,7 @@ describe('Create Item page - List ordering: Scoring cases', () => {
15
15
  cy.barsPreLoaderWait();
16
16
  listOrderingPage.steps.selectOrderingLayoutOption('Reorder as a separate list');
17
17
  listOrderingPage.steps.addTextInQuestionInstructionsInputField('Arrange options in correct order.');
18
+ listOrderingPage.steps.addInputToOptionsInputField(options);
18
19
  });
19
20
 
20
21
  it('When the user selects \'Manually scored\' option from the scoring Type dropdown then the \'Specify correct answer\' section should not be displayed; \'Points\' and \'Minimum scoring\' label and dropdown should be displayed', () => {
@@ -35,6 +36,10 @@ describe('Create Item page - List ordering: Scoring cases', () => {
35
36
  it('The user should be able to enter point in points input field', () => {
36
37
  listOrderingPage.steps.allotPoints(10);
37
38
  });
39
+
40
+ it('User should able to save question with manually scored scoring type', () => {
41
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
42
+ });
38
43
  });
39
44
 
40
45
  describe('Non scored scoring - Scoring section', () => {
@@ -68,5 +73,13 @@ describe('Create Item page - List ordering: Scoring cases', () => {
68
73
  listOrderingPage.tests.verifyContentsOfSpecifyCorrectAnswerSectionSeperateList();
69
74
 
70
75
  listOrderingPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
76
+
77
+ it('User should able to save question with non scored scoring type', () => {
78
+ listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
79
+ listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
80
+ listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
81
+ listOrderingPage.steps.clickAndDropOptionSeperateList('seed');
82
+ listOrderingPage.steps.saveAQuestionAndVerifySnackbar();
83
+ });
71
84
  });
72
85
  });
@@ -36,6 +36,10 @@ describe('Create Item page - Matching: Manually and non scored', () => {
36
36
  });
37
37
 
38
38
  matchingPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
39
+
40
+ it('User should able to save question with manually scored scoring type', () => {
41
+ matchingPage.steps.saveAQuestionAndVerifySnackbar();
42
+ });
39
43
  });
40
44
 
41
45
  describe('Question Preview: Non Scored', () => {
@@ -140,5 +144,9 @@ describe('Create Item page - Matching: Manually and non scored', () => {
140
144
  matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
141
145
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();*/
142
146
  });
147
+
148
+ it('User should able to save question with non scored scoring type', () => {
149
+ matchingPage.steps.saveAQuestionAndVerifySnackbar();
150
+ });
143
151
  });
144
152
  });
@@ -136,12 +136,12 @@ describe('Create item page - Matching - Preview contents in all views', () => {
136
136
  });
137
137
  } else {
138
138
  it('The dropzone should be displayed filled with answers', () => {
139
- utilities.verifyElementCount(matchingPage.dropzonePreviewTab(), 3);
140
139
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
141
140
  matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
142
141
  matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
143
142
  //Note: Equation needs to be checked manually in correct answer view
144
143
  //matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
144
+ //utilities.verifyElementCount(matchingPage.dropzonePreviewTab(), 3);
145
145
  });
146
146
  }
147
147
  });
@@ -33,6 +33,10 @@ describe('Create Item page - Matching: Manually and non scored', () => {
33
33
  });
34
34
 
35
35
  matchingPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
36
+
37
+ it('User should able to save question with manually scored scoring type', () => {
38
+ matchingPage.steps.saveAQuestionAndVerifySnackbar();
39
+ });
36
40
  });
37
41
 
38
42
  describe('Question Preview: Non Scored', () => {
@@ -108,5 +112,9 @@ describe('Create Item page - Matching: Manually and non scored', () => {
108
112
  matchingPage.steps.verifyCorrectAnswerSectionNotExists();
109
113
  matchingPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
110
114
  });
115
+
116
+ it('User should able to save question with non scored scoring type', () => {
117
+ matchingPage.steps.saveAQuestionAndVerifySnackbar();
118
+ });
111
119
  });
112
120
  });
@@ -62,6 +62,7 @@ describe('Multiple selection - Additional settings', () => {
62
62
 
63
63
  it('When user selects \'Block with check box\' then \'Option numeration\' label and dropdown should not be displayed', () => {
64
64
  multipleSelectionPage.steps.expandOptionDesignDropdown();
65
+ cy.wait(1000);
65
66
  multipleSelectionPage.steps.selectOptionDesignDropdownOption('block with check box');
66
67
  utilities.verifyElementVisibilityState(multipleSelectionPage.optionNumerationLabel(), 'notExist');
67
68
  utilities.verifyElementVisibilityState(multipleSelectionPage.optionNumerationDropdown(), 'notExist');
@@ -24,6 +24,10 @@ describe('Question Preview: Manually Scored', () => {
24
24
  });
25
25
 
26
26
  multipleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored')
27
+
28
+ it('User should able to save question with manually scored scoring type', () => {
29
+ multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
30
+ });
27
31
  });
28
32
 
29
33
  describe('Question Preview: Non Scored', () => {
@@ -128,4 +132,8 @@ describe('Question Preview: Non Scored', () => {
128
132
  multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
129
133
  multipleSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');*/
130
134
  });
135
+
136
+ it('User should able to save question with non scored scoring type', () => {
137
+ multipleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
138
+ });
131
139
  });
@@ -32,6 +32,10 @@ describe('Create Item page - Multiple selection grid: Manually and non scored',
32
32
  });
33
33
 
34
34
  multipleSelectionGridPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
35
+
36
+ it('User should able to save question with manually scored scoring type', () => {
37
+ multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
38
+ });
35
39
  });
36
40
 
37
41
  describe('Question Preview: Non Scored', () => {
@@ -136,5 +140,9 @@ describe('Create Item page - Multiple selection grid: Manually and non scored',
136
140
  multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
137
141
  multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();*/
138
142
  });
143
+
144
+ it('User should able to save question with non scored scoring type', () => {
145
+ multipleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
146
+ });
139
147
  });
140
148
  });
@@ -187,18 +187,18 @@ describe('Create item page - Multiple selection grid: Scoring section', () => {
187
187
  multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEmpty();
188
188
  });
189
189
 
190
- it('When the user has not set any answer in the specify correct answer section, then the \'Points\' input field should be disabled', () => {
190
+ it('When the user has not set any answer in the specify correct answer section, then the \'Points\' input field should be enabled', () => {
191
191
  for (let index = 0; index < 4; index++) {
192
- multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsDisabled(index);
192
+ multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEnabled(index);
193
193
  };
194
194
  });
195
195
 
196
- it('When the user sets answers in the specify correct answer section, then \'Points\' input field for the selected correct options should get enabled and the other unselected options should stay in disabled state', () => {
196
+ it('When the user sets answers in the specify correct answer section, then \'Points\' input field for the selected correct options should get enabled and the other unselected options should also be in enabled state', () => {
197
197
  multipleSelectionGridPage.steps.setAnswersForAllQuestionStemsInSpecifyCorrectAnswerSection([{ row: 1, column: 0 }, { row: 2, column: 1 }]);
198
198
  multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEnabled(0);
199
199
  multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEnabled(1);
200
- multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsDisabled(2);
201
- multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsDisabled(3);
200
+ multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEnabled(2);
201
+ multipleSelectionGridPage.steps.verifyPartialDifferentWeightsPointsInputFieldIsEnabled(3);
202
202
  });
203
203
 
204
204
  it('User should be able to set points in the \'Points\' input fields', () => {
@@ -40,6 +40,10 @@ describe('Create Item page - Number line: Manually and non scored', () => {
40
40
  });
41
41
 
42
42
  numberLinePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
43
+
44
+ it('User should able to save question with manually scored scoring type', () => {
45
+ numberLinePage.steps.saveAQuestionAndVerifySnackbar();
46
+ });
43
47
  });
44
48
 
45
49
  describe('Question Preview: Non Scored', () => {
@@ -176,5 +180,9 @@ describe('Create Item page - Number line: Manually and non scored', () => {
176
180
  numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
177
181
  numberLinePage.steps.verifyCorrectAnswerSectionNotExist();*/
178
182
  });
183
+
184
+ it('User should able to save question with non scored scoring type', () => {
185
+ numberLinePage.steps.saveAQuestionAndVerifySnackbar();
186
+ });
179
187
  });
180
188
  });
@@ -76,6 +76,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
76
76
  itemPreviewPage.steps.switchToPreviewTab();
77
77
  break;
78
78
  case 'Grading view':
79
+ cy.wait(5000);
79
80
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
80
81
  break;
81
82
  }
@@ -92,7 +93,6 @@ describe('Create Item page - Number line label: All or nothing ', () => {
92
93
  itemPreviewPage.steps.resetQuestionPreview();
93
94
  break;
94
95
  case 'Grading view':
95
- cy.wait(5000)
96
96
  cy.visit(`/item-engine/demo/render-item/student-view/${utilities.base64Encoding(itemReferenceID)}`);
97
97
  break;
98
98
  }
@@ -33,7 +33,6 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
33
33
  numberLineLabelPage.steps.allotPoints(10);
34
34
  numberLineLabelPage.steps.clickOnSaveQuestionButton();
35
35
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
36
- cy.wait(5000);
37
36
  //Global variable issue, not working inside before
38
37
  itemPreviewPage.referenceID()
39
38
  .invoke('text')
@@ -123,6 +122,8 @@ describe('Create item page - Number line label: Grading view, Correct answer vie
123
122
  numberLineLabelPage.steps.allotPoints(10);
124
123
  numberLineLabelPage.steps.clickOnSaveQuestionButton();
125
124
  utilities.verifyElementVisibilityState(itemPreviewPage.referenceID(), 'visible');
125
+ utilities.verifyElementVisibilityState(numberLineLabelPage.numberLinePreviewTab(), 'visible');
126
+ cy.wait(5000);
126
127
  //Global variable issue, not working inside before
127
128
  itemPreviewPage.referenceID()
128
129
  .invoke('text')
@@ -36,6 +36,11 @@ describe('Create Item page - Number line: Scoring cases', () => {
36
36
  it('The user should be able to enter point in points input field', () => {
37
37
  numberLineLabelPage.steps.allotPoints(10);
38
38
  });
39
+
40
+ it('User should able to save question with manually scored scoring type', () => {
41
+ numberLineLabelPage.steps.enterTextInMultipleLabelInputFields(['Label 1', 'Label 2', 'Label 3']);
42
+ numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
43
+ });
39
44
  });
40
45
 
41
46
  describe('Non scored scoring - Scoring section', () => {
@@ -73,5 +78,9 @@ describe('Create Item page - Number line: Scoring cases', () => {
73
78
  numberLineLabelPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
74
79
 
75
80
  numberLineLabelPage.tests.verifyPointsLabelAndInputFieldForNonScoredScoringType();
81
+
82
+ it('User should able to save question with non scored scoring type', () => {
83
+ numberLineLabelPage.steps.saveAQuestionAndVerifySnackbar();
84
+ });
76
85
  });
77
86
  });
@@ -122,7 +122,7 @@ describe('Create item page - Single selection: All or nothing with alternative a
122
122
  //TODO: need to fix it after https://redmine.zeuslearning.com/issues/561054 is resolved
123
123
  it('When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed and answer input field should have incorrect answer border and correct answer section should be displayed below response input field', () => {
124
124
  shortTextResponsePage.steps.switchToGradingView();
125
- shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
125
+ //shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
126
126
  shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Fossil fuel combustion');
127
127
  shortTextResponsePage.steps.switchToStudentView();
128
128
  });
@@ -192,7 +192,7 @@ describe('Create item page - Single selection: All or nothing with alternative a
192
192
  //TODO: need to fix it after https://redmine.zeuslearning.com/issues/561054 is resolved
193
193
  it('When the user switches to \'Grading\' view without attempting the question, then incorrect border and correct answer section should be displayed', () => {
194
194
  shortTextResponsePage.steps.switchToGradingView();
195
- shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
195
+ //shortTextResponsePage.steps.verifyCorrectIncorrectBorderNotExist();
196
196
  shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
197
197
  shortTextResponsePage.steps.switchToStudentView();
198
198
  });
@@ -29,6 +29,10 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
29
29
  });
30
30
 
31
31
  shortTextResponsePage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
32
+
33
+ it('User should able to save question with manually scored scoring type', () => {
34
+ shortTextResponsePage.steps.saveAQuestionAndVerifySnackbar();
35
+ });
32
36
  });
33
37
 
34
38
  describe('Question Preview: Non scored', () => {
@@ -80,5 +84,9 @@ describe('Create Item page - Short text response: Scoring Section - Manually sco
80
84
  shortTextResponsePage.steps.verifyCorrectAttemptBorder();
81
85
  shortTextResponsePage.steps.verifyCorrectAnswerWrapperNotExist();*/
82
86
  });
87
+
88
+ it('User should able to save question with non scored scoring type', () => {
89
+ shortTextResponsePage.steps.saveAQuestionAndVerifySnackbar();
90
+ });
83
91
  });
84
92
  });
@@ -161,7 +161,6 @@ describe('Simple calculator - Customize calculator settings, show calculator vis
161
161
  });
162
162
 
163
163
  it('\'Launch the simple calculator by default\' label and checkbox should be displayed and by default the checkbox should be unchecked', () => {
164
- simpleCalculatorPage.steps.checkAddShowHideButtonCheckbox();
165
164
  simpleCalculatorPage.steps.verifyLaunchToolByDefaultLabel('simple calculator');
166
165
  simpleCalculatorPage.steps.verifyLaunchToolByDefaultCheckboxUnchecked();
167
166
  });
@@ -24,6 +24,10 @@ describe('Question Preview: Manually Scored', () => {
24
24
  });
25
25
 
26
26
  singleSelectionPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored')
27
+
28
+ it('User should able to save question with manually scored scoring type', () => {
29
+ singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
30
+ });
27
31
  });
28
32
 
29
33
  describe('Question Preview: Non Scored', () => {
@@ -98,4 +102,8 @@ describe('Question Preview: Non Scored', () => {
98
102
  singleSelectionPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
99
103
  singleSelectionPage.steps.verifyCorrectIncorrectBorderNotExists();*/
100
104
  });
105
+
106
+ it('User should able to save question with non scored scoring type', () => {
107
+ singleSelectionPage.steps.saveAQuestionAndVerifySnackbar();
108
+ });
101
109
  });
@@ -32,6 +32,10 @@ describe('Create Item page - Single selection grid: Manually and non scored', ()
32
32
  });
33
33
 
34
34
  singleSelectionGridPage.tests.verifyGradingStudentViewRadioButtonAndScoringTypeInPreviewTab('Manually scored');
35
+
36
+ it('User should able to save question with manually scored scoring type', () => {
37
+ singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
38
+ });
35
39
  });
36
40
 
37
41
  describe('Question Preview: Non Scored', () => {
@@ -136,5 +140,9 @@ describe('Create Item page - Single selection grid: Manually and non scored', ()
136
140
  singleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
137
141
  singleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();*/
138
142
  });
143
+
144
+ it('User should able to save question with non scored scoring type', () => {
145
+ singleSelectionGridPage.steps.saveAQuestionAndVerifySnackbar();
146
+ });
139
147
  });
140
148
  });