[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.