Skip to content
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-17976: tests if videos are playing on subtitles and captions page #792

Merged
merged 2 commits into from
Jan 16, 2025

Conversation

ShayLevi
Copy link
Contributor

Relevant task - https://cloudinary.atlassian.net/browse/ME-17976
This test is navigating to subtitles and captions page (subtitles-and-captions.html) and make sure that videos element are playing.

@ShayLevi ShayLevi requested a review from a team as a code owner January 15, 2025 09:42
@ShayLevi ShayLevi requested a review from refael-m January 15, 2025 09:42
Copy link

netlify bot commented Jan 15, 2025

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit c7e055e
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/6788d5a6c1c0320008776ac8
😎 Deploy Preview https://deploy-preview-792--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.

Copy link

netlify bot commented Jan 15, 2025

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

Name Link
🔨 Latest commit c7e055e
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/6788d5a692ca81000805024a
😎 Deploy Preview https://deploy-preview-792--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.

return pomPages.subtitlesAndCaptionsVideosPage.subtitlesAndCaptionsSrtAndVttVideoComponent.clickPlay();
});
await test.step('Validating that srt and vtt video is playing', async () => {
await pomPages.subtitlesAndCaptionsVideosPage.subtitlesAndCaptionsSrtAndVttVideoComponent.validateVideoIsPlaying(true);
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment applies to all steps, i do not think you need this prefix as it is already scoped by the parent object subtitlesAndCaptionsVideosPage, it is better to name it like this in my eyes which is shorter yet as describitve as the long one

Suggested change
await pomPages.subtitlesAndCaptionsVideosPage.subtitlesAndCaptionsSrtAndVttVideoComponent.validateVideoIsPlaying(true);
await pomPages.subtitlesAndCaptionsVideosPage.srtAndVttVideo.validateVideoIsPlaying(true);

Copy link
Contributor

@ehab-cl ehab-cl left a comment

Choose a reason for hiding this comment

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

💪

Comment on lines 4 to 8
const SUBTITLES_AND_CAPTIONS_PAGE_SRT_AND_VTT_VIDEO_SELECTOR = '//*[@id="player_html5_api"]';
const SUBTITLES_AND_CAPTIONS_PAGE_PLAYLIST_SUBTITLES_VIDEO_SELECTOR = '//*[@id="playlist_html5_api"]';
const SUBTITLES_AND_CAPTIONS_PAGE_PACED_STYLES_CAPTIONS_VIDEO_SELECTOR = '//*[@id="paced_html5_api"]';
const SUBTITLES_AND_CAPTIONS_PAGE_KARAOKE_VIDEO_SELECTOR = '//*[@id="karaoke_html5_api"]';
const SUBTITLES_AND_CAPTIONS_PAGE_TRANSLATED_TRANSCRIPT_VIDEO_SELECTOR = '//*[@id="translated-transcript_html5_api"]';
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here in my eyes you may want to remove the prefix SUBTITLES_AND_CAPTIONS ... you may want to think also about how this is in the other pages as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will change it for this page and will open a separate task to refactor all other pages accordingally.

@ShayLevi ShayLevi merged commit da85029 into edge Jan 16, 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.

2 participants