]> source.dussan.org Git - vaadin-framework.git/commitdiff
Ensure correct tab is open in debug window
authorArtur Signell <artur@vaadin.com>
Tue, 13 May 2014 08:07:34 +0000 (11:07 +0300)
committerSauli Tähkäpää <sauli@vaadin.com>
Fri, 23 May 2014 19:05:44 +0000 (22:05 +0300)
Change-Id: I6a2745c59c468aa2fbc45032a8478f533494b181

uitest/src/com/vaadin/tests/components/orderedlayout/CaptionLeakTest.java
uitest/src/com/vaadin/tests/components/orderedlayout/SpacingLeakTest.java
uitest/src/com/vaadin/tests/push/ReconnectTest.java
uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java

index 92a70d469114d16c3a7f7e552c6a5468f6e3a6ff..0fbd0e5f696907a50027c083612dd3c992b6227f 100644 (file)
@@ -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();
index 4766713706c81ba3e0d1ea0ffbe35a9996b0b29d..565c11c1f0d3df9d3b2e4b0a51241d06626e51b0 100644 (file)
@@ -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();
index 3982deb4c37677750d70a44b4733fe0e68eb74df..5ad2e7a1273d41b94ae2f936c97222bc39ef1e8c 100644 (file)
@@ -32,6 +32,8 @@ public abstract class ReconnectTest extends MultiBrowserTestWithProxy {
 
         setDebug(true);
         openTestURL();
+        openDebugLogTab();
+
         startTimer();
         waitUntilServerCounterChanges();
 
index 5bb3818c4b6785b971aaa3449eb6f74b86e81ef1..3745d60fd82991a1a8fab9cbc81b02605919e48e 100644 (file)
@@ -970,4 +970,8 @@ public abstract class AbstractTB3Test extends TestBenchTestCase {
         }
     }
 
+    protected void openDebugLogTab() {
+        findElement(By.xpath("//button[@title='Debug message log']")).click();
+    }
+
 }