diff options
author | Perl Tidy <perltidy@bugzilla.org> | 2018-12-05 21:38:52 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-12-05 23:49:08 +0100 |
commit | 8ec8da0491ad89604700b3e29a227966f6d84ba1 (patch) | |
tree | 9d270f173330ca19700e0ba9f2ee931300646de1 /qa/t/test_custom_fields_admin.t | |
parent | a7bb5a65b71644d9efce5fed783ed545b9336548 (diff) | |
download | bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.gz bugzilla-8ec8da0491ad89604700b3e29a227966f6d84ba1.tar.xz |
no bug - reformat all the code using the new perltidy rules
Diffstat (limited to 'qa/t/test_custom_fields_admin.t')
-rw-r--r-- | qa/t/test_custom_fields_admin.t | 45 |
1 files changed, 24 insertions, 21 deletions
diff --git a/qa/t/test_custom_fields_admin.t b/qa/t/test_custom_fields_admin.t index 81fcfe7cb..6ca5c62bf 100644 --- a/qa/t/test_custom_fields_admin.t +++ b/qa/t/test_custom_fields_admin.t @@ -24,30 +24,33 @@ $sel->click_ok("link=Custom Fields"); $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_is("Custom Fields"); -my @types = ("Bug ID", "Large Text Box", "Free Text", "Multiple-Selection Box", - "Drop Down", "Date/Time"); +my @types = ( + "Bug ID", "Large Text Box", + "Free Text", "Multiple-Selection Box", + "Drop Down", "Date/Time" +); my $counter = int(rand(10000)); foreach my $type (@types) { - my $fname = "cf_field" . ++$counter; - my $fdesc = "Field" . $counter; - - $sel->click_ok("link=Add a new custom field"); - $sel->wait_for_page_to_load_ok(WAIT_TIME); - $sel->title_is("Add a new Custom Field"); - $sel->type_ok("name", $fname); - $sel->type_ok("desc", $fdesc); - $sel->select_ok("type", "label=$type"); - $sel->click_ok("obsolete"); - $sel->click_ok("create"); - $sel->wait_for_page_to_load_ok(WAIT_TIME); - $sel->title_is("Custom Field Created"); - $sel->click_ok("//a[\@href='editfields.cgi?action=del&name=$fname']"); - $sel->wait_for_page_to_load_ok(WAIT_TIME); - $sel->title_is("Delete the Custom Field '$fname' ($fdesc)"); - $sel->click_ok("link=Delete field '$fdesc'"); - $sel->wait_for_page_to_load_ok(WAIT_TIME); - $sel->title_is("Custom Field Deleted"); + my $fname = "cf_field" . ++$counter; + my $fdesc = "Field" . $counter; + + $sel->click_ok("link=Add a new custom field"); + $sel->wait_for_page_to_load_ok(WAIT_TIME); + $sel->title_is("Add a new Custom Field"); + $sel->type_ok("name", $fname); + $sel->type_ok("desc", $fdesc); + $sel->select_ok("type", "label=$type"); + $sel->click_ok("obsolete"); + $sel->click_ok("create"); + $sel->wait_for_page_to_load_ok(WAIT_TIME); + $sel->title_is("Custom Field Created"); + $sel->click_ok("//a[\@href='editfields.cgi?action=del&name=$fname']"); + $sel->wait_for_page_to_load_ok(WAIT_TIME); + $sel->title_is("Delete the Custom Field '$fname' ($fdesc)"); + $sel->click_ok("link=Delete field '$fdesc'"); + $sel->wait_for_page_to_load_ok(WAIT_TIME); + $sel->title_is("Custom Field Deleted"); } logout($sel); |