diff options
author | patrik <patrik@vaadin.com> | 2015-08-12 16:02:50 +0300 |
---|---|---|
committer | patrik <patrik@vaadin.com> | 2015-08-20 13:30:46 +0300 |
commit | ba7071612bb546a74e49fcd82d37ceab9bbe420a (patch) | |
tree | a716711a8a847277617a5ab3577fe70131e84843 /uitest/src | |
parent | 7ed0d2a10e250b6ccadca1a6a1d3b9e52b9973b7 (diff) | |
download | vaadin-framework-ba7071612bb546a74e49fcd82d37ceab9bbe420a.tar.gz vaadin-framework-ba7071612bb546a74e49fcd82d37ceab9bbe420a.zip |
Make Grid Editor return focus to last focused cell (#16834)
Change-Id: Ifbea95c2b5b39ca3c4532baa7e3f9298423bc030
Diffstat (limited to 'uitest/src')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridEditorClientTest.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridEditorClientTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridEditorClientTest.java index 58d6559bfb..0dd137db48 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridEditorClientTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/client/GridEditorClientTest.java @@ -81,9 +81,19 @@ public class GridEditorClientTest extends GridBasicClientFeaturesTest { getGridElement().getCell(4, 0).doubleClick(); assertNotNull(getEditor()); - getCancelButton().click(); + // Move focus to the third input field + getEditor().findElements(By.className("gwt-TextBox")).get(2).click(); + + // Press save button + getSaveButton().click(); + + // Make sure the editor went away assertNull(getEditor()); + // Check that focus has moved to cell 4,2 - the last one that was + // focused in Editor + assertTrue(getGridElement().getCell(4, 2).isFocused()); + // Disable editor selectMenuPath("Component", "Editor", "Enabled"); |