summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTeppo Kurki <teppo.kurki@vaadin.com>2015-08-11 22:55:43 +0300
committerTeppo Kurki <teppo.kurki@vaadin.com>2015-08-11 22:57:07 +0300
commit53c114ec5e0c2223dfb6e9456c60a05e1c2ad381 (patch)
treed531c49ac1a56b265299c2cccbceb2a570f72e09 /uitest
parente7e6fd78c1a1506947e8301c1235c622cf424826 (diff)
downloadvaadin-framework-53c114ec5e0c2223dfb6e9456c60a05e1c2ad381.tar.gz
vaadin-framework-53c114ec5e0c2223dfb6e9456c60a05e1c2ad381.zip
Add style names to selection checkboxes (#17755)
Change-Id: I982433f643962ed68b0856b520d331038c7fe838
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();