Skip to content

Conversation

@ShayLevi
Copy link
Contributor

Relevant task - https://cloudinary.atlassian.net/browse/ME-17985
This test is navigating to ESM highlights page (highlights-graph) and make sure that video element is playing.

@ShayLevi ShayLevi requested a review from a team as a code owner February 18, 2025 12:40
@ShayLevi ShayLevi requested a review from refael-m February 18, 2025 12:40
@netlify
Copy link

netlify bot commented Feb 18, 2025

Deploy Preview for cld-video-player ready!

Name Link
🔨 Latest commit 84effb2
🔍 Latest deploy log https://app.netlify.com/sites/cld-video-player/deploys/67b4bcccffd02d0008d169cc
😎 Deploy Preview https://deploy-preview-821--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 84effb2
🔍 Latest deploy log https://app.netlify.com/sites/cld-vp-esm-pages/deploys/67b4bccc31d46f00081f2795
😎 Deploy Preview https://deploy-preview-821--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.

import { waitForPageToLoadWithTimeout } from '../../src/helpers/waitForPageToLoadWithTimeout';
import { ESM_URL } from '../../testData/esmUrl';

const link = getEsmLinkByName(ExampleLinkName.HighlightsGraph);
Copy link
Contributor

Choose a reason for hiding this comment

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

add space

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

const link = getEsmLinkByName(ExampleLinkName.HighlightsGraph);
vpTest(`Test if video on ESM highlights graph page is playing as expected`, async ({ page, pomPages }) => {
await test.step('Navigate to ESM highlights graph page by clicking on link', async () => {
await page.goto(ESM_URL);
Copy link
Contributor

Choose a reason for hiding this comment

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

add navigate at separate step

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's navigation to the page itself. First going to ESM_URL and then clicking on the page link to open it.
Do you want me to create separate step for goto ESM_URL and separate one for opening the page?

Copy link
Contributor

@refael-m refael-m Feb 18, 2025

Choose a reason for hiding this comment

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

I know, just wrapp it with it's own step:

    await test.step('Navigate to ESM () => {
        await page.goto(ESM_URL);
})

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

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 requested a review from refael-m February 18, 2025 17:01
@ShayLevi ShayLevi merged commit 21f9bbd into master Feb 19, 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