diff options
Diffstat (limited to 'uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java b/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java index 6115937054..6229edc1ee 100644 --- a/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java +++ b/uitest/src/com/vaadin/tests/application/CriticalNotificationsTest.java @@ -20,13 +20,19 @@ import org.junit.Test; import com.vaadin.testbench.elements.ButtonElement; import com.vaadin.testbench.elements.CheckBoxElement; import com.vaadin.testbench.elements.NotificationElement; +import com.vaadin.testbench.parallel.BrowserUtil; import com.vaadin.tests.tb3.MultiBrowserThemeTest; public class CriticalNotificationsTest extends MultiBrowserThemeTest { @Override - protected boolean useNativeEventsForIE11() { - return false; + protected boolean useNativeEventsForIE() { + if (BrowserUtil.isIE(getDesiredCapabilities(), 11)) { + // Use JavaScript events only for IE11 + return false; + } else { + return true; + } } @Test |