You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TableRequiredIndicatorTest.java 588B

12345678910111213141516171819202122232425
  1. package com.vaadin.tests.components.table;
  2. import static org.junit.Assert.assertTrue;
  3. import org.junit.Test;
  4. import org.openqa.selenium.By;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. /**
  7. * Checks that Table that has required flag set to true is also indicated as
  8. * such on the client side.
  9. *
  10. * @author Vaadin Ltd
  11. */
  12. public class TableRequiredIndicatorTest extends MultiBrowserTest {
  13. @Test
  14. public void testRequiredIndicatorIsVisible() {
  15. openTestURL();
  16. assertTrue(
  17. isElementPresent(By.className("v-required-field-indicator")));
  18. }
  19. }