summaryrefslogtreecommitdiffstats
path: root/uitest
diff options
context:
space:
mode:
authorAlexander Nittka <alex@nittka.de>2018-06-07 12:23:02 +0200
committerIlia Motornyi <elmot@vaadin.com>2018-06-07 13:23:02 +0300
commit76230f8b1627faf2b10ffc7957a06f551ac2816c (patch)
tree36dc0d175d1130ae50ce82731af4f1765a887f97 /uitest
parent8fbf75cae8e7e7f45860c24dec6fe35feb8bd136 (diff)
downloadvaadin-framework-76230f8b1627faf2b10ffc7957a06f551ac2816c.tar.gz
vaadin-framework-76230f8b1627faf2b10ffc7957a06f551ac2816c.zip
Remove parse error when changing from invalid to empty date text (#10771)
Fixes #10673.
Diffstat (limited to 'uitest')
-rw-r--r--uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldIsValidTest.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldIsValidTest.java b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldIsValidTest.java
index 9934013c78..3797dd98c4 100644
--- a/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldIsValidTest.java
+++ b/uitest/src/test/java/com/vaadin/tests/components/datefield/DateFieldIsValidTest.java
@@ -37,10 +37,13 @@ public class DateFieldIsValidTest extends MultiBrowserTest {
assertLogText("4. buttonClick: value: null, is valid: false");
dateTextbox.clear();
+ button.click();
+ assertLogText("5. buttonClick: value: null, is valid: true");
+
dateTextbox.sendKeys("02/02/02", Keys.TAB);
- assertLogText("5. valueChange: value: 02/02/02, is valid: true");
+ assertLogText("6. valueChange: value: 02/02/02, is valid: true");
button.click();
- assertLogText("6. buttonClick: value: 02/02/02, is valid: true");
+ assertLogText("7. buttonClick: value: 02/02/02, is valid: true");
}
private void assertLogText(String expected) throws Exception {