Skip to content

Conversation

@ShayLevi
Copy link
Contributor

@ShayLevi ShayLevi commented Jan 1, 2025

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 isPaused function to determine the current state of the video.
expectedPlaying - A boolean indicating the expected playback state of the video. Pass true if the video is expected to be playing, or false if it is expected to be paused.

The task was refactoring relevant specs and replace isPaused()).toEqual(false) with validateVideoIsPlaying(true)

@ShayLevi ShayLevi requested a review from a team as a code owner January 1, 2025 11:42
@netlify
Copy link

netlify bot commented Jan 1, 2025

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 884f8aa
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/677531f024b04800089425d0
😎 Deploy Preview https://deploy-preview-775--cld-video-player.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Jan 1, 2025

Deploy Preview for cld-vp-esm-pages ready!

Name Link
🔨 Latest commit 884f8aa
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/677531f1f6e2360008fc0374
😎 Deploy Preview https://deploy-preview-775--cld-vp-esm-pages.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ShayLevi ShayLevi requested a review from refael-m January 1, 2025 11:43
});
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 () => {
Copy link
Contributor

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?

Copy link
Contributor Author

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 () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

audio?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to video

Copy link
Contributor

@refael-m refael-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@ShayLevi ShayLevi merged commit ea53730 into edge Jan 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants