itemengine-cypress-automation 1.0.294 → 1.0.295-applitools-219e3f5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress/e2e/ILC/AudioResponseNew/barRecorderStyle.smoke.js +19 -19
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +12 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +0 -4
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +11 -1
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +19 -10
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +14 -4
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +3 -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/gradingViewAndCorrectAnswerView.smoke.js +10 -0
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- 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 +12 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +10 -1
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +10 -1
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +23 -14
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +5 -6
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +13 -5
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +16 -6
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +3 -3
- package/cypress/e2e/ILC/UploadResponse/gradingViewAndCorrectAnswerViewContents.smoke.js +11 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +16 -6
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +14 -4
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +9 -9
- package/cypress/e2e/ILC/chartsDotsPlot/gradingViewAndCorrectAnswerView.smoke.js +2 -2
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +0 -1
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +3 -1
- package/cypress/pages/components/gridQuestionCommonComponent.js +1 -39
- package/cypress/pages/components/optionsWrapperComponent.js +3 -0
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +1 -39
- package/cypress/pages/singleSelectionPage.js +1 -39
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
@@ -12,6 +12,14 @@ describe('Create Item page - Text entry math: 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
|
+
|
15
23
|
if (!grepTags || !grepTags.includes('smoke')) {
|
16
24
|
describe('Question preview modes: Student view and Grading view', () => {
|
17
25
|
abortEarlySetup();
|
@@ -118,14 +126,14 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
118
126
|
});
|
119
127
|
};
|
120
128
|
|
121
|
-
it(
|
129
|
+
it(`TEM ${view}: When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
|
122
130
|
if (view === 'Grading view') {
|
123
131
|
studentViewPage.steps.submitResponse();
|
124
132
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
125
133
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
126
134
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
127
135
|
}
|
128
|
-
if (view === '
|
136
|
+
if (view === 'Item preview' || view === 'Question preview') {
|
129
137
|
textEntryMathPage.steps.switchToGradingView();
|
130
138
|
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
131
139
|
}
|
@@ -139,7 +147,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
139
147
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
140
148
|
});
|
141
149
|
|
142
|
-
it(
|
150
|
+
it(`TEM ${view}: 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, and \'Your answer is incorrect\' label should be displayed`, () => {
|
143
151
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
144
152
|
textEntryMathPage.steps.enterTextInPreviewInputFieldNew(0, 'Incorrect answer 1');
|
145
153
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -155,9 +163,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
155
163
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
156
164
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
157
165
|
}
|
158
|
-
if (view === '
|
159
|
-
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
166
|
+
if (view === 'Item preview' || view === 'Question preview') {
|
160
167
|
textEntryMathPage.steps.switchToGradingView();
|
168
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
161
169
|
}
|
162
170
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(0);
|
163
171
|
textEntryMathPage.steps.verifyIncorrectResponseIcon(1);
|
@@ -169,7 +177,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
169
177
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
170
178
|
});
|
171
179
|
|
172
|
-
it(
|
180
|
+
it(`TEM ${view}: 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 \'Your answer is incorrect\' label should be displayed`, () => {
|
173
181
|
if (view === 'Grading view') {
|
174
182
|
studentViewPage.steps.clearResponses();
|
175
183
|
}
|
@@ -187,9 +195,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
187
195
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
188
196
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
189
197
|
}
|
190
|
-
if (view === '
|
191
|
-
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
198
|
+
if (view === 'Item preview' || view === 'Question preview') {
|
192
199
|
textEntryMathPage.steps.switchToGradingView();
|
200
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
193
201
|
}
|
194
202
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
195
203
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
@@ -201,7 +209,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
201
209
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
202
210
|
});
|
203
211
|
|
204
|
-
it(
|
212
|
+
it(`TEM ${view}: When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
|
205
213
|
if (view === 'Grading view') {
|
206
214
|
studentViewPage.steps.clearResponses();
|
207
215
|
}
|
@@ -216,9 +224,9 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
216
224
|
studentViewPage.steps.clickOnGoToGradingViewButton();
|
217
225
|
gradingViewPage.steps.verifyGradingViewScore(0, 20);
|
218
226
|
}
|
219
|
-
if (view === '
|
220
|
-
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
227
|
+
if (view === 'Item preview' || view === 'Question preview') {
|
221
228
|
textEntryMathPage.steps.switchToGradingView();
|
229
|
+
textEntryMathPage.steps.verifyPreviewScore(0, 20);
|
222
230
|
}
|
223
231
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
224
232
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
@@ -230,7 +238,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
230
238
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
231
239
|
});
|
232
240
|
|
233
|
-
it(
|
241
|
+
it(`TEM ${view}: 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 \'Your answer is correct\' should be displayed`, () => {
|
234
242
|
if (view === 'Grading view') {
|
235
243
|
studentViewPage.steps.clearResponses();
|
236
244
|
}
|
@@ -249,15 +257,16 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
249
257
|
cy.wait(1000);
|
250
258
|
gradingViewPage.steps.verifyGradingViewScore(20, 20);
|
251
259
|
}
|
252
|
-
if (view === '
|
253
|
-
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
260
|
+
if (view === 'Item preview' || view === 'Question preview') {
|
254
261
|
textEntryMathPage.steps.switchToGradingView();
|
262
|
+
textEntryMathPage.steps.verifyPreviewScore(20, 20);
|
255
263
|
}
|
256
264
|
textEntryMathPage.steps.verifyCorrectResponseIcon(0);
|
257
265
|
textEntryMathPage.steps.verifyCorrectResponseIcon(1);
|
258
266
|
textEntryMathPage.steps.verifyCorrectResponseIcon(2);
|
259
267
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
260
268
|
textEntryMathPage.steps.verifyCorrectAnswerSectionNotExists();
|
269
|
+
cy.eyesCheckWindow(`TEM ${view} - Attempting the question correctly`);
|
261
270
|
});
|
262
271
|
});
|
263
272
|
});
|
@@ -96,7 +96,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
96
96
|
});
|
97
97
|
};
|
98
98
|
|
99
|
-
it(
|
99
|
+
it(`${view}: Formula template: When the user selects \'Grading\' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
|
100
100
|
if (view === 'Grading view') {
|
101
101
|
studentViewPage.steps.submitResponse();
|
102
102
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -117,7 +117,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
117
117
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
118
118
|
});
|
119
119
|
|
120
|
-
it(
|
120
|
+
it(`${view}: Formula template: 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, and \'Your answer is incorrect\' label should be displayed`, () => {
|
121
121
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldFormulaTemplatePreviewTab(0);
|
122
122
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Incorrect answer 1');
|
123
123
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -153,7 +153,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
153
153
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
154
154
|
});
|
155
155
|
|
156
|
-
it(
|
156
|
+
it(`${view}: Formula template: 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 \'Your answer is incorrect\' label should be displayed`, () => {
|
157
157
|
if (view === 'Grading view') {
|
158
158
|
studentViewPage.steps.clearResponses();
|
159
159
|
}
|
@@ -192,7 +192,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
192
192
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
193
193
|
});
|
194
194
|
|
195
|
-
it(
|
195
|
+
it(`${view}: Formula template: When the user attempts the question partially correct with a incomplete response, then the user should be awarded 0 points and on switching to \'Grading\' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, \'Your answer is incorrect\' should be displayed`, () => {
|
196
196
|
if (view === 'Grading view') {
|
197
197
|
studentViewPage.steps.clearResponses();
|
198
198
|
}
|
@@ -228,7 +228,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
228
228
|
textEntryMathPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
229
229
|
});
|
230
230
|
|
231
|
-
it(
|
231
|
+
it(`${view}: Formula template: 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 \'Your answer is correct\' should be displayed`, () => {
|
232
232
|
if (view === 'Grading view') {
|
233
233
|
studentViewPage.steps.clearResponses();
|
234
234
|
}
|
@@ -267,5 +267,4 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
267
267
|
});
|
268
268
|
});
|
269
269
|
});
|
270
|
-
|
271
270
|
});
|
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: 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
|
+
|
15
23
|
views.forEach((view) => {
|
16
24
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
17
25
|
abortEarlySetup();
|
@@ -69,9 +77,10 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
69
77
|
}
|
70
78
|
});
|
71
79
|
|
72
|
-
it(
|
80
|
+
it(`TEM ${view}: Question instructions should be visible`, () => {
|
73
81
|
utilities.verifyInnerText(textEntryMathPage.questionInstructionsText(), 'Enter the correct answer in the response field');
|
74
82
|
utilities.verifyElementVisibilityState(textEntryMathPage.questionInstructionsText(), 'visible');
|
83
|
+
cy.eyesCheckWindow(`TEM ${view}: Default state`);
|
75
84
|
});
|
76
85
|
|
77
86
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
@@ -81,7 +90,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
81
90
|
utilities.verifyElementCount(textEntryMathPage.responseFieldPreviewTab(), '2');
|
82
91
|
});
|
83
92
|
|
84
|
-
it(`User should able to enter answers in the response fields
|
93
|
+
it(`TEM User should able to enter answers in the response fields for ${view}`, () => {
|
85
94
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
86
95
|
equationEditorFlyout.steps.enterTextInPreviewInputField('Correct1');
|
87
96
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -91,14 +100,14 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
91
100
|
textEntryMathPage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
|
92
101
|
});
|
93
102
|
} else if (view === 'Grading view') {
|
94
|
-
it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
|
103
|
+
it(`TEM The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
|
95
104
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
|
96
105
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
97
106
|
textEntryMathPage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
98
107
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
|
99
108
|
});
|
100
109
|
} else {
|
101
|
-
it(`The response input fields should be displayed filled with correct answers`, () => {
|
110
|
+
it(`TEM The response input fields should be displayed filled with correct answers`, () => {
|
102
111
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(0, 'Correct1');
|
103
112
|
textEntryMathPage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
104
113
|
});
|
@@ -46,7 +46,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
46
46
|
|
47
47
|
it('When the user attempts question in preview tab and switches to edit tab, then on re-switching to the preview tab, users response should not persist', () => {
|
48
48
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
49
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
49
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
50
50
|
equationEditorFlyout.steps.clickOnOkButton();
|
51
51
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
52
52
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
@@ -120,7 +120,7 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
120
120
|
});
|
121
121
|
};
|
122
122
|
|
123
|
-
it(
|
123
|
+
it(`TEM Image ${view} - When the user selects 'Grading' view without attempting the question, correct/incorrect icons should not be displayed correct answers section should be displayed with the correct answers, correct answer label and border should not be displayed`, () => {
|
124
124
|
if (view === 'Grading view') {
|
125
125
|
studentViewPage.steps.submitResponse();
|
126
126
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -141,15 +141,15 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
141
141
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabelNotExist();
|
142
142
|
});
|
143
143
|
|
144
|
-
it(
|
144
|
+
it(`TEM Image ${view} - 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, and 'Your answer is incorrect' label should be displayed`, () => {
|
145
145
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
146
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
146
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
|
147
147
|
equationEditorFlyout.steps.clickOnOkButton();
|
148
148
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
149
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
149
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
|
150
150
|
equationEditorFlyout.steps.clickOnOkButton();
|
151
151
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
152
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
152
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
|
153
153
|
equationEditorFlyout.steps.clickOnOkButton();
|
154
154
|
if (view === 'Grading view') {
|
155
155
|
studentViewPage.steps.submitResponse();
|
@@ -171,17 +171,17 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
171
171
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
172
172
|
});
|
173
173
|
|
174
|
-
it(
|
174
|
+
it(`TEM Image ${view} - 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 'Your answer is incorrect' label should be displayed`, () => {
|
175
175
|
if (view === 'Grading view') {
|
176
176
|
studentViewPage.steps.clearResponses();
|
177
177
|
}
|
178
178
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
179
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
179
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
180
180
|
equationEditorFlyout.steps.clickOnOkButton();
|
181
181
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
182
182
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
183
183
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
184
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
184
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '13');
|
185
185
|
equationEditorFlyout.steps.clickOnOkButton();
|
186
186
|
if (view === 'Grading view') {
|
187
187
|
studentViewPage.steps.submitResponse();
|
@@ -203,12 +203,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
203
203
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
204
204
|
});
|
205
205
|
|
206
|
-
it(
|
206
|
+
it(`TEM Image ${view} - When the user attempts the question partially correct with an incomplete response, then the user should be awarded 0 points and on switching to 'Grading' view, correct icons should be displayed besides the correct responses and unattempted correct options, no icon should be displayed beside unattempted response, 'Your answer is incorrect' should be displayed`, () => {
|
207
207
|
if (view === 'Grading view') {
|
208
208
|
studentViewPage.steps.clearResponses();
|
209
209
|
}
|
210
210
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
211
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
211
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
212
212
|
equationEditorFlyout.steps.clickOnOkButton();
|
213
213
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
214
214
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
@@ -232,12 +232,12 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
232
232
|
textEntryMathWithImagePage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
233
233
|
});
|
234
234
|
|
235
|
-
it(
|
235
|
+
it(`TEM Image ${view} - 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 'Your answer is correct' should be displayed`, () => {
|
236
236
|
if (view === 'Grading view') {
|
237
237
|
studentViewPage.steps.clearResponses();
|
238
238
|
}
|
239
239
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
240
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
240
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
241
241
|
equationEditorFlyout.steps.clickOnOkButton();
|
242
242
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
243
243
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
@@ -302,10 +302,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
302
302
|
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
303
303
|
textEntryMathWithImagePage.steps.resetQuestionPreview();
|
304
304
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
305
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
305
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
|
306
306
|
equationEditorFlyout.steps.clickOnOkButton();
|
307
307
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
308
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
308
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '13');
|
309
309
|
equationEditorFlyout.steps.clickOnOkButton();
|
310
310
|
textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
|
311
311
|
textEntryMathWithImagePage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
@@ -325,10 +325,10 @@ describe('Create Item page - Text entry math: All or nothing ', () => {
|
|
325
325
|
it('When the user has selected \'Award minimum score\' from the minimum scoring dropdown, attempts the question incorrectly and switches to grading view, the user should be awarded with minimum points', () => {
|
326
326
|
textEntryMathWithImagePage.steps.resetQuestionPreview();
|
327
327
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
328
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
328
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '13');
|
329
329
|
equationEditorFlyout.steps.clickOnOkButton();
|
330
330
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
331
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(
|
331
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
|
332
332
|
equationEditorFlyout.steps.clickOnOkButton();
|
333
333
|
textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
|
334
334
|
});
|
@@ -12,6 +12,14 @@ describe('Create item page - Text entry math: 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
|
+
|
15
23
|
views.forEach((view) => {
|
16
24
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
17
25
|
abortEarlySetup();
|
@@ -76,7 +84,6 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
76
84
|
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.questionInstructionsText(), 'visible');
|
77
85
|
});
|
78
86
|
|
79
|
-
|
80
87
|
it('The text area should be displayed on the image canvas', () => {
|
81
88
|
textEntryMathWithImagePage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
82
89
|
});
|
@@ -86,13 +93,13 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
86
93
|
});
|
87
94
|
|
88
95
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
89
|
-
it(`
|
96
|
+
it(`Two empty response fields should be disabled ${view}`, () => {
|
90
97
|
utilities.verifyTextContent(textEntryMathWithImagePage.responseFieldPreviewTab(), '')
|
91
98
|
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseFieldPreviewTab(), 'visible');
|
92
99
|
utilities.verifyElementCount(textEntryMathWithImagePage.responseFieldPreviewTab(), '2');
|
93
100
|
});
|
94
101
|
|
95
|
-
it(`User should able to enter answers in the response fields for ${view}`, () => {
|
102
|
+
it(`TEM Image ${view} User should able to enter answers in the response fields for ${view}`, () => {
|
96
103
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
97
104
|
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
98
105
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -100,16 +107,17 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
100
107
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
101
108
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
102
109
|
textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
|
110
|
+
cy.eyesCheckWindow(`TEM Image ${view} Verify response fields with answers`);
|
103
111
|
});
|
104
112
|
} else if (view === 'Grading view') {
|
105
|
-
it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
|
113
|
+
it(`TEM Image The response fields should be filled with the submitted responses and user should not be able to edit them in the grading view`, () => {
|
106
114
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
|
107
115
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
108
116
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
109
117
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
|
110
118
|
});
|
111
119
|
} else {
|
112
|
-
it(`
|
120
|
+
it(`TEM Image The responses should be displayed filled with correct answers`, () => {
|
113
121
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
|
114
122
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
115
123
|
});
|
package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js
CHANGED
@@ -250,7 +250,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
|
|
250
250
|
textSelectionPage.steps.switchToPreviewTab();
|
251
251
|
});
|
252
252
|
|
253
|
-
it('When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
|
253
|
+
it('Text selection: When the user selects \'Grading\' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers', () => {
|
254
254
|
textSelectionPage.steps.verifyPreviewScore(0, 20);
|
255
255
|
textSelectionPage.steps.switchToGradingView();
|
256
256
|
textSelectionPage.steps.verifyCorrectIncorrectIconForOptionNotExist(sentenceTextArray[0]);
|
@@ -260,7 +260,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
|
|
260
260
|
textSelectionPage.steps.verifyQuestionPreviewStateWhenSwitchingBackToStudentView();
|
261
261
|
});
|
262
262
|
|
263
|
-
it('When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
263
|
+
it('Text selection: When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to \'Grading\' view, incorrect icons should be displayed besides all incorrect responses, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
264
264
|
textSelectionPage.steps.resetQuestionPreview();
|
265
265
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
266
266
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[3]);
|
@@ -284,7 +284,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
|
|
284
284
|
textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
285
285
|
});
|
286
286
|
|
287
|
-
it('When the user attempts the question partially correct with some correct 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 response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
287
|
+
it('Text selection: When the user attempts the question partially correct with some correct 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 response, incorrect icon should be displayed besides the incorrect answer response, a status message with text \'Your answer is incorrect\' and correct answer section with all correct answers should be displayed', () => {
|
288
288
|
textSelectionPage.steps.resetQuestionPreview();
|
289
289
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
290
290
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[2]);
|
@@ -308,7 +308,7 @@ describe('Create Item page - Text selection - Basic scoring for all text selecti
|
|
308
308
|
textSelectionPage.steps.verifyCorrectAnswerSectionNotExists();*/
|
309
309
|
});
|
310
310
|
|
311
|
-
it('When the user attempts the question correctly then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
311
|
+
it('Text selection: When the user attempts the question correctly then the user should be awarded full points and on switching to \'Grading\' view, correct icon should be displayed besides the correct answer responses, a status message with text \'Your answer is correct\' should be displayed and correct answer section should not be displayed', () => {
|
312
312
|
textSelectionPage.steps.resetQuestionPreview();
|
313
313
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
314
314
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
|
@@ -57,6 +57,15 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
57
57
|
views.forEach((view) => {
|
58
58
|
describe(`${view}: Auto scored - All or nothing scoring`, { tags: 'smoke' }, () => {
|
59
59
|
abortEarlySetup();
|
60
|
+
|
61
|
+
beforeEach(() => {
|
62
|
+
cy.startApplitools();
|
63
|
+
});
|
64
|
+
|
65
|
+
afterEach(() => {
|
66
|
+
cy.eyesClose();
|
67
|
+
});
|
68
|
+
|
60
69
|
before(() => {
|
61
70
|
switch (view) {
|
62
71
|
case 'Question preview':
|
@@ -112,7 +121,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
112
121
|
});
|
113
122
|
};
|
114
123
|
|
115
|
-
it(
|
124
|
+
it(`Text selection - ${view} - When the user selects 'Grading' view without attempting the question, then correct/incorrect answer should not be displayed in the preview tab and correct answer section should be displayed with correct answers`, () => {
|
116
125
|
if (view === 'Grading view') {
|
117
126
|
studentViewPage.steps.submitResponse();
|
118
127
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -131,8 +140,8 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
131
140
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
|
132
141
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
133
142
|
});
|
134
|
-
|
135
|
-
it(
|
143
|
+
|
144
|
+
it(`Text selection - ${view} - When the user attempts the question incorrectly, then the user should be awarded 0 points and on switching to 'Grading' view, incorrect icons should be displayed besides all incorrect responses, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
|
136
145
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
137
146
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
138
147
|
if (view === 'Grading view') {
|
@@ -154,7 +163,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
154
163
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
155
164
|
});
|
156
165
|
|
157
|
-
it(
|
166
|
+
it(`Text selection - ${view} - When the user attempts the question partially correct with some correct then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
|
158
167
|
if (view === 'Grading view') {
|
159
168
|
studentViewPage.steps.clearResponses();
|
160
169
|
};
|
@@ -178,7 +187,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
178
187
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
179
188
|
});
|
180
189
|
|
181
|
-
it(
|
190
|
+
it(`Text selection - ${view} - When the user attempts the question partially correct with some correct and some incorrect answers then the user should be awarded 0 points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer response, incorrect icon should be displayed besides the incorrect answer response a status message with text 'Your answer is incorrect' and correct answer section with all correct answers should be displayed`, () => {
|
182
191
|
if (view === 'Grading view') {
|
183
192
|
studentViewPage.steps.clearResponses();
|
184
193
|
};
|
@@ -203,7 +212,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
203
212
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
204
213
|
});
|
205
214
|
|
206
|
-
it(
|
215
|
+
it(`Text selection - ${view} - When the user attempts the question correct then the user should be awarded full points and on switching to 'Grading' view, correct icon should be displayed besides the correct answer responses, a status message with text 'Your answer is correct' should be displayed and correct answer section should not be displayed`, () => {
|
207
216
|
if (view === 'Grading view') {
|
208
217
|
studentViewPage.steps.clearResponses();
|
209
218
|
};
|
@@ -225,6 +234,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
225
234
|
textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
226
235
|
textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
227
236
|
utilities.verifyElementVisibilityState(textSelectionPage.correctAnswerSection(), 'notExist');
|
237
|
+
cy.eyesCheckWindow(`Text selection - ${view} - Correct attempt`);
|
228
238
|
});
|
229
239
|
});
|
230
240
|
});
|
@@ -82,12 +82,12 @@ describe('Create item page - Text selection : Preview contents', () => {
|
|
82
82
|
});
|
83
83
|
});
|
84
84
|
|
85
|
-
it(
|
85
|
+
it(`Text selection - ${view} - The text which is not available as option should not be interactive in preview tab`, () => {
|
86
86
|
textSelectionPage.steps.verifyNonOptionTextIsNotInteractiveInPreviewTab(paragraphTextArray[3]);
|
87
87
|
});
|
88
88
|
|
89
89
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
90
|
-
it(
|
90
|
+
it(`The selected options in specify possible options section should be displayed and by default all options should not be selected`, () => {
|
91
91
|
for (let index = 0; index < 3; index++) {
|
92
92
|
utilities.verifyInnerText(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), paragraphTextArray[index]);
|
93
93
|
utilities.verifyElementVisibilityState(utilities.getNthElement(textSelectionPage.optionPreviewTab(), index), 'visible');
|
@@ -96,34 +96,34 @@ describe('Create item page - Text selection : Preview contents', () => {
|
|
96
96
|
utilities.verifyElementCount(textSelectionPage.optionPreviewTab(), 3);
|
97
97
|
});
|
98
98
|
|
99
|
-
it(
|
99
|
+
it(`When user hovers on the available options, then those options should be displayed in hover state highlight`, () => {
|
100
100
|
for (let index = 0; index < 3; index++) {
|
101
101
|
textSelectionPage.steps.verifyHoverStateOfOptionInPreviewTab(paragraphTextArray[index], "blue");
|
102
102
|
};
|
103
103
|
});
|
104
104
|
|
105
|
-
it(
|
105
|
+
it(`When user selects an option, then that option should be displayed in selected state`, () => {
|
106
106
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[0]);
|
107
107
|
textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[0], "blue");
|
108
108
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[1]);
|
109
109
|
textSelectionPage.steps.verifySelectedStateOptionInPreviewTab(paragraphTextArray[1], "blue");
|
110
110
|
});
|
111
111
|
|
112
|
-
it(
|
112
|
+
it(`When user clicks on a selected option, then that option should be deselected`, () => {
|
113
113
|
textSelectionPage.steps.deselectOptionInPreviewTab(paragraphTextArray[0]);
|
114
114
|
textSelectionPage.steps.verifyStandardStateOptionInPreviewTab(paragraphTextArray[0]);
|
115
115
|
});
|
116
116
|
} else if (view === 'Grading view') {
|
117
|
-
it(
|
117
|
+
it(`The question text should be displayed with the selected correct options and status message 'Your answer is incorrect' should be displayed`, () => {
|
118
118
|
textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[1]);
|
119
119
|
textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
120
120
|
});
|
121
121
|
|
122
|
-
it(
|
122
|
+
it(`The submitted answer options should not be editable`, () => {
|
123
123
|
textSelectionPage.steps.verifyAnswerSectionNotEditableInPreviewTab();
|
124
124
|
});
|
125
125
|
} else {
|
126
|
-
it(
|
126
|
+
it(`The question text should be displayed with the selected correct options`, () => {
|
127
127
|
for (let index = 0; index < 2; index++) {
|
128
128
|
textSelectionPage.steps.verifyCorrectIconForOption(paragraphTextArray[index]);
|
129
129
|
};
|
@@ -60,7 +60,7 @@ describe('Preview tab contents for all views', () => {
|
|
60
60
|
}
|
61
61
|
});
|
62
62
|
|
63
|
-
it(
|
63
|
+
it(`${view} view - Tool audio player: When the user switches to preview tab, \'Backward\', \'Play\', \'Forward\', \'Volume control\', \'Elapsed time\', \'Progress bar\', \'Total time\', \'Playback speed\' and \'Add pin\' buttons should be displayed`, () => {
|
64
64
|
utilities.verifyElementVisibilityState(audioPlayerPage.backwardButton(), 'visible');
|
65
65
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
66
66
|
utilities.verifyElementVisibilityState(audioPlayerPage.forwardButton(), 'visible');
|
@@ -88,7 +88,7 @@ describe('Preview tab contents for all views', () => {
|
|
88
88
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|
89
89
|
});
|
90
90
|
|
91
|
-
it(
|
91
|
+
it(`${view} view - Tool audio player: When audio player is in paused state and user clicks on \'Play\' button, then playback should get resumed and \'Play\' button should get replaced with \'Pause\' button.`, () => {
|
92
92
|
audioPlayerPage.steps.startPlayback();
|
93
93
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'visible');
|
94
94
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'notExist');
|
@@ -100,7 +100,7 @@ describe('Preview tab contents for all views', () => {
|
|
100
100
|
audioPlayerPage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
101
101
|
});
|
102
102
|
|
103
|
-
it(
|
103
|
+
it(`${view} view - Tool audio player: When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button`, () => {
|
104
104
|
audioPlayerPage.steps.verifyAudioPlaybackTimer('00:45', '00:45');
|
105
105
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPlayButton(), 'visible');
|
106
106
|
utilities.verifyElementVisibilityState(audioPlayerPage.playbackPauseButton(), 'notExist');
|