Webtest fixes
[civicrm-core.git] / tests / phpunit / WebTest / Contact / SearchBuilderTest.php
index b4d8384d8ae579a6f37d744396c67235893aae2d..e2892c30694e886fd9a894989c9c4d992a846f61 100644 (file)
@@ -83,7 +83,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     $this->type("first_name", "$firstName");
     $this->type("middle_name", "mid$firstName");
     $this->type("last_name", "adv$firstName");
-    $this->select("contact_sub_type", "label=$Subtype");
+    $this->select("contact_sub_type", "label=$Subtype");
     $this->type("email_1_email", "$firstName@advsearch.co.in");
     $this->type("phone_1_phone", "123456789");
     $this->type("external_identifier", "extid$firstName");
@@ -241,7 +241,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     if ($loc) {
       $this->select("mapper_{$set}_{$row}_2", "label=$loc");
     }
-    $this->select("operator_{$set}_{$row}", "label=$op");
+    $this->select("operator_{$set}_{$row}", "value=$op");
     if (is_array($value)) {
       $this->waitForElementPresent("css=#crm_search_value_{$set}_{$row} select option + option");
       foreach ($value as $val) {
@@ -268,7 +268,7 @@ class WebTest_Contact_SearchBuilderTest extends CiviSeleniumTestCase {
     //advanced search by selecting the contactType
     $this->openCiviPage("contact/search/advanced", "reset=1");
     if (isset($contactType)) {
-      $this->select("id=crmasmSelect0", "value=$contactType");
+      $this->select("id=contact_type", "value=$contactType");
     }
     if (substr($field, 0, 5) == 'note_') {
       $this->click("notes");