itemengine-cypress-automation 1.0.295-applitools-78e9d04.0 → 1.0.295-e2e6thFebFixes-348b431.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 +2 -12
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/gradingViewAndCorrectAnswerView.smoke.js +1 -1
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsBar/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/ChartsLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/studentViewSettingsForGroupedLayout.js +4 -0
- package/cypress/e2e/ILC/DrawingResponse/drawingResponseGradingViewAndCorrectAnswerViewContents.smoke.js +2 -12
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +21 -19
- package/cypress/e2e/ILC/EditItem/editItem.ts +7 -7
- package/cypress/e2e/ILC/EssayResponse/equationEditor.smoke.js +0 -8
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +1 -11
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/editQuestion.smoke.js +2 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +1 -10
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/Graphing/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +1 -9
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +5 -15
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +4 -4
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingNew/HorizontalOrientation/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +5 -6
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +3 -3
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +10 -19
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +2 -11
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +4 -14
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -12
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +5 -5
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/gradingViewAndCorrectAnswerView.smoke.js +2 -3
- 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 +0 -10
- package/cypress/e2e/ILC/NumberLineLabel/previewContentsForAllViews.smoke.js +1 -10
- 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 +3 -12
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +6 -5
- package/cypress/e2e/ILC/SimpleCalculator/previewContents.smoke.js +1 -1
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +3 -12
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +1 -10
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +5 -14
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +1 -10
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +14 -23
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +6 -5
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +17 -17
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +5 -13
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +4 -4
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +6 -16
- 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 +1 -11
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +4 -13
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +6 -16
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +3 -3
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +4 -14
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +3 -12
- 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 +4 -13
- package/cypress/pages/components/autoScoredScoringPreviewTab.js +1 -0
- package/cypress/pages/components/equationEditorSectionCommonComponent.js +1 -3
- package/cypress/pages/components/gridQuestionCommonComponent.js +39 -1
- package/cypress/pages/components/optionsWrapperComponent.js +0 -3
- package/cypress/pages/createItemPage.js +2 -2
- package/cypress/pages/multipleSelectionPage.js +39 -1
- package/cypress/pages/singleSelectionPage.js +39 -1
- package/cypress/support/commands.js +0 -11
- package/cypress/support/e2e.js +0 -1
- package/package.json +1 -4
- package/cypress/e2e/applitools.config.js +0 -14
@@ -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(0, '12');
|
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('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('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(0, '13');
|
146
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
|
147
147
|
equationEditorFlyout.steps.clickOnOkButton();
|
148
148
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
149
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
|
149
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
|
150
150
|
equationEditorFlyout.steps.clickOnOkButton();
|
151
151
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(2);
|
152
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(2, '15');
|
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('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(0, '12');
|
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(2, '13');
|
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('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', () => {
|
207
207
|
if (view === 'Grading view') {
|
208
208
|
studentViewPage.steps.clearResponses();
|
209
209
|
}
|
210
210
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
211
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
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('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(0, '12');
|
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(0, '13');
|
305
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
|
306
306
|
equationEditorFlyout.steps.clickOnOkButton();
|
307
307
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
308
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '13');
|
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(0, '13');
|
328
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 0, '13');
|
329
329
|
equationEditorFlyout.steps.clickOnOkButton();
|
330
330
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
331
|
-
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(1, '14');
|
331
|
+
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField( 1, '14');
|
332
332
|
equationEditorFlyout.steps.clickOnOkButton();
|
333
333
|
textEntryMathWithImagePage.steps.verifyPreviewScore(2, 20);
|
334
334
|
});
|
@@ -12,14 +12,6 @@ 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
|
-
|
23
15
|
views.forEach((view) => {
|
24
16
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -84,6 +76,7 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
84
76
|
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.questionInstructionsText(), 'visible');
|
85
77
|
});
|
86
78
|
|
79
|
+
|
87
80
|
it('The text area should be displayed on the image canvas', () => {
|
88
81
|
textEntryMathWithImagePage.steps.verifyTextInTextAreaPreviewTab('This is a text area');
|
89
82
|
});
|
@@ -93,13 +86,13 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
93
86
|
});
|
94
87
|
|
95
88
|
if (view !== 'Grading view' && view !== 'Correct answer view') {
|
96
|
-
it(`
|
89
|
+
it(`The two empty response fields should be disabled ${view}`, () => {
|
97
90
|
utilities.verifyTextContent(textEntryMathWithImagePage.responseFieldPreviewTab(), '')
|
98
91
|
utilities.verifyElementVisibilityState(textEntryMathWithImagePage.responseFieldPreviewTab(), 'visible');
|
99
92
|
utilities.verifyElementCount(textEntryMathWithImagePage.responseFieldPreviewTab(), '2');
|
100
93
|
});
|
101
94
|
|
102
|
-
it(`
|
95
|
+
it(`User should able to enter answers in the response fields for ${view}`, () => {
|
103
96
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
104
97
|
textEntryMathWithImagePage.steps.enterTextInResponsePreviewInputField(0, '12');
|
105
98
|
equationEditorFlyout.steps.clickOnOkButton();
|
@@ -107,17 +100,16 @@ describe('Create item page - Text entry math: Preview contents', () => {
|
|
107
100
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(1);
|
108
101
|
equationEditorFlyout.steps.enterQuadraticEquation();
|
109
102
|
textEntryMathWithImagePage.steps.verifyResponseAreaContainsTextPreviewTab(1, '2x2y2+4xy+4');
|
110
|
-
cy.eyesCheckWindow(`TEM Image ${view} Verify response fields with answers`);
|
111
103
|
});
|
112
104
|
} else if (view === 'Grading view') {
|
113
|
-
it(`
|
105
|
+
it(`The response fields should be filled with the submitted responses and user should not be able to edit them`, () => {
|
114
106
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
|
115
107
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
116
108
|
textEntryMathWithImagePage.steps.focusInResponseAnswerInputFieldPreviewTab(0);
|
117
109
|
utilities.verifyElementVisibilityState(equationEditorFlyout.dialogBox(), 'notExist');
|
118
110
|
});
|
119
111
|
} else {
|
120
|
-
it(`
|
112
|
+
it(`The response input fields should be displayed filled with correct answers`, () => {
|
121
113
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(0, '12');
|
122
114
|
textEntryMathWithImagePage.steps.verifyResponseAreaTextContentPreviewTab(1, '2x2y2+4xy+4');
|
123
115
|
});
|
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('
|
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', () => {
|
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('
|
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', () => {
|
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('
|
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', () => {
|
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('
|
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', () => {
|
312
312
|
textSelectionPage.steps.resetQuestionPreview();
|
313
313
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[0]);
|
314
314
|
textSelectionPage.steps.selectOptionInPreviewTab(sentenceTextArray[1]);
|
@@ -57,15 +57,6 @@ 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
|
-
|
69
60
|
before(() => {
|
70
61
|
switch (view) {
|
71
62
|
case 'Question preview':
|
@@ -121,7 +112,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
121
112
|
});
|
122
113
|
};
|
123
114
|
|
124
|
-
it(
|
115
|
+
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', () => {
|
125
116
|
if (view === 'Grading view') {
|
126
117
|
studentViewPage.steps.submitResponse();
|
127
118
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'visible');
|
@@ -140,8 +131,8 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
140
131
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[0]);
|
141
132
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
142
133
|
});
|
143
|
-
|
144
|
-
it(
|
134
|
+
|
135
|
+
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', () => {
|
145
136
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[2]);
|
146
137
|
textSelectionPage.steps.selectOptionInPreviewTab(paragraphTextArray[3]);
|
147
138
|
if (view === 'Grading view') {
|
@@ -163,7 +154,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
163
154
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
164
155
|
});
|
165
156
|
|
166
|
-
it(
|
157
|
+
it('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', () => {
|
167
158
|
if (view === 'Grading view') {
|
168
159
|
studentViewPage.steps.clearResponses();
|
169
160
|
};
|
@@ -187,7 +178,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
187
178
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
188
179
|
});
|
189
180
|
|
190
|
-
it(
|
181
|
+
it('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', () => {
|
191
182
|
if (view === 'Grading view') {
|
192
183
|
studentViewPage.steps.clearResponses();
|
193
184
|
};
|
@@ -212,7 +203,7 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
212
203
|
textSelectionPage.steps.verifyCorrectIconForOptionCorrectAnswerSection(paragraphTextArray[1]);
|
213
204
|
});
|
214
205
|
|
215
|
-
it(
|
206
|
+
it('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', () => {
|
216
207
|
if (view === 'Grading view') {
|
217
208
|
studentViewPage.steps.clearResponses();
|
218
209
|
};
|
@@ -234,7 +225,6 @@ describe('Create item page - Text selection: All or nothing ', () => {
|
|
234
225
|
textSelectionPage.steps.verifyOptionIsNotSelectedInPreviewTab(paragraphTextArray[3]);
|
235
226
|
textSelectionPage.steps.verifyCorrectIncorrectAnswerLabel('correct');
|
236
227
|
utilities.verifyElementVisibilityState(textSelectionPage.correctAnswerSection(), 'notExist');
|
237
|
-
cy.eyesCheckWindow(`Text selection - ${view} - Correct attempt`);
|
238
228
|
});
|
239
229
|
});
|
240
230
|
});
|
@@ -82,12 +82,12 @@ describe('Create item page - Text selection : Preview contents', () => {
|
|
82
82
|
});
|
83
83
|
});
|
84
84
|
|
85
|
-
it(
|
85
|
+
it('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('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('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('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 short text 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, 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, both tools should be displayed simultaneously in the preview tab', () => {
|
181
181
|
rulerPage.steps.verifyRulerVisible();
|
182
182
|
protractorPage.steps.verifyProtractorVisibleInPreviewTab();
|
183
183
|
});
|
@@ -12,14 +12,6 @@ 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
|
-
|
23
15
|
if (views.includes('Grading view')) {
|
24
16
|
describe('Grading view contents', { tags: 'smoke' }, () => {
|
25
17
|
abortEarlySetup();
|
@@ -58,7 +50,6 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
58
50
|
|
59
51
|
it('Empty score input field and total score should be displayed', () => {
|
60
52
|
gradingViewPage.steps.verifyGradingViewScore('', 10);
|
61
|
-
cy.eyesCheckWindow('Grading view - Uploaded file and score');
|
62
53
|
});
|
63
54
|
|
64
55
|
it('Accessibility of uploaded file', { tags: 'a11y' }, () => {
|
@@ -67,7 +58,7 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
67
58
|
|
68
59
|
//Adding skip as this does not work on spinnaker
|
69
60
|
it.skip('On clicking on the file name, user should be able to download the file', () => {
|
70
|
-
|
61
|
+
cy.verifyUploadFilePreviewDownload('highlightImage.jpg');
|
71
62
|
});
|
72
63
|
});
|
73
64
|
}
|
@@ -99,7 +90,6 @@ describe('Create item page - Upload response: Grading view, Correct answer view
|
|
99
90
|
it('\'This is a manual scored question\' help text should be displayed in the correct answer view', () => {
|
100
91
|
utilities.verifyTextContent(correctAnswerViewPage.manualScoredQuestionHelpText(), 'This is a manual scored question.');
|
101
92
|
utilities.verifyElementVisibilityState(correctAnswerViewPage.manualScoredQuestionHelpText(), 'visible');
|
102
|
-
cy.eyesCheckWindow('Grading view - question instructions and help text');
|
103
93
|
});
|
104
94
|
|
105
95
|
it('The points alloted to the question should be displayed', () => {
|
@@ -14,14 +14,6 @@ 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
|
-
|
25
17
|
views.forEach((view) => {
|
26
18
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
27
19
|
abortEarlySetup();
|
@@ -62,7 +54,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
62
54
|
utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
|
63
55
|
});
|
64
56
|
|
65
|
-
it(
|
57
|
+
it('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', () => {
|
66
58
|
utilities.verifyElementVisibilityState(uploadResponsePage.uploadCloudIcon(), 'visible');
|
67
59
|
utilities.verifyInnerText(uploadResponsePage.dragAndDropFilesText(), 'Drag & Drop files here');
|
68
60
|
utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device or capture an image');
|
@@ -90,7 +82,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
90
82
|
uploadResponsePage.steps.verifyUploadedFileLimitCount(0, 3);
|
91
83
|
});
|
92
84
|
|
93
|
-
it(
|
85
|
+
it('When user uploads file, then uploaded file name should be displayed and file count should get updated', () => {
|
94
86
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
95
87
|
uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
|
96
88
|
uploadResponsePage.steps.verifyUploadedFileLimitCount(1, 3);
|
@@ -111,14 +103,13 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
111
103
|
utilities.verifyElementCount(uploadResponsePage.fileName(), 2);
|
112
104
|
});
|
113
105
|
|
114
|
-
it(
|
106
|
+
it('When user edits the name of uploaded file, then edited name should be visible', () => {
|
115
107
|
uploadResponsePage.steps.clickOnEditDisplayTextIcon(0);
|
116
108
|
utilities.verifyElementVisibilityState(uploadResponsePage.dialogBox(), 'exist');
|
117
109
|
uploadResponsePage.steps.enterTextInEditDisplayTextPopupInputField('image.csv');
|
118
110
|
uploadResponsePage.steps.verifyTextInEditDisplayTextPopupInputField('image.csv');
|
119
111
|
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
120
112
|
uploadResponsePage.steps.verifyUploadedFileName(0, 'image.csv');
|
121
|
-
cy.eyesCheckWindow(`${view} - Uploaded file name edited`);
|
122
113
|
});
|
123
114
|
|
124
115
|
it('CSS of Preview tab', { tags: 'css' }, () => {
|
@@ -171,7 +162,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
171
162
|
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.');
|
172
163
|
});
|
173
164
|
|
174
|
-
it(
|
165
|
+
it('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', () => {
|
175
166
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
176
167
|
uploadResponsePage.steps.uploadFile('uploads/image.png');
|
177
168
|
uploadResponsePage.steps.verifyWarningMessage('You have reached the maximum number of files that can be uploaded.');
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { uploadResponsePage, itemPreviewPage
|
1
|
+
import { uploadResponsePage, itemPreviewPage} from "../../../pages";
|
2
2
|
import abortEarlySetup from "../../../support/helpers/abortEarly";
|
3
3
|
import utilities from "../../../support/helpers/utilities";
|
4
4
|
const css = Cypress.env('css');
|
@@ -13,14 +13,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
13
13
|
cy.loginAs('admin');
|
14
14
|
});
|
15
15
|
|
16
|
-
beforeEach(() => {
|
17
|
-
cy.startApplitools();
|
18
|
-
});
|
19
|
-
|
20
|
-
afterEach(() => {
|
21
|
-
cy.eyesClose();
|
22
|
-
});
|
23
|
-
|
24
16
|
views.forEach((view) => {
|
25
17
|
describe(`Preview tab contents - ${view}`, { tags: 'smoke' }, () => {
|
26
18
|
abortEarlySetup();
|
@@ -64,12 +56,12 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
64
56
|
utilities.verifyElementVisibilityState(uploadResponsePage.questionInstructionsText(), 'visible');
|
65
57
|
});
|
66
58
|
|
67
|
-
it(
|
59
|
+
it('When user uploads file, then uploaded file name should be displayed, file count should get updated and thumb nail of the image should be visible', () => {
|
68
60
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
69
61
|
uploadResponsePage.steps.verifyThumbNailExistOrNotExist('highlightImage.jpg', 'visible');
|
70
62
|
});
|
71
63
|
|
72
|
-
it(
|
64
|
+
it('CSS of Thumb nail and File name in preview tab', { tags: 'css' }, () => {
|
73
65
|
utilities.verifyCSS(uploadResponsePage.imageThumbNail(), {
|
74
66
|
'box-sizing': 'border-box',
|
75
67
|
'min-height': 'auto',
|
@@ -87,11 +79,9 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
87
79
|
cy.checkAccessibility(uploadResponsePage.questionWrapperPreviewTab());
|
88
80
|
});
|
89
81
|
|
90
|
-
it(
|
91
|
-
utilities.verifyElementCount(uploadResponsePage.imageThumbNail(), 2);
|
82
|
+
it('When user clicks on the thumbnail then popup should open, and on clicking the close button the popup should close and the uploaded files should be displayed', () => {
|
92
83
|
uploadResponsePage.steps.clickOnImageThumbNail();
|
93
84
|
uploadResponsePage.steps.verifyImagePopUpDetail();
|
94
|
-
cy.eyesCheckWindow(`${view} - Thumbnail popup`);
|
95
85
|
uploadResponsePage.steps.closeImagePopup();
|
96
86
|
uploadResponsePage.steps.verifyThumbNailExistOrNotExist('highlightImage.jpg', 'visible');
|
97
87
|
utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
|
@@ -105,7 +95,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
105
95
|
utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
|
106
96
|
});
|
107
97
|
|
108
|
-
it(
|
98
|
+
it('When user uploads different file types then only image files should be displayed with thumbnail', () => {
|
109
99
|
for (let number = 0; number < 13; number++) {
|
110
100
|
uploadResponsePage.steps.deleteFile();
|
111
101
|
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
@@ -114,7 +104,7 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
114
104
|
}
|
115
105
|
});
|
116
106
|
|
117
|
-
it(
|
107
|
+
it('When user uploads a file in .heif or .heic format then and info icon with tool tip should be present and image thumb nail should not be present', () => {
|
118
108
|
for (let number = 13; number < 15; number++) {
|
119
109
|
uploadResponsePage.steps.deleteFile();
|
120
110
|
uploadResponsePage.steps.clickAcceptButtonInPopup();
|
@@ -19,7 +19,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
19
19
|
videoResponsePage.steps.switchToPreviewTab();
|
20
20
|
});
|
21
21
|
|
22
|
-
it(
|
22
|
+
it('If user selects \'Compact\' option from \'video recorder style\' toggle buttons, then \'Record\' button and \'Click the button to start recording...\' help text should be displayed in the preview tab', () => {
|
23
23
|
utilities.verifyElementVisibilityState(videoResponsePage.recordButtonCompactPreview(), 'visible');
|
24
24
|
utilities.verifyInnerText(videoResponsePage.recordButtonCompactPreview(), 'Record');
|
25
25
|
utilities.verifyInnerText(videoResponsePage.recordingHelpTextCompactPreview(), 'Click the button to start recording...');
|
@@ -139,7 +139,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
139
139
|
cy.checkAccessibility(videoResponsePage.previewTabQuestionWrapper());
|
140
140
|
});
|
141
141
|
|
142
|
-
it(
|
142
|
+
it('When the recorder is in paused state and the user clicks on the \'Resume recording\' button the recording should get resumed from where it was paused. Resume recording button should update to Pause button and the help text should update to "Recording...". Resume icon button should get replaced with Pause icon button in the flyout, user should be able to view the duration of their recorded video in minutes, displayed as \'(min:secs / min:sec)\'. Stop button should be displayed in preview tab.', () => {
|
143
143
|
videoResponsePage.steps.resumeRecordingCompactPreview();
|
144
144
|
utilities.verifyElementVisibilityState(videoResponsePage.resumeRecordingButtonCompactPreview(), 'notExist');
|
145
145
|
utilities.verifyElementVisibilityState(videoResponsePage.pauseRecordingButtonCompactPreview(), 'visible');
|
@@ -196,7 +196,7 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
196
196
|
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'visible');
|
197
197
|
});
|
198
198
|
|
199
|
-
it(
|
199
|
+
it('When recording is inprogress, recording should stop at maximum recording duration and \'Stop\' button should get replaced with Retake button. Playback button should be displayed in enabled state.', () => {
|
200
200
|
cy.log('Pre-step: Switch to edit tab and set maximum recording duration to 10 secs')
|
201
201
|
videoResponsePage.steps.switchToEditTab();
|
202
202
|
videoResponsePage.steps.setMaximumRecordingDuration(40);
|