diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-05-27 11:07:00 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-05-27 09:41:35 +0000 |
commit | 7925e4ce136b98e2807725ffe6ef86f3d40e69bc (patch) | |
tree | 27cdca73e50e4ea21870abafe8b65f5b198d4fff /uitest | |
parent | 0883983a4d361df61bcc4b6d38bcde2616a8e097 (diff) | |
download | vaadin-framework-7925e4ce136b98e2807725ffe6ef86f3d40e69bc.tar.gz vaadin-framework-7925e4ce136b98e2807725ffe6ef86f3d40e69bc.zip |
Add class name for not editable editor cells (#18021)
Change-Id: Ib9bfb1fd3fe2f3caef745aa0d8fad5913759cb9e
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridEditorTest.java | 10 |
1 files changed, 9 insertions, 1 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 2d9d4018e6..5f42bd66d3 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 @@ -298,8 +298,16 @@ public class GridEditorTest extends GridBasicFeaturesTest { selectMenuPath(EDIT_ITEM_5); assertEditorOpen(); + GridEditorElement editor = getGridElement().getEditor(); assertFalse("Uneditable column should not have an editor widget", - getGridElement().getEditor().isEditable(3)); + editor.isEditable(3)); + assertEquals( + "Not editable cell did not contain correct classname", + "not-editable", + editor.findElement(By.className("v-grid-editor-cells")) + .findElements(By.xpath("./div")).get(3) + .getAttribute("class")); + } private WebElement getSaveButton() { |