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) {
3131 firstNameField ().sendKeys (registrationData .getFirstName ());
3232 lastNameField ().clear ();
3333 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 ());
4035 streetField ().clear ();
4136 streetField ().sendKeys (registrationData .getStreet ());
4237 postalCodeField ().clear ();
Original file line number Diff line number Diff line change 33 {
44 "firstName" : " Jason" ,
55 "lastName" : " Langer" ,
6- "dob" : " 01/04/ 1987" ,
6+ "dob" : " 1987-04-01 " ,
77 "street" : " 11/2, Fort Street" ,
88 "postalCode" : " 113445" ,
99 "city" : " California" ,
1717 {
1818 "firstName" : " Michael" ,
1919 "lastName" : " Justin" ,
20- "dob" : " 23/07/ 1981" ,
20+ "dob" : " 1981-07-23 " ,
2121 "street" : " 21/4, Dallas Street" ,
2222 "postalCode" : " 12976" ,
2323 "city" : " California" ,
You can’t perform that action at this time.
0 commit comments