From 0bddf606b73195831fb514b8f1d6bc6225706ef0 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Tue, 14 Feb 2017 11:21:43 +0200 Subject: Exclude Firefox for CBG/RBG focus/blur tests (#8560) TestBench commands do not result in same focus behavior as in other browsers. Focus works in manual tests. --- .../components/checkboxgroup/CheckBoxGroupFocusBlurTest.java | 7 +++++++ .../radiobuttongroup/RadioButtonGroupFocusBlurTest.java | 9 ++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'uitest') diff --git a/uitest/src/test/java/com/vaadin/tests/components/checkboxgroup/CheckBoxGroupFocusBlurTest.java b/uitest/src/test/java/com/vaadin/tests/components/checkboxgroup/CheckBoxGroupFocusBlurTest.java index e512d92493..2f3c8b8cd1 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/checkboxgroup/CheckBoxGroupFocusBlurTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/checkboxgroup/CheckBoxGroupFocusBlurTest.java @@ -23,6 +23,7 @@ import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; +import org.openqa.selenium.remote.DesiredCapabilities; import com.vaadin.testbench.elements.CheckBoxGroupElement; import com.vaadin.testbench.elements.LabelElement; @@ -85,4 +86,10 @@ public class CheckBoxGroupFocusBlurTest extends MultiBrowserTest { // no new events Assert.assertFalse(logContainsText("4.")); } + + @Override + public List getBrowsersToTest() { + // Focus does not move when expected with Selenium/TB and Firefox 45 + return getBrowsersExcludingFirefox(); + } } diff --git a/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupFocusBlurTest.java b/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupFocusBlurTest.java index 7b8ef04341..8ee0932e88 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupFocusBlurTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/radiobuttongroup/RadioButtonGroupFocusBlurTest.java @@ -23,9 +23,10 @@ import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebElement; import org.openqa.selenium.interactions.Actions; +import org.openqa.selenium.remote.DesiredCapabilities; -import com.vaadin.testbench.elements.RadioButtonGroupElement; import com.vaadin.testbench.elements.LabelElement; +import com.vaadin.testbench.elements.RadioButtonGroupElement; import com.vaadin.tests.tb3.MultiBrowserTest; /** @@ -85,4 +86,10 @@ public class RadioButtonGroupFocusBlurTest extends MultiBrowserTest { // focus has gone away waitUntil(driver -> logContainsText("4. Blur Event"), 5); } + + @Override + public List getBrowsersToTest() { + // Focus does not move when expected with Selenium/TB and Firefox 45 + return getBrowsersExcludingFirefox(); + } } -- cgit v1.2.3