summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorTeppo Kurki <teppo.kurki@vaadin.com>2015-06-25 16:32:32 +0300
committerVaadin Code Review <review@vaadin.com>2015-07-01 10:20:48 +0000
commit5460f5ec736f479795d3301acb73d62040c99311 (patch)
treeb0a640e0f7a27e600b71712b20c4fea24576b6c9 /uitest
parentdb9929d8fc79d37bb299bad2ee644428f3bddc94 (diff)
downloadvaadin-framework-5460f5ec736f479795d3301acb73d62040c99311.tar.gz
vaadin-framework-5460f5ec736f479795d3301acb73d62040c99311.zip
Fixes non-editable column and selection visibility in editor
Change-Id: Ic336ac744ce66b1fd182aaae3cff6d1006b8238f
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java
index dbb903ff98..2cb40e1df8 100644
--- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java
@@ -57,6 +57,20 @@ public abstract class GridEditorTest extends GridBasicFeaturesTest {
}
@Test
+ public void testNonEditableCellDoesNotBlockContents() {
+ selectMenuPath(EDIT_ITEM_5);
+ assertEditorOpen();
+
+ WebElement editorCellContainer = getEditor().findElement(
+ By.className("v-grid-editor-cells"));
+ WebElement nonEditableDiv = editorCellContainer.findElements(
+ By.tagName("div")).get(3);
+
+ assertEquals("Non editable div was not hidden", "hidden",
+ nonEditableDiv.getCssValue("visibility"));
+ }
+
+ @Test
public void testProgrammaticOpeningClosing() {
selectMenuPath(EDIT_ITEM_5);
assertEditorOpen();