itemengine-cypress-automation 1.0.292 → 1.0.294-applitools-09785a6.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 -26
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +4 -4
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +3 -3
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +17 -8
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +8 -8
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +12 -2
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/Compass/compassPreviewContent.smoke.js +1 -1
- package/cypress/e2e/ILC/ContentBlocks/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +12 -2
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +19 -21
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +8 -0
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +15 -6
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +13 -3
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +14 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- 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 +15 -5
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +9 -1
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +15 -5
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +12 -3
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +11 -2
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +13 -4
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +6 -5
- 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/equationEditorSectionCommonComponent.js +3 -1
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
@@ -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');
|
@@ -21,7 +21,7 @@ describe('Tool settings content for all views', () => {
|
|
21
21
|
before(() => {
|
22
22
|
switch (view) {
|
23
23
|
case 'Question preview':
|
24
|
-
cy.log('Navigating to
|
24
|
+
cy.log('Navigating to multiple selection response question type');
|
25
25
|
multipleSelectionPage.steps.navigateToCreateQuestion('multiple selection');
|
26
26
|
cy.barsPreLoaderWait();
|
27
27
|
multipleSelectionPage.steps.addTextInQuestionInstructionsInputField('Text');
|
@@ -74,7 +74,7 @@ describe('Tool settings content for all views', () => {
|
|
74
74
|
rulerPage.steps.verifyRulerNotVisible();
|
75
75
|
});
|
76
76
|
|
77
|
-
it(
|
77
|
+
it(`When user clicks on 'Show ruler' button in ${view}, then ruler should be displayed and its button should change to 'Hide ruler'`, () => {
|
78
78
|
rulerPage.steps.clickOnRulerVisibilityButton();
|
79
79
|
rulerPage.steps.verifyRulerVisible();
|
80
80
|
rulerPage.steps.verifyPreviewTabRulerVisibilityButtonLabel('Hide');
|
@@ -177,7 +177,7 @@ describe('Tool settings content for all views', () => {
|
|
177
177
|
protractorPage.steps.verifyPreviewTabProtractorVisibilityButtonLabel('Hide');
|
178
178
|
});
|
179
179
|
|
180
|
-
it(
|
180
|
+
it(`When user has clicked visibility buttons for both the ruler and protractor tools in ${view}, both tools should be displayed simultaneously in the preview tab`, () => {
|
181
181
|
rulerPage.steps.verifyRulerVisible();
|
182
182
|
protractorPage.steps.verifyProtractorVisibleInPreviewTab();
|
183
183
|
});
|
@@ -12,6 +12,14 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
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 (views.includes('Grading view')) {
|
16
24
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
17
25
|
abortEarlySetup();
|
@@ -50,6 +58,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
50
58
|
|
51
59
|
it('Empty score input field and total score should be displayed', () => {
|
52
60
|
gradingViewPage.steps.verifyGradingViewScore('', 10);
|
61
|
+
cy.eyesCheckWindow('Grading view - Uploaded file and score');
|
53
62
|
});
|
54
63
|
|
55
64
|
it('Accessibility of uploaded file', { tags: 'a11y' }, () => {
|
@@ -58,7 +67,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
58
67
|
|
59
68
|
//Adding skip as this does not work on spinnaker
|
60
69
|
it.skip('On clicking on the file name, user should be able to download the file', () => {
|
61
|
-
|
70
|
+
cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
|
62
71
|
});
|
63
72
|
});
|
64
73
|
}
|
@@ -90,6 +99,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
90
99
|
it('\'This is a manual scored question\' help text should be displayed in the correct answer view', () => {
|
91
100
|
utilities.verifyTextContent(correctAnswerViewPage.manualScoredQuestionHelpText(), 'This is a manual scored question.');
|
92
101
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.manualScoredQuestionHelpText(), 'visible');
|
102
|
+
cy.eyesCheckWindow('Grading view - question instructions and help text');
|
93
103
|
});
|
94
104
|
|
95
105
|
it('The points alloted to the question should be displayed', () => {
|
@@ -14,6 +14,14 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
14
14
|
cy.loginAs('admin');
|
15
15
|
});
|
16
16
|
|
17
|
+
beforeEach(() => {
|
18
|
+
cy.startApplitools();
|
19
|
+
});
|
20
|
+
|
21
|
+
afterEach(() => {
|
22
|
+
cy.eyesClose();
|
23
|
+
});
|
24
|
+
|
17
25
|
views.forEach((view) => {
|
18
26
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
19
27
|
abortEarlySetup();
|
@@ -54,7 +62,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
54
62
|
utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
|
55
63
|
});
|
56
64
|
|
57
|
-
it(
|
65
|
+
it(`${view} - Upload response area should have a Cloud icon and text 'Drag & Drop files here 'or browse files on your device, or capture an image' should be displayed`, () => {
|
58
66
|
utilities.verifyElementVisibilityState(uploadResponsePage.uploadCloudIcon(), 'visible');
|
59
67
|
utilities.verifyInnerText(uploadResponsePage.dragAndDropFilesText(), 'Drag & Drop files here');
|
60
68
|
utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device or capture an image');
|
@@ -82,7 +90,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
82
90
|
uploadResponsePage.steps.verifyUploadedFileLimitCount(0, 3);
|
83
91
|
});
|
84
92
|
|
85
|
-
it(
|
93
|
+
it(`${view} - When user uploads file, then uploaded file name should be displayed and file count should get updated`, () => {
|
86
94
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
87
95
|
uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
|
88
96
|
uploadResponsePage.steps.verifyUploadedFileLimitCount(1, 3);
|
@@ -103,13 +111,14 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
103
111
|
utilities.verifyElementCount(uploadResponsePage.fileName(), 2);
|
104
112
|
});
|
105
113
|
|
106
|
-
it(
|
114
|
+
it(`${view} - When user edits the name of uploaded file, then edited name should be visible`, () => {
|
107
115
|
uploadResponsePage.steps.clickOnEditDisplayTextIcon(0);
|
108
116
|
utilities.verifyElementVisibilityState(uploadResponsePage.dialogBox(), 'exist');
|
109
117
|
uploadResponsePage.steps.enterTextInEditDisplayTextPopupInputField('image.csv');
|
110
118
|
uploadResponsePage.steps.verifyTextInEditDisplayTextPopupInputField('image.csv');
|
111
119
|
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
112
120
|
uploadResponsePage.steps.verifyUploadedFileName(0, 'image.csv');
|
121
|
+
cy.eyesCheckWindow(`${view} - Uploaded file name edited`);
|
113
122
|
});
|
114
123
|
|
115
124
|
it('CSS of Preview tab', { tags: 'css' }, () => {
|
@@ -162,7 +171,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
162
171
|
uploadResponsePage.steps.verifyWarningMessage('The file type is not supported. Please upload files with the following supported formats: CSV, Excel, GIF, JPG, Open Office, PDF, PNG, Powerpoint, Publisher, RTF, TXT, Word, XPS, ZIP.');
|
163
172
|
});
|
164
173
|
|
165
|
-
it(
|
174
|
+
it(`${view} - When user tries to upload files more than the limit, then warning message 'You have reached the maximum number of files that can be uploaded.' should be displayed`, () => {
|
166
175
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
167
176
|
uploadResponsePage.steps.uploadFile('uploads/image.png');
|
168
177
|
uploadResponsePage.steps.verifyWarningMessage('You have reached the maximum number of files that can be uploaded.');
|