From b17b59938b9f916cefe2eca14120622e66961de1 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Mon, 6 Jul 2015 17:28:58 +0300 Subject: Fix Grid header adding and removing with select all checkbox (#17592) Change-Id: I4306635ca334429ef006216c5b35165cf89a938f --- .../grid/basicfeatures/server/GridSelectionTest.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'uitest') diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java index b4eb473d4b..74972fe4d2 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/server/GridSelectionTest.java @@ -270,6 +270,20 @@ public class GridSelectionTest extends GridBasicFeaturesTest { } + @Test + public void testSelectAllCheckboxWithHeaderOperations() { + openTestURL(); + + setSelectionModelMulti(); + selectMenuPath("Component", "Header", "Prepend row"); + selectMenuPath("Component", "Header", "Append row"); + + GridCellElement header = getGridElement().getHeaderCell(1, 0); + assertTrue("Multi Selection Model should have select all checkbox", + header.isElementPresent(By.tagName("input"))); + + } + @Test public void testToggleDeselectAllowed() { openTestURL(); -- cgit v1.2.3