itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-applitools-1a2329c.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/GridFill/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +2 -2
- 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/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -1
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +2 -2
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +7 -7
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/package.json +1 -1
@@ -98,7 +98,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
98
98
|
});
|
99
99
|
};
|
100
100
|
|
101
|
-
it(
|
101
|
+
it('When the user selects \'Grading\' view without attempting the question, dropdown 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', () => {
|
102
102
|
if (view === 'Grading view') {
|
103
103
|
studentViewPage.steps.submitResponse();
|
104
104
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -119,7 +119,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
119
119
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
120
120
|
});
|
121
121
|
|
122
|
-
it(
|
122
|
+
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', () => {
|
123
123
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
|
124
124
|
if (view === 'Grading view') {
|
125
125
|
studentViewPage.steps.submitResponse();
|
@@ -138,7 +138,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
138
138
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
139
139
|
});
|
140
140
|
|
141
|
-
it(
|
141
|
+
it('When the user attempts the question partially correct with some correct, some incomplete and some incorrect options, 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', () => {
|
142
142
|
if (view === 'Grading view') {
|
143
143
|
studentViewPage.steps.clearResponses();
|
144
144
|
};
|
@@ -160,7 +160,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
160
160
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
161
161
|
});
|
162
162
|
|
163
|
-
it(
|
163
|
+
it('When the user attempts the question partially correct with all the dropdowns correctly attempted but one dropdown incomplete, 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', () => {
|
164
164
|
if (view === 'Grading view') {
|
165
165
|
studentViewPage.steps.clearResponses();
|
166
166
|
};
|
@@ -182,7 +182,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
182
182
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
183
183
|
});
|
184
184
|
|
185
|
-
it(
|
185
|
+
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', () => {
|
186
186
|
if (view === 'Grading view') {
|
187
187
|
studentViewPage.steps.clearResponses();
|
188
188
|
};
|
@@ -101,7 +101,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
101
101
|
});
|
102
102
|
};
|
103
103
|
|
104
|
-
it(
|
104
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed beside unattempted responses and correct answer should be displayed in correct answer section', () => {
|
105
105
|
if (view === 'Grading view') {
|
106
106
|
studentViewPage.steps.submitResponse();
|
107
107
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -124,7 +124,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
124
124
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
125
125
|
});
|
126
126
|
|
127
|
-
it(
|
127
|
+
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, no icons should be displayed besides unattempted responses options and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
128
128
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
129
129
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
130
130
|
if (view === 'Grading view') {
|
@@ -148,7 +148,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
148
148
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
149
149
|
});
|
150
150
|
|
151
|
-
it(
|
151
|
+
it('When the user attempts the question partially correct, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses, incorrect icons should be displayed beside the incorrect responses and no icon should be displayed besides unattempted options, and status message \'Your answer is incorrect\' should be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
152
152
|
if (view === 'Grading view') {
|
153
153
|
studentViewPage.steps.clearResponses();
|
154
154
|
}
|
@@ -101,7 +101,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
101
101
|
});
|
102
102
|
};
|
103
103
|
|
104
|
-
it(
|
104
|
+
it('When the user selects "Grading" view without attempting the question, correct/incorrect status message should not be displayed, correct answers section with a label "Correct answers" should be displayed with a preview of the entire grid with correct answers', () => {
|
105
105
|
if (view === 'Grading view') {
|
106
106
|
studentViewPage.steps.submitResponse();
|
107
107
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -118,7 +118,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
118
118
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
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 icons should be displayed besides all incorrect responses, a status message with text "Your answer is incorrect" and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
122
122
|
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
123
123
|
if (view === 'Grading view') {
|
124
124
|
studentViewPage.steps.submitResponse();
|
@@ -136,7 +136,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
136
136
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
137
137
|
});
|
138
138
|
|
139
|
-
it(
|
139
|
+
it('When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed', () => {
|
140
140
|
if (view === 'Grading view') {
|
141
141
|
studentViewPage.steps.clearResponses();
|
142
142
|
};
|
@@ -159,7 +159,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
159
159
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
160
160
|
});
|
161
161
|
|
162
|
-
it(
|
162
|
+
it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to "Grading" view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text "Your answer is incorrect" and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
163
163
|
if (view === 'Grading view') {
|
164
164
|
studentViewPage.steps.clearResponses();
|
165
165
|
};
|
@@ -106,13 +106,13 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
106
106
|
});
|
107
107
|
|
108
108
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
109
|
-
it(`
|
109
|
+
it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
|
110
110
|
multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
|
111
111
|
multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
|
112
112
|
multipleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
|
113
113
|
});
|
114
114
|
|
115
|
-
it(`
|
115
|
+
it(`User should be able to select options in the ${view}`, () => {
|
116
116
|
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
117
117
|
});
|
118
118
|
} else if (view === 'Grading view') {
|
@@ -123,7 +123,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
123
123
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 4, column: 1 });
|
124
124
|
});
|
125
125
|
|
126
|
-
it('
|
126
|
+
it('The content in the grid should not be editable', () => {
|
127
127
|
multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
|
128
128
|
});
|
129
129
|
} else {
|
@@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
107
107
|
});
|
108
108
|
};
|
109
109
|
|
110
|
-
it(
|
110
|
+
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', () => {
|
111
111
|
if (view === 'Grading view') {
|
112
112
|
studentViewPage.steps.submitResponse();
|
113
113
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -128,7 +128,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
128
128
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
129
129
|
});
|
130
130
|
|
131
|
-
it(
|
131
|
+
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', () => {
|
132
132
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
|
133
133
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
|
134
134
|
numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
|
@@ -152,7 +152,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
152
152
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
153
153
|
});
|
154
154
|
|
155
|
-
it(
|
155
|
+
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', () => {
|
156
156
|
if (view === 'Grading view') {
|
157
157
|
studentViewPage.steps.clearResponses();
|
158
158
|
}
|
@@ -177,7 +177,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
177
177
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
178
178
|
});
|
179
179
|
|
180
|
-
it(
|
180
|
+
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', () => {
|
181
181
|
if (view === 'Grading view') {
|
182
182
|
studentViewPage.steps.clearResponses();
|
183
183
|
}
|
@@ -210,7 +210,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
210
210
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
211
211
|
});
|
212
212
|
|
213
|
-
it(
|
213
|
+
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', () => {
|
214
214
|
if (view === 'Grading view') {
|
215
215
|
studentViewPage.steps.clearResponses();
|
216
216
|
}
|
@@ -143,7 +143,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
143
143
|
numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -8);
|
144
144
|
});
|
145
145
|
|
146
|
-
it(
|
146
|
+
it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
|
147
147
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
|
148
148
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 7);
|
149
149
|
numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [7]);
|
@@ -185,7 +185,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
185
185
|
numberLinePage.steps.verifyRayOnNumberLinePreviewTab('right', range, 7);
|
186
186
|
});
|
187
187
|
|
188
|
-
it(
|
188
|
+
it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
|
189
189
|
numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
|
190
190
|
numberLinePage.steps.confirmReset();
|
191
191
|
utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
|
@@ -201,7 +201,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
201
201
|
numberLinePage.steps.verifyRayOnNumberLinePreviewTab('left', range, -5);
|
202
202
|
});
|
203
203
|
|
204
|
-
it(
|
204
|
+
it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
|
205
205
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
|
206
206
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 6);
|
207
207
|
numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [6]);
|
package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js
CHANGED
@@ -109,7 +109,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
109
109
|
});
|
110
110
|
};
|
111
111
|
|
112
|
-
it(
|
112
|
+
it('Number line Vertical - When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
113
113
|
if (view === 'Grading view') {
|
114
114
|
studentViewPage.steps.submitResponse();
|
115
115
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -127,7 +127,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
127
127
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
|
128
128
|
});
|
129
129
|
|
130
|
-
it(
|
130
|
+
it('Number line Vertical - 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', () => {
|
131
131
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
|
132
132
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
|
133
133
|
numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8, 7]);
|
@@ -150,7 +150,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
150
150
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
|
151
151
|
});
|
152
152
|
|
153
|
-
it(
|
153
|
+
it('Number line Vertical - 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', () => {
|
154
154
|
if (view === 'Grading view') {
|
155
155
|
studentViewPage.steps.clearResponses();
|
156
156
|
}
|
@@ -174,7 +174,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
174
174
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
|
175
175
|
});
|
176
176
|
|
177
|
-
it(
|
177
|
+
it('Number line Vertical - 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', () => {
|
178
178
|
if (view === 'Grading view') {
|
179
179
|
studentViewPage.steps.clearResponses();
|
180
180
|
}
|
@@ -206,7 +206,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
206
206
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLineCorrectAnswerSection(range, [{ y1: -5, y2: -4 }]);
|
207
207
|
});
|
208
208
|
|
209
|
-
it(
|
209
|
+
it('Number line Vertical - 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', () => {
|
210
210
|
if (view === 'Grading view') {
|
211
211
|
studentViewPage.steps.clearResponses();
|
212
212
|
}
|
package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js
CHANGED
@@ -71,7 +71,7 @@ describe('Create item page - Number line vertical: Grading view, Correct answer
|
|
71
71
|
utilities.verifyElementVisibilityState(numberLinePage.correctAnswersLabel(), 'visible');
|
72
72
|
});
|
73
73
|
|
74
|
-
it('
|
74
|
+
it('Correct answer along with number line attempted by the user should be displayed in the correct answer section', () => {
|
75
75
|
numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range, [-4, -5]);
|
76
76
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
|
77
77
|
numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLineCorrectAnswerSection(range, [2]);
|
@@ -150,7 +150,7 @@ describe('Create item page - Number line vertical: Grading view, Correct answer
|
|
150
150
|
});
|
151
151
|
});
|
152
152
|
|
153
|
-
it('
|
153
|
+
it('The correct answer set by user should be displayed in the correct answer view', () => {
|
154
154
|
numberLinePage.steps.verifyCorrectPointsOnVerticalNumberLinePreviewTab(range, [-4, -5, 2]);
|
155
155
|
numberLinePage.steps.verifyCorrectLineSegmentOnVerticalNumberLinePreviewTab(range, [{ y1: -5, y2: -4 }]);
|
156
156
|
numberLinePage.steps.verifyCorrectRayOnVerticalNumberLinePreviewTab('left', range, -7);
|
package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js
CHANGED
@@ -85,7 +85,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
85
85
|
numberLinePage.steps.verifyToolOptionNotSelectedPreviewTab(toolOptions.splice(1, toolOptions.length));
|
86
86
|
});
|
87
87
|
|
88
|
-
it(
|
88
|
+
it('By default, all controls should be in disabled state', () => {
|
89
89
|
controlOptions.forEach((controlOption) => {
|
90
90
|
utilities.verifyElementDisabled(numberLinePage.numberLineControlOptionPreviewTab(controlOption));
|
91
91
|
});
|
@@ -135,7 +135,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
135
135
|
numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -8);
|
136
136
|
});
|
137
137
|
|
138
|
-
it(
|
138
|
+
it('User should be able to draw a ray wave using the \'Open right ray\' tool option', () => {
|
139
139
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Open right ray');
|
140
140
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 8);
|
141
141
|
numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [8]);
|
@@ -177,7 +177,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
177
177
|
numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('up', range, 8);
|
178
178
|
});
|
179
179
|
|
180
|
-
it(
|
180
|
+
it('When the user clicks on the \'Reset\' control option then all the actions on the preview tab should be reset', () => {
|
181
181
|
numberLinePage.steps.selectNumberLineControlOptionPreviewTab('Reset');
|
182
182
|
numberLinePage.steps.confirmReset();
|
183
183
|
utilities.verifyElementVisibilityState(numberLinePage.numberLinePointPreviewTab(), 'notExist');
|
@@ -193,7 +193,7 @@ describe('Create item page: Number line - Preview contents in all views', () =>
|
|
193
193
|
numberLinePage.steps.verifyRayOnVerticalNumberLinePreviewTab('down', range, -6);
|
194
194
|
});
|
195
195
|
|
196
|
-
it(
|
196
|
+
it('User should be able to draw a ray using the \'Right ray\' tool option', () => {
|
197
197
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Right ray');
|
198
198
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("vertical", range, 6);
|
199
199
|
numberLinePage.steps.verifyPointsPlottedOnVerticalNumberLinePreviewTab(range, [6]);
|
@@ -106,7 +106,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
106
106
|
});
|
107
107
|
};
|
108
108
|
|
109
|
-
it(
|
109
|
+
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', () => {
|
110
110
|
if (view === 'Grading view') {
|
111
111
|
studentViewPage.steps.submitResponse();
|
112
112
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -124,7 +124,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
124
124
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
125
125
|
});
|
126
126
|
|
127
|
-
it(
|
127
|
+
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', () => {
|
128
128
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'horizontal', range, 0);
|
129
129
|
numberLineLabelPage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
130
130
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'horizontal', range, 4);
|
@@ -146,7 +146,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
146
146
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
147
147
|
});
|
148
148
|
|
149
|
-
it(
|
149
|
+
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', () => {
|
150
150
|
if (view === 'Grading view') {
|
151
151
|
studentViewPage.steps.clearResponses();
|
152
152
|
}
|
@@ -174,7 +174,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
174
174
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
175
175
|
});
|
176
176
|
|
177
|
-
it(
|
177
|
+
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', () => {
|
178
178
|
if (view === 'Grading view') {
|
179
179
|
studentViewPage.steps.clearResponses();
|
180
180
|
}
|
@@ -205,7 +205,7 @@ describe('Create Item page - Number line label: All or nothing ', () => {
|
|
205
205
|
numberLineLabelPage.steps.verifyCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
206
206
|
});
|
207
207
|
|
208
|
-
it(
|
208
|
+
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', () => {
|
209
209
|
if (view === 'Grading view') {
|
210
210
|
studentViewPage.steps.clearResponses();
|
211
211
|
}
|
@@ -107,7 +107,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
107
107
|
});
|
108
108
|
};
|
109
109
|
|
110
|
-
it(
|
110
|
+
it('When the user selects \'Grading\' view without attempting the question, the correct answer should be displayed in the correct answer section graph and your answer is incorrect status message should be displayed', () => {
|
111
111
|
if (view === 'Grading view') {
|
112
112
|
studentViewPage.steps.submitResponse();
|
113
113
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -125,7 +125,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
125
125
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
126
126
|
});
|
127
127
|
|
128
|
-
it(
|
128
|
+
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', () => {
|
129
129
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 4', 'vertical', range, 0);
|
130
130
|
numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [0]);
|
131
131
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Label 3', 'vertical', range, 4);
|
@@ -147,7 +147,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
147
147
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
148
148
|
});
|
149
149
|
|
150
|
-
it(
|
150
|
+
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', () => {
|
151
151
|
if (view === 'Grading view') {
|
152
152
|
studentViewPage.steps.clearResponses();
|
153
153
|
}
|
@@ -175,7 +175,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
175
175
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
176
176
|
});
|
177
177
|
|
178
|
-
it(
|
178
|
+
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', () => {
|
179
179
|
if (view === 'Grading view') {
|
180
180
|
studentViewPage.steps.clearResponses();
|
181
181
|
}
|
@@ -206,7 +206,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
206
206
|
numberLineLabelPage.steps.verifyVerticalCorrectResponseOnNumberLineCorrectAnswerSection('Label 3', range, -9);
|
207
207
|
});
|
208
208
|
|
209
|
-
it(
|
209
|
+
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', () => {
|
210
210
|
if (view === 'Grading view') {
|
211
211
|
studentViewPage.steps.clearResponses();
|
212
212
|
}
|
package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js
CHANGED
@@ -90,7 +90,7 @@ describe('Create item page: Number line label - Preview contents in all views',
|
|
90
90
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('This is a bold option', 'vertical', range, -9);
|
91
91
|
});
|
92
92
|
|
93
|
-
it(
|
93
|
+
it('The user should be able to change the plotted label on the number line', () => {
|
94
94
|
numberLineLabelPage.steps.clickAndDropLabelOnNumberLinePreviewTab('Solve the following', 'vertical', range, 5);
|
95
95
|
numberLineLabelPage.steps.verifyVerticalPointsPlottedOnNumberLinePreviewTab(range, [5]);
|
96
96
|
});
|
@@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => {
|
|
60
60
|
}
|
61
61
|
});
|
62
62
|
|
63
|
-
it(
|
63
|
+
it('\'Protractor\' should be displayed with \'Acute\' angle, \'30 percent\' opacity, \'Alternative text\' and in \'Orange\' color', () => {
|
64
64
|
protractorPage.steps.verifyAcuteAngleTypeInPreviewTab();
|
65
65
|
protractorPage.steps.verifyPreviewTabColorAndOpacityOfProtractor(3, 0.3);
|
66
66
|
protractorPage.steps.verifyAlternativeTextInPreviewTab('Measuring tool');
|
@@ -58,7 +58,7 @@ describe('Preview tab contents for all views', () => {
|
|
58
58
|
}
|
59
59
|
});
|
60
60
|
|
61
|
-
it(
|
61
|
+
it('\'Reading ruler\' should be displayed with \'30 percent\' opacity and in \'Blue\' color', () => {
|
62
62
|
readingRulerPage.steps.verifyReadingRulerExistInPreviewTab();
|
63
63
|
readingRulerPage.steps.verifyReadingRulerOpacityInPreviewTab('0.3');
|
64
64
|
readingRulerPage.steps.verifyReadingRulerColorInPreviewTab(2);
|
@@ -59,7 +59,7 @@ describe('Preview tab contents for all views', () => {
|
|
59
59
|
}
|
60
60
|
});
|
61
61
|
|
62
|
-
it(
|
62
|
+
it('\'Ruler\' should be displayed with \'6 in\' length and in \'Orange\' color', () => {
|
63
63
|
rulerPage.steps.verifyLengthOfRulerInPreview('6in');
|
64
64
|
rulerPage.steps.verifyRotationButtonVisibleInPreviewTab();
|
65
65
|
rulerPage.steps.verifyColorOfRulerInPreview(3);
|
@@ -97,7 +97,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
97
97
|
});
|
98
98
|
};
|
99
99
|
|
100
|
-
it(
|
100
|
+
it('When the user selects \'Grading\' view without attempting the question, correct/incorret border should not be displayed and correct answer should be displayed below response field', () => {
|
101
101
|
if (view === 'Grading view') {
|
102
102
|
studentViewPage.steps.submitResponse();
|
103
103
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -113,7 +113,7 @@ describe('Create item page - Short text response: All or nothing', () => {
|
|
113
113
|
shortTextResponsePage.steps.verifyCorrectAnswerResponseInCorrectAnswerWrapper('Buildings');
|
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 icon should be displayed besides incorrect response, incorrect answer border around response field and correct answer should be displayed in the question preview', () => {
|
117
117
|
shortTextResponsePage.steps.enterTextInAnswerInputFieldPreviewTab('Text');
|
118
118
|
if (view === 'Grading view') {
|
119
119
|
studentViewPage.steps.submitResponse();
|
@@ -83,7 +83,7 @@ describe('Preview tab contents for all views for Simple calculator', () => {
|
|
83
83
|
utilities.verifyElementVisibilityState(simpleCalculatorPage.nineButton(), 'visible');
|
84
84
|
});
|
85
85
|
|
86
|
-
it(
|
86
|
+
it('The user should be able to perform basic mathematical operations', () => {
|
87
87
|
simpleCalculatorPage.steps.clickOnACalculatorButton('one');
|
88
88
|
simpleCalculatorPage.steps.clickOnACalculatorButton('addition');
|
89
89
|
simpleCalculatorPage.steps.clickOnACalculatorButton('two');
|
@@ -101,7 +101,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
101
101
|
});
|
102
102
|
};
|
103
103
|
|
104
|
-
it(
|
104
|
+
it('When the user selects \'Grading\' view without attempting the question, no icons should be displayed besides responses, correct answer label and border should not be displayed and correct answer should be displayed in correct answer section', () => {
|
105
105
|
if (view === 'Grading view') {
|
106
106
|
studentViewPage.steps.submitResponse();
|
107
107
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,7 +122,7 @@ describe('Create Item page - Single Selection: Scoring cases', () => {
|
|
122
122
|
singleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
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 incorrect responses, no icons should be displayed besides unattempted responses, incorrect answer border and label should not be displayed below the question preview and correct answer should be displayed in correct answer section', () => {
|
126
126
|
singleSelectionPage.steps.checkOptionInPreviewTab(2);
|
127
127
|
if (view === 'Grading view') {
|
128
128
|
studentViewPage.steps.submitResponse();
|
@@ -101,7 +101,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
101
101
|
});
|
102
102
|
};
|
103
103
|
|
104
|
-
it(
|
104
|
+
it('When the user selects \'Grading\' view without attempting the question, correct answers section with a label \'Correct answers\' should be displayed with a preview of the entire grid with correct answers and correct/incorrect status message should not be displayed', () => {
|
105
105
|
if (view === 'Grading view') {
|
106
106
|
studentViewPage.steps.submitResponse();
|
107
107
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -117,7 +117,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
117
117
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
118
118
|
});
|
119
119
|
|
120
|
-
it(
|
120
|
+
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 a preview of the entire grid with correct answers should be displayed', () => {
|
121
121
|
singleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
122
122
|
if (view === 'Grading view') {
|
123
123
|
studentViewPage.steps.submitResponse();
|
@@ -135,7 +135,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
135
135
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
136
136
|
});
|
137
137
|
|
138
|
-
it(
|
138
|
+
it('When the user attempts the question partially correct with incorrect responses, 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 a preview of the entire grid with correct answers should be displayed', () => {
|
139
139
|
if (view === 'Grading view') {
|
140
140
|
studentViewPage.steps.clearResponses();
|
141
141
|
};
|
@@ -158,7 +158,7 @@ describe('Create item page - Single selection grid: All or nothing ', () => {
|
|
158
158
|
singleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
159
159
|
});
|
160
160
|
|
161
|
-
it(
|
161
|
+
it('When the user attempts the question partially correct with incomplete responses, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, no icons should be displayed besides unattempted responses, a status message with text \'Your answer is incorrect\' and correct answer section with a preview of the entire grid with correct answers should be displayed', () => {
|
162
162
|
if (view === 'Grading view') {
|
163
163
|
studentViewPage.steps.clearResponses();
|
164
164
|
};
|