MDL-66979 behat: Scroll nodes into view before hover
commit035d4eb72a3cc8add0a48b62a2435431485e43ff
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 26 Jun 2020 13:18:24 +0000 (26 21:18 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 22 Jan 2021 06:52:13 +0000 (22 14:52 +0800)
tree379b4b2206a12fe27ac4f1a79afc638adb535bcc
parenteec766f375e941b363d2b956cefc4c7e8aa91f36
MDL-66979 behat: Scroll nodes into view before hover

The W3C Specification does not require that a NodeElement be in the
current viewport before triggering a mouseOver. As a result the
mouseOver will generate an Exception because the element is not in the
viewport, and the X/Y co-ordinates are invalid.

To handle this the node is scrolled into view.
lib/tests/behat/behat_general.php