@@ -156,12 +156,7 @@ public void simpleSignIn()
156156 }
157157 else
158158 {
159- log ("Signing in as " + PasswordUtil .getUsername ());
160- assertElementPresent (Locator .tagWithName ("form" , "login" ));
161- setFormElement (Locator .name ("email" ), PasswordUtil .getUsername ());
162- setFormElement (Locator .name ("password" ), PasswordUtil .getPassword ());
163- acceptTermsOfUse (null , false );
164- clickButton ("Sign In" , 0 );
159+ fillSignInFormAndSubmit ();
165160
166161 // verify we're signed in now
167162 if (!waitFor (() ->
@@ -202,6 +197,16 @@ else if (errors.contains("log in and approve the terms of use."))
202197 WebTestHelper .saveSession (PasswordUtil .getUsername (), getDriver ());
203198 }
204199
200+ public void fillSignInFormAndSubmit ()
201+ {
202+ log ("Signing in as " + PasswordUtil .getUsername ());
203+ assertElementPresent (Locator .tagWithName ("form" , "login" ));
204+ setFormElement (Locator .name ("email" ), PasswordUtil .getUsername ());
205+ setFormElement (Locator .name ("password" ), PasswordUtil .getPassword ());
206+ acceptTermsOfUse (null , false );
207+ clickButton ("Sign In" , 0 );
208+ }
209+
205210 /**
206211 * Call the LogoutApi to sign out
207212 */
0 commit comments