Skip to content

Add Element.scrollBy shim for Jest+JSDOM

Vitaly Slobodin requested to merge vs-add-scrolly-by-shim-to-jsdom into master

What does this MR do?

JSOM does not support Element.prototype.scrollBy so everything that uses it will fail. I discovered that during porting ee/roadmap to Jest. This merge request mocks the Element.prototype.scrollBy with the help of Jest.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Merge request reports