summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTeppo Kurki <teppo.kurki@vaadin.com>2015-08-11 22:55:43 +0300
committerpatrik <patrik@vaadin.com>2015-08-12 16:10:37 +0300
commitf6f4a28cf98368ad0eb1a8b5e9a973366c9c4fcf (patch)
treee551a19f26f702ecc4c68e4b4a1a00b331706a54 /uitest
parent048bd83480551cc4f88dfc9de8e2e17ac6261885 (diff)
downloadvaadin-framework-f6f4a28cf98368ad0eb1a8b5e9a973366c9c4fcf.tar.gz
vaadin-framework-f6f4a28cf98368ad0eb1a8b5e9a973366c9c4fcf.zip
Add style names to selection checkboxes (#17755)
Change-Id: Ic7169c6a93dc497ca247db8740bbe9c8e4ac6809
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java
index 1f3085d273..8bf8639d76 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java
@@ -338,6 +338,24 @@ public class GridSelectionTest extends GridBasicFeaturesTest {
}
@Test
+ public void testSelectionCheckBoxesHaveStyleNames() {
+ openTestURL();
+
+ setSelectionModelMulti();
+
+ assertTrue(
+ "Selection column CheckBox should have the proper style name set",
+ getGridElement().getCell(0, 0).findElement(By.tagName("span"))
+ .getAttribute("class")
+ .contains("v-grid-selection-checkbox"));
+
+ GridCellElement header = getGridElement().getHeaderCell(0, 0);
+ assertTrue("Select all CheckBox should have the proper style name set",
+ header.findElement(By.tagName("span")).getAttribute("class")
+ .contains("v-grid-select-all-checkbox"));
+ }
+
+ @Test
public void testServerSideSelectTogglesSelectAllCheckBox() {
openTestURL();