diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-03-06 15:51:56 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-03-09 09:06:59 +0000 |
commit | dee8a04d16f01ed062920913a251f0fd371c5b32 (patch) | |
tree | 5f28446c5d8efb537c13048931bf38d6177bac21 /uitest/src/com/vaadin/tests/components | |
parent | b3684f5a1aee5fab2f3bdb6c77305151fc0f91a3 (diff) | |
download | vaadin-framework-dee8a04d16f01ed062920913a251f0fd371c5b32.tar.gz vaadin-framework-dee8a04d16f01ed062920913a251f0fd371c5b32.zip |
Fix regression for Table selection and checkbox issue (#17064)
Converts the old TB2 test for the issue to TB4 as well.
Change-Id: I76a37d836a55102221aa63e75f7ab605769bc0b9
Diffstat (limited to 'uitest/src/com/vaadin/tests/components')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/table/SelectableEditableTest.java | 18 |
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")); + } +} |