-
Notifications
You must be signed in to change notification settings - Fork 25
feat: visual search plugin #841
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
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. |
| // Wait for both video elements to be ready | ||
| await test.step('Wait for video elements to be ready', async () => { | ||
| await page.waitForSelector('#player_html5_api', { state: 'visible' }); | ||
| await page.waitForSelector('#player-playlist_html5_api', { state: 'visible' }); |
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.
Instead using waitForSelector you can set scrollIntoViewIfNeeded() function which is being used in other specs for that.
await pomPages.visualSearchPage.visualSearchVideoComponent.locator.scrollIntoViewIfNeeded();
await pomPages.visualSearchPage.visualSearchPlaylistVideoComponent.locator.scrollIntoViewIfNeeded();
https://deploy-preview-841--cld-video-player.netlify.app/docs/visual-search