aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2014-05-13 11:07:34 +0300
committerSauli Tähkäpää <sauli@vaadin.com>2014-05-23 22:05:44 +0300
commit18ce0c575631e47f0c4911ff281532426fe39e23 (patch)
treea909c9c81b9367e9bf8f897730f38f5058d278a3
parentda84279df488ad1b064cfadb703af7c66e99c66a (diff)
downloadvaadin-framework-18ce0c575631e47f0c4911ff281532426fe39e23.tar.gz
vaadin-framework-18ce0c575631e47f0c4911ff281532426fe39e23.zip
Ensure correct tab is open in debug window
Change-Id: I6a2745c59c468aa2fbc45032a8478f533494b181
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java1
-rw-r--r--uitest/src/com/vaadin/tests/push/ReconnectTest.java2
-rw-r--r--uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java4
4 files changed, 9 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java b/uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java
index 92a70d4691..0fbd0e5f69 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java
@@ -26,6 +26,7 @@ public class CaptionLeakTest extends MultiBrowserTest {
public void testCaptionLeak() throws Exception {
setDebug(true);
openTestURL();
+ openDebugLogTab();
// this should be present
// 3 general non-connector elements, none accumulated on click
@@ -54,6 +55,7 @@ public class CaptionLeakTest extends MultiBrowserTest {
public void testNoCaptionLeak() throws Exception {
setDebug(true);
openTestURL();
+ openDebugLogTab();
getDriver().findElement(By.xpath("//button[@title = 'Clear log']"))
.click();
diff --git a/uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java b/uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java
index 4766713706..565c11c1f0 100644
--- a/uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java
+++ b/uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java
@@ -26,6 +26,7 @@ public class SpacingLeakTest extends MultiBrowserTest {
public void testSpacingLeak() throws Exception {
setDebug(true);
openTestURL();
+ openDebugLogTab();
getDriver().findElement(By.id("addbutton")).click();
getDriver().findElement(By.xpath("//button[@title = 'Clear log']"))
.click();
diff --git a/uitest/src/com/vaadin/tests/push/ReconnectTest.java b/uitest/src/com/vaadin/tests/push/ReconnectTest.java
index 3982deb4c3..5ad2e7a127 100644
--- a/uitest/src/com/vaadin/tests/push/ReconnectTest.java
+++ b/uitest/src/com/vaadin/tests/push/ReconnectTest.java
@@ -32,6 +32,8 @@ public abstract class ReconnectTest extends MultiBrowserTestWithProxy {
setDebug(true);
openTestURL();
+ openDebugLogTab();
+
startTimer();
waitUntilServerCounterChanges();
diff --git a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
index 5bb3818c4b..3745d60fd8 100644
--- a/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
+++ b/uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java
@@ -970,4 +970,8 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
}
}
+ protected void openDebugLogTab() {
+ findElement(By.xpath("//button[@title='Debug message log']")).click();
+ }
+
}