-
Notifications
You must be signed in to change notification settings - Fork 25
me-17985 test if video is playing on ESM highlights graph page #821
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-17985 test if video is playing on ESM highlights graph page #821
Conversation
✅ Deploy Preview for cld-video-player ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for cld-vp-esm-pages ready!
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add space
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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);
})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
refael-m
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see comments
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.