++i;
} while (cell != null);
}
- int columnIndex = getColumns()
- .indexOf(getVisibleColumn(columnIndexDOM));
- if (columnIndex >= escalator.getColumnConfiguration()
+ if (columnIndexDOM >= escalator.getColumnConfiguration()
.getFrozenColumnCount()) {
escalator.scrollToColumn(columnIndexDOM, ScrollDestination.ANY,
10);
selectMenuPath("Component", "Columns",
"Toggle all column hidden state");
// Hides although already hidden
- selectMenuPath("Component", "Columns", "Column 0", "Hidden");
+ toggleColumnHidden(0);
// Shows
- selectMenuPath("Component", "Columns", "Column 0", "Hidden");
+ toggleColumnHidden(0);
// Hides although already hidden
- selectMenuPath("Component", "Columns", "Column 2", "Hidden");
+ toggleColumnHidden(2);
// Shows
- selectMenuPath("Component", "Columns", "Column 2", "Hidden");
+ toggleColumnHidden(2);
GridCellElement cell = getGridElement().getCell(0, 1);
dragResizeColumn(1, 0, -cell.getSize().getWidth());
assertGreaterOrEqual("Cell got too small.", cell.getSize().getWidth(),
column == focusedColumn
&& Math.abs(row - focusedRow) <= rowTolerance);
}
-}
\ No newline at end of file
+
+ @Test
+ public void testNavigateOverHiddenColumnToFrozenColumn() {
+ openTestURL();
+ setFrozenColumns(3);
+ toggleColumnHidden(1);
+ getGridElement().getCell(0, 2).click();
+ assertFocusedCell(0, 2);
+ new Actions(getDriver()).sendKeys(Keys.ARROW_LEFT).perform();
+ assertFocusedCell(0, 1);
+ new Actions(getDriver()).sendKeys(Keys.ARROW_LEFT).perform();
+ assertFocusedCell(0, 0);
+ }
+
+}