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.

DndEmptyTableTest.java 831B

12345678910111213141516171819202122232425262728293031
  1. package com.vaadin.tests.components.table;
  2. import org.junit.Test;
  3. import org.openqa.selenium.WebElement;
  4. import org.openqa.selenium.interactions.Actions;
  5. import com.vaadin.testbench.By;
  6. import com.vaadin.tests.tb3.MultiBrowserTest;
  7. /**
  8. * Test for empty table as a DnD target: it should not throws client side
  9. * exception.
  10. *
  11. * @author Vaadin Ltd
  12. */
  13. public class DndEmptyTableTest extends MultiBrowserTest {
  14. @Test
  15. public void testDndEmptyTable() {
  16. setDebug(true);
  17. openTestURL();
  18. WebElement source = driver.findElement(By.className("v-ddwrapper"));
  19. WebElement target = driver.findElement(By.className("v-table-body"));
  20. Actions actions = new Actions(driver);
  21. actions.clickAndHold(source).moveToElement(target).release();
  22. assertNoErrorNotifications();
  23. }
  24. }