itemengine-cypress-automation 1.0.280-applitools-0af112e.0 → 1.0.283-applitools-caab082.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 +0 -4
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +8 -3
- package/cypress/e2e/ILC/AudioResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +1 -3
- package/cypress/e2e/ILC/AudioResponseNew/previewContentsForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/BrainingCampManipulative/previewTabContent.smoke.js +8 -0
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsBar/HorizontalOrientationBarChart/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ChartsBar/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsBar/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ChartsLine/allOrNothingScoringForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/ChartsLine/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/allOrNothingBasicForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/DragAndDropIntoCategoriesNew/previewContentsForAllViews.smoke.js +4 -7
- package/cypress/e2e/ILC/DrawingResponse/drawingResponsePreviewTabContents.smoke.js +0 -19
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/allOrNothingForAllViews.smoke.js +1 -5
- package/cypress/e2e/ILC/FillInTheGapsDragAndDropNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/allOrNothingForAllView.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsDropdownNew/previewContentsForAllViews.smoke.js +4 -6
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/FillInTheGapsOverImageDragAndDrop/previewContentsForAllViews.smoke.js +1 -4
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/allOrNothingForAllView.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageDropdownNew/previewContentsForAllViews.smoke.js +4 -5
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsOverImageTextNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/FillInTheGapsTextNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/FillInTheGapsTextNew/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/Graphing/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/Graphing/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/GridFill/allOrNothingBasicForAllViews.smoke.js +1 -5
- package/cypress/e2e/ILC/GridFill/previewContentsForAllViews.smoke.js +0 -12
- package/cypress/e2e/ILC/ImageHighlight/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/ImageHighlight/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/ListOrderingDropdown/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingDropdown/previewContentsForAllViews.smoke.js +4 -7
- package/cypress/e2e/ILC/ListOrderingNew/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingNew/horizontalOrientationAllOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/horizontalOrientationAllOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/HorizontalOrientation/previewContentsForAllViews.smoke.js +6 -9
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/allOrNothingForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/ListOrderingReorderAsASeperateList/previewContentsForAllViews.smoke.js +6 -9
- package/cypress/e2e/ILC/Matching/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/Matching/previewTabContentsForAllViews.smoke.js +5 -9
- package/cypress/e2e/ILC/MatchingDropdown/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/MatchingDropdown/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/MultipleSelection/allOrNothingBasicForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/MultipleSelection/previewContentsForAllViews.smoke.js +4 -8
- package/cypress/e2e/ILC/MultipleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/MultipleSelectionGridNew/previewContentsForAllViews.smoke.js +2 -6
- package/cypress/e2e/ILC/NumberLine/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/previewTabContentsForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLine/verticalNumberLine/previewTabContentsForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLineLabel/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/NumberLineLabel/verticalNumberLine/allOrNothingForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/ShortTextResponseNew/allOrNothingBasicForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/ShortTextResponseNew/previewContentsForAllViews.smoke.js +5 -7
- package/cypress/e2e/ILC/SingleSelection/allOrNothingBasicForAllViews.smoke.js +0 -1
- package/cypress/e2e/ILC/SingleSelection/previewContents.smoke.js +3 -6
- package/cypress/e2e/ILC/SingleSelectionGridNew/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/SingleSelectionGridNew/previewContentsForAllViews.smoke.js +3 -6
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMath/allOrNothingBasicForAllViewsFormulaTemplate.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMath/previewContentsForAllViews.smoke.js +2 -4
- package/cypress/e2e/ILC/TextEntryMathWithImage/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextEntryMathWithImage/previewTabContentsForAllViews.smoke.js +1 -3
- package/cypress/e2e/ILC/TextSelection/ScoringGeneric/basicScoringForAllTextSelectionTypes.smoke.js +0 -2
- package/cypress/e2e/ILC/TextSelection/allOrNothingScoringForAllViews.smoke.js +0 -3
- package/cypress/e2e/ILC/TextSelection/previewContentsForAllViews.smoke.js +9 -12
- package/cypress/e2e/ILC/ToolAudioPlayerNew/previewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/ToolSettings/toolSettingsPreviewContents.smoke.js +0 -1
- package/cypress/e2e/ILC/UploadResponse/previewContentsForAllViews.smoke.js +0 -4
- package/cypress/e2e/ILC/UploadResponse/thumbNail.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/compactRecorderStyle.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/gradingViewAndCorrectAnswerViewContents.smoke.js +0 -2
- package/cypress/e2e/ILC/VideoResponseNew/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/ILC/chartsDotsPlot/allOrNothingForAllViews.smoke.js +0 -6
- package/cypress/e2e/ILC/chartsDotsPlot/previewContentsForAllViews.smoke.js +0 -2
- package/cypress/e2e/applitools.config.js +14 -0
- package/cypress/support/commands.js +11 -0
- package/cypress/support/e2e.js +1 -0
- package/package.json +4 -1
@@ -66,7 +66,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
66
66
|
utilities.verifyElementVisibilityState(uploadResponsePage.uploadCloudIcon(), 'visible');
|
67
67
|
utilities.verifyInnerText(uploadResponsePage.dragAndDropFilesText(), 'Drag & Drop files here');
|
68
68
|
utilities.verifyTextContent(uploadResponsePage.fileUploadOptionsLabel(), 'or browse files on your device or capture an image');
|
69
|
-
cy.eyesCheckWindow(`${view} - Upload response area`);
|
70
69
|
});
|
71
70
|
|
72
71
|
it('Computer icon should be displayed before link texts \'device\'', () => {
|
@@ -96,7 +95,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
96
95
|
uploadResponsePage.steps.uploadedFileContentsPreviewTab(0, 'highlightImage.jpg');
|
97
96
|
uploadResponsePage.steps.verifyUploadedFileLimitCount(1, 3);
|
98
97
|
utilities.verifyElementCount(uploadResponsePage.fileName(), 1);
|
99
|
-
cy.eyesCheckWindow(`${view} - Uploaded file name displayed and file count updated`);
|
100
98
|
});
|
101
99
|
|
102
100
|
it('When user deletes the uploaded file then uploaded file name, edit icon and delete button should disappear and file limit should be updated accordingly', () => {
|
@@ -172,14 +170,12 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
172
170
|
it(`${view} - When user uploads file type which is not selected from the 'Supported file types' accordion menu, then file upload error message - 'The file type is not supported. Please upload files with the following supported formats: *file format separated by commas*' should be displayed`, () => {
|
173
171
|
uploadResponsePage.steps.uploadFile('uploads/sample.heif');
|
174
172
|
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.');
|
175
|
-
cy.eyesCheckWindow(`${view} - Unsupported file type error message`);
|
176
173
|
});
|
177
174
|
|
178
175
|
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`, () => {
|
179
176
|
uploadResponsePage.steps.uploadFile('uploads/highlightImage.jpg');
|
180
177
|
uploadResponsePage.steps.uploadFile('uploads/image.png');
|
181
178
|
uploadResponsePage.steps.verifyWarningMessage('You have reached the maximum number of files that can be uploaded.');
|
182
|
-
cy.eyesCheckWindow(`${view} - File upload limit warning message`);
|
183
179
|
});
|
184
180
|
|
185
181
|
if (view != 'Question preview') {
|
@@ -113,7 +113,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
113
113
|
uploadResponsePage.steps.uploadFile(`uploads/${filename[number]}`);
|
114
114
|
uploadResponsePage.steps.verifyThumbNailExistOrNotExist(filename[number], fileThumbNail[number]);
|
115
115
|
}
|
116
|
-
cy.eyesCheckWindow(`${view} - Uploaded different file types`);
|
117
116
|
});
|
118
117
|
|
119
118
|
it(`${view} - 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`, () => {
|
@@ -127,7 +126,6 @@ describe('Create item page - Upload response : Preview contents', () => {
|
|
127
126
|
uploadResponsePage.unSupportedFileInfoIcon()
|
128
127
|
.verifyTooltip('The image format (HEIC/HEIF) is not supported on your current device or operating system version. Please click the link to download and view the image.');
|
129
128
|
}
|
130
|
-
cy.eyesCheckWindow(`${view} - Uploaded heic and file types`);
|
131
129
|
});
|
132
130
|
});
|
133
131
|
});
|
@@ -157,7 +157,6 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
157
157
|
videoResponsePage.steps.verifyRecordingStatusCompactPreview('Recording...');
|
158
158
|
videoResponsePage.steps.addWaitToRecord(1000);
|
159
159
|
videoResponsePage.steps.verifyRecordingLengthAfterResumingCompactPreview();
|
160
|
-
cy.eyesCheckWindow(`Video response : 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`);
|
161
160
|
});
|
162
161
|
|
163
162
|
it('When the recording is inprogress and user clicks on \'Stop\' button, recording should stop. The recording should get saved and recorded video, progress bar, volume control, playback speed buttons should be displayed. Playback time of the recorded video should be displayed as \'(min:secs / min:sec)\'. Stop button should get replaced with Retake button and Play button should be displayed.', () => {
|
@@ -219,7 +218,6 @@ describe('Preview of Video response for compact recorder style', () => {
|
|
219
218
|
utilities.verifyElementVisibilityState(videoResponsePage.stopRecordingButtonCompactPreview(), 'notExist');
|
220
219
|
utilities.verifyElementVisibilityState(videoResponsePage.retakeButtonCompactPreview(), 'visible');
|
221
220
|
utilities.verifyElementVisibilityState(videoResponsePage.playPlaybackButtonCompactPreview(), 'visible');
|
222
|
-
cy.eyesCheckWindow(`Video response : Recording should stop at maximum recording duration and Stop button should get replaced with Retake button`);
|
223
221
|
});
|
224
222
|
|
225
223
|
it('When the user updates maximum recorder length the recording should stop at the updated recorder length', () => {
|
@@ -69,7 +69,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
69
69
|
videoResponsePage.steps.verifyVideoPlaybackTimer('0:05', '0:12');
|
70
70
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPlayButton(), 'visible');
|
71
71
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
|
72
|
-
cy.eyesCheckWindow(`Video response : Grading view - Verify progress bar and timer stop, and Pause button is replaced with Play button`);
|
73
72
|
});
|
74
73
|
|
75
74
|
it('When the user seeks the progress bar slider while the video is playing, then the video should continue to play from the position where the slider is seeked', () => {
|
@@ -133,7 +132,6 @@ describe('Create item page - Video response: Grading view, Correct answer view c
|
|
133
132
|
|
134
133
|
it('Video response : A download button should be displayed in the playback player', () => {
|
135
134
|
utilities.verifyElementVisibilityState(videoResponsePage.downloadVideoButton(), 'visible');
|
136
|
-
cy.eyesCheckWindow(`Video response: Grading view - Verify download button is displayed in the playback player.`);
|
137
135
|
});
|
138
136
|
|
139
137
|
it('Empty score input field and total score should be displayed', () => {
|
@@ -69,7 +69,6 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
69
69
|
|
70
70
|
it(`${view} view - Video response: When the user has not started recording, a status message: \'Allow camera and microphone access.\' along with a microphone icon should be displayed on the recording interface`, () => {
|
71
71
|
videoResponsePage.steps.verifyRecordingStatus('Allow camera and microphone access.');
|
72
|
-
cy.eyesCheckWindow(`${view} view - Video response: Status message: Allow camera and microphone access. and microphone icon should be displayed`);
|
73
72
|
});
|
74
73
|
|
75
74
|
//Note: Add "Blur background" and "Mirror video" assertions when made available
|
@@ -196,7 +195,6 @@ describe('Create item page - Video response: Preview contents', () => {
|
|
196
195
|
videoResponsePage.steps.pauseAndVerifyProgressBarSliderPosition();
|
197
196
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPlayButton(), 'visible');
|
198
197
|
utilities.verifyElementVisibilityState(videoResponsePage.playbackPauseButton(), 'notExist');
|
199
|
-
cy.eyesCheckWindow(`${view} view - Video response: Playback state`);
|
200
198
|
});
|
201
199
|
|
202
200
|
it('When the user seeks the progress bar slider while the video is playing, then the video should continue to play from the position where the slider is seeked', () => {
|
@@ -147,7 +147,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
147
147
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
148
148
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
149
149
|
chartsDotPlotPage.steps.verifyCorrectIncorrectStatusMessageNotExists();
|
150
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Without attempting the question`);
|
151
150
|
});
|
152
151
|
|
153
152
|
it(`${view} - Charts Dot - When the user attempts the question incorrectly then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
|
@@ -209,7 +208,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
209
208
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
210
209
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
211
210
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
212
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding more dots than required in the dot columns having dots by default`);
|
213
211
|
});
|
214
212
|
|
215
213
|
it(`${view} - Charts Dot - When the user attempts the question by setting fewer dots than required in the dot columns having dots by default, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
|
@@ -242,7 +240,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
242
240
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
243
241
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
244
242
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
245
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by setting fewer dots than required in the dot columns having dots by default`);
|
246
243
|
});
|
247
244
|
|
248
245
|
it(`${view} - Charts Dot - When the user attempts the question by removing all the dots to dot column that is not supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
|
@@ -275,7 +272,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
275
272
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
276
273
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
277
274
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
278
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by removing all the dots to dot column that is not supposed to be empty`);
|
279
275
|
});
|
280
276
|
|
281
277
|
it(`${view} - Charts Dot - When the user attempts the question by adding dots to the dot columns that is supposed to be empty, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the attempted dot column should be displayed incorrect and the correct answer should be displayed in the correct answer section number line axis`, () => {
|
@@ -308,7 +304,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
308
304
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
309
305
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
310
306
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
311
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by adding dots to the dot columns that is supposed to be empty`);
|
312
307
|
});
|
313
308
|
|
314
309
|
it(`${view} - Charts Dot - When the user attempts the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly, then the user should be awarded with 0 points and on switching to grading view \'Your answer is incorrect\' should be displayed and the incorrectly attempted dot column should be displayed incorrect, correctly attempted dot column should be displayed correct, and the correct answer should be displayed in the correct answer section number line axis`, () => {
|
@@ -342,7 +337,6 @@ describe('Create Item page - Charts - Dot: All or nothing ', () => {
|
|
342
337
|
chartsDotPlotPage.steps.verifyCorrectDotColumnCorrectAnswerSection({ point: 5, min: 1, interval: 1 });
|
343
338
|
chartsDotPlotPage.steps.verifyEmptyDotColumnCorrectAnswerSection({ point: 6, min: 1, interval: 1 });
|
344
339
|
chartsDotPlotPage.steps.verifyCorrectIncorrectAnswerLabel('incorrect');
|
345
|
-
cy.eyesCheckWindow(`${view} view - Charts Dot - Attempting the question by changing number of dots in the dot columns which have the correct number of dots by default and setting a dot column correctly`);
|
346
340
|
});
|
347
341
|
|
348
342
|
it(`${view} - Charts Dot - When the user attempts the question correctly, the user should be awarded with full points and on switching to grading view, \'Your answer is correct\' should be displayed and correct answer section should not be displayed`, () => {
|
@@ -83,13 +83,11 @@ describe('Create item page: Charts - Dot - Preview contents in all views', () =>
|
|
83
83
|
utilities.verifyElementVisibilityState(chartsDotPlotPage.numberLineAxisPreviewTab(), 'exist');
|
84
84
|
chartsDotPlotPage.steps.verifyDivisionsOnNumberLineAxisPreviewTab({ min: 1, max: 6, interval: 0.25 });
|
85
85
|
chartsDotPlotPage.steps.verifyLabelsOnNumberLineAxisPreviewTab(1, 6, 4);
|
86
|
-
cy.eyesCheckWindow(`${view}- Charts Dot - Charts Dot: Question instructions, Graph title, X axis label and line divisions`);
|
87
86
|
});
|
88
87
|
|
89
88
|
it(`${view} - Charts Dot - User should be able to edit the X axis labels in preview tab`, () => {
|
90
89
|
chartsDotPlotPage.steps.editXAxisLabelInPreviewTab('Numbers of days');
|
91
90
|
utilities.verifyInnerText(chartsDotPlotPage.previewTabXAxisLabelButton(), 'Numbers of days');
|
92
|
-
cy.eyesCheckWindow(`${view} - Charts Dot: After Editing X axis label`);
|
93
91
|
});
|
94
92
|
|
95
93
|
it('When user hovers over dot column then it should be displayed in interactive state and tooltip with add and minus button should be displayed', () => {
|
@@ -0,0 +1,14 @@
|
|
1
|
+
module.exports = {
|
2
|
+
apiKey: 'XkObRjxHCyNlYPTHm1VLxIKoCXxY1111nW2RQr5IaUHHk110',
|
3
|
+
serverUrl: 'https://eyes.applitools.com',
|
4
|
+
browser: [
|
5
|
+
{ width: 1366, height: 609, name: 'chrome' },
|
6
|
+
{ width: 1280, height: 832, name: 'edgechromium' },
|
7
|
+
{ width: 1536, height: 960, name: 'safari' },
|
8
|
+
{ width: 1024, height: 1366, name: 'safari' }
|
9
|
+
],
|
10
|
+
//Configuration options: https://applitools.com/tutorials/sdks/cypress/configuration
|
11
|
+
ignoreDisplacements: true, // Set to false to detect mismatches in the displacements of the elements
|
12
|
+
failCypressOnDiff: false, // Set to true to fail the test when differences are detected
|
13
|
+
isDisabled: false // Set to true to disable Applitools
|
14
|
+
};
|
@@ -5,6 +5,7 @@ import 'cypress-file-upload';
|
|
5
5
|
import { iePage } from './migrationHelpers/verifyIeQuestionData';
|
6
6
|
import { lrnPage } from './migrationHelpers/extractLrnQuestionData';
|
7
7
|
require('cy-verify-downloads').addCustomCommand();
|
8
|
+
import { apiKey, browser, serverUrl } from '../e2e/applitools.config';
|
8
9
|
//import addContext from "mochawesome/addContext";
|
9
10
|
|
10
11
|
const randomUser = (j, username, i) => ({
|
@@ -154,6 +155,16 @@ Cypress.Commands.add('learnosityLoaderWait', () => {
|
|
154
155
|
.should('be.visible');
|
155
156
|
});
|
156
157
|
|
158
|
+
Cypress.Commands.add('startApplitools', () => {
|
159
|
+
cy.eyesOpen({
|
160
|
+
apiKey,
|
161
|
+
serverUrl,
|
162
|
+
browser,
|
163
|
+
appName: 'Applitools Demo - ILC',
|
164
|
+
testName: Cypress.currentTest.title,
|
165
|
+
});
|
166
|
+
});
|
167
|
+
|
157
168
|
Cypress.Commands.add('lazyLoadPreviewQuestions', (count, retries = 5) => {
|
158
169
|
iePage.questionAndResourceWrapper()
|
159
170
|
.then((elements) => {
|
package/cypress/support/e2e.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.283-applitools-caab082.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,5 +35,8 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0",
|
37
37
|
"typescript": "^5.6.3"
|
38
|
+
},
|
39
|
+
"devDependencies": {
|
40
|
+
"@applitools/eyes-cypress": "^3.47.0"
|
38
41
|
}
|
39
42
|
}
|