File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
java/io/github/mfaisalkhatri/pages Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,7 @@ public void fillRegistrationForm (final RegistrationData registrationData) {
31
31
firstNameField ().sendKeys (registrationData .getFirstName ());
32
32
lastNameField ().clear ();
33
33
lastNameField ().sendKeys (registrationData .getLastName ());
34
-
35
- Locale defaultLocale = Locale .getDefault ();
36
- DateFormat dateFormat = DateFormat .getDateInstance (DateFormat .SHORT , defaultLocale );
37
- String formattedDate = dateFormat .format (registrationData .getDob ());
38
- dobField ().sendKeys (formattedDate );
39
-
34
+ dobField ().sendKeys (registrationData .getDob ());
40
35
streetField ().clear ();
41
36
streetField ().sendKeys (registrationData .getStreet ());
42
37
postalCodeField ().clear ();
Original file line number Diff line number Diff line change 3
3
{
4
4
"firstName" : " Jason" ,
5
5
"lastName" : " Langer" ,
6
- "dob" : " 01/04/ 1987" ,
6
+ "dob" : " 1987-04-01 " ,
7
7
"street" : " 11/2, Fort Street" ,
8
8
"postalCode" : " 113445" ,
9
9
"city" : " California" ,
17
17
{
18
18
"firstName" : " Michael" ,
19
19
"lastName" : " Justin" ,
20
- "dob" : " 23/07/ 1981" ,
20
+ "dob" : " 1981-07-23 " ,
21
21
"street" : " 21/4, Dallas Street" ,
22
22
"postalCode" : " 12976" ,
23
23
"city" : " California" ,
You can’t perform that action at this time.
0 commit comments