]> source.dussan.org Git - vaadin-framework.git/blob
7aec9190800e34fda91a56b162d31554c8697c28
[vaadin-framework.git] /
1 package com.vaadin.tests.components.grid.basicfeatures;
2
3 import org.junit.Test;
4 import org.openqa.selenium.By;
5
6 import com.vaadin.testbench.parallel.TestCategory;
7 import com.vaadin.tests.tb3.MultiBrowserTest;
8
9 @SuppressWarnings("all")
10 @TestCategory("grid")
11 public class GridClientHeightByRowOnInitTest extends MultiBrowserTest {
12     @Test
13     public void gridHeightIsMoreThanACoupleOfRows() {
14         openTestURL();
15         int height = findElement(By.className("v-grid")).getSize().getHeight();
16         assertGreater(
17                 "Grid should be much taller than 150px (was " + height + "px)",
18                 height, 150);
19     }
20 }