aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/components')
-rw-r--r--uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java b/uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java
new file mode 100644
index 0000000000..8b5b54cfaa
--- /dev/null
+++ b/uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java
@@ -0,0 +1,18 @@
+package com.vaadin.tests.components.table;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+import com.vaadin.testbench.elements.TableElement;
+import com.vaadin.tests.tb3.MultiBrowserTest;
+
+public class SelectableEditableTest extends MultiBrowserTest {
+ @Test
+ public void testSelectFromCellWith() throws Exception {
+ openTestURL();
+ TableElement table = $(TableElement.class).first();
+ table.getCell(0, 1).click(70, 12);
+ Assert.assertTrue("Element does not have the 'v-selected' css class",
+ hasCssClass(table.getRow(0), "v-selected"));
+ }
+}