blob: 1ca4ec0ffaa641b37203ceae5be6da1965519e11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
package com.vaadin.tests.components.orderedlayout;
import org.junit.Test;
import org.openqa.selenium.By;
import com.vaadin.tests.tb3.MultiBrowserTest;
public class SpacingLeakTest extends MultiBrowserTest {
@Test
public void testSpacingLeak() throws Exception {
setDebug(true);
openTestURL();
// Make sure debug window is visible
showDebugWindow();
openDebugLogTab();
getDriver().findElement(By.id("addbutton")).click();
getDriver().findElement(By.xpath("//button[@title = 'Clear log']"))
.click();
getDriver().findElement(By.id("removebutton")).click();
// this should be present
getDriver().findElement(By
.xpath("//span[text() = 'Measured 0 non connector elements']"));
}
}
|