<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
parent::setUp();
}
- function teststreetAddressParsing() {
+ public function teststreetAddressParsing() {
// Logging in.
$this->webtestLogin();
$this->type("address_4_street_address", "121 SW Sherman Way Suite 15");
$this->type("address_4_city", "Birmingham");
$this->type("address_4_postal_code", "5491");
- $this->assertTrue($this->isTextPresent("- select - United States"));
+ $this->assertSelected('address_4_country_id', "United States");
$this->select("address_4_state_province_id", "value=1002");
// Store location type of each address
$this->waitForElementPresent("address_{$i}_street_address");
$address[$i] = $location[$this->getSelectedLabel("address_{$i}_location_type_id")];
// Open "Edit Address Elements"
- $this->click("//table[@id='address_{$i}']//a[text()='Edit Address Elements']");
+ $this->waitForElementPresent('addressBlockId');
+ $this->click('addressBlockId');
+ $this->click("//table[@id='address_table_{$i}']//a[text()='Edit Address Elements']");
}
//verify all the address fields were parsed correctly
}
}
}
-