+ $stateText = CRM_Core_PseudoConstant::stateProvinceAbbreviation(1004);
+ $countryText = CRM_Core_PseudoConstant::countryIsoCode(1228);
+ $billingDetails = array('15 Main St.', 'San Jose', '94129', $stateText, $countryText);
+ foreach ($billingDetails as $field) {
+ $this->assertElementContainsText("xpath=//div[@class='crm-group billing_name_address-group']//div[@class='crm-section no-label billing_address-section']", $field);
+ }
+