You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SpacingLeakTest.java 808B

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