From: Web Access Date: Fri, 20 Mar 2015 13:17:31 +0000 (+0530) Subject: Webtest Fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=acaa2fb96eec607c38edc16072fcd2129c4a7304;p=civicrm-core.git Webtest Fixes --- diff --git a/tests/phpunit/WebTest/Contribute/AddBatchesTest.php b/tests/phpunit/WebTest/Contribute/AddBatchesTest.php index 654854a9b8..1cf453cb71 100644 --- a/tests/phpunit/WebTest/Contribute/AddBatchesTest.php +++ b/tests/phpunit/WebTest/Contribute/AddBatchesTest.php @@ -111,7 +111,6 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase { $this->_fillData($data[$i], $i, "Membership"); } $this->click("_qf_Entry_cancel"); - $this->waitForPageToLoad($this->getTimeoutMsec()); $this->_verifyData($data, "Membership"); } @@ -331,8 +330,8 @@ class WebTest_Contribute_AddBatchesTest extends CiviSeleniumTestCase { * @param $type */ public function _verifyData($data, $type) { - $this->waitForElementPresent("xpath=//table[@id='DataTables_Table_0']/tbody//tr/td[7]/span/a[1][text()='Enter records']"); - $this->click("xpath=//table[@id='DataTables_Table_0']/tbody//tr/td[7]/span/a[1][text()='Enter records']"); + $this->waitForElementPresent("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr//td/span/a[1][contains(text(),'Enter records')]"); + $this->click("xpath=//div[@class='dataTables_wrapper no-footer']/table/tbody//tr//td/span/a[1]"); $this->waitForElementPresent('_qf_Entry_upload'); $this->click("_qf_Entry_upload"); $this->waitForPageToLoad($this->getTimeoutMsec()); diff --git a/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php b/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php index b9322d5dc0..3269e0d802 100644 --- a/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php +++ b/tests/phpunit/WebTest/Event/AdditionalPaymentTest.php @@ -127,6 +127,7 @@ class WebTest_Event_AdditionalPaymentTest extends CiviSeleniumTestCase { $this->_checkPaymentInfoTable(800.00, 400.00); $balance = 800.00 - 400.00; //click through to the contribution view screen + $this-> waitForElementPresent("xpath=id('ParticipantView')/div[2]/table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='View']"); $this->click("xpath=id('ParticipantView')/div[2]/table[@class='selector row-highlight']/tbody/tr[1]/td[8]/span/a[text()='View']"); $this->waitForElementPresent("xpath=//button//span[contains(text(),'Done')]"); diff --git a/tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php b/tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php index ff0b9fef8d..b5803e469b 100644 --- a/tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php +++ b/tests/phpunit/WebTest/Member/FixedMembershipTypeTest.php @@ -526,7 +526,7 @@ SELECT end_event_adjust_interval $this->openCiviPage("admin/member/membershipType", "reset=1&action=browse"); $this->click("link=Add Membership Type"); - $this->waitForElementPresent('_qf_MembershipType_cancel-bottom'); + $this->waitForElementPresent("xpath=//button//span[contains(text(),'Cancel')]"); $this->type('name', "Membership Type $title"); $this->select2('member_of_contact_id', $title);