X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FWebTest%2FGrant%2FContactContextAddTest.php;h=f5472d894daea391b2adafe8ac59cd392abcce1d;hb=cb4100bc439690c0cd4840286377d1de7cbaf345;hp=dfbd677944c9178fab6c443f2019ae578718c99d;hpb=71f7de786e8da429b2e8d630cb3ec1bf02f529e9;p=civicrm-core.git diff --git a/tests/phpunit/WebTest/Grant/ContactContextAddTest.php b/tests/phpunit/WebTest/Grant/ContactContextAddTest.php index dfbd677944..f5472d894d 100644 --- a/tests/phpunit/WebTest/Grant/ContactContextAddTest.php +++ b/tests/phpunit/WebTest/Grant/ContactContextAddTest.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -61,7 +61,8 @@ class WebTest_Grant_ContactContextAddTest extends CiviSeleniumTestCase { $this->waitForElementPresent('crm-contact-actions-link'); // now add grant from contact summary - $this->click("//a[@id='crm-contact-actions-link']/span/div"); + $this->click("xpath=//div[@class='crm-actions-ribbon']/ul[@id='actions']/li[@class='crm-contact-activity crm-summary-block']/div/a[@id='crm-contact-actions-link']"); + $this->waitForElementPresent('crm-contact-actions-list'); // wait for add Grant link $this->waitForElementPresent('link=Add Grant');