diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-02-14 09:33:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 09:33:16 +0200 |
commit | 8b01479d414fa8cf7acd7ad1b00e52fd679264ce (patch) | |
tree | ba200be6823b1d1966b2f145109881b7e75ee2be | |
parent | be8461d94d8bdb635553754d6f2a541678ef4a92 (diff) | |
download | vaadin-framework-8b01479d414fa8cf7acd7ad1b00e52fd679264ce.tar.gz vaadin-framework-8b01479d414fa8cf7acd7ad1b00e52fd679264ce.zip |
Fix PopupDateFieldExtendedRangeTest for Firefox (#8555)
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java b/uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java index d804f8f8ce..980116ea6d 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java @@ -343,7 +343,8 @@ public class PopupDateFieldExtendedRangeTest extends MultiBrowserTest { new Actions(driver).keyUp(Keys.SHIFT).perform(); // TODO: remove this once #14406 has been fixed - if (BrowserUtil.isIE(getDesiredCapabilities())) { + if (BrowserUtil.isIE(getDesiredCapabilities()) + || BrowserUtil.isFirefox(getDesiredCapabilities())) { popup.findElement( By.className("v-datefield-calendarpanel-prevmonth")) .findElement(By.tagName("button")).click(); @@ -366,7 +367,8 @@ public class PopupDateFieldExtendedRangeTest extends MultiBrowserTest { .size()); // TODO: remove this check once #14406 has been fixed -- clicking the // button instead of navigating with arrow keys steals the focus - if (!BrowserUtil.isIE(getDesiredCapabilities())) { + if (!BrowserUtil.isIE(getDesiredCapabilities()) + && !BrowserUtil.isFirefox(getDesiredCapabilities())) { assertEquals("unexpected focus", "16", popup.findElement(By .className("v-datefield-calendarpanel-day-focused")) |