From: Jitendra Purohit Date: Fri, 8 Aug 2014 11:25:05 +0000 (+0530) Subject: CRM-15031 Additional Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=beb98747d5d4645351f219c148bca7ef37faa38b;p=civicrm-core.git CRM-15031 Additional Fix --- 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") );