aboutsummaryrefslogtreecommitdiffstats
path: root/uitest/src/test/java/com/vaadin/tests/components/table/TableRequiredIndicatorTest.java
blob: a76832bea22b4dcdd5fef936301261535fb390d8 (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
package com.vaadin.tests.components.table;

import static org.junit.Assert.assertTrue;

import org.junit.Test;
import org.openqa.selenium.By;

import com.vaadin.tests.tb3.MultiBrowserTest;

/**
 * Checks that Table that has required flag set to true is also indicated as
 * such on the client side.
 *
 * @author Vaadin Ltd
 */
public class TableRequiredIndicatorTest extends MultiBrowserTest {

    @Test
    public void testRequiredIndicatorIsVisible() {
        openTestURL();
        assertTrue(
                isElementPresent(By.className("v-required-field-indicator")));
    }

}