From 0512e9c62269f86fc0d086d5c06eaf392435d7cd Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Fri, 19 Sep 2014 15:46:37 +0530 Subject: [PATCH] WebtestFix --- tests/phpunit/CiviTest/CiviSeleniumTestCase.php | 2 +- .../WebTest/Contribute/OnlineContributionTest.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php index 7b54781ce8..ff5bcd174e 100644 --- a/tests/phpunit/CiviTest/CiviSeleniumTestCase.php +++ b/tests/phpunit/CiviTest/CiviSeleniumTestCase.php @@ -730,7 +730,7 @@ class CiviSeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase { if ($processorName === 'Test Processor') { // Use the default test processor, no need to create a new one - $this->openCiviPage('admin/paymentProcessor', 'action=update&id=1&reset=1'); + $this->openCiviPage('admin/paymentProcessor', 'action=update&id=1&reset=1', '_qf_PaymentProcessor_cancel-bottom'); $this->check('is_default'); $this->clickLink('_qf_PaymentProcessor_next-bottom'); return 1; diff --git a/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php b/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php index 60d83a3d42..b70cef7e6f 100644 --- a/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php +++ b/tests/phpunit/WebTest/Contribute/OnlineContributionTest.php @@ -235,17 +235,17 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase { $this->type('title', "Test Priceset $rand"); $this->check('extends_2'); $this->select("financial_type_id", "label=Donation"); - $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom'); + $this->clickLink('_qf_Set_next-bottom', '_qf_Field_next-bottom', FALSE); $sid = $this->urlArg('sid'); //add field $this->type('label', "Testfield"); $this->select('html_type', "value=Radio"); $this->type('option_label_1', 'test Label'); $this->type('option_amount_1', 0.00); - $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom'); + $this->clickLink('_qf_Field_next_new-bottom', '_qf_Field_next-bottom', FALSE); $this->openCiviPage("admin/contribute/amount", "reset=1&action=update&id=$pageId", '_qf_Amount_cancel-bottom'); $this->select('price_set_id', "value=$sid"); - $this->clickLink('_qf_Amount_upload_done-bottom'); + $this->clickLink('_qf_Amount_upload_done-bottom', FALSE); //Contribution using priceset $this->_doContributionAndVerifyData($pageId, TRUE); @@ -303,8 +303,8 @@ class WebTest_Contribute_OnlineContributionTest extends CiviSeleniumTestCase { $this->openCiviPage("contribute/search", "reset=1", "contribution_date_low"); $this->type("sort_name", "$firstName $lastName"); - $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']"); - $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom"); + $this->clickLink("_qf_Search_refresh", "xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", FALSE); + $this->clickLink("xpath=//div[@id='contributionSearch']//table//tbody/tr[1]/td[11]/span/a[text()='View']", "_qf_ContributionView_cancel-bottom", FALSE); //View Contribution Record and verify data $expected = array( -- 2.25.1