Additional changes for CRM-14961
authorRohan Katkar <rohan.katkar@webaccess.co.in>
Tue, 19 Aug 2014 14:00:02 +0000 (19:30 +0530)
committerRohan Katkar <rohan.katkar@webaccess.co.in>
Tue, 19 Aug 2014 14:00:02 +0000 (19:30 +0530)
tests/phpunit/WebTest/Contact/MergeContactsTest.php

index c75f46a2395a761c9f0422677f3662836d05f1b2..629aa71ec6cba9f1a9b0809fc10ea87de87f42b4 100644 (file)
@@ -215,7 +215,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->waitForElementPresent('email_1_email');
     $this->type('email_1_email', "{$firstName}.{$lastName}@example.com");
     $this->waitForElementPresent('contact_sub_type');
-    $this->select('contact_sub_type', "Staff");
+    $this->select('contact_sub_type', "Parent");
 
     // Clicking save.
     $this->click("_qf_Contact_upload_view");
@@ -232,7 +232,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->type('last_name', $lName);
     $this->type('email_1_email', "{$firstName}.{$lastName}@example.com");
     $this->waitForElementPresent('contact_sub_type');
-    $this->select('contact_sub_type', "Parent");
+    $this->multiselect2('contact_sub_type', array("Student", "Staff"));
     $this->click("_qf_Contact_upload_view");
     $this->waitForText('crm-notification-container', "Contact Saved");
     $this->openCiviPage("contact/deduperules", "reset=1");
@@ -248,7 +248,7 @@ class WebTest_Contact_MergeContactsTest extends CiviSeleniumTestCase {
     $this->click('toggleSelect');
     $this->click('_qf_Merge_next-bottom');
     $this->waitForPageToLoad($this->getTimeoutMsec());
-    $this->assertTrue($this->isTextPresent("Parent"));
+    $this->assertTrue($this->isTextPresent("Staff, Student"));
   }
   /**
    * @param $firstName