aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
diff options
context:
space:
mode:
Diffstat (limited to 'uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java')
-rw-r--r--uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
index d130eb643c..595e02655b 100644
--- a/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
+++ b/uitest/src/com/vaadin/tests/components/grid/WidgetRenderersTest.java
@@ -16,12 +16,15 @@
package com.vaadin.tests.components.grid;
import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.WebElement;
import com.vaadin.testbench.By;
+import com.vaadin.testbench.elements.ButtonElement;
+import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.annotations.TestCategory;
import com.vaadin.tests.components.grid.GridElement.GridCellElement;
import com.vaadin.tests.tb3.MultiBrowserTest;
@@ -70,6 +73,24 @@ public class WidgetRenderersTest extends MultiBrowserTest {
.endsWith("window/img/maximize.png"));
}
+ @Test
+ public void testColumnReorder() {
+ setDebug(true);
+ openTestURL();
+
+ $(ButtonElement.class).caption("Change column order").first().click();
+
+ assertFalse("Notification was present",
+ isElementPresent(NotificationElement.class));
+
+ assertTrue(getGridCell(0, 0)
+ .isElementPresent(By.className("gwt-Image")));
+ assertTrue(getGridCell(0, 1).isElementPresent(
+ By.className("v-progressbar")));
+ assertTrue(getGridCell(0, 2).isElementPresent(
+ By.className("gwt-Button")));
+ }
+
GridCellElement getGridCell(int row, int col) {
return $(GridElement.class).first().getCell(row, col);
}