Merge pull request #71 from dpradeep/merge-20140930
[civicrm-core.git] / tests / phpunit / WebTest / Profile / DedupeTest.php
index e446906cf77b0b437874dd6d046a2aee9e52dd43..9a0f101714be8780d815902a24343c00464df57a 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_Profile_DedupeTest
+ */
 class WebTest_Profile_DedupeTest extends CiviSeleniumTestCase {
 
   protected function setUp() {
@@ -58,7 +61,7 @@ class WebTest_Profile_DedupeTest extends CiviSeleniumTestCase {
     $this->click("_qf_Contact_upload_view");
     $this->waitForPageToLoad($this->getTimeoutMsec());
     $individualName = $this->getText("xpath=//div[@class='crm-summary-display_name']");
-    $this->assertElementContainsText('crm-notification-container', "$individualName has been created.");
+    $this->waitForText('crm-notification-container', "$individualName has been created.");
 
     // submit dupe using profile/create as anonymous
     $this->openCiviPage('profile/create', 'gid=4&reset=1', '_qf_Edit_next');