This repo illustrates a discovered issue with Applitools VRT testing, where an
internally scrolled element will fail to properly be tested in Applitools with the
region / fully configurations when that element uses the CSS
scroll-behavior: smooth
declaration.
You can test this by running a VRT test with this declaration enabled, vs disabled.
When enabled, the test will fail to capture the full window, and the result you will see in Applitools will be a windowed screenshot of an arbitrary part of the content.
Disabling the CSS property will yield the expected results.
The CSS in question lives in index.html
, line 49.
- Create a dotenv (
.env
) file in the project root with the following variables:
APPLITOOLS_API_KEY
: Your Applitools API KeyAPPLITOOLS_SERVER
: Applitools server to hit
- Start server
npm start
- With server running, run the Applitools test
npm test