Wait time after `scrollToSelector` property
- Dominant language
- JavaScript
- Stars
- 7.2k
- Forks
- 621
- PR merge metrics
- No merged PRs in 30d
Description
we are using `lazy-load` plugin for images in cards so the image will be rendered only if it is in the range of the viewport
I add `scrollToSelector` property combined with viewport in `selectors` to test if the plugin is working as supposed to be
the only problem that the delay here has no effect anymore as the property `scrollToSelector` will be executed after the delay is totally consumed, then the images doesn't have enough time to be rendered before the screenshot
Is there any better way then writing a script that will be called through `onReadyScript` to add a waiting time as delay after using the property `scrollToSelector`
already we have `postInteractionWait` but can be used only after clicking or hovering on elements
if there is such property to use to add the delay after `scrollToSelector` or at least we set the `onReadyScript` after this property to make it more easy to write the script
Contributor guide
Research direction
Start by tracing how scrollToSelector is processed alongside selectors, then compare its timing with postInteractionWait and onReadyScript. Confirm when the screenshot is taken and define a configurable wait after scrolling so lazy-loaded images can render before capture.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100