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.

AsyncPushUpdatesTest.java 818B

1234567891011121314151617181920212223242526272829303132
  1. package com.vaadin.tests.components.table;
  2. import static org.junit.Assert.fail;
  3. import org.junit.Test;
  4. import org.openqa.selenium.NoSuchElementException;
  5. import org.openqa.selenium.WebElement;
  6. import com.vaadin.testbench.elements.ButtonElement;
  7. import com.vaadin.testbench.elements.TableElement;
  8. import com.vaadin.tests.tb3.MultiBrowserTest;
  9. /**
  10. * Test to see if VScrollTable handles Push updates correctly.
  11. *
  12. * @author Vaadin Ltd
  13. */
  14. public class AsyncPushUpdatesTest extends MultiBrowserTest {
  15. @Test(expected = NoSuchElementException.class)
  16. public void InsertedRowsAreNotDuplicated() {
  17. openTestURL();
  18. WebElement button = $(ButtonElement.class).first();
  19. button.click();
  20. $(TableElement.class).first().getCell(12, 0);
  21. fail("Duplicates are present.");
  22. }
  23. }