fhoeben / hsac-fitnesse-fixtures

An environment to define and run integration tests. It contains Fitnesse fixture (base) classes and a baseline FitNesse installation.
Apache License 2.0
110 stars 99 forks source link

sometimes fitnesse test try to input date, but incomplete data #250

Open wangdaqian08 opened 5 years ago

wangdaqian08 commented 5 years ago

version: fitnesse.version 20181224 hsac-fitnesse-fixtures.version 3.31.2

template:

|verify update employee contact details                       |
|action|newValue       |link|property                    |wait|
|enter |Straya         |as  |Country                     |0   |
|enter |10/05/2018     |as  |Start Date                  |0   |
|enter |10/07/2018     |as  |Leave Date                  |0   |

|table template  |verify update employee contact details |
|click           |Edit                                   |
|wait for visible|Update                                 |
|click           |@{property}                            |
|@{action}       |@{newValue}    |@{link}    |@{property}|
|wait            |@{wait}        |seconds                |
|click           |Update                                 |
|wait for visible|Edit                                   |
|check           |value of       |@{property}|@{newValue}|
|show            |take screenshot|Updated Contact Details|

expect: Leave Date 10/07/2018

actual: Leave Date 72/01/8___

fhoeben commented 5 years ago

Can you enter a date on the web page when you type the same characters manually?

I've seen similar behaviour in the past for inputs of type date, or with custom javascript validation/formatting. In those instances manual entry of a date via the keyboard was also problematic. I wonder whether that is also the case for you.