]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
use login page rather than top login [testing]
authorDylan William Hardison <dylan@hardison.net>
Tue, 4 Apr 2017 13:04:03 +0000 (09:04 -0400)
committerDylan William Hardison <dylan@hardison.net>
Tue, 4 Apr 2017 13:07:14 +0000 (09:07 -0400)
qa/t/lib/QA/Util.pm

index 5734064c27d6dc618642f4e44a63fd2eeec06c9d..c22e7a435338284ab94cb066e52351a00df229d2 100644 (file)
@@ -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");
 }