diff options
-rw-r--r-- | qa/t/lib/QA/Util.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/qa/t/lib/QA/Util.pm b/qa/t/lib/QA/Util.pm index 5734064c2..c22e7a435 100644 --- a/qa/t/lib/QA/Util.pm +++ b/qa/t/lib/QA/Util.pm @@ -155,10 +155,11 @@ sub go_to_home { sub log_in { my ($sel, $config, $user) = @_; - go_to_home($sel, $config); - $sel->type_ok("Bugzilla_login_top", $config->{"${user}_user_login"}, "Enter $user login name"); - $sel->type_ok("Bugzilla_password_top", $config->{"${user}_user_passwd"}, "Enter $user password"); - $sel->click_ok("log_in_top", undef, "Submit credentials"); + $sel->open_ok("/$config->{bugzilla_installation}/login", undef, "Go to the home page"); + $sel->title_is("Bugzilla Main Page"); + $sel->type_ok("Bugzilla_login", $config->{"${user}_user_login"}, "Enter $user login name"); + $sel->type_ok("Bugzilla_password", $config->{"${user}_user_passwd"}, "Enter $user password"); + $sel->click_ok("log_in", undef, "Submit credentials"); $sel->wait_for_page_to_load(WAIT_TIME); $sel->title_is("Bugzilla Main Page", "User is logged in"); } |