CRM-15197 - fix for WebTest_Contact_AddTest::testIndividualAddWithSharedAddress
authorDave Greenberg <dave@civicrm.org>
Tue, 16 Sep 2014 18:46:19 +0000 (14:46 -0400)
committerDave Greenberg <dave@civicrm.org>
Tue, 16 Sep 2014 18:46:19 +0000 (14:46 -0400)
----------------------------------------
* CRM-15197:
  https://issues.civicrm.org/jira/browse/CRM-15197

tests/phpunit/WebTest/Contact/AddTest.php

index 042e25e831767c3f4e872488a529594ff8aac684..da8e5926f3d1bd716862cdc9ff5a4f9766d89fb0 100644 (file)
@@ -476,7 +476,7 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
     $this->click("_qf_Edit_next");
 
     // Is new contact created?
-    $this->waitForText('crm-notification-container', "$sharedHousehold Created");
+    $this->waitForText("css=div.crm-status-box-msg", "$sharedHousehold Created");
 
     //make sure shared address is selected
     $this->waitForElementPresent('selected_shared_address-2');
@@ -498,8 +498,8 @@ class WebTest_Contact_AddTest extends CiviSeleniumTestCase {
     // make sure relationships are created
     $this->click("xpath=id('tab_rel')/a");
     $this->waitForElementPresent('permission-legend');
-    $this->assertElementContainsText('option11', 'Employee of');
-    $this->assertElementContainsText('option11', 'Household Member of');
+    $this->assertElementContainsText('DataTables_Table_0', 'Employee of');
+    $this->assertElementContainsText('DataTables_Table_0', 'Household Member of');
   }
 }