garris / garris/BackstopJS

Embedded media showing blank

Open
#1,540 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

We have several types of media such as images, YouTube videos embeds, Vimeo, and SoundCloud embeds on our web pages. These are all being lazy loaded so they show up as blank. We are able to get the images to show with a custom onreadyScript that performs a scrolling of the entire page, however, the media embeds are still showing blank in the screenshots.

When we set the engineOptions > headless to false in the backstop.json file, we can clearly see in the browser that our scroll script is working as expected and everything looks fine, however the screenshots don't reflect that.

We tried implementing delays, using ready selectors and ready events, and changing them from lazy load to eager load and none of those things worked.

Is this a known issue, and is there fix for this? Is it perhaps a security issue?

See image below. SoundCloud, YouTube, and Vimeo embeds are blank:

Screenshot 2024-02-02 at 1 17 06 PM

Using:
Node version 16.13.1
BackstopJS v6.3.3

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the blank SoundCloud, YouTube, and Vimeo embeds with BackstopJS v6.3.3, Node 16.13.1, and the supplied lazy-loading page. Compare headless and headed captures while checking whether the existing scroll script, delays, selectors, or ready events affect the result; done when embedded media renders in screenshots or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.