您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }