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-17961: test if videos on colors api page are playing #770

Merged
merged 2 commits into from
Dec 24, 2024

Conversation

ShayLevi
Copy link
Contributor

Relevant task - https://cloudinary.atlassian.net/browse/ME-17961
This test is navigating to colors API page (colors.html) and make sure that 3 videos element are playing (checking that the video is not paused).

@ShayLevi ShayLevi requested a review from a team as a code owner December 23, 2024 12:53
Copy link

netlify bot commented Dec 23, 2024

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

Name Link
🔨 Latest commit 009145a
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/676a64830d6cce00083d0169
😎 Deploy Preview https://deploy-preview-770--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.

Copy link

netlify bot commented Dec 23, 2024

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 009145a
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/676a64837239050009eb47a8
😎 Deploy Preview https://deploy-preview-770--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.

Comment on lines 14 to 22
await test.step('Validating that the first video is playing (in case isPause is false)', async () => {
expect(await pomPages.colorsApiPage.colorsApiColorSkinVideoComponent.validateVideoPaused(false));
});
await test.step('Validating that the second video is playing (in case isPause is false)', async () => {
expect(await pomPages.colorsApiPage.colorsApiDarkSkinVideoComponent.validateVideoPaused(false));
});
await test.step('Scroll until the third video element is visible', async () => {
await pomPages.colorsApiPage.colorsApiLightSkinVideoComponent.locator.scrollIntoViewIfNeeded();
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I would name the videos by their configuration description so instead of first video i would say for example validating that the modified colors video or for example the dark skin video ... this will make it easier to understand what failed when tests fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Modified the test steps description

@ShayLevi ShayLevi merged commit ceae86b into edge Dec 24, 2024
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