[build] Fixed tests.
- On a FullHD resolution, the tests are working as expected, since the resolution is big enough to display the docextra tabs without needing to scroll. The tests assumed that we need to scroll so this was problematic.
- Testing if the docextra element is in view instead of just generically testing if the document was scrolled.

(cherry picked from commit ad40b010c7e14c0ae200dae46e39a18b5a71b57c)