diff options
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/test/java/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java b/uitest/src/test/java/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java index c6d6f44a00..6e83c2503f 100644 --- a/uitest/src/test/java/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java +++ b/uitest/src/test/java/com/vaadin/tests/components/grid/basicfeatures/server/GridColumnReorderTest.java @@ -209,6 +209,29 @@ public class GridColumnReorderTest extends GridBasicFeaturesTest { } @Test + public void testColumnReorder_draggingFrozenColumnsContainingHiddenColumns_impossible() { + // given + openTestURL(); + selectMenuPath("Component", "Size", "Width", "900px"); + toggleColumnReordering(); + setFrozenColumns(4); + toggleColumnHidden(1); + toggleColumnHidden(2); + assertColumnHeaderOrder(0, 3, 4, 5); + + // when + // drag frozen column out between non-frozen columns + dragAndDropDefaultColumnHeader(1, 2, CellSide.RIGHT); + + // then + // everything should be as before + assertColumnHeaderOrder(0, 3, 4, 5); + assertTrue(getGridElement().getHeaderCell(0, 0).isFrozen()); + assertTrue(getGridElement().getHeaderCell(0, 1).isFrozen()); + assertFalse(getGridElement().getHeaderCell(0, 2).isFrozen()); + } + + @Test public void testColumnReorder_draggingColumnOnTopOfFrozenColumn_columnDroppedRightOfFrozenColumns() { // given openTestURL(); |