itemengine-cypress-automation 1.0.131-updateILCrepo6March-02c78d1.0 → 1.0.131
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 +2 -4
- package/cypress/e2e/ILC/AudioResponseNew/compactRecorderStyle.smoke.js +2 -4
- package/cypress/e2e/ILC/AudioResponseNew/standardRecorderStyle.smoke.js +3 -7
- package/cypress/e2e/ILC/EssayResponse/essayResponseCustomizeFormattingOptions1.smoke.js +2 -0
- package/cypress/pages/audioResponsePage.js +1 -1
- package/package.json +2 -2
@@ -386,7 +386,6 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
386
386
|
|
387
387
|
it('When the user seeks the progress bar slider while the audio is playing, then the audio should continue to play from the position where the slider is seeked', () => {
|
388
388
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
389
|
-
audioResponsePage.steps.addWaitToPlayAudio(1000);
|
390
389
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
391
390
|
});
|
392
391
|
|
@@ -394,12 +393,11 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
394
393
|
audioResponsePage.steps.pausePlayback();
|
395
394
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
396
395
|
audioResponsePage.steps.startPlayback();
|
397
|
-
audioResponsePage.steps.addWaitToPlayAudio(5000);
|
398
396
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
399
397
|
});
|
400
398
|
|
401
399
|
it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
|
402
|
-
audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:
|
400
|
+
audioResponsePage.steps.verifyPlaybackTimeBarPreview('00:10', '00:10');
|
403
401
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
404
402
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
|
405
403
|
audioResponsePage.steps.verifyProgressBarSliderPosition(99);
|
@@ -484,7 +482,7 @@ describe('Preview of Audio response for bar audio recorder style', () => {
|
|
484
482
|
it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin', () => {
|
485
483
|
audioResponsePage.steps.retakeRecordingBarPreview();
|
486
484
|
audioResponsePage.steps.confirmRetake();
|
487
|
-
audioResponsePage.steps.verifyRecordingTimeBarPreview('00:
|
485
|
+
audioResponsePage.steps.verifyRecordingTimeBarPreview('00:05', '00:10');
|
488
486
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
489
487
|
utilities.verifyInnerText(audioResponsePage.recordingStatusText(), 'Recording...');
|
490
488
|
});
|
@@ -219,6 +219,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
219
219
|
audioResponsePage.steps.switchToEditTab();
|
220
220
|
audioResponsePage.steps.setMaximumRecorderLength(5);
|
221
221
|
audioResponsePage.steps.switchToPreviewTab();
|
222
|
+
audioResponsePage.steps.startRecordingCompactPreview();
|
222
223
|
audioResponsePage.steps.waitForRecordingToStartCompactPreview();
|
223
224
|
cy.log('Starting a recording and letting it record until Maximum recording length is reached');
|
224
225
|
audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
@@ -376,7 +377,6 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
376
377
|
|
377
378
|
it('When the user seeks the progress bar slider while the audio is playing, then the audio should continue to play from the position where the slider is seeked', () => {
|
378
379
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
379
|
-
audioResponsePage.steps.addWaitToPlayAudio(1000);
|
380
380
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
381
381
|
});
|
382
382
|
|
@@ -384,7 +384,6 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
384
384
|
audioResponsePage.steps.pausePlaybackCompactPreview();
|
385
385
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
386
386
|
audioResponsePage.steps.startPlaybackCompactPreview();
|
387
|
-
audioResponsePage.steps.addWaitToPlayAudio(5000);
|
388
387
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
389
388
|
});
|
390
389
|
|
@@ -450,7 +449,6 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
450
449
|
audioResponsePage.steps.navigateToCreateQuestion('audio response');
|
451
450
|
cy.barsPreLoaderWait();
|
452
451
|
audioResponsePage.steps.selectAudioRecorderStyle('Compact');
|
453
|
-
audioResponsePage.steps.setMaximumRecorderLength(10);
|
454
452
|
audioResponsePage.steps.switchToPreviewTab();
|
455
453
|
audioResponsePage.steps.recordAndSaveAudioCompactPreview(10000);
|
456
454
|
});
|
@@ -475,7 +473,7 @@ describe('Preview of Audio response for compact audio recorder style', () => {
|
|
475
473
|
it('When the user clicks on Confirm button of the retake popup, the previous recording should get deleted and a new recording should begin', () => {
|
476
474
|
audioResponsePage.steps.retakeRecordingCompactPreview();
|
477
475
|
audioResponsePage.steps.confirmRetake();
|
478
|
-
audioResponsePage.steps.verifyRecordingTimeCompactPreview('00:
|
476
|
+
audioResponsePage.steps.verifyRecordingTimeCompactPreview('00:04', '15:00');
|
479
477
|
utilities.verifyElementVisibilityState(dialogBoxBase.dialogBox(), 'notExist');
|
480
478
|
utilities.verifyInnerText(audioResponsePage.compactPreviewRecordingStatusText(), 'Recording...');
|
481
479
|
});
|
@@ -84,7 +84,7 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
84
84
|
audioResponsePage.steps.resetQuestionPreview();
|
85
85
|
audioResponsePage.steps.startRecordingStandardPreview();
|
86
86
|
audioResponsePage.steps.waitForRecordingToStartStandardPreview();
|
87
|
-
utilities.verifyCSS(audioResponsePage.recordingMicIcon()
|
87
|
+
utilities.verifyCSS(audioResponsePage.recordingMicIcon(), {
|
88
88
|
'fill': css.color.microphoneIcon
|
89
89
|
});
|
90
90
|
utilities.verifyCSS(audioResponsePage.recordingStatusText(), {
|
@@ -254,7 +254,6 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
254
254
|
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:00', '00:04');
|
255
255
|
});
|
256
256
|
|
257
|
-
//Failing due to https://redmine.zeuslearning.com/issues/560794
|
258
257
|
it('When recording is inprogress and user has reached maximum recorder length, \'Your response has been recorded\' message should be displayed below mic icon. Retake and Play icon should be displayed along with progress bar. User should be able to view the duration of their recorded speech in minutes, displayed as \'(min:secs)\'. Volume meter should not be displayed in player', () => {
|
259
258
|
audioResponsePage.steps.switchToEditTab();
|
260
259
|
audioResponsePage.steps.setMaximumRecorderLength(10);
|
@@ -262,14 +261,13 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
262
261
|
audioResponsePage.steps.startRecordingStandardPreview();
|
263
262
|
audioResponsePage.steps.waitForRecordingToStartStandardPreview();
|
264
263
|
cy.log('Response will keep recording until maximum recording length of 10 seconds is reached');
|
265
|
-
utilities.verifyInnerText(audioResponsePage.standardPreviewRecorderHelpText(), 'Recording...');
|
266
264
|
audioResponsePage.steps.verifyResponseIsRecordedHelpText();
|
267
265
|
utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewRetakeButton(), 'visible');
|
268
266
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
269
267
|
utilities.verifyElementVisibilityState(audioResponsePage.previewVolumeMeter(), 'visible');
|
270
268
|
utilities.verifyElementVisibilityState(audioResponsePage.standardPreviewPlaybackTime(), 'visible');
|
271
269
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackProgressBar(), 'visible');
|
272
|
-
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:
|
270
|
+
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:00', '00:10');
|
273
271
|
});
|
274
272
|
});
|
275
273
|
|
@@ -420,7 +418,6 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
420
418
|
|
421
419
|
it('When the user seeks the progress bar slider while the audio is playing, then the audio should continue to play from the position where the slider is seeked', () => {
|
422
420
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
423
|
-
audioResponsePage.steps.addWaitToPlayAudio(1000);
|
424
421
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
425
422
|
});
|
426
423
|
|
@@ -428,12 +425,11 @@ describe('Preview of Audio response for standard audio recorder style', () => {
|
|
428
425
|
audioResponsePage.steps.pausePlayback();
|
429
426
|
audioResponsePage.steps.seekProgressBarSliderToCenter();
|
430
427
|
audioResponsePage.steps.startPlayback();
|
431
|
-
audioResponsePage.steps.addWaitToPlayAudio(5000);
|
432
428
|
audioResponsePage.steps.verifyProgressBarSliderPosition(actualAudioSeekedInPercent);
|
433
429
|
});
|
434
430
|
|
435
431
|
it('When the audio playback is completed, the \'Pause\' button should get replaced with \'Play\' button', () => {
|
436
|
-
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:
|
432
|
+
audioResponsePage.steps.verifyPlaybackTimeStandardPreview('00:10', '00:10');
|
437
433
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPlayButton(), 'visible');
|
438
434
|
utilities.verifyElementVisibilityState(audioResponsePage.playbackPauseButton(), 'notExist');
|
439
435
|
audioResponsePage.steps.verifyProgressBarSliderPosition(99);
|
@@ -21,6 +21,7 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
21
21
|
abortEarlySetup();
|
22
22
|
before(() => {
|
23
23
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
24
|
+
cy.barsPreLoaderWait();
|
24
25
|
});
|
25
26
|
|
26
27
|
it('By default \'Customize formatting options\' accordion should be collapsed and by clicking on the \'Customize formatting options (for student player)\' accordion, user should be able to expand the accordion', () => {
|
@@ -117,6 +118,7 @@ describe('Create question page - Essay Response: Customize formatting options (f
|
|
117
118
|
abortEarlySetup();
|
118
119
|
before(() => {
|
119
120
|
essayResponsePage.steps.navigateToCreateQuestion('essay response');
|
121
|
+
cy.barsPreLoaderWait();
|
120
122
|
});
|
121
123
|
|
122
124
|
it(`When the user switches to Preview tab, then the following options should be displayed in the response field toolbar - ${defaultFormattingOptionsPreviewTab}`, () => {
|
@@ -857,7 +857,7 @@ const tests = {
|
|
857
857
|
'font-size': css.fontSize.heading,
|
858
858
|
'font-weight': css.fontWeight.semibold
|
859
859
|
});
|
860
|
-
utilities.verifyCSS(
|
860
|
+
utilities.verifyCSS(audioResponsePage.retakePopupContent(), {
|
861
861
|
'border-top': `1px solid ${css.color.secondaryBtnBorder}`,
|
862
862
|
'color': css.color.labels,
|
863
863
|
'font-size': css.fontSize.default,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "itemengine-cypress-automation",
|
3
|
-
"version": "1.0.131
|
3
|
+
"version": "1.0.131",
|
4
4
|
"description": "",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -35,4 +35,4 @@
|
|
35
35
|
"node-fetch": "^3.3.2",
|
36
36
|
"react-uuid": "^2.0.0"
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|