CRM-15031 Additional Fix
authorJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 8 Aug 2014 11:25:05 +0000 (16:55 +0530)
committerJitendra Purohit <jitendra.purohit@webaccessglobal.com>
Fri, 8 Aug 2014 11:25:05 +0000 (16:55 +0530)
tests/phpunit/WebTest/Event/AddEventTest.php
tests/phpunit/WebTest/Event/TellAFriendTest.php

index 4bef4ef0ee3d2250f8d0cb38e24356bdea07eb71..0d9d402b0216b9096a623a39cbe2974a8aad6468 100644 (file)
@@ -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');
index f74209f42026b260b4cceff447409ba1708a6e7f..92bac878545a7e59df7fe4eb61cdc69c87a88fc6 100644 (file)
@@ -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")
     );