diff options
author | Leif Åstrand <leif@vaadin.com> | 2014-12-31 11:42:18 +0200 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-12-31 10:41:34 +0000 |
commit | 68e3c8586655f19d1ff0054f4d70d0f57e4ca30c (patch) | |
tree | 40713eea45f58326b51dc3886322dd001d1a5f63 /uitest | |
parent | 68e50ff6371bbe68e19d9145e7dfa787a7f18e89 (diff) | |
download | vaadin-framework-68e3c8586655f19d1ff0054f4d70d0f57e4ca30c.tar.gz vaadin-framework-68e3c8586655f19d1ff0054f4d70d0f57e4ca30c.zip |
Ignore selection col for server-side cell style generator (#15486)
Change-Id: Ia66ee24da787ca99d16705e699e46729d9aaaca6
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridCellStyleGeneratorTest.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridCellStyleGeneratorTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridCellStyleGeneratorTest.java index fc44d5aaf5..643c61d90a 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridCellStyleGeneratorTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridCellStyleGeneratorTest.java @@ -15,11 +15,14 @@ */ package com.vaadin.tests.components.grid.basicfeatures.server; +import static org.junit.Assert.assertFalse; + import org.junit.Assert; import org.junit.Test; import com.vaadin.testbench.elements.GridElement.GridCellElement; import com.vaadin.testbench.elements.GridElement.GridRowElement; +import com.vaadin.testbench.elements.NotificationElement; import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeatures; import com.vaadin.tests.components.grid.basicfeatures.GridBasicFeaturesTest; @@ -96,6 +99,18 @@ public class GridCellStyleGeneratorTest extends GridBasicFeaturesTest { Assert.assertTrue(hasCssClass(cell3_2, "Column-2")); } + @Test + public void testCellStyleGeneratorWithSelectionColumn() { + setDebug(true); + openTestURL(); + selectMenuPath("Component", "State", "Selection mode", "multi"); + + selectCellStyleNameGenerator(GridBasicFeatures.CELL_STYLE_GENERATOR_SPECIAL); + + assertFalse("Error notification was present", + isElementPresent(NotificationElement.class)); + } + private void selectRowStyleNameGenerator(String name) { selectMenuPath("Component", "State", "Row style generator", name); } |