aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java
diff options
context:
space:
mode:
authorPatrik Lindström <patrik@vaadin.com>2013-11-06 15:19:50 +0200
committerPatrik Lindström <patrik@vaadin.com>2013-11-06 15:27:36 +0200
commita12b62485dfa9c294e1a483c4b340c2be6a53588 (patch)
tree037c8e12d1c057ece0c3b3edc22573cbbf324449 /uitest/src/com/vaadin/tests/push/PushLargeDataStreamingTest.java
parent5b8b824942019ab6fc9d70263c22de3644f1f785 (diff)
parent533ddcda271b7226b38c035adf3073062c562653 (diff)
downloadvaadin-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.java20
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"));
}
+
}