You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scrollTo helper accepts a target of type string | HTMLElement. Most other helpers accept a target of string | Element. By requiring an HTMLElement, the API is inconsistent and introduces type friction between test helpers:
constcontainer=find('div');…scrollTo(container,…,…)// Argument of type 'Element' is not assignable to parameter of type 'string | HTMLElement'.
Any problems or objections to having scrollTo require a string | Element instead?
The text was updated successfully, but these errors were encountered:
The
scrollTo
helper accepts a target of typestring | HTMLElement
. Most other helpers accept a target ofstring | Element
. By requiring anHTMLElement
, the API is inconsistent and introduces type friction between test helpers:Any problems or objections to having
scrollTo
require astring | Element
instead?The text was updated successfully, but these errors were encountered: