When unit testing a scrollintoview() method in Angular 2+, I receive an error -> "Failed: Cannot read property 'scrollIntoView' of undefined" in Angular 2+
Here is my scrollintoview code:
document.getElementsByClassName('class')[0].scrollIntoView();
Any ideas on how to resolve this trough an execute script?
Aucun commentaire:
Enregistrer un commentaire