diff options
author | Henri Sara <henri.sara@gmail.com> | 2017-02-14 11:21:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-14 11:21:43 +0200 |
commit | 0bddf606b73195831fb514b8f1d6bc6225706ef0 (patch) | |
tree | 97f9fdc55725160e675efbde203ed0ce04a39846 /uitest | |
parent | bf34bd7eb22d03f4fd73f22e46c61f55f99cfda8 (diff) | |
download | vaadin-framework-0bddf606b73195831fb514b8f1d6bc6225706ef0.tar.gz vaadin-framework-0bddf606b73195831fb514b8f1d6bc6225706ef0.zip |
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.
Diffstat (limited to 'uitest')
2 files changed, 15 insertions, 1 deletions
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<DesiredCapabilities> 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<DesiredCapabilities> getBrowsersToTest() { + // Focus does not move when expected with Selenium/TB and Firefox 45 + return getBrowsersExcludingFirefox(); + } } |