Bug 5287: (RM follow-up) Make tests basket compatible
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 25 Jun 2019 15:19:43 +0000 (16:19 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 25 Jun 2019 15:23:16 +0000 (16:23 +0100)
commit90bd9763bd0cf49df722955008af0c59d79edfe0
tree72728e2af07cf929b871353abb03bcbf2c906303
parentc7047b45cb44adf12189e9180ef27fe8e63efa23
Bug 5287: (RM follow-up) Make tests basket compatible

The selenium tests for addtobasket/removefrombasket started to fail
after the introduction of bug 5287. It turns out that a selenium click
handler will trigger a scroll event if the element you're trying to
click isn't in the view port. Unfortunately it scrolls the viewport just
enough for the element to come on screen but that also triggers the
floating toolbar in this case which ends up floating directly over the
element we want to 'click' and so the click rightfully fails as the
element is not 'clickable'.

This patch works around the issue by setting the window size to being a
HD screen in portrait orientation and therefore negates the need for
scrolling to put the elements in within the viewport.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/selenium/regressions.t