From b896aae5f224989aca8cd350ca14cc79dee578f2 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 13 Aug 2013 02:04:20 +0530 Subject: [PATCH] fixes for WebTest_Case_ActivityToCaseTest --- tests/phpunit/WebTest/Case/ActivityToCaseTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/WebTest/Case/ActivityToCaseTest.php b/tests/phpunit/WebTest/Case/ActivityToCaseTest.php index 2ce2a43eb2..8af56d8d4a 100644 --- a/tests/phpunit/WebTest/Case/ActivityToCaseTest.php +++ b/tests/phpunit/WebTest/Case/ActivityToCaseTest.php @@ -170,8 +170,8 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase { $this->waitForText('crm-notification-container', $subject); // click through to the Activity view screen - $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[9]"); - $this->click("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[9]/span[2]/ul/li/a[text()='File On Case']"); + $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[8]"); + $this->click("xpath=//div[@id='Activities']//table/tbody/tr[2]/td[8]/span[2]/ul/li/a[text()='File On Case']"); $this->waitForElementPresent("css=div#fileOnCaseDialog"); $this->waitForElementPresent('case_activity_subject'); @@ -186,7 +186,7 @@ class WebTest_Case_ActivityToCaseTest extends CiviSeleniumTestCase { ); $this->click("xpath=//div[@class='ui-dialog-buttonset']/button/span[text()='Ok']"); - $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[1]/td[9]/span/a[text()='View']"); + $this->waitForElementPresent("xpath=//div[@id='Activities']//table/tbody/tr[1]/td[8]/span/a[text()='View']"); // verify if custom data is present $this->openCiviPage('case', 'reset=1'); -- 2.25.1