itemengine-cypress-automation 1.0.569 → 1.0.571-scoring-fix-8676243.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -67,61 +67,79 @@ describe('Create item page - Short text response: Conditional checkboxes', () =>
|
|
|
67
67
|
|
|
68
68
|
describe('Only \'Validate if answer is included in the response\' checkbox checked', () => {
|
|
69
69
|
abortEarlySetup();
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
70
|
+
|
|
71
|
+
describe('Text Answer Tests', () => {
|
|
72
|
+
before(() => {
|
|
73
|
+
shortTextResponsePage.steps.navigateToCreateQuestion('short text response');
|
|
74
|
+
shortTextResponsePage.steps.allotPoints(10);
|
|
75
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('Flower is displayed');
|
|
76
|
+
shortTextResponsePage.steps.checkConditionalCheckbox('Validate if answer is included in the response');
|
|
77
|
+
shortTextResponsePage.steps.uncheckConditionalCheckbox('Ignore extra spaces');
|
|
78
|
+
//shortTextResponsePage.steps.checkAllowStudentToCheckAnswerCheckbox();
|
|
79
|
+
shortTextResponsePage.steps.switchToPreviewTab();
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it('When 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 response field should be displayed', () => {
|
|
83
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in this image');
|
|
84
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
85
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
86
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
it('When user attempts the question with a sentence that includes the answer with incorrect casing, then full score should be awarded and when user switches to grading view, a green check mark should be displayed beside response field', () => {
|
|
90
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
|
91
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('floweR is Displayed');
|
|
92
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
93
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
94
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
it('When user attempts the question with a sentence which includes the answer and correct casing with extra spaces in between the answer then zero points should be awarded and when user switches to grading view, red cross mark beside the response field should be displayed', () => {
|
|
98
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
|
99
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed in the picture');
|
|
100
|
+
shortTextResponsePage.steps.verifyPreviewScore(0, 10);
|
|
101
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
102
|
+
shortTextResponsePage.steps.verifyIncorrectIcon();
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
it('When user attempts the question with answer that has incorrect casing with extra spaces before and after correct answer then full points should be awarded and when user switches to grading view, green check mark beside the response field should be displayed', () => {
|
|
106
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
|
107
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' flower is Displayed ');
|
|
108
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
109
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
110
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
it('When user attempts the question with answer that has correct casing with extra spaces before and after correct answer and then full points should be awarded and when user switches to grading view, green check mark beside the correct response field should be displayed', () => {
|
|
114
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
|
115
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab(' Flower is displayed ');
|
|
116
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
117
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
118
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
it('When user attempts the question with exact answer then full points should be awarded and when user switches to grading view, green check mark beside the correct response field should be displayed', () => {
|
|
122
|
+
shortTextResponsePage.steps.resetQuestionPreview();
|
|
123
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Flower is displayed');
|
|
124
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
125
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
126
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
describe('Mathematical Expression Tests', () => {
|
|
131
|
+
before(() => {
|
|
132
|
+
shortTextResponsePage.steps.switchToEditTab();
|
|
133
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldSpecifyCorrectAnswerSection('y=-2x+5');
|
|
134
|
+
shortTextResponsePage.steps.switchToPreviewTab();
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('When user attempts the question with exact mathematical expression then full points should be awarded and when user switches to grading view, green check mark beside the response field should be displayed', () => {
|
|
138
|
+
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('y=-2x+5');
|
|
139
|
+
shortTextResponsePage.steps.verifyPreviewScore(10, 10);
|
|
140
|
+
shortTextResponsePage.steps.switchToGradingView();
|
|
141
|
+
shortTextResponsePage.steps.verifyCorrectIcon();
|
|
142
|
+
});
|
|
125
143
|
});
|
|
126
144
|
});
|
|
127
145
|
|
package/package.json
CHANGED
package/service.yaml
CHANGED
|
@@ -10,14 +10,14 @@ deployment:
|
|
|
10
10
|
architecture: amd64
|
|
11
11
|
restartPolicy: Never
|
|
12
12
|
backoffLimit: 0
|
|
13
|
-
parallelism:
|
|
14
|
-
completions:
|
|
13
|
+
parallelism: 15
|
|
14
|
+
completions: 15
|
|
15
15
|
image:
|
|
16
16
|
cmd: /ie-e2e/run.sh
|
|
17
17
|
resources:
|
|
18
18
|
limits:
|
|
19
19
|
memory: 8Gi
|
|
20
|
-
cpu:
|
|
20
|
+
cpu: 5
|
|
21
21
|
requests:
|
|
22
22
|
memory: 8Gi
|
|
23
23
|
cpu: 2
|