Merge pull request #71 from dpradeep/merge-20140930
[civicrm-core.git] / tests / phpunit / WebTest / Contact / DupeContactTest.php
index b4d8fd8d4074adbf144c68441462fc7edbd5049e..0fee13e3ddf4540b7baad1fd72e05bf23aa5be16 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.5                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  +--------------------------------------------------------------------+
 */
 
-
 require_once 'CiviTest/CiviSeleniumTestCase.php';
+
+/**
+ * Class WebTest_Contact_DupeContactTest
+ */
 class WebTest_Contact_DupeContactTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -63,13 +66,12 @@ class WebTest_Contact_DupeContactTest extends CiviSeleniumTestCase {
     // Clicking save.
     $this->click("_qf_Contact_upload_view");
     $this->waitForPageToLoad($this->getTimeoutMsec());
-    $this->assertElementContainsText('crm-notification-container', "Contact Saved");
+    $this->waitForText('crm-notification-container', "Contact Saved");
 
     $this->openCiviPage('contact/add' , 'reset=1&ct=Individual');
 
     //contact details section
 
-
     //fill in first name
     $this->type("first_name", "$firstName");
 
@@ -87,4 +89,3 @@ class WebTest_Contact_DupeContactTest extends CiviSeleniumTestCase {
   }
 }
 
-