Webtest Fix- Master
[civicrm-core.git] / tests / phpunit / WebTest / Contact / AddressParsingTest.php
index 999bd9f0cbefcae5efe8130f93e141d4ac458fc1..bdf7b0b0af2079d39c8a1b33473991b03d69d9dc 100644 (file)
@@ -76,6 +76,7 @@ class WebTest_Contact_AddressParsingTest extends CiviSeleniumTestCase {
     $this->click("//div[@id='addMoreAddress1']/a/span");
     $this->waitForElementPresent("address_2_street_address");
     $this->type("address_2_street_address", "121 Sherman Street #15");
+    $this->waitForElementPresent("address_2_city");
     $this->type("address_2_city", "Birmingham");
     $this->type("address_2_postal_code", "3456");
     $this->select("address_2_state_province_id", "value=1002");
@@ -94,6 +95,7 @@ class WebTest_Contact_AddressParsingTest extends CiviSeleniumTestCase {
     $this->click("//div[@id='addMoreAddress3']/a/span");
     $this->waitForElementPresent("address_4_street_address");
     $this->type("address_4_street_address", "121 SW Sherman Way Suite 15");
+    $this->waitForElementPresent("address_4_city");
     $this->type("address_4_city", "Birmingham");
     $this->type("address_4_postal_code", "5491");
     $this->assertSelected('address_4_country_id', "UNITED STATES");