-
Notifications
You must be signed in to change notification settings - Fork 25
me-18581: refactor specs to use validateVideoIsPlaying #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
me-18581: refactor specs to use validateVideoIsPlaying #775
Conversation
✅ Deploy Preview for cld-video-player ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for cld-vp-esm-pages ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
| }); | ||
| await test.step('Validating that the first video is playing (in case isPause is false)', async () => { | ||
| expect(await pomPages.audioPlayerPage.audioPlayerVideoComponent.isPaused()).toEqual(false); | ||
| await test.step('Validating that the first audio player is playing', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
audio? did you mean video?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to video
| await waitForPageToLoadWithTimeout(page, 5000); | ||
| }); | ||
| await test.step('Click on play button of first video player to play video', async () => { | ||
| await test.step('Click on play button of audio player to play video', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
audio?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to video
refael-m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
Relevant task - https://cloudinary.atlassian.net/browse/ME-18581
A new function was added to video component - validateVideoIsPlaying.
The new function validates whether the video is currently playing.This method uses the
isPausedfunction to determine the current state of the video.expectedPlaying - A boolean indicating the expected playback state of the video. Pass
trueif the video is expected to be playing, orfalseif it is expected to be paused.The task was refactoring relevant specs and replace isPaused()).toEqual(false) with validateVideoIsPlaying(true)