itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-applitools-219e3f5.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.
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -0
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/package.json +1 -1
@@ -254,6 +254,8 @@ describe('Create item page - Drag and drop into categories: All or nothing ', ()
|
|
254
254
|
dragAndDropIntoCategoriesPage.steps.expandScoringTypeDropdown();
|
255
255
|
dragAndDropIntoCategoriesPage.steps.selectOptionFromScoringTypeDropdown('Manually scored');
|
256
256
|
utilities.verifyInnerText(dragAndDropIntoCategoriesPage.scoringTypeDropdown(), 'Manually scored');
|
257
|
+
cy.log('Adding wait to ensure Manually scored is selected');
|
258
|
+
cy.wait(2000);
|
257
259
|
dragAndDropIntoCategoriesPage.steps.addInputToOptionsInputField(['Parrot', 'Whale']);
|
258
260
|
break;
|
259
261
|
case 'Grading view':
|
@@ -103,7 +103,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
103
103
|
});
|
104
104
|
};
|
105
105
|
|
106
|
-
it(
|
106
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
107
107
|
if (view === 'Grading view') {
|
108
108
|
studentViewPage.steps.submitResponse();
|
109
109
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -121,7 +121,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
121
121
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
122
122
|
});
|
123
123
|
|
124
|
-
it(
|
124
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
125
125
|
fillInTheGapsOverImageTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
126
126
|
if (view === 'Grading view') {
|
127
127
|
studentViewPage.steps.submitResponse();
|
@@ -140,7 +140,7 @@ describe('Create item page - Fill in the gaps over image - text: All or nothing
|
|
140
140
|
fillInTheGapsOverImageTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
141
141
|
});
|
142
142
|
|
143
|
-
it(
|
143
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
144
144
|
if (view === 'Grading view') {
|
145
145
|
studentViewPage.steps.clearResponses();
|
146
146
|
};
|
@@ -95,7 +95,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
95
95
|
});
|
96
96
|
};
|
97
97
|
|
98
|
-
it(
|
98
|
+
it('When the user selects \'Grading\' view without attempting the question, dropzone numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
99
99
|
if (view === 'Grading view') {
|
100
100
|
studentViewPage.steps.submitResponse();
|
101
101
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -113,7 +113,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
113
113
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
114
114
|
});
|
115
115
|
|
116
|
-
it(
|
116
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
117
117
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Marigold' }, { responseIndex: 1, responseText: 'Rose' }, { responseIndex: 2, responseText: 'Sunflower' }]);
|
118
118
|
if (view === 'Grading view') {
|
119
119
|
studentViewPage.steps.submitResponse();
|
@@ -132,7 +132,7 @@ describe('Create item page - Fill in the gaps with text: All or nothing ', () =>
|
|
132
132
|
fillInTheGapsTextPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount(['Flower', 'Leaf', 'Stem']);
|
133
133
|
});
|
134
134
|
|
135
|
-
it(
|
135
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
136
136
|
if (view === 'Grading view') {
|
137
137
|
studentViewPage.steps.clearResponses();
|
138
138
|
};
|
@@ -81,12 +81,12 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
81
81
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: '' }, { responseIndex: 1, responseText: '' }, { responseIndex: 2, responseText: '' }]);
|
82
82
|
});
|
83
83
|
|
84
|
-
it(
|
84
|
+
it('User should be able to enter text in the answer input fields', () => {
|
85
85
|
fillInTheGapsTextPage.steps.enterTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
86
86
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
87
87
|
});
|
88
88
|
} else if (view === 'Grading view') {
|
89
|
-
it(
|
89
|
+
it('The answer input fields should be displayed filled with answers', () => {
|
90
90
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
91
91
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
92
92
|
});
|
@@ -97,7 +97,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
97
97
|
fillInTheGapsTextPage.steps.verifyAnswerInputFieldDisabled(2);
|
98
98
|
});
|
99
99
|
} else {
|
100
|
-
it(
|
100
|
+
it('The answer input fields should be displayed filled with correct answers', () => {
|
101
101
|
utilities.verifyElementCount(fillInTheGapsTextPage.answerInputFieldPreviewTab(), 3);
|
102
102
|
fillInTheGapsTextPage.steps.verifyTextInAnswerInputFieldsPreviewTab([{ responseIndex: 0, responseText: 'Flower' }, { responseIndex: 1, responseText: '20.00' }, { responseIndex: 2, responseText: '7' }]);
|
103
103
|
});
|
@@ -122,7 +122,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
122
122
|
'border': `0px none ${css.color.text}`,
|
123
123
|
});
|
124
124
|
utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
|
125
|
-
|
125
|
+
'color': css.color.text,
|
126
126
|
'font-size': css.fontSize.default,
|
127
127
|
'font-weight': css.fontWeight.regular
|
128
128
|
});
|
@@ -143,7 +143,7 @@ describe('Create item page - Fill in the gaps with text - Preview contents in al
|
|
143
143
|
'border': `0px none ${css.color.text}`,
|
144
144
|
});
|
145
145
|
utilities.verifyCSS(fillInTheGapsTextPage.answerInputFieldPreviewTab(), {
|
146
|
-
|
146
|
+
'color': css.color.text,
|
147
147
|
'font-size': css.fontSize.default,
|
148
148
|
'font-weight': css.fontWeight.regular
|
149
149
|
});
|
@@ -116,7 +116,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
116
116
|
});
|
117
117
|
};
|
118
118
|
|
119
|
-
it(
|
119
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and correct/incorrect status message should not be displayed', () => {
|
120
120
|
if (view === 'Grading view') {
|
121
121
|
studentViewPage.steps.submitResponse();
|
122
122
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -148,7 +148,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
148
148
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
149
149
|
});
|
150
150
|
|
151
|
-
it(
|
151
|
+
it('When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed incorrect and the the correct answers should be displayed in the correct answer section graph', () => {
|
152
152
|
graphingPage.steps.selectGraphToolOptionPreviewTab('Circle');
|
153
153
|
graphingPage.steps.plotPointsOnGraphPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
154
154
|
graphingPage.steps.verifyPointsPlottedOnPreviewTab([{ x: -2, xRange: 20, y: 1, yRange: 20 }, { x: -4, xRange: 20, y: 1, yRange: 20 }]);
|
@@ -184,7 +184,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
184
184
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
185
185
|
});
|
186
186
|
|
187
|
-
it(
|
187
|
+
it('When the user attempts the question partially correct then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct and the the correct answers should be displayed in the correct answer section graph', () => {
|
188
188
|
if (view === 'Grading view') {
|
189
189
|
studentViewPage.steps.clearResponses();
|
190
190
|
}
|
@@ -223,7 +223,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
223
223
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
224
224
|
});
|
225
225
|
|
226
|
-
it(
|
226
|
+
it('When the user attempts the question partially correct with an incorrect response then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted graph should be displayed correct for the correct response and incorrect for the incorrect response and the the correct answers should be displayed in the correct answer section graph', () => {
|
227
227
|
if (view === 'Grading view') {
|
228
228
|
studentViewPage.steps.clearResponses();
|
229
229
|
}
|
@@ -266,7 +266,7 @@ describe('Create Item page - Graphing: All or nothing ', () => {
|
|
266
266
|
graphingPage.steps.verifyCorrectPointsPlottedOnGraphCorrectAnswerSection([{ x: -6, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 7, yRange: 20 }, { x: -4, xRange: 20, y: 9, yRange: 20 }, { x: -6, xRange: 20, y: 9, yRange: 20 }]);
|
267
267
|
});
|
268
268
|
|
269
|
-
it(
|
269
|
+
it('When the user attempts the question correctly then the user should be awarded with full points and on switching to grading view \'Your answer is correct\' should be displayed and the attempted graph should be displayed correct and the correct answer section graph should not be displayed', () => {
|
270
270
|
if (view === 'Grading view') {
|
271
271
|
studentViewPage.steps.clearResponses();
|
272
272
|
}
|
@@ -118,7 +118,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
118
118
|
gridFillPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
119
119
|
});
|
120
120
|
|
121
|
-
it(
|
121
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icon should be displayed in the incorrect cell, incorrect answer border around incorrect cell and correct icon should be displayed in the correct cell, correct answer border around correct cell and a status message with text \'Your answer is incorrect\' in question preview', () => {
|
122
122
|
gridFillPage.steps.selectCellPreviewTab(0, 3);
|
123
123
|
if (view === 'Grading view') {
|
124
124
|
studentViewPage.steps.submitResponse();
|
@@ -137,7 +137,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
137
137
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
138
138
|
});
|
139
139
|
|
140
|
-
it(
|
140
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
141
141
|
if (view === 'Grading view') {
|
142
142
|
studentViewPage.steps.clearResponses();
|
143
143
|
};
|
@@ -159,7 +159,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
159
159
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
160
160
|
});
|
161
161
|
|
162
|
-
it(
|
162
|
+
it('When the user attempts the question with one correct and one incorrect, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
163
163
|
if (view === 'Grading view') {
|
164
164
|
studentViewPage.steps.clearResponses();
|
165
165
|
};
|
@@ -182,7 +182,7 @@ describe('Create item page - Grid fill: All or nothing', () => {
|
|
182
182
|
gridFillPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
183
183
|
});
|
184
184
|
|
185
|
-
it(
|
185
|
+
it('When the user attempts the question by selecting all the correct cells with one incorrect cell, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed in the correct answer responses, incorrect icon should be displayed in incorrect answer response, a status message with text \'Your answer is incorrect\' should be displayed', () => {
|
186
186
|
if (view === 'Grading view') {
|
187
187
|
studentViewPage.steps.clearResponses();
|
188
188
|
};
|
@@ -114,7 +114,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
114
114
|
});
|
115
115
|
};
|
116
116
|
|
117
|
-
it(
|
117
|
+
it('When the user selects \'Grading\' view without attempting the question, highlight numeration should be displayed, correct/incorrect status message should not be displayed, correct answers section with a label \'Correct answers\' should be displayed with correct answers and respective option numeration', () => {
|
118
118
|
if (view === 'Grading view') {
|
119
119
|
studentViewPage.steps.submitResponse();
|
120
120
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -132,10 +132,10 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
132
132
|
imageHighlightPage.steps.verifyDefaultHighlightRegion(2);
|
133
133
|
utilities.verifyInnerText(imageHighlightPage.correctAnswersLabel(), 'Correct answers');
|
134
134
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
135
|
-
|
135
|
+
|
136
136
|
});
|
137
137
|
|
138
|
-
it(
|
138
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
139
139
|
imageHighlightPage.steps.highlightARegionInPreviewTab(1);
|
140
140
|
if (view === 'Grading view') {
|
141
141
|
studentViewPage.steps.submitResponse();
|
@@ -155,7 +155,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
155
155
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
156
156
|
});
|
157
157
|
|
158
|
-
it(
|
158
|
+
it('When the user attempts the question partially correct then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
159
159
|
if (view === 'Grading view') {
|
160
160
|
studentViewPage.steps.clearResponses();
|
161
161
|
};
|
@@ -178,7 +178,7 @@ describe('Create item page - Image highlight: All or nothing ', () => {
|
|
178
178
|
imageHighlightPage.steps.verifyCorrectAnswerContainerContents(['Option 1', 'Option 2'], [1, 2]);
|
179
179
|
});
|
180
180
|
|
181
|
-
it(
|
181
|
+
it('When the user attempts the question correct with an incorrect response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
182
182
|
if (view === 'Grading view') {
|
183
183
|
studentViewPage.steps.clearResponses();
|
184
184
|
};
|
@@ -92,7 +92,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
92
92
|
});
|
93
93
|
};
|
94
94
|
|
95
|
-
it(
|
95
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons should not be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
96
96
|
if (view === 'Grading view') {
|
97
97
|
utilities.verifyElementDisabledClass(studentViewPage.submitButton());
|
98
98
|
};
|
@@ -110,7 +110,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
110
110
|
};
|
111
111
|
});
|
112
112
|
|
113
|
-
it(
|
113
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
114
114
|
listOrderingPage.steps.selectPositionForAllOptionsPreviewTab([{ optionIndex: 0, position: '1' }, { optionIndex: 1, position: '2' }, { optionIndex: 2, position: '3' }, { optionIndex: 3, position: '4' }]);
|
115
115
|
if (view === 'Grading view') {
|
116
116
|
studentViewPage.steps.submitResponse();
|
@@ -130,7 +130,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
130
130
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
131
131
|
});
|
132
132
|
|
133
|
-
it(
|
133
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers along with numeration should be displayed', () => {
|
134
134
|
if (view === 'Grading view') {
|
135
135
|
studentViewPage.steps.clearResponses();
|
136
136
|
};
|
@@ -153,7 +153,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
153
153
|
listOrderingPage.steps.verifyOptionsPositionInCorrectAnswerSection(options, ['2', '3', '4', '1']);
|
154
154
|
});
|
155
155
|
|
156
|
-
it(
|
156
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
157
157
|
if (view === 'Grading view') {
|
158
158
|
studentViewPage.steps.clearResponses();
|
159
159
|
};
|
package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js
CHANGED
@@ -85,7 +85,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
85
85
|
}
|
86
86
|
});
|
87
87
|
|
88
|
-
it(
|
88
|
+
it(`${view} - List ordering: Horizontal Question instructions should be visible`, () => {
|
89
89
|
utilities.verifyInnerText(listOrderingPage.questionInstructionsText(), 'Arrange options in correct order.');
|
90
90
|
utilities.verifyElementVisibilityState(listOrderingPage.questionInstructionsText(), 'visible');
|
91
91
|
cy.eyesCheckWindow(`${view} - List ordering: Horizontal orientation - Default question view`);
|
@@ -98,7 +98,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
98
98
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(2);
|
99
99
|
});
|
100
100
|
|
101
|
-
it(
|
101
|
+
it('User should be able to reorder options containing image, bold text and equation options in the list', () => {
|
102
102
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('This is a bold option', 0);
|
103
103
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('Solve the following', 1);
|
104
104
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('This is a bold option', 0);
|
@@ -108,7 +108,7 @@ describe('Create item page - List ordering - Preview contents in all views', ()
|
|
108
108
|
listOrderingPage.steps.verifyTextContentOfHorizontalOptionInPreviewTab('alpha', 3);
|
109
109
|
});
|
110
110
|
} else if (view === 'Grading view') {
|
111
|
-
it(
|
111
|
+
it(`The order of the responses should be as per the submitted response`, () => {
|
112
112
|
listOrderingPage.steps.verifyHorizontalOptionWithBoldTextInPreviewTab(0);
|
113
113
|
listOrderingPage.steps.verifyHorizontalOptionWithEquationTextInPreviewTab(1);
|
114
114
|
listOrderingPage.steps.verifyHorizontalOptionWithImageInPreviewTab(2);
|
@@ -104,7 +104,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
104
104
|
});
|
105
105
|
};
|
106
106
|
|
107
|
-
it(
|
107
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
108
108
|
if (view === 'Grading view') {
|
109
109
|
studentViewPage.steps.submitResponse();
|
110
110
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,7 +122,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
122
122
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
123
123
|
});
|
124
124
|
|
125
|
-
it(
|
125
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
126
126
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('sprout', 3);
|
127
127
|
listOrderingPage.steps.clickAndReorderOptionInPreviewTab('flower', 0);
|
128
128
|
if (view === 'Grading view') {
|
@@ -143,7 +143,7 @@ describe('Create item page - List ordering: All or nothing ', () => {
|
|
143
143
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
144
144
|
});
|
145
145
|
|
146
|
-
it(
|
146
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
147
147
|
if (view === 'Grading view') {
|
148
148
|
studentViewPage.steps.clearResponses();
|
149
149
|
};
|
package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js
CHANGED
@@ -15,7 +15,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
15
15
|
});
|
16
16
|
|
17
17
|
views.forEach((view) => {
|
18
|
-
describe(`${view}:
|
18
|
+
describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
19
19
|
abortEarlySetup();
|
20
20
|
before(() => {
|
21
21
|
switch (view) {
|
@@ -66,7 +66,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
66
66
|
});
|
67
67
|
};
|
68
68
|
|
69
|
-
it(
|
69
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
70
70
|
if (view === 'Grading view') {
|
71
71
|
utilities.verifyElementVisibilityState(studentViewPage.submitButton(), 'visible');
|
72
72
|
studentViewPage.steps.submitResponse();
|
@@ -85,7 +85,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
85
85
|
listOrderingPage.steps.verifyCorrectOptionIconsCorrectAnswerSection();
|
86
86
|
});
|
87
87
|
|
88
|
-
it(
|
88
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
89
89
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('sprout', 3);
|
90
90
|
listOrderingPage.steps.clickAndReorderHorizontalOptionInPreviewTab('flower', 0);
|
91
91
|
if (view === 'Grading view') {
|
@@ -106,7 +106,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
106
106
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
107
107
|
});
|
108
108
|
|
109
|
-
it(
|
109
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
110
110
|
if (view === 'Grading view') {
|
111
111
|
studentViewPage.steps.clearResponses();
|
112
112
|
};
|
@@ -132,7 +132,7 @@ describe('Create item page - List ordering: All or nothing for "Horizontal" opti
|
|
132
132
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
133
133
|
});
|
134
134
|
|
135
|
-
it(
|
135
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
136
136
|
if (view === 'Grading view') {
|
137
137
|
studentViewPage.steps.clearResponses();
|
138
138
|
};
|
@@ -9,7 +9,7 @@ var itemReferenceID = "";
|
|
9
9
|
const options = ['sprout', 'plant', 'flower', 'seed'];
|
10
10
|
const correctAnswerArray = ['seed', 'sprout', 'plant', 'flower'];
|
11
11
|
|
12
|
-
describe('Create item page - List ordering
|
12
|
+
describe('Create item page - List ordering: All or nothing for "Horizontal" option orientation', () => {
|
13
13
|
before(() => {
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
@@ -69,7 +69,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
69
69
|
});
|
70
70
|
};
|
71
71
|
if (view === 'Question preview' || view === 'Item preview') {
|
72
|
-
it(
|
72
|
+
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect icons and correct incorrect status message should not be displayed and correct answer section with all correct answers should be displayed', () => {
|
73
73
|
listOrderingPage.steps.verifyPreviewScore(0, 20);
|
74
74
|
listOrderingPage.steps.switchToGradingView();
|
75
75
|
listOrderingPage.steps.verifyPreviewTabPointsBackgroundForIncorrectOrPartiallyCorrectAnswer();
|
@@ -78,8 +78,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
78
78
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
79
79
|
});
|
80
80
|
}
|
81
|
-
|
82
|
-
it(`${view}: List ordering - Reorder as a separate list:Reorder as a separate list- Horizontal - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed`, () => {
|
81
|
+
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
83
82
|
listOrderingPage.steps.clickAndDropOptionSeperateList('sprout');
|
84
83
|
listOrderingPage.steps.clickAndDropOptionSeperateList('plant');
|
85
84
|
listOrderingPage.steps.clickAndDropOptionSeperateList('flower');
|
@@ -102,7 +101,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
102
101
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
103
102
|
});
|
104
103
|
|
105
|
-
it(
|
104
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, incorrect icon should be displayed besides incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
106
105
|
if (view === 'Grading view') {
|
107
106
|
studentViewPage.steps.clearResponses();
|
108
107
|
};
|
@@ -128,7 +127,7 @@ describe('Create item page - List ordering - Reorder as a separate list: All or
|
|
128
127
|
listOrderingPage.steps.verifyOptionsInCorrectAnswerSection(correctAnswerArray);
|
129
128
|
});
|
130
129
|
|
131
|
-
it(
|
130
|
+
it('When user attempts the question correctly, the user should be awarded full points and on switching to \'Grading\' view, then correct icons should be displayed beside all the correct responses, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' and correct answer section should not be displayed', () => {
|
132
131
|
if (view === 'Grading view') {
|
133
132
|
studentViewPage.steps.clearResponses();
|
134
133
|
};
|