diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2014-07-17 16:43:25 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-07-22 11:33:09 +0000 |
commit | a08d6a34fc7a89c1bad74047bfe2fd38a585e409 (patch) | |
tree | d7c9f2c0869939669274f9fa1011b4e51423870c /uitest | |
parent | 86e1c718578f8c81323b47e3efed03178d123c03 (diff) | |
download | vaadin-framework-a08d6a34fc7a89c1bad74047bfe2fd38a585e409.tar.gz vaadin-framework-a08d6a34fc7a89c1bad74047bfe2fd38a585e409.zip |
Implement keyboard navigation between containers (#13334)
Change-Id: I1592582eb20d46bac6ef6f5a6e995a6b3a73098b
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridKeyboardNavigationTest.java | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridKeyboardNavigationTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridKeyboardNavigationTest.java index 465fdedad6..4c7e7c6365 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridKeyboardNavigationTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridKeyboardNavigationTest.java @@ -18,9 +18,6 @@ package com.vaadin.tests.components.grid.basicfeatures; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import java.io.IOException; - -import org.junit.Ignore; import org.junit.Test; import org.openqa.selenium.By; import org.openqa.selenium.Keys; @@ -89,18 +86,36 @@ public class GridKeyboardNavigationTest extends GridBasicFeaturesTest { } @Test - @Ignore("This feature is still on the TODO list") - public void testNavigateFromHeaderToBody() throws IOException { + public void testNavigateFromHeaderToBody() { openTestURL(); GridElement grid = getGridElement(); grid.scrollToRow(300); - grid.getHeaderCell(0, 7).click(); + new Actions(driver).moveToElement(grid.getHeaderCell(0, 7)).click() + .perform(); + grid.scrollToRow(280); assertTrue("Header cell is not active.", grid.getHeaderCell(0, 7) .isActive()); new Actions(getDriver()).sendKeys(Keys.ARROW_DOWN).perform(); - assertTrue("Body cell 282, 7 is not active", grid.getCell(282, 7) + assertTrue("Body cell 280, 7 is not active", grid.getCell(280, 7) + .isActive()); + } + + @Test + public void testNavigationFromFooterToBody() { + openTestURL(); + + selectMenuPath("Component", "Footers", "Visible"); + + GridElement grid = getGridElement(); + grid.scrollToRow(300); + grid.getFooterCell(0, 2).click(); + + assertTrue("Footer cell is not active.", grid.getFooterCell(0, 2) + .isActive()); + new Actions(getDriver()).sendKeys(Keys.ARROW_UP).perform(); + assertTrue("Body cell 300, 2 is not active", grid.getCell(300, 2) .isActive()); } } |