From 8ec8da0491ad89604700b3e29a227966f6d84ba1 Mon Sep 17 00:00:00 2001 From: Perl Tidy Date: Wed, 5 Dec 2018 15:38:52 -0500 Subject: no bug - reformat all the code using the new perltidy rules --- qa/t/test_show_all_products.t | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'qa/t/test_show_all_products.t') 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); -- cgit v1.2.3-24-g4f1b