itemengine-cypress-automation 1.0.280-applitools-0af112e.0 → 1.0.283-updatedPackageFile-3c0db7c.0
Sign up to get free protection for your applications and to get access to all the features.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +26 -40
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -9
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +3 -15
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/BrainingCampManipulative/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -10
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -2
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -24
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -10
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -54
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +2 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +6 -21
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -20
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -19
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -13
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -17
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -22
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +6 -19
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/gradingViewAndCorrectAnswerView.smoke.js +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/Protractor/protractorPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ReadingRuler/readingrulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/Ruler/rulerPreviewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +7 -17
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -27
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +9 -21
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +13 -26
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -16
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -20
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +7 -19
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -14
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -13
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +5 -18
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -19
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -14
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -16
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -14
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -25
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +4 -16
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/package.json +1 -1
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -102,35 +94,32 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
102
94
|
utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
|
103
95
|
});
|
104
96
|
|
105
|
-
it(
|
97
|
+
it('The prompt should have image, equation, bold text displayed', () => {
|
106
98
|
matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
|
107
99
|
matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
|
108
100
|
matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
|
109
|
-
cy.eyesCheckWindow(`Matching - ${view} - Prompt with image, equation, bold text`);
|
110
101
|
});
|
111
102
|
|
112
103
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
113
|
-
it(`
|
104
|
+
it(`When the user has added image, equation, bold text to the options input fields, then they should be displayed in the options container in ${view}`, () => {
|
114
105
|
matchingPage.steps.verifyDraggableOptionWithImageInPreviewTab(0);
|
115
106
|
matchingPage.steps.verifyDraggableOptionWithBoldTextInPreviewTab(1);
|
116
107
|
matchingPage.steps.verifyDraggableOptionWithEquationTextInPreviewTab(2);
|
117
108
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, '');
|
118
109
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, '');
|
119
110
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(2, '');
|
120
|
-
cy.eyesCheckWindow(`Matching - ${view} - Options container with image, equation, bold text`);
|
121
111
|
});
|
122
112
|
|
123
|
-
it(
|
113
|
+
it('User should be able to drag and drop image, bold text and equation options in the dropzone', () => {
|
124
114
|
matchingPage.steps.clickAndDropOptionInDropzonePreviewTab([{ optionText: 'Fox', dropzoneIndex: 0 }, { optionText: 'This is a bold option', dropzoneIndex: 1 }, { optionText: 'Solve the following', dropzoneIndex: 2 }]);
|
125
115
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
|
126
116
|
matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
127
117
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
|
128
118
|
matchingPage.steps.verifyDropzoneContainsTextPreviewTab(2, 'Solve the following');
|
129
119
|
matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
130
|
-
cy.eyesCheckWindow(`Matching - ${view} - Drag and drop options in dropzone`);
|
131
120
|
});
|
132
121
|
} else if (view === 'Grading view') {
|
133
|
-
it(`
|
122
|
+
it(`The submitted options should be in the respective dropzone and the options container should not be displayed`, () => {
|
134
123
|
matchingPage.steps.verifyDropzoneContainsTextPreviewTab(0, 'Fox');
|
135
124
|
matchingPage.steps.verifyDropzoneContainsTextPreviewTab(1, 'This is a bold option');
|
136
125
|
matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
@@ -140,20 +129,18 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
140
129
|
matchingPage.steps.verifyCorrectOptionIcon(2);
|
141
130
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
142
131
|
utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
|
143
|
-
cy.eyesCheckWindow(`Matching - ${view} - Submitted options in dropzone`);
|
144
132
|
});
|
145
133
|
|
146
134
|
it('The content in the dropzone should not be editable', () => {
|
147
135
|
matchingPage.steps.verifyGradingViewOptionDisabled([{ optionText: 'Elephant', dropzoneIndex: 0 }]);
|
148
136
|
});
|
149
137
|
} else {
|
150
|
-
it(
|
138
|
+
it('The dropzone should be displayed filled with answers', () => {
|
151
139
|
utilities.verifyElementCount(matchingPage.dropzonePreviewTab(), 3);
|
152
140
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(0, 'Fox');
|
153
141
|
matchingPage.steps.verifyDropzoneWithImageInPreviewTab(0);
|
154
142
|
matchingPage.steps.verifyDropzoneTextContentPreviewTab(1, 'This is a bold option');
|
155
143
|
matchingPage.steps.verifyDropzoneWithEquationTextInPreviewTab(2);
|
156
|
-
cy.eyesCheckWindow(`Matching - ${view} - Dropzone filled with answers`);
|
157
144
|
});
|
158
145
|
}
|
159
146
|
});
|
@@ -14,14 +14,6 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
-
beforeEach(() => {
|
18
|
-
cy.startApplitools();
|
19
|
-
});
|
20
|
-
|
21
|
-
afterEach(() => {
|
22
|
-
cy.eyesClose();
|
23
|
-
});
|
24
|
-
|
25
17
|
if (!grepTags || !grepTags.includes('smoke')) {
|
26
18
|
describe('Question preview modes: Student view and Grading view', () => {
|
27
19
|
abortEarlySetup();
|
@@ -106,7 +98,7 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
106
98
|
});
|
107
99
|
};
|
108
100
|
|
109
|
-
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', () => {
|
110
102
|
if (view === 'Grading view') {
|
111
103
|
studentViewPage.steps.submitResponse();
|
112
104
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -125,10 +117,9 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
125
117
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
126
118
|
utilities.verifyInnerText(matchingPage.correctAnswersLabel(), 'Correct answers');
|
127
119
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
128
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} view - Without attempting the question`);
|
129
120
|
});
|
130
121
|
|
131
|
-
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', () => {
|
132
123
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
|
133
124
|
if (view === 'Grading view') {
|
134
125
|
studentViewPage.steps.submitResponse();
|
@@ -145,10 +136,9 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
145
136
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
146
137
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
147
138
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
148
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question incorrectly`);
|
149
139
|
});
|
150
140
|
|
151
|
-
it(
|
141
|
+
it('When the user attempts the question partially correct with some correct, some incomplete, 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', () => {
|
152
142
|
if (view === 'Grading view') {
|
153
143
|
studentViewPage.steps.clearResponses();
|
154
144
|
};
|
@@ -168,10 +158,9 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
168
158
|
matchingPage.steps.verifyIncorrectOptionIconDropdown(2);
|
169
159
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
160
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
171
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question partially correct with some correct, some incomplete and some incorrect options`);
|
172
161
|
});
|
173
162
|
|
174
|
-
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', () => {
|
175
164
|
if (view === 'Grading view') {
|
176
165
|
studentViewPage.steps.clearResponses();
|
177
166
|
};
|
@@ -191,10 +180,9 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
191
180
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
192
181
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
182
|
matchingPage.steps.verifyCorrectAnswerResponsesInCorrectAnswerSectionAndCount([['Elephant'], ['Fish'], ['Cat']]);
|
194
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question partially correct with one dropdown incomplete`);
|
195
183
|
});
|
196
184
|
|
197
|
-
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', () => {
|
198
186
|
if (view === 'Grading view') {
|
199
187
|
studentViewPage.steps.clearResponses();
|
200
188
|
};
|
@@ -215,7 +203,6 @@ describe('Create item page - Matching: All or nothing ', () => {
|
|
215
203
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
216
204
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
217
205
|
matchingPage.steps.verifyCorrectAnswerSectionNotExists();
|
218
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} view - Attempting the question correctly`);
|
219
206
|
});
|
220
207
|
});
|
221
208
|
});
|
@@ -11,14 +11,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
views.forEach((view) => {
|
23
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
24
16
|
abortEarlySetup();
|
@@ -88,20 +80,18 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
88
80
|
utilities.verifyElementVisibilityState(matchingPage.questionInstructionsText(), 'visible');
|
89
81
|
});
|
90
82
|
|
91
|
-
it(
|
83
|
+
it('The prompt should have image, equation, bold text displayed', () => {
|
92
84
|
matchingPage.steps.verifyPromptWithImageInPreviewTab(0);
|
93
85
|
matchingPage.steps.verifyPromptWithBoldTextInPreviewTab(1);
|
94
86
|
matchingPage.steps.verifyPromptWithEquationTextInPreviewTab(2);
|
95
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} - Prompt with image, equation, bold text`);
|
96
87
|
});
|
97
88
|
|
98
89
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
99
|
-
it(
|
90
|
+
it('User should be able to attempt the question by selecting option from the dropdowns', () => {
|
100
91
|
matchingPage.steps.selectResponseFromDropdownInPreviewTab([{ dropdownIndex: 0, dropdownOption: optionsArray[0] }, { dropdownIndex: 1, dropdownOption: optionsArray[1] }, { dropdownIndex: 2, dropdownOption: optionsArray[2] }]);
|
101
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} - Attempt question by selecting options`);
|
102
92
|
});
|
103
93
|
} else if (view === 'Grading view') {
|
104
|
-
it(
|
94
|
+
it('The dropdowns should be displayed filled with answers', () => {
|
105
95
|
utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
|
106
96
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
|
107
97
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
|
@@ -111,7 +101,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
111
101
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
112
102
|
matchingPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
113
103
|
utilities.verifyElementVisibilityState(matchingPage.correctAnswersOptions(), 'notExist');
|
114
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} - Dropdowns filled with answers`);
|
115
104
|
});
|
116
105
|
|
117
106
|
it('The dropdowns should be in disabled state', () => {
|
@@ -120,7 +109,7 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
120
109
|
matchingPage.steps.verifyDropdownIsDisabled(2);
|
121
110
|
});
|
122
111
|
} else {
|
123
|
-
it(
|
112
|
+
it('The dropdowns should be displayed filled with answers', () => {
|
124
113
|
utilities.verifyElementCount(matchingPage.dropdownPreviewTab(), 3);
|
125
114
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(0, 'Fox');
|
126
115
|
matchingPage.steps.verifyTextDisplayedInDropdownPreviewTab(1, 'This is a bold option');
|
@@ -128,7 +117,6 @@ describe('Create item page - Matching - Preview contents in all views', () => {
|
|
128
117
|
matchingPage.steps.verifyCorrectOptionIconDropdown(0);
|
129
118
|
matchingPage.steps.verifyCorrectOptionIconDropdown(1);
|
130
119
|
matchingPage.steps.verifyCorrectOptionIconDropdown(2);
|
131
|
-
cy.eyesCheckWindow(`Matching dropdown - ${view} - Dropdowns filled with answers`);
|
132
120
|
});
|
133
121
|
}
|
134
122
|
});
|
@@ -12,14 +12,6 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
if (!grepTags || !grepTags.includes('smoke')) {
|
24
16
|
describe('Question preview modes: Student view and Grading view', () => {
|
25
17
|
abortEarlySetup();
|
@@ -101,7 +93,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
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
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -122,10 +114,9 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
122
114
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
123
115
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
124
116
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
125
|
-
cy.eyesCheckWindow(`Multiple selection ${view} view - Without attempting the question`);
|
126
117
|
});
|
127
118
|
|
128
|
-
it(
|
119
|
+
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', () => {
|
129
120
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(2);
|
130
121
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(3);
|
131
122
|
if (view === 'Grading view') {
|
@@ -147,10 +138,9 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
147
138
|
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
148
139
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
149
140
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
150
|
-
cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question incorrectly`);
|
151
141
|
});
|
152
142
|
|
153
|
-
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 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', () => {
|
154
144
|
if (view === 'Grading view') {
|
155
145
|
studentViewPage.steps.clearResponses();
|
156
146
|
}
|
@@ -170,15 +160,14 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
170
160
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(1);
|
171
161
|
multipleSelectionPage.steps.verifyIncorrectOptionIconStudentView(2);
|
172
162
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question partially correct`);
|
163
|
+
//correct answer section
|
164
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(0);
|
165
|
+
multipleSelectionPage.steps.verifyCorrectOptionIconCorrectAnswerSection(1);
|
166
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(2);
|
167
|
+
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleCorrectAnswerSection(3);
|
179
168
|
});
|
180
169
|
|
181
|
-
it(
|
170
|
+
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, and status message \'Your answer is correct\'should be displayed below the question preview and correct answer section should not be displayed', () => {
|
182
171
|
if (view === 'Grading view') {
|
183
172
|
studentViewPage.steps.clearResponses();
|
184
173
|
}
|
@@ -198,8 +187,7 @@ describe('Create Item page - Multiple selection: All or nothing ', () => {
|
|
198
187
|
multipleSelectionPage.steps.verifyCorrectOptionIconStudentView(1);
|
199
188
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(2);
|
200
189
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleStudentView(3);
|
201
|
-
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist()
|
202
|
-
cy.eyesCheckWindow(`Multiple selection ${view} view - Attempting the question correctly`);
|
190
|
+
multipleSelectionPage.steps.verifyCorrectAnswerSectionNotExist()
|
203
191
|
});
|
204
192
|
});
|
205
193
|
});
|
@@ -12,14 +12,6 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
12
12
|
cy.loginAs('admin');
|
13
13
|
});
|
14
14
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -85,30 +77,27 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
85
77
|
utilities.verifyElementVisibilityState(multipleSelectionPage.questionInstructionsText(), 'visible');
|
86
78
|
});
|
87
79
|
|
88
|
-
it(`
|
80
|
+
it(`When the user has added image, bold text and equation to the options input they should be displayed in the ${view}`, () => {
|
89
81
|
multipleSelectionPage.steps.verifyImageInPreviewTab(0);
|
90
82
|
multipleSelectionPage.steps.verifyBoldTextInPreviewTab(1);
|
91
83
|
multipleSelectionPage.steps.verifyEquationTextInPreviewTab(2);
|
92
|
-
cy.eyesCheckWindow(`Multiple selection - ${view} - Image, Bold Text, and Equation Display`);
|
93
84
|
});
|
94
85
|
|
95
86
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
96
|
-
it(`
|
87
|
+
it(`All the options should be in unchecked state`, () => {
|
97
88
|
for (let index = 0; index < 4; index++) {
|
98
89
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabUncheckedState(index);
|
99
|
-
}
|
100
|
-
cy.eyesCheckWindow(`Multiple selection - ${view} - Options Unchecked State`);
|
90
|
+
};
|
101
91
|
});
|
102
92
|
|
103
|
-
it(`
|
93
|
+
it(`User should able to select options in the ${view}`, () => {
|
104
94
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(0);
|
105
95
|
multipleSelectionPage.steps.checkOptionsCheckboxInPreviewTab(1);
|
106
96
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(0);
|
107
97
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(1);
|
108
|
-
cy.eyesCheckWindow(`Multiple selection - ${view} - Options Checked State`);
|
109
98
|
});
|
110
99
|
} else if (view === 'Grading view') {
|
111
|
-
it(`
|
100
|
+
it(`The submitted options should be in checked state and they should not be editable`, () => {
|
112
101
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(0);
|
113
102
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabCheckedState(1);
|
114
103
|
multipleSelectionPage.steps.verifyOptionsCheckboxInPreviewTabUncheckedState(2);
|
@@ -116,16 +105,14 @@ describe('Create item page - Multiple selection: Preview contents', () => {
|
|
116
105
|
options.forEach((_, index) => {
|
117
106
|
multipleSelectionPage.steps.verifyOptionCheckBoxIsDisabled(index);
|
118
107
|
});
|
119
|
-
cy.eyesCheckWindow(`Multiple selection - ${view} - Submitted Options Checked State`);
|
120
108
|
});
|
121
109
|
} else {
|
122
|
-
it(`
|
110
|
+
it(`The correct options should have correct icons besides them`, () => {
|
123
111
|
// Need to remove comment once https://redmine.zeuslearning.com/issues/576368 is resolved
|
124
112
|
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(0);
|
125
113
|
// multipleSelectionPage.steps.verifyCorrectOptionIconGradingView(1);
|
126
114
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(2);
|
127
115
|
multipleSelectionPage.steps.verifyCorrectIncorrectIconNotVisibleGradingView(3);
|
128
|
-
cy.eyesCheckWindow(`Multiple selection - ${view} - Correct Options Icons`);
|
129
116
|
});
|
130
117
|
}
|
131
118
|
|
@@ -11,14 +11,6 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
11
11
|
cy.loginAs('admin');
|
12
12
|
});
|
13
13
|
|
14
|
-
beforeEach(() => {
|
15
|
-
cy.startApplitools();
|
16
|
-
});
|
17
|
-
|
18
|
-
afterEach(() => {
|
19
|
-
cy.eyesClose();
|
20
|
-
});
|
21
|
-
|
22
14
|
if (!grepTags || !grepTags.includes('smoke')) {
|
23
15
|
describe('Question preview modes: Student view and Grading view', () => {
|
24
16
|
abortEarlySetup();
|
@@ -101,7 +93,7 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
101
93
|
});
|
102
94
|
};
|
103
95
|
|
104
|
-
it(
|
96
|
+
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
97
|
if (view === 'Grading view') {
|
106
98
|
studentViewPage.steps.submitResponse();
|
107
99
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -116,10 +108,9 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
116
108
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconsNotExist();
|
117
109
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
118
110
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
119
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} view - Without attempting the question`);
|
120
111
|
});
|
121
112
|
|
122
|
-
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 a preview of the entire grid with correct answers should be displayed', () => {
|
123
114
|
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 1 }, { row: 2, column: 0 }]);
|
124
115
|
if (view === 'Grading view') {
|
125
116
|
studentViewPage.steps.submitResponse();
|
@@ -135,10 +126,9 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
135
126
|
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 2, column: 0 });
|
136
127
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
137
128
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
138
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question incorrectly`);
|
139
129
|
});
|
140
130
|
|
141
|
-
it(
|
131
|
+
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', () => {
|
142
132
|
if (view === 'Grading view') {
|
143
133
|
studentViewPage.steps.clearResponses();
|
144
134
|
};
|
@@ -159,10 +149,9 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
159
149
|
multipleSelectionGridPage.steps.verifyIncorrectOptionBackgroundAndIcon({ row: 4, column: 0 });
|
160
150
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
161
151
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
162
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question partially correct with incorrect responses`);
|
163
152
|
});
|
164
153
|
|
165
|
-
it(
|
154
|
+
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', () => {
|
166
155
|
if (view === 'Grading view') {
|
167
156
|
studentViewPage.steps.clearResponses();
|
168
157
|
};
|
@@ -183,10 +172,9 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
183
172
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectIconNotExists({ row: 4, column: 1 });
|
184
173
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
185
174
|
multipleSelectionGridPage.steps.verifyCorrectAnswerResponses([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
186
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question partially correct with incomplete responses`);
|
187
175
|
});
|
188
176
|
|
189
|
-
it(
|
177
|
+
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', () => {
|
190
178
|
if (view === 'Grading view') {
|
191
179
|
studentViewPage.steps.clearResponses();
|
192
180
|
};
|
@@ -208,7 +196,6 @@ describe('Create item page - Multiple selection grid: All or nothing ', () => {
|
|
208
196
|
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
209
197
|
multipleSelectionGridPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
210
198
|
multipleSelectionGridPage.steps.verifyCorrectAnswerSectionNotExists();
|
211
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Attempting the question correctly`);
|
212
199
|
});
|
213
200
|
});
|
214
201
|
});
|
@@ -6,20 +6,11 @@ const css = Cypress.env('css');
|
|
6
6
|
let previewContentViews = ['Question preview', 'Item view', 'Item preview', 'Student view', 'Grading view', 'Correct answer view'];
|
7
7
|
const views = utilities.getViews(previewContentViews);
|
8
8
|
var itemReferenceID = "";
|
9
|
-
|
10
9
|
describe('Create item page - Multiple selection grid: Preview contents', () => {
|
11
10
|
before(() => {
|
12
11
|
cy.loginAs('admin');
|
13
12
|
});
|
14
13
|
|
15
|
-
beforeEach(() => {
|
16
|
-
cy.startApplitools();
|
17
|
-
});
|
18
|
-
|
19
|
-
afterEach(() => {
|
20
|
-
cy.eyesClose();
|
21
|
-
});
|
22
|
-
|
23
14
|
views.forEach((view) => {
|
24
15
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
16
|
abortEarlySetup();
|
@@ -91,7 +82,7 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
91
82
|
utilities.verifyElementVisibilityState(multipleSelectionGridPage.questionInstructionsText(), 'visible');
|
92
83
|
});
|
93
84
|
|
94
|
-
it(`
|
85
|
+
it(`The question grid as set by the user should be displayed in the ${view}`, () => {
|
95
86
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 0 }, 'None');
|
96
87
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 1 }, 'Heading');
|
97
88
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 0, column: 2 }, 'Heading');
|
@@ -102,35 +93,31 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
102
93
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 0 }, 'Text');
|
103
94
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 3, column: 1 }, 'No checkbox');
|
104
95
|
multipleSelectionGridPage.steps.verifyTableCellPropertyPreviewTab({ row: 4, column: 2 }, 'No checkbox');
|
105
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Question grid displayed`);
|
106
96
|
});
|
107
97
|
|
108
98
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
109
|
-
it(`
|
99
|
+
it(`When the user has added image, equation, bold text to the options, then they should be displayed in the grid in ${view}`, () => {
|
110
100
|
multipleSelectionGridPage.steps.verifyTableCellWithImageInPreviewTab({ row: 1, column: 1 });
|
111
101
|
multipleSelectionGridPage.steps.verifyTableCellWithBoldTextInPreviewTab({ row: 3, column: 1 });
|
112
102
|
multipleSelectionGridPage.steps.verifyTableCellWithEquationTextInPreviewTab({ row: 3, column: 0 });
|
113
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Image, equation, bold text displayed`);
|
114
103
|
});
|
115
104
|
|
116
|
-
it(`
|
105
|
+
it(`User should be able to select options in the ${view}`, () => {
|
117
106
|
multipleSelectionGridPage.steps.selectOptionsForAllQuestionStemsInPreviewTab([{ row: 1, column: 0 }, { row: 2, column: 1 }, { row: 3, column: 0 }, { row: 4, column: 1 }]);
|
118
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Options selected`);
|
119
107
|
});
|
120
108
|
} else if (view === 'Grading view') {
|
121
|
-
it(`
|
109
|
+
it(`The submitted options should be in checked state`, () => {
|
122
110
|
multipleSelectionGridPage.steps.verifyOptionWithCheckboxSelectedState({ row: 1, column: 0 });
|
123
111
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 2, column: 1 });
|
124
112
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 3, column: 0 });
|
125
113
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 4, column: 1 });
|
126
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Submitted options checked state`);
|
127
114
|
});
|
128
115
|
|
129
|
-
it('
|
116
|
+
it('The content in the grid should not be editable', () => {
|
130
117
|
multipleSelectionGridPage.steps.verifyOptionDisabledState({ row: 1, column: 1 });
|
131
118
|
});
|
132
119
|
} else {
|
133
|
-
it(`
|
120
|
+
it(`The correct options should be in checked state, correct icons should be displayed besides them, correct background should be displayed behind the option`, () => {
|
134
121
|
multipleSelectionGridPage.steps.verifyOptionWithCheckboxSelectedState({ row: 1, column: 0 });
|
135
122
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 2, column: 1 });
|
136
123
|
multipleSelectionGridPage.steps.verifyOptionWithoutCheckboxSelectedState({ row: 3, column: 0 });
|
@@ -139,7 +126,6 @@ describe('Create item page - Multiple selection grid: Preview contents', () => {
|
|
139
126
|
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 2, column: 1 });
|
140
127
|
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 3, column: 0 });
|
141
128
|
multipleSelectionGridPage.steps.verifyCorrectOptionBackgroundAndIcon({ row: 4, column: 1 });
|
142
|
-
cy.eyesCheckWindow(`Multiple selection grid - ${view} - Correct options checked state and icons`);
|
143
129
|
});
|
144
130
|
}
|
145
131
|
|
@@ -13,14 +13,6 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
if (!grepTags || !grepTags.includes('smoke')) {
|
25
17
|
describe('Question preview modes: Student view and Grading view', () => {
|
26
18
|
abortEarlySetup();
|
@@ -113,7 +105,7 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
113
105
|
});
|
114
106
|
};
|
115
107
|
|
116
|
-
it(
|
108
|
+
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', () => {
|
117
109
|
if (view === 'Grading view') {
|
118
110
|
studentViewPage.steps.submitResponse();
|
119
111
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -132,10 +124,9 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
132
124
|
numberLinePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
133
125
|
numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
|
134
126
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
135
|
-
cy.eyesCheckWindow(`Number line horizontal ${view} view - Without attempting the question`);
|
136
127
|
});
|
137
128
|
|
138
|
-
it(
|
129
|
+
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', () => {
|
139
130
|
numberLinePage.steps.selectNumberLineToolOptionPreviewTab('Segment');
|
140
131
|
numberLinePage.steps.plotPointOnNumberLinePreviewTab("horizontal", range, 8);
|
141
132
|
numberLinePage.steps.verifyPointsPlottedOnNumberLinePreviewTab(range, [8, 7]);
|
@@ -157,10 +148,9 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
157
148
|
numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
158
149
|
numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
|
159
150
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
160
|
-
cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question incorrectly`);
|
161
151
|
});
|
162
152
|
|
163
|
-
it(
|
153
|
+
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', () => {
|
164
154
|
if (view === 'Grading view') {
|
165
155
|
studentViewPage.steps.clearResponses();
|
166
156
|
}
|
@@ -183,10 +173,9 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
183
173
|
numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect')
|
184
174
|
numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [2]);
|
185
175
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
186
|
-
cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question partially correct`);
|
187
176
|
});
|
188
177
|
|
189
|
-
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', () => {
|
190
179
|
if (view === 'Grading view') {
|
191
180
|
studentViewPage.steps.clearResponses();
|
192
181
|
}
|
@@ -217,10 +206,9 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
217
206
|
numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
218
207
|
numberLinePage.steps.verifyCorrectPointsOnNumberLineCorrectAnswerSection(range, [-4, -5]);
|
219
208
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLineCorrectAnswerSection(range, [{ x1: -5, x2: -4 }]);
|
220
|
-
cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question partially correct with an incorrect response`);
|
221
209
|
});
|
222
210
|
|
223
|
-
it(
|
211
|
+
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', () => {
|
224
212
|
if (view === 'Grading view') {
|
225
213
|
studentViewPage.steps.clearResponses();
|
226
214
|
}
|
@@ -247,7 +235,6 @@ describe('Create Item page - Number line: All or nothing ', () => {
|
|
247
235
|
numberLinePage.steps.verifyCorrectLineSegmentOnNumberLinePreviewTab(range, [{ x1: -5, x2: -4 }]);
|
248
236
|
numberLinePage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
249
237
|
numberLinePage.steps.verifyCorrectAnswerSectionNotExist();
|
250
|
-
cy.eyesCheckWindow(`Number line horizontal ${view} - Attempting the question correctly`);
|
251
238
|
});
|
252
239
|
});
|
253
240
|
});
|