From f2979d25a4ab9e794ac16748048027b2228b918e Mon Sep 17 00:00:00 2001 From: kurund Date: Wed, 14 Aug 2013 12:06:10 +0530 Subject: [PATCH] fixed --filter=testCheckDescAndCreatedIdFields WebTest_Profile_ProfileAddTest --- .../WebTest/Profile/ProfileAddTest.php | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/tests/phpunit/WebTest/Profile/ProfileAddTest.php b/tests/phpunit/WebTest/Profile/ProfileAddTest.php index 6cc4d283f8..f56419b071 100644 --- a/tests/phpunit/WebTest/Profile/ProfileAddTest.php +++ b/tests/phpunit/WebTest/Profile/ProfileAddTest.php @@ -304,23 +304,15 @@ class WebTest_Profile_ProfileAddTest extends CiviSeleniumTestCase { $this->waitForElementPresent("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[3]"); // check description is displayed on profile listing page - $this->assertEquals($this->getText("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[3]"), $profileDescription); + $this->assertEquals( + $this->getText("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[3]"), + $profileDescription); + // fetch created by $createdBy = $this->getText("xpath=//div[@id='user-profiles']/div/div/table/tbody/tr[@id='UFGroup-$id']/td[2]/a"); - // check if created by contact exists - $this->openCiviPage("dashboard", "reset=1"); - - // type sortname in autocomplete - $this->click("css=input#sort_name_navigation"); - $this->type("css=input#sort_name_navigation", $createdBy); - $this->typeKeys("css=input#sort_name_navigation", $createdBy); - - // wait for result list - $this->waitForElementPresent("css=div.ac_results-inner li"); - - // visit contact summary page - $this->clickLink("css=div.ac_results-inner li"); + // click on created by + $this->click("xpath=id('UFGroup-$id')/td[2]/a"); // Is contact present? $this->assertTrue($this->isTextPresent("$createdBy"), "Contact did not find!"); -- 2.25.1