diff options
author | Patrik Lindström <patrik@vaadin.com> | 2013-11-06 15:19:50 +0200 |
---|---|---|
committer | Patrik Lindström <patrik@vaadin.com> | 2013-11-06 15:27:36 +0200 |
commit | a12b62485dfa9c294e1a483c4b340c2be6a53588 (patch) | |
tree | 037c8e12d1c057ece0c3b3edc22573cbbf324449 /uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java | |
parent | 5b8b824942019ab6fc9d70263c22de3644f1f785 (diff) | |
parent | 533ddcda271b7226b38c035adf3073062c562653 (diff) | |
download | vaadin-framework-a12b62485dfa9c294e1a483c4b340c2be6a53588.tar.gz vaadin-framework-a12b62485dfa9c294e1a483c4b340c2be6a53588.zip |
Merge remote-tracking branch 'origin/7.1' into testbench4
Change-Id: If596876f0a17c471dc7db6b6eea25ed1c3b87fb1
Diffstat (limited to 'uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java')
-rw-r--r-- | uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java b/uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java index c716a6fc7e..8f10f0fbba 100644 --- a/uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java +++ b/uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java @@ -19,12 +19,12 @@ import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.support.ui.ExpectedConditions; -import com.vaadin.tests.tb3.WebsocketTest; +import com.vaadin.tests.tb3.MultiBrowserTest; -public class PushLargeDataStreamingTest extends WebsocketTest { +public class PushLargeDataStreamingTest extends MultiBrowserTest { @Test - public void testWebsocketLargeData() { + public void testStreamingLargeData() { openTestURL(); // Without this there is a large chance that we will wait for all pushes @@ -39,17 +39,23 @@ public class PushLargeDataStreamingTest extends WebsocketTest { } private void push() { + // Wait for startButton to be present + waitForElementToBePresent(vaadinLocatorById("startButton")); + String logRow0Id = "Log_row_0"; By logRow0 = vaadinLocatorById(logRow0Id); vaadinElementById("startButton").click(); - waitUntil(ExpectedConditions.not(ExpectedConditions - .textToBePresentInElement(logRow0, "Push complete"))); + // Wait for push to start + waitUntil(ExpectedConditions.textToBePresentInElement(logRow0, + "Package ")); - // Pushes each 2000ms for 40s - sleep(40000); + // Wait for until push should be done + sleep(PushLargeData.DEFAULT_DURATION_MS); + // Wait until push is actually done waitUntil(ExpectedConditions.textToBePresentInElement(logRow0, "Push complete")); } + } |