aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridHeightByRowOnInitTest.java
blob: 15a1cd6c85f03ceb17e57e2436350cecf8abd3c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.vaadin.tests.components.grid.basicfeatures;

import org.junit.Test;

import com.vaadin.testbench.elements.GridElement;
import com.vaadin.tests.annotations.TestCategory;
import com.vaadin.tests.tb3.MultiBrowserTest;

@SuppressWarnings("all")
@TestCategory("grid")
public class GridHeightByRowOnInitTest extends MultiBrowserTest {

    @Test
    public void gridHeightIsMoreThanACoupleOfRows() {
        openTestURL();
        int height = $(GridElement.class).first().getSize().getHeight();
        assertGreater("Grid should be much taller than 150px (was " + height
                + "px)", height, 150);
    }
}