CRM-18454: webtest fixes
[civicrm-core.git] / tests / phpunit / WebTest / Contact / CustomDataAddTest.php
index 1c3d2b1dccfab9606dd653a4bbbab969df2efcad..bb0b27ad0cba0aaa8f7c8661edddc912dd48656a 100644 (file)
@@ -232,7 +232,7 @@ class WebTest_Contact_CustomDataAddTest extends CiviSeleniumTestCase {
 
     //verify the money custom field value in the proper format
     $this->assertTrue($this->isElementPresent("xpath=//div[@id='custom-set-content-{$customFieldsetId}']/div/div[2]/div[2]"));
-    $this->verifyText("xpath=//div[@id='custom-set-content-{$customFieldsetId}']/div/div[2]/div[2]", '12,345,678.98');
+    $this->assertElementContainsText("xpath=//div[@id='custom-set-content-{$customFieldsetId}']/div/div[2]/div[2]", '12,345,678.98');
   }
 
   public function testCustomDataChangeLog() {