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_show_all_products.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_show_all_products.t')
-rw-r--r-- | qa/t/test_show_all_products.t | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/qa/t/test_show_all_products.t b/qa/t/test_show_all_products.t index ecc806980..84ba50831 100644 --- a/qa/t/test_show_all_products.t +++ b/qa/t/test_show_all_products.t @@ -16,7 +16,7 @@ use QA::Util; my ($sel, $config) = get_selenium(); log_in($sel, $config, 'admin'); -set_parameters($sel, { "Bug Fields" => {"useclassification-on" => undef} }); +set_parameters($sel, {"Bug Fields" => {"useclassification-on" => undef}}); # Do not use file_bug_in_product() because our goal here is not to file # a bug but to check what is present in the UI, and also to make sure @@ -31,7 +31,10 @@ $sel->title_is("Enter Bug"); $sel->click_ok("link=Other Products", undef, "Choose full product list"); $sel->wait_for_page_to_load(WAIT_TIME); $sel->title_is("Enter Bug"); -ok(!$sel->is_text_present("QA-Selenium-TEST"), "The QA-Selenium-TEST product is not displayed"); +ok( + !$sel->is_text_present("QA-Selenium-TEST"), + "The QA-Selenium-TEST product is not displayed" +); logout($sel); # Same steps, but for a member of the "QA‑Selenium‑TEST" group. @@ -42,16 +45,18 @@ $sel->click_ok('//*[@class="link-file"]//a'); $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->title_is("Enter A Bug"); if ($sel->is_text_present('None of the above; my bug is in')) { - $sel->click_ok('advanced_link'); - $sel->wait_for_page_to_load_ok(WAIT_TIME); - $sel->title_is("Enter Bug"); + $sel->click_ok('advanced_link'); + $sel->wait_for_page_to_load_ok(WAIT_TIME); + $sel->title_is("Enter Bug"); } $sel->click_ok('link=Other Products'); $sel->wait_for_page_to_load_ok(WAIT_TIME); + # For some unknown reason, Selenium doesn't like hyphens in links. # $sel->is_text_present_ok("QA-Selenium-TEST"); # $sel->click_ok("link=QA-Selenium-TEST"); -$sel->click_ok('//div[@id="choose_product"]//a[contains(@href, "QA-Selenium-TEST")]'); +$sel->click_ok( + '//div[@id="choose_product"]//a[contains(@href, "QA-Selenium-TEST")]'); $sel->wait_for_page_to_load_ok(WAIT_TIME); $sel->is_text_present_ok("Product: QA-Selenium-TEST"); logout($sel); |