garris / garris/BackstopJS

Need smooth scrolling to properly trigger animations

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

Description

I'm testing a page that is a long list of article teasers. There is CSS animation so that as you scroll down the page the articles fade in one by one. In BackstopJS I have a scenario that scrolls to the bottom of the page to trigger the animations. This doesn't actually work as expected because the browsers scrolls instantaneously, so only the first few are triggered.

However, if we alter the engine scripts to use smooth scrolling, everything works as expected.

![InstantaneousScroll](https://user-images.githubusercontent.com/1127349/68407411-84c98700-0151-11ea-8e31-2061883d5ee2.png)

![SmoothScroll](https://user-images.githubusercontent.com/1127349/68407439-9317a300-0151-11ea-8150-ed3c6f16fdd2.png)

Contributor guide

Open the contributing guide

Research direction

Start by locating the engine scripts that implement scrolling for BackstopJS scenarios, then reproduce the issue with a long list of animated article teasers and a scenario that scrolls to the bottom. Compare instantaneous and smooth scrolling behavior; done means the scroll reliably triggers the animations before the visual 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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.