Merge pull request #9616 from ErichBSchulz/feature/drupal_boot_no_exit
[civicrm-core.git] / tests / phpunit / WebTest / Grant / ContactContextAddTest.php
index 39142e14ead313516000e8654d132f4814e2960d..f5472d894daea391b2adafe8ac59cd392abcce1d 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.6                                                |
+ | 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');
@@ -95,13 +96,13 @@ class WebTest_Grant_ContactContextAddTest extends CiviSeleniumTestCase {
     // fill in decision Date
     $this->webtestFillDate('decision_date', 'now');
 
-    // fill in money transfered date
+    // fill in money transferred date
     $this->webtestFillDate('money_transfer_date', 'now');
 
     // fill in grant due Date
     $this->webtestFillDate('grant_due_date', 'now');
 
-    // check  grant report recieved.
+    // check  grant report received.
     $this->check('grant_report_received');
 
     // grant rationale