aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/table/EmptyTableTest.java
blob: 793636257c1153fd0240acb4da32887b1eb11ca9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.vaadin.tests.components.table;

import static org.junit.Assert.fail;

import org.junit.Test;

import com.vaadin.testbench.elements.NotificationElement;
import com.vaadin.tests.tb3.MultiBrowserTest;

public class EmptyTableTest extends MultiBrowserTest {

    @Test
    public void test() {
        setDebug(true);
        openTestURL();

        ensureNoErrors();
    }

    private void ensureNoErrors() {
        if (isElementPresent(NotificationElement.class)) {
            fail("Error notification was shown!");
        }
    }

}