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.

TableScrollsOnSelectionTest.java 549B

123456789101112131415161718192021222324
  1. package com.vaadin.tests.components.table;
  2. import java.io.IOException;
  3. import org.junit.Test;
  4. import com.vaadin.testbench.elements.TableElement;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. public class TableScrollsOnSelectionTest extends MultiBrowserTest {
  7. @Test
  8. public void tableIsNotScrolledOnSelect() throws IOException {
  9. openTestURL();
  10. TableElement table = $(TableElement.class).first();
  11. scrollTable(table, 80, 79);
  12. table.getCell(79, 0).click();
  13. compareScreen("scrolled-down");
  14. }
  15. }