diff options
author | Sauli Tähkäpää <sauli@vaadin.com> | 2014-06-27 10:52:01 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-07-02 17:43:42 +0000 |
commit | 32f6ea8dbaabca2617e7b99cea9c4ca42b8ac4f9 (patch) | |
tree | e6c101dde7219e3b41a8bb082ba59bfdf627c5c5 /uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java | |
parent | 90f66298c0c7179b22ebe4f78c95eba7fc432f4d (diff) | |
download | vaadin-framework-32f6ea8dbaabca2617e7b99cea9c4ca42b8ac4f9.tar.gz vaadin-framework-32f6ea8dbaabca2617e7b99cea9c4ca42b8ac4f9.zip |
Fix PushConfigurationLongPollingTest.
Change-Id: I49516f311315d3c84a177ec6bd937e1241e67351
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java b/uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java index ac58deea56..f2207ccba7 100644 --- a/uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java +++ b/uitest/src/com/vaadin/tests/push/PushConfigurationLongPollingTest.java @@ -26,33 +26,19 @@ import org.openqa.selenium.support.ui.Select; public class PushConfigurationLongPollingTest extends PushConfigurationTest { - @Override - public List<DesiredCapabilities> getBrowsersToTest() { - List<DesiredCapabilities> browsers = super.getBrowsersToTest(); - - browsers.remove(Browser.IE8.getDesiredCapabilities()); - - return browsers; - } - @Test public void testLongPolling() throws InterruptedException { - new Select(getTransportSelect()).selectByVisibleText("LONG_POLLING"); - new Select(getPushModeSelect()).selectByVisibleText("AUTOMATIC"); + openDebugLogTab(); + new Select(getTransportSelect()).selectByVisibleText("LONG_POLLING"); assertThat(getStatusText(), containsString("fallbackTransport: long-polling")); assertThat(getStatusText(), containsString("transport: long-polling")); + clearDebugMessages(); + new Select(getPushModeSelect()).selectByVisibleText("AUTOMATIC"); + waitForDebugMessage("Push connection established using long-polling", 10); waitForServerCounterToUpdate(); - - // Use debug console to verify we used the correct transport type - assertThat( - driver.getPageSource(), - containsString("Push connection established using long-polling")); - - new Select(getPushModeSelect()).selectByVisibleText("DISABLED"); - } } |