Commit fbd5f0f9 authored by bojanz's avatar bojanz Committed by bojanz

Issue #3045710 by bojanz: Require Address 1.6

parent 4d762917
......@@ -12,8 +12,7 @@ mode: default
content:
address:
type: address_default
settings:
default_country: site_default
settings: { }
weight: 3
region: content
third_party_settings: { }
......
......@@ -301,9 +301,6 @@ class Store extends ContentEntityBase implements StoreInterface {
])
->setDisplayOptions('form', [
'type' => 'address_default',
'settings' => [
'default_country' => 'site_default',
],
'weight' => 3,
])
->setDisplayConfigurable('view', TRUE)
......
......@@ -93,20 +93,6 @@ class StoreTest extends CommerceWebDriverTestBase {
$edit = [
'name[0][value]' => 'Test2',
];
// The original address is not present on the form due to an Address bug.
// @todo Remove when #2838457 is fixed.
$address = [
'address_line1' => '1098 Alta Ave',
'locality' => 'Mountain View',
'administrative_area' => 'CA',
'postal_code' => '94043',
];
$this->getSession()->getPage()->fillField('address[0][address][country_code]', 'US');
$this->getSession()->wait(4000, 'jQuery(\'select[name="address[0][address][administrative_area]"]\').length > 0 && jQuery.active == 0;');
foreach ($address as $property => $value) {
$path = 'address[0][address][' . $property . ']';
$edit[$path] = $value;
}
$this->submitForm($edit, 'Save');
$this->assertSession()->pageTextContains('Saved the Test2 store.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment