Browse Source

Fix MenuBar handling with extremely wide first level sub menus

Change-Id: I42831b67bd366002396300b8c793ccac27999849
tags/7.5.0.rc1
Teemu Suo-Anttila 9 years ago
parent
commit
fac31020dc
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java

+ 6
- 0
uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java View File

@@ -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();

Loading…
Cancel
Save