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.

SelectableEditableTest.java 603B

12345678910111213141516171819
  1. package com.vaadin.tests.components.table;
  2. import org.junit.Test;
  3. import com.vaadin.testbench.elements.TableElement;
  4. import com.vaadin.tests.tb3.MultiBrowserTest;
  5. import static org.junit.Assert.assertTrue;
  6. public class SelectableEditableTest extends MultiBrowserTest {
  7. @Test
  8. public void testSelectFromCellWith() throws Exception {
  9. openTestURL();
  10. TableElement table = $(TableElement.class).first();
  11. table.getCell(0, 1).click();
  12. assertTrue("Element does not have the 'v-selected' css class",
  13. hasCssClass(table.getRow(0), "v-selected"));
  14. }
  15. }