itemengine-cypress-automation 1.0.203 → 1.0.204
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingBasicForGroupedOptionsLayout.js +22 -22
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/allOrNothingCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perCorrectOptionCorrectPointsEqualToAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneBasic.js +4 -4
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsEqualToAlternativePoints.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneCorrectPointsGreaterThanAlternativePoints.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/Scoring/perDropzoneMinimumAndPenaltyScoring.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/clickAndDrop.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/specifyCorrectAnswerSection.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettings.js +8 -8
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseAdditionalSettings.js +5 -1
- package/cypress/e2e/ILC/EditTabSettingPage/itemPreviewSettingsTabFunctionality.js +2 -0
- package/cypress/e2e/ILC/EssayResponse/createCustomCategory.smoke.js +19 -21
- package/cypress/e2e/ILC/EssayResponseMath/mathCharacters.js +2 -4
- package/cypress/e2e/ILC/FeedbackScaleNew/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/backgroundImageAndCanvasProperties.js +14 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/dropdownOptionsSection.js +6 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/editTabBasicSection.js +4 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/allOrNothingCorrectPointsGreaterThanAlternativePoints.js +3 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/conditionalCheckboxScoring.js +56 -56
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsAlternativePointsGreaterThanCorrectPoints.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +6 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/editTabScoringSection.js +1 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/Scoring/partialDifferentWeightsMinimumAndPenaltyScoring.js +4 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/editTabScoringSection.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/specifyCorrectAnswerSection.js +2 -2
- package/cypress/e2e/ILC/GridFill/customizeLayoutFillImageBackgroundImage.js +8 -3
- package/cypress/e2e/ILC/ImageHighlight/additionalSettingsBasic.js +1 -1
- package/cypress/e2e/ILC/Matching/Scoring/partialDifferentWeightsScoringBasic.js +2 -2
- package/cypress/e2e/ILC/Matching/toolSettings.js +1 -1
- package/cypress/e2e/ILC/MultipleSelection/additionalSettings.js +248 -0
- package/cypress/e2e/ILC/ReadingRuler/readingRulerEditTabBasicsSection.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/editTabBasicSections.js +3 -0
- package/cypress/e2e/ILC/SingleSelection/additionalSettings.js +249 -0
- package/cypress/e2e/ILC/SingleSelectionGridNew/editTabBasicSection.js +1 -1
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodEquivalentStructures.js +6 -6
- package/cypress/e2e/ILC/TextEntryMath/evaluationMethodMatchValue.js +0 -1
- package/cypress/e2e/ILC/TextSelection/Scoring/partialDifferentWeightsBasic.js +1 -1
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/chartsDotsPlot/dotTypeFunctionality.js +235 -0
- package/cypress/e2e/ILC/chartsDotsPlot/minimumScoringPenaltyPointsAndRoundingDropdown.js +5 -5
- package/cypress/e2e/ILC/chartsDotsPlot/numberLineAxisSettings.js +265 -0
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +6 -6
- package/cypress/e2e/ILC/chartsDotsPlot/scoring/manualAndNonScoredScoring.js +3 -3
- package/cypress/e2e/ILC/chartsDotsPlot/selectChartTypeSection.js +594 -0
- package/cypress/e2e/ILC/chartsDotsPlot/studentViewSettings.js +2 -3
- package/cypress/fixtures/drawingToolbarOptionsAdditionalOptionsAndSpecialAndMathCharacters.js +1 -1
- package/cypress/fixtures/fillColorDefaultProperties.js +2 -2
- package/cypress/pages/chartsDotPlotPage.js +588 -59
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -1
- package/cypress/pages/components/autoScoredScoringSectionMultiResponseType.js +1 -0
- package/cypress/pages/components/autoScoredSpecifyCorrectAnswerSection.js +1 -1
- package/cypress/pages/components/backgroundImageUploadComponent.js +1 -1
- package/cypress/pages/components/chartsCommonComponent.js +10 -1
- package/cypress/pages/components/customizeMathCharacterComponent.js +10 -5
- package/cypress/pages/components/fillInTheGapsDropdownCommonComponent.js +2 -2
- package/cypress/pages/components/fillInTheGapsTextCommonComponent.js +4 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +11 -11
- package/cypress/pages/components/imageCanvasComponent.js +2 -2
- package/cypress/pages/components/layoutSectionComponent.js +20 -18
- package/cypress/pages/components/mcqAdditionalSettingsBase.js +164 -24
- package/cypress/pages/dialogBoxBase.js +1 -1
- package/cypress/pages/dragAndDropIntoCategoriesPage.js +1 -5
- package/cypress/pages/drawingResponsePage.js +3 -3
- package/cypress/pages/feedbackScalePage.js +16 -9
- package/cypress/pages/fillInTheGapsOverImageDragAndDropPage.js +6 -1
- package/cypress/pages/fillInTheGapsOverImageDropdownPage.js +2 -1
- package/cypress/pages/gridFillPage.js +17 -14
- package/cypress/pages/itemPreviewSettingsPage.js +1 -0
- package/cypress/pages/matchingPage.js +1 -1
- package/cypress/pages/multipleSelectionPage.js +173 -1
- package/cypress/pages/singleSelectionPage.js +171 -1
- package/package.json +1 -1
@@ -20,119 +20,119 @@ describe('Fill In the gaps over image - text \'Correct response condition\' chec
|
|
20
20
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
21
21
|
});
|
22
22
|
|
23
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with incorrect casing then full points should be awarded and when user
|
23
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with incorrect casing then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
24
24
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'floWer is diSplayed' }]);
|
25
25
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
26
|
-
|
26
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
27
27
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
28
28
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
29
29
|
});
|
30
30
|
|
31
|
-
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with incorrect casing then zero points should be awarded and when user
|
31
|
+
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with incorrect casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
32
32
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
33
33
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Case sensitive');
|
34
34
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
35
35
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed' }]);
|
36
36
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
37
|
-
|
37
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
38
38
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
39
39
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
40
40
|
});
|
41
41
|
|
42
|
-
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with correct casing then full points should be awarded and when user
|
42
|
+
it('When only \'Case sensitive\' checkbox is checked and user attempts the question with correct casing then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
43
43
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
44
44
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
45
45
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
46
|
-
|
46
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
47
47
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
48
48
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
49
49
|
});
|
50
50
|
|
51
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user
|
51
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with incorrect casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
52
52
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
53
53
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
54
54
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
55
55
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayed in this image' }]);
|
56
56
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
57
|
-
|
57
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
58
58
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
59
59
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
60
60
|
});
|
61
61
|
|
62
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which does not include the answer but with correct casing then zero points should be awarded and when user
|
62
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which does not include the answer but with correct casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
63
63
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
64
64
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image has Flower' }]);
|
65
65
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
66
|
-
|
66
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
67
67
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
68
68
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
69
69
|
});
|
70
70
|
|
71
|
-
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with correct casing then full points should be awarded and when user
|
71
|
+
it('When only \'Case sensitive\' and \'Validate if answer is included in the response\' checkboxes are checked and user attempts the question with a sentence which includes the answer with correct casing then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
72
72
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
73
73
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
74
74
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
75
|
-
|
75
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
76
76
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
77
77
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
78
78
|
});
|
79
79
|
|
80
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and incorrect casing then zero points should be awarded and when user
|
80
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and incorrect casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
81
81
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
82
82
|
fillInTheGapsOverImageTextPage.steps.uncheckConditionalCheckbox('Validate if answer is included in the response');
|
83
83
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
84
84
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
85
85
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' flower is Displayed ' }]);
|
86
86
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
87
|
-
|
87
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
88
88
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
89
89
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
90
90
|
});
|
91
91
|
|
92
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces in between answer and with correct casing then zero points should be awarded and when user
|
92
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces in between answer and with correct casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
93
93
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
94
94
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayed' }]);
|
95
95
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
96
|
-
|
96
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
97
97
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
98
98
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
99
99
|
});
|
100
100
|
|
101
|
-
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and correct casing then full points should be awarded and when user
|
101
|
+
it('When only \'Case sensitive\' and \'Ignore extra spaces\' checkboxes are checked and user attempts the question with answer having extra spaces and correct casing then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
102
102
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
103
103
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
104
104
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
105
|
-
|
105
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
106
106
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
107
107
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
108
108
|
});
|
109
109
|
|
110
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and incorrect casing then zero points should be awarded and when user
|
110
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and incorrect casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
111
111
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
112
112
|
fillInTheGapsOverImageTextPage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
|
113
113
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
114
114
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
115
115
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'flower is Displayes' }]);
|
116
116
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
117
|
-
|
117
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
118
118
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
119
119
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
120
120
|
});
|
121
121
|
|
122
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having multiple letter mistake and correct casing then zero points should be awarded and when user
|
122
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having multiple letter mistake and correct casing then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
123
123
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
124
124
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flowrr is displayes' }]);
|
125
125
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
126
|
-
|
126
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
127
127
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
128
128
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
129
129
|
});
|
130
130
|
|
131
|
-
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and correct casing then full points should be awarded and when user
|
131
|
+
it('When only \'Case sensitive\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with answer having single letter mistake and correct casing then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
132
132
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
133
133
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
134
134
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
135
|
-
|
135
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
136
136
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
137
137
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
138
138
|
});
|
@@ -152,48 +152,48 @@ describe('Fill In the gaps over image - text \'Correct response condition\' chec
|
|
152
152
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
153
153
|
});
|
154
154
|
|
155
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with a sentence which includes the answer then zero points should be awarded and when user
|
155
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with a sentence which includes the answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
156
156
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
157
157
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
158
|
-
|
158
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
159
159
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
160
160
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
161
161
|
});
|
162
162
|
|
163
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which does not include the answer then zero points should be awarded and when user
|
163
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which does not include the answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
164
164
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
165
165
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
166
166
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
167
167
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Image contains fruit' }]);
|
168
168
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
169
|
-
|
169
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
170
170
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
171
171
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
172
172
|
});
|
173
173
|
|
174
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes a part of the answer then zero points should be awarded and when user
|
174
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes a part of the answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
175
175
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
176
176
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'This image contains flower' }]);
|
177
177
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
178
|
-
|
178
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
179
179
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
180
180
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
181
181
|
});
|
182
182
|
|
183
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes the answer then full points should be awarded and when user
|
183
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with a sentence which includes the answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
184
184
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
185
185
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed in this image' }]);
|
186
186
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
187
|
-
|
187
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
188
188
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
189
189
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
190
190
|
});
|
191
191
|
|
192
|
-
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with the exact answer then full points should be awarded and when user
|
192
|
+
it('When only \'Validate if answer is included in the response\' checkbox is checked and user attempts the question with the exact answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
193
193
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
194
194
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
195
195
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
196
|
-
|
196
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
197
197
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
198
198
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
199
199
|
});
|
@@ -213,68 +213,68 @@ describe('Fill In the gaps over image - text \'Correct response condition\' chec
|
|
213
213
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
214
214
|
});
|
215
215
|
|
216
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with extra spaces before and after the correct answer then zero points should be awarded and when user
|
216
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with extra spaces before and after the correct answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
217
217
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
218
218
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
219
|
-
|
219
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
220
220
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
221
221
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
222
222
|
});
|
223
223
|
|
224
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces in between the correct answer then zero points should be awarded and when user
|
224
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces in between the correct answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
225
225
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
226
226
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Ignore extra spaces');
|
227
227
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
228
228
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is dis played' }]);
|
229
229
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
230
|
-
|
230
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
231
231
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
232
232
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
233
233
|
});
|
234
234
|
|
235
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces before and after the correct answer then full points should be awarded and when user
|
235
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with extra spaces before and after the correct answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
236
236
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
237
237
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayed ' }]);
|
238
238
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
239
|
-
|
239
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
240
240
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
241
241
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
242
242
|
});
|
243
243
|
|
244
|
-
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user
|
244
|
+
it('When only \'Ignore extra spaces\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
245
245
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
246
246
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
247
247
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
248
|
-
|
248
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
249
249
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
250
250
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
251
251
|
});
|
252
252
|
|
253
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces in between the correct answer with single letter mistake then zero points should be awarded and when user
|
253
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces in between the correct answer with single letter mistake then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
254
254
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
255
255
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
256
256
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
257
257
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flo wer is displayes' }]);
|
258
258
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
259
|
-
|
259
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
260
260
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
261
261
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
262
262
|
});
|
263
263
|
|
264
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces and multiple letter mistake then zero points should be awarded and when user
|
264
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces and multiple letter mistake then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
265
265
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
266
266
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Fkower is dispkayed ' }]);
|
267
267
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
268
|
-
|
268
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
269
269
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
270
270
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
271
271
|
});
|
272
272
|
|
273
|
-
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces before and after the correct answer with single letter mistake then full points should be awarded and when user
|
273
|
+
it('When only \'Ignore extra spaces\' and \'Ignore single letter mistake\' checkboxes are checked and user attempts the question with extra spaces before and after the correct answer with single letter mistake then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
274
274
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
275
275
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: ' Flower is displayes ' }]);
|
276
276
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
277
|
-
|
277
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
278
278
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
279
279
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
280
280
|
});
|
@@ -294,39 +294,39 @@ describe('Fill In the gaps over image - text \'Correct response condition\' chec
|
|
294
294
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
295
295
|
});
|
296
296
|
|
297
|
-
it('When all conditional checkboxes are unchecked and user attempts the question with single letter mistake then zero points should be awarded and when user
|
297
|
+
it('When all conditional checkboxes are unchecked and user attempts the question with single letter mistake then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
298
298
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayes' }]);
|
299
299
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
300
|
-
|
300
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
301
301
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
302
302
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
303
303
|
});
|
304
304
|
|
305
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with multiple letter mistakes then zero points should be awarded and when user
|
305
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with multiple letter mistakes then zero points should be awarded and when user switches to grading view, red cross mark beside the response field and a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
306
306
|
fillInTheGapsOverImageTextPage.steps.switchToEditTab();
|
307
307
|
fillInTheGapsOverImageTextPage.steps.checkConditionalCheckbox('Ignore single letter mistake');
|
308
308
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
309
309
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayes' }]);
|
310
310
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(0, 10);
|
311
|
-
|
311
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
312
312
|
fillInTheGapsOverImageTextPage.steps.verifyIncorrectOptionIcon(0);
|
313
313
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
314
314
|
});
|
315
315
|
|
316
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with single letter mistake then full points should be awarded and when user
|
316
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with single letter mistake then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
317
317
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
318
318
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Floeer is displayed' }]);
|
319
319
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
320
|
-
|
320
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
321
321
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
322
322
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
323
323
|
});
|
324
324
|
|
325
|
-
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user
|
325
|
+
it('When only \'Ignore single letter mistake\' checkbox is checked and user attempts the question with the correct answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field and a status message with text \'Your answer is correct\' should be displayed', () => {
|
326
326
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
327
327
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower is displayed' }]);
|
328
328
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10, 10);
|
329
|
-
|
329
|
+
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
330
330
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
331
331
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
332
332
|
});
|
@@ -200,7 +200,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
200
200
|
fillInTheGapsOverImageTextPage.steps.expandCorrectAnswerAccordion();
|
201
201
|
fillInTheGapsOverImageTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 1.2, 1: 2.2, 2: 1.6 });
|
202
202
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
203
|
-
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '
|
203
|
+
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Branch' }]);
|
204
204
|
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(10.4, 23);
|
205
205
|
fillInTheGapsOverImageTextPage.steps.switchToGradingView();
|
206
206
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectOptionIcon(0);
|
@@ -221,13 +221,13 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
221
221
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
222
222
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
223
223
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
224
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(
|
224
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(13.67, 20);
|
225
225
|
});
|
226
226
|
|
227
227
|
it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect text container should get deducted from the awarded points', () => {
|
228
228
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
229
229
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Seed' }, { responseIndex: 2, responseText: 'Branch' }]);
|
230
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(
|
230
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(6.34, 20);
|
231
231
|
});
|
232
232
|
|
233
233
|
it('When the user has defined penalty points and also sets minimum scoring to \'Award minimum score only if attempted\' and allots minimum points, then on attempting the question incorrectly, minimum points should be awarded', () => {
|
@@ -246,7 +246,9 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
246
246
|
|
247
247
|
//Penalty points for each incorrect text container - Specify points for each incorrect text container
|
248
248
|
it('When the user has set penalty scoring to \'Penalty points for each incorrect text container\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points for the incorrect and empty dropzone', () => {
|
249
|
+
fillInTheGapsOverImageTextPage.steps.expandPenaltyScoringDropdown();
|
249
250
|
fillInTheGapsOverImageTextPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect text container');
|
251
|
+
fillInTheGapsOverImageTextPage.steps.selectPenaltyPointsForEachIncorrectOptionType('specify points for each incorrect text container');
|
250
252
|
fillInTheGapsOverImageTextPage.steps.allotPenaltyPointsForEachIncorrectTextContainer(4);
|
251
253
|
fillInTheGapsOverImageTextPage.steps.switchToPreviewTab();
|
252
254
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Roots' }]);
|
@@ -256,7 +258,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
256
258
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
257
259
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
258
260
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
259
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(
|
261
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(11, 20);
|
260
262
|
});
|
261
263
|
|
262
264
|
it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect text container should get deducted from the awarded points', () => {
|
@@ -290,7 +292,7 @@ describe('Create item page - Fill in the gaps over image with text: Partial diff
|
|
290
292
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
291
293
|
fillInTheGapsOverImageTextPage.steps.resetQuestionPreview();
|
292
294
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
293
|
-
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(
|
295
|
+
fillInTheGapsOverImageTextPage.steps.verifyPreviewScore(8.33, 20);
|
294
296
|
});
|
295
297
|
|
296
298
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
@@ -88,7 +88,7 @@ describe('Create item page - Fill in the gaps over image: Scoring section', () =
|
|
88
88
|
fillInTheGapsOverImageTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
89
89
|
|
90
90
|
it('When no points are entered in the points input field, then points per response label should not be displayed on the response accordion', () => {
|
91
|
-
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.responseAccordionPointsLabel(), '
|
91
|
+
utilities.verifyElementVisibilityState(fillInTheGapsOverImageTextPage.responseAccordionPointsLabel(), 'hidden');
|
92
92
|
});
|
93
93
|
|
94
94
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
|
@@ -15,7 +15,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
15
15
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
16
16
|
fillInTheGapsTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
17
17
|
fillInTheGapsTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 1, 1: 6, 2: 5 });
|
18
|
-
|
18
|
+
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
19
19
|
});
|
20
20
|
|
21
21
|
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', () => {
|
@@ -156,7 +156,6 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
156
156
|
fillInTheGapsTextPage.steps.selectAutoScoredScoringSubtype('Partial different weights');
|
157
157
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Stem' }]);
|
158
158
|
fillInTheGapsTextPage.steps.allotPartialDifferentWeightsPoints({ 0: 9, 1: 6, 2: 5 });
|
159
|
-
//fillInTheGapsTextPage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
160
159
|
});
|
161
160
|
|
162
161
|
//Penalty points for the entire question
|
@@ -236,6 +235,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
236
235
|
it('When the user has set penalty scoring to \'Penalty points for each incorrect text container\', and \'Specify total penalty points\' radio button in checked state, allots total penalty points and attempts the question incorrectly, then the user should be awarded with negative points for the incorrect and empty dropzone', () => {
|
237
236
|
fillInTheGapsTextPage.steps.expandPenaltyScoringDropdown();
|
238
237
|
fillInTheGapsTextPage.steps.selectOptionFromPenaltyScoringDropdown('Penalty points for each incorrect text container');
|
238
|
+
fillInTheGapsTextPage.steps.selectPenaltyPointsForEachIncorrectOptionType('specify points for each incorrect text container')
|
239
239
|
fillInTheGapsTextPage.steps.allotPenaltyPointsForEachIncorrectTextContainer(4);
|
240
240
|
fillInTheGapsTextPage.steps.switchToPreviewTab();
|
241
241
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Roots' }]);
|
@@ -245,7 +245,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
245
245
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
246
246
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
247
247
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
248
|
-
fillInTheGapsTextPage.steps.verifyPreviewScore(
|
248
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(11, 20);
|
249
249
|
});
|
250
250
|
|
251
251
|
it('When the user attempts the question correctly along with multiple incorrect options, then Penalty points for each incorrect text container should get deducted from the awarded points', () => {
|
@@ -279,7 +279,7 @@ describe('Create item page - Fill in the gaps with text: Partial different weigh
|
|
279
279
|
it('When the user attempts the question correctly along with an incorrect option, then penalty points should get deducted from the awarded points', () => {
|
280
280
|
fillInTheGapsTextPage.steps.resetQuestionPreview();
|
281
281
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: 'Leaf' }, { responseIndex: 2, responseText: 'Roots' }]);
|
282
|
-
fillInTheGapsTextPage.steps.verifyPreviewScore(
|
282
|
+
fillInTheGapsTextPage.steps.verifyPreviewScore(8.33, 20);
|
283
283
|
});
|
284
284
|
|
285
285
|
it('When the user attempts the question correctly along with multiple incorrect options, then penalty points for each incorrect option should get deducted from the awarded points', () => {
|
@@ -74,7 +74,7 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
|
|
74
74
|
fillInTheGapsTextPage.tests.verifyContentsOfSpecifyCorrectAnswerSection();
|
75
75
|
|
76
76
|
it('When no points are entered in the points input field, then points per response should not be displayed on the response accordion', () => {
|
77
|
-
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.responseAccordionPointsLabel(), '
|
77
|
+
utilities.verifyElementVisibilityState(fillInTheGapsTextPage.responseAccordionPointsLabel(), 'hidden');
|
78
78
|
});
|
79
79
|
|
80
80
|
it('When the user gives a score input to \'Points\' input field, then the score should be equally divided and displayed on each response tab with a \'Points:\' label', () => {
|
@@ -161,8 +161,8 @@ describe('Create item page - Fill in the gaps with text: Scoring section', () =>
|
|
161
161
|
|
162
162
|
it('When the user has switched to \'Partial - different weights\' scoring, then the correct answer tab points input field should not be displayed and individual empty points input field should be displayed in each response accordion', () => {
|
163
163
|
utilities.verifyElementCount(fillInTheGapsTextPage.pointsInputField(), 2);
|
164
|
-
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0,
|
165
|
-
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1,
|
164
|
+
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(0, '');
|
165
|
+
fillInTheGapsTextPage.steps.verifyPointsLabelAndInputFieldInResponseAccordion(1, '');
|
166
166
|
});
|
167
167
|
|
168
168
|
it('User should be able to set points in the \'Points\' input fields', () => {
|
@@ -25,7 +25,7 @@ describe('Create Item page - Fill in the gaps with text: Specify correct answer,
|
|
25
25
|
cy.barsPreLoaderWait();
|
26
26
|
});
|
27
27
|
|
28
|
-
fillInTheGapsTextPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('fill in the gaps text');
|
28
|
+
fillInTheGapsTextPage.tests.verifyAutoScoredAddAlternativeAnswerButtonAndValidation('fill in the gaps with text');
|
29
29
|
|
30
30
|
it('When user has added points and given input in response accordion answer input field in the \'Correct\' accordion, then the user should be able to add alternative answer for the question using \'Add alternative answer\' button', () => {
|
31
31
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsSpecifyCorrectAnswerSection([{ responseIndex: 0, responseText: 'Petals' }, { responseIndex: 1, responseText: 'Flower' }]);
|
@@ -35,7 +35,7 @@ describe('Create Item page - Fill in the gaps with text: Specify correct answer,
|
|
35
35
|
|
36
36
|
it('When user has added an alternative answer accordion, then the newly added alternative answer accordion should be in expanded state and the correct answer accordion should be in collapsed state', () => {
|
37
37
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerAccordionIsCollapsed();
|
38
|
-
fillInTheGapsTextPage.steps.verifyAlternateAnswerAccordionIsExpanded(
|
38
|
+
fillInTheGapsTextPage.steps.verifyAlternateAnswerAccordionIsExpanded(0);
|
39
39
|
});
|
40
40
|
|
41
41
|
fillInTheGapsTextPage.tests.verifySpecifyCorrectAnswerAccordionContentsAndFunctionality('Alternative');
|
@@ -446,7 +446,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
446
446
|
it('When user locks the aspect ratio button and changes the value in the width input field, the height input field should be updated accordingly to maintain the updated aspect ratio', () => {
|
447
447
|
gridFillPage.steps.lockAspectRatio();
|
448
448
|
gridFillPage.steps.updateCanvasWidth(150);
|
449
|
-
gridFillPage.steps.verifyGridBackgroundImageDimensionsInEditTab('
|
449
|
+
gridFillPage.steps.verifyGridBackgroundImageDimensionsInEditTab('150px', '180px');
|
450
450
|
});
|
451
451
|
|
452
452
|
it('When user selects the \'Reset dimensions\' button the height and width should reset to the original values', () => {
|
@@ -475,6 +475,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
475
475
|
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
476
476
|
gridFillPage.steps.uploadFile('highlightImage.jpg');
|
477
477
|
gridFillPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
478
|
+
utilities.verifyElementVisibilityState(gridFillPage.uploadImageProgressBar(), 'notExist');
|
478
479
|
gridFillPage.steps.switchToPreviewTab();
|
479
480
|
});
|
480
481
|
|
@@ -500,6 +501,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
500
501
|
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
501
502
|
gridFillPage.steps.uploadFile('highlightImage.jpg');
|
502
503
|
gridFillPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
504
|
+
utilities.verifyElementVisibilityState(gridFillPage.uploadImageProgressBar(), 'notExist');
|
503
505
|
gridFillPage.steps.switchToPreviewTab();
|
504
506
|
});
|
505
507
|
|
@@ -566,6 +568,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
566
568
|
gridFillPage.steps.clickOnCustomizeLayoutAccordionButton();
|
567
569
|
gridFillPage.steps.uploadFile('highlightImage.jpg');
|
568
570
|
gridFillPage.steps.verifyFileNameLabel('highlightImage.jpg');
|
571
|
+
utilities.verifyElementVisibilityState(gridFillPage.uploadImageProgressBar(), 'notExist');
|
569
572
|
gridFillPage.steps.uncheckFillImageToGridCheckbox();
|
570
573
|
});
|
571
574
|
|
@@ -588,7 +591,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
588
591
|
gridFillPage.steps.lockAspectRatio();
|
589
592
|
gridFillPage.steps.updateCanvasWidth(150);
|
590
593
|
gridFillPage.steps.switchToPreviewTab();
|
591
|
-
gridFillPage.steps.verifyGridBackgroundImageDimensionsInPreviewTab('
|
594
|
+
gridFillPage.steps.verifyGridBackgroundImageDimensionsInPreviewTab('150px', '180px');
|
592
595
|
});
|
593
596
|
|
594
597
|
it('When user selects the \'Reset dimensions\' button the height and width should reset to the original values', () => {
|
@@ -609,7 +612,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
609
612
|
gridFillPage.steps.switchToEditTab();
|
610
613
|
gridFillPage.steps.clearBackgroundImageAltTextInputField();
|
611
614
|
gridFillPage.steps.switchToPreviewTab();
|
612
|
-
gridFillPage.steps.
|
615
|
+
gridFillPage.steps.verifyBackgroundImageAltTextNotPresentInPreviewTabGrid();
|
613
616
|
});
|
614
617
|
});
|
615
618
|
|
@@ -624,6 +627,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
624
627
|
gridFillPage.steps.selectImageRadioButton();
|
625
628
|
gridFillPage.steps.uploadFilledImageFile('highlightImage.jpg');
|
626
629
|
gridFillPage.steps.verifyFilledImageFileNameLabel('highlightImage.jpg');
|
630
|
+
utilities.verifyElementVisibilityState(gridFillPage.uploadImageProgressBar(), 'notExist');
|
627
631
|
utilities.verifyElementNotDisabled(gridFillPage.deleteImageIcon());
|
628
632
|
});
|
629
633
|
|
@@ -653,6 +657,7 @@ describe('Create item page - Grid fill: Customize layout section - \'Fill Image\
|
|
653
657
|
gridFillPage.steps.selectImageRadioButton();
|
654
658
|
gridFillPage.steps.uploadFilledImageFile('highlightImage.jpg');
|
655
659
|
gridFillPage.steps.verifyFilledImageFileNameLabel('highlightImage.jpg');
|
660
|
+
utilities.verifyElementVisibilityState(gridFillPage.uploadImageProgressBar(), 'notExist');
|
656
661
|
utilities.verifyElementNotDisabled(gridFillPage.deleteImageIcon());
|
657
662
|
gridFillPage.steps.switchToPreviewTab();
|
658
663
|
});
|
@@ -55,7 +55,7 @@ describe('Create Item page - Image highlight : Additional settings', () => {
|
|
55
55
|
'font-size': '14px'
|
56
56
|
});
|
57
57
|
utilities.verifyCSS(utilities.getNthElement(imageHighlightPage.highlightNumerationSpecifyCorrectAnswer(), 0), {
|
58
|
-
'font-size': '
|
58
|
+
'font-size': '12px'
|
59
59
|
});
|
60
60
|
});
|
61
61
|
});
|