From: Dave Greenberg Date: Tue, 16 Sep 2014 18:46:19 +0000 (-0400) Subject: CRM-15197 - fix for WebTest_Contact_AddTest::testIndividualAddWithSharedAddress X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=da526d604a1b6066ed6f0a1e6d0ac80004bf2d1c;p=civicrm-core.git CRM-15197 - fix for WebTest_Contact_AddTest::testIndividualAddWithSharedAddress ---------------------------------------- * CRM-15197: https://issues.civicrm.org/jira/browse/CRM-15197 --- diff --git a/tests/phpunit/WebTest/Contact/AddTest.php b/tests/phpunit/WebTest/Contact/AddTest.php index 042e25e831..da8e5926f3 100644 --- a/tests/phpunit/WebTest/Contact/AddTest.php +++ b/tests/phpunit/WebTest/Contact/AddTest.php @@ -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'); } }