summaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java b/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
index 546588947c..0964e6eb65 100644
--- a/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
+++ b/uitest/src/com/vaadin/tests/tb3/MultiBrowserThemeTest.java
@@ -17,8 +17,11 @@ package com.vaadin.tests.tb3;
import java.util.Arrays;
import java.util.HashSet;
+import java.util.List;
import java.util.Set;
+import org.openqa.selenium.remote.DesiredCapabilities;
+
/**
* Test which uses theme returned by {@link #getTheme()} for running the test
*/
@@ -27,9 +30,21 @@ public abstract class MultiBrowserThemeTest extends MultiBrowserTest {
protected abstract String getTheme();
@Override
+ protected boolean requireWindowFocusForIE() {
+ return true;
+ }
+
+ @Override
protected void openTestURL(Class<?> uiClass, String... parameters) {
Set<String> params = new HashSet<String>(Arrays.asList(parameters));
params.add("theme=" + getTheme());
super.openTestURL(uiClass, params.toArray(new String[params.size()]));
}
+
+ @Override
+ public List<DesiredCapabilities> getBrowsersToTest() {
+ List<DesiredCapabilities> browsersToTest = getBrowsersExcludingPhantomJS();
+ browsersToTest.add(PHANTOMJS2());
+ return browsersToTest;
+ }
}