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.

CustomDateFormatEEETest.java 535B

12345678910111213141516171819202122
  1. package com.vaadin.tests.components.datefield;
  2. import static org.junit.Assert.assertEquals;
  3. import org.junit.Test;
  4. import org.openqa.selenium.By;
  5. import com.vaadin.tests.tb3.MultiBrowserTest;
  6. public class CustomDateFormatEEETest extends MultiBrowserTest {
  7. @Test
  8. public void verifyDatePattern() {
  9. openTestURL();
  10. String dateValue = driver
  11. .findElement(By.className("v-datefield-textfield"))
  12. .getAttribute("value");
  13. assertEquals("14/03/2014 Fri", dateValue);
  14. }
  15. }