Skip to content

Conversation

@ShayLevi
Copy link
Contributor

Relevant task - https://cloudinary.atlassian.net/browse/ME-17983
This test is navigating to ESM main page and make sure that video element are playing.
As it share common steps as mainPageVideoIsPlaying.spec.ts that was already implemented I created common spec function testMainPageVideoIsPlaying and using it on both specs.

@ShayLevi ShayLevi requested a review from a team as a code owner February 18, 2025 08:40
@netlify
Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 26f7c8b
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/67b44a50f37d5900083969ad
😎 Deploy Preview https://deploy-preview-820--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 Feb 18, 2025

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

Name Link
🔨 Latest commit 26f7c8b
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/67b44a51392a3a00089a4a5e
😎 Deploy Preview https://deploy-preview-820--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 February 18, 2025 08:52
Copy link
Collaborator

@tsi tsi left a comment

Choose a reason for hiding this comment

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

Lookin good, on small note...

export async function testMainPageVideoIsPlaying(page: Page, videoElement: VideoComponent) {
await test.step('Click on play button to play video', async () => {
await waitForPageToLoadWithTimeout(page, 5000);
return videoElement.clickPlay();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this click mistakenly trigger pause instead of play? i.e. if the video is auto-playing

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The clickPlay is used only on pages/videos which are not auto-playing. The video on main pages is not auto-played so this is why we need to click on play.

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍 if you need/want to be sure, you can check player is-playing status

@ShayLevi ShayLevi merged commit 26011bf into master Feb 18, 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.

4 participants