]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1321592 - Update Bugzilla Etiquette and add Abuse Policy
authorDavid Lawrence <dkl@mozilla.com>
Tue, 20 Dec 2016 05:21:47 +0000 (19:21 -1000)
committerDavid Lawrence <dkl@mozilla.com>
Tue, 20 Dec 2016 15:10:39 +0000 (05:10 -1000)
- Fix test_create_user_accounts.t test script

qa/t/test_create_user_accounts.t

index 5d647107371aaaa37821bd2ed28a44bb14954df8..4b8725e1391d68b40a81ae1ddc981af4f6ee823c 100644 (file)
@@ -30,6 +30,7 @@ $sel->click_ok("link=Open a New Account");
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Create a new Bugzilla account");
 $sel->type_ok("login", $valid_account);
+$sel->click_ok("agree", "Accept code of conduct");
 $sel->click_ok('//input[@value="Create Account"]');
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Request for new user account '$valid_account' submitted");
@@ -44,6 +45,7 @@ $sel->click_ok("link=Open a New Account");
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Create a new Bugzilla account");
 $sel->type_ok("login", $valid_account);
+$sel->click_ok("agree", "Accept code of conduct");
 $sel->click_ok('//input[@value="Create Account"]');
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Too Soon For New Token");
@@ -57,6 +59,7 @@ foreach my $account (@accounts) {
     $sel->wait_for_page_to_load_ok(WAIT_TIME);
     $sel->title_is("Create a new Bugzilla account");
     $sel->type_ok("login", $account);
+    $sel->click_ok("agree", "Accept code of conduct");
     $sel->click_ok('//input[@value="Create Account"]');
     $sel->wait_for_page_to_load_ok(WAIT_TIME);
     $sel->title_is("Account Creation Restricted");
@@ -78,6 +81,7 @@ foreach my $account (@accounts) {
     $sel->wait_for_page_to_load_ok(WAIT_TIME);
     $sel->title_is("Create a new Bugzilla account");
     $sel->type_ok("login", $account);
+    $sel->click_ok("agree", "Accept code of conduct");
     $sel->click_ok('//input[@value="Create Account"]');
     ok($sel->get_alert() =~ /The e-mail address doesn't pass our syntax checking for a legal email address/,
         'Invalid email address detected');
@@ -92,6 +96,7 @@ foreach my $account (@accounts) {
     $sel->wait_for_page_to_load_ok(WAIT_TIME);
     $sel->title_is("Create a new Bugzilla account");
     $sel->type_ok("login", $account);
+    $sel->click_ok("agree", "Accept code of conduct");
     $sel->click_ok('//input[@value="Create Account"]');
     $sel->wait_for_page_to_load_ok(WAIT_TIME);
     $sel->title_is("Invalid Email Address");
@@ -104,6 +109,7 @@ $sel->click_ok("link=New Account");
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Create a new Bugzilla account");
 $sel->type_ok("login", $config->{admin_user_login});
+$sel->click_ok("agree", "Accept code of conduct");
 $sel->click_ok('//input[@value="Create Account"]');
 $sel->wait_for_page_to_load_ok(WAIT_TIME);
 $sel->title_is("Account Already Exists");