diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-06-03 11:53:12 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-03 09:27:34 +0000 |
commit | fac31020dc5c9aa7ae508ec14e79686ffd409181 (patch) | |
tree | b1540ffbf41018cba13e3cd4a60ecdb2278094a2 | |
parent | 64245b28f44f3c57100d39a9a557f23ff5999483 (diff) | |
download | vaadin-framework-fac31020dc5c9aa7ae508ec14e79686ffd409181.tar.gz vaadin-framework-fac31020dc5c9aa7ae508ec14e79686ffd409181.zip |
Fix MenuBar handling with extremely wide first level sub menus
Change-Id: I42831b67bd366002396300b8c793ccac27999849
-rw-r--r-- | uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java index 7b77aaf817..075319103b 100644 --- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java +++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java @@ -1032,6 +1032,12 @@ public abstract class AbstractTB3Test extends ParallelTest { */ protected void selectMenuPath(String... menuCaptions) { selectMenu(menuCaptions[0], true); + + // Move to the menu item opened below the menu bar. + new Actions(getDriver()).moveByOffset(0, + getMenuElement(menuCaptions[0]).getSize().getHeight()) + .perform(); + for (int i = 1; i < menuCaptions.length - 1; i++) { selectMenu(menuCaptions[i]); new Actions(getDriver()).moveByOffset(40, 0).build().perform(); |