Browse Source

Fix PopupDateFieldExtendedRangeTest for Firefox (#8555)

tags/8.1.0.alpha1
Henri Sara 7 years ago
parent
commit
8b01479d41

+ 4
- 2
uitest/src/test/java/com/vaadin/tests/components/datefield/PopupDateFieldExtendedRangeTest.java View File

@@ -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"))

Loading…
Cancel
Save