summaryrefslogtreecommitdiffstats
path: root/qa
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2016-12-20 06:21:47 +0100
committerDavid Lawrence <dkl@mozilla.com>2016-12-20 16:10:39 +0100
commit40e9efa1820f3d4b7e715c29b8b942e862540d62 (patch)
treeb9dabb8e59f933b0665eb7c6c233312ebe5160c2 /qa
parent574643ad6a9d62063f2d47f82328c1a4b7f5979d (diff)
downloadbugzilla-40e9efa1820f3d4b7e715c29b8b942e862540d62.tar.gz
bugzilla-40e9efa1820f3d4b7e715c29b8b942e862540d62.tar.xz
Bug 1321592 - Update Bugzilla Etiquette and add Abuse Policy
- Fix test_create_user_accounts.t test script
Diffstat (limited to 'qa')
-rw-r--r--qa/t/test_create_user_accounts.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/t/test_create_user_accounts.t b/qa/t/test_create_user_accounts.t
index 5d6471073..4b8725e13 100644
--- a/qa/t/test_create_user_accounts.t
+++ b/qa/t/test_create_user_accounts.t
@@ -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");