From beb98747d5d4645351f219c148bca7ef37faa38b Mon Sep 17 00:00:00 2001 From: Jitendra Purohit Date: Fri, 8 Aug 2014 16:55:05 +0530 Subject: [PATCH] CRM-15031 Additional Fix --- tests/phpunit/WebTest/Event/AddEventTest.php | 2 +- tests/phpunit/WebTest/Event/TellAFriendTest.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/phpunit/WebTest/Event/AddEventTest.php b/tests/phpunit/WebTest/Event/AddEventTest.php index 4bef4ef0ee..0d9d402b02 100644 --- a/tests/phpunit/WebTest/Event/AddEventTest.php +++ b/tests/phpunit/WebTest/Event/AddEventTest.php @@ -318,7 +318,7 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase { $this->click("CIVICRM_QFID_0_is_monetary"); $this->clickLink("_qf_Fee_upload-bottom", "_qf_Fee_upload-bottom", FALSE); - $this->waitForElementPresent("xpath=//div[@id='event-fees'][@style='display: none;']"); + sleep(2); //check if pay later option is disabled $this->click('CIVICRM_QFID_1_is_monetary'); $this->waitForElementPresent('is_pay_later'); diff --git a/tests/phpunit/WebTest/Event/TellAFriendTest.php b/tests/phpunit/WebTest/Event/TellAFriendTest.php index f74209f420..92bac87854 100644 --- a/tests/phpunit/WebTest/Event/TellAFriendTest.php +++ b/tests/phpunit/WebTest/Event/TellAFriendTest.php @@ -154,13 +154,13 @@ class WebTest_Event_TellAFriendTest extends CiviSeleniumTestCase { preg_quote("$lastName, $firstName") ); - $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[1]", + $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span", preg_quote("$lastName1, $firstName1") ); - $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[2]", + $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span", preg_quote("$lastName2, $firstName2") ); - $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span/a[3]", + $this->verifyText("xpath=//table[@class='crm-info-panel']/tbody/tr[2]/td[2]/span", preg_quote("$lastName3, $firstName3") ); -- 2.25.1