Merge pull request #8215 from colemanw/CRM-17985
[civicrm-core.git] / tests / phpunit / WebTest / Member / StandaloneAddTest.php
index f22f3292bed15dff3a2da5e33b95e3c38ec995a4..2db52d5023b8fd360c9811c54fe94564dd4d99d3 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-2016                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -134,11 +134,11 @@ class WebTest_Member_StandaloneAddTest extends CiviSeleniumTestCase {
     $this->select('payment_instrument_id', 'Check');
     $this->select('contribution_status_id', 'Completed');
 
-    $this->click("_qf_Membership_upload");
+    $this->clickLink("_qf_Membership_upload");
 
     //View Membership
-    $this->waitForElementPresent("xpath=//div[@id='memberships']//table//tbody/tr[1]/td[9]/span/a[text()='View']");
-    $this->click("xpath=//div[@id='memberships']//table/tbody/tr[1]/td[9]/span/a[text()='View']");
+    $this->waitForElementPresent("xpath=//table[@class='display dataTable no-footer']/tbody/tr[1]/td[9]/span/a[text()='View']");
+    $this->click("xpath=//table[@class='display dataTable no-footer']/tbody/tr[1]/td[9]/span/a[text()='View']");
     $this->waitForElementPresent("_qf_MembershipView_cancel-bottom");
 
     // verify soft credit data