Browse Source

Add sleep to the failed test

fix-validation-7.7
ZheSun88 5 years ago
parent
commit
6327497697

+ 6
- 0
uitest/src/test/java/com/vaadin/tests/components/grid/GridInWindowResizeTest.java View File

@@ -26,6 +26,12 @@ public class GridInWindowResizeTest extends MultiBrowserTest {
GridElement grid = $(GridElement.class).first();
int col1WidthBefore = grid.getCell(0, 0).getSize().getWidth();
$(ButtonElement.class).caption("resize").first().click();
try {
Thread.sleep(1000);
} catch (InterruptedException e){

}
int col1WidthAfter = grid.getCell(0, 0).getSize().getWidth();

Assert.assertTrue(col1WidthAfter < col1WidthBefore);

Loading…
Cancel
Save