Skip to content

Commit bb155f6

Browse files
committed
MAGETWO-60965: [Backport] - New attribute is not visible when create new address - for 2.0
1 parent 5ba0833 commit bb155f6

File tree

3 files changed

+30
-51
lines changed

3 files changed

+30
-51
lines changed

dev/tests/functional/tests/app/Magento/Customer/Test/Block/Address/Edit.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,22 @@ public function saveAddress()
6161
{
6262
$this->_rootElement->find($this->saveAddress)->click();
6363
}
64+
65+
/**
66+
* Fixture mapping.
67+
*
68+
* @param array|null $fields
69+
* @param string|null $parent
70+
* @return array
71+
*/
72+
protected function dataMapping(array $fields = null, $parent = null)
73+
{
74+
if (isset($fields['custom_attribute'])) {
75+
$this->placeholders =
76+
['attribute_code' => $fields['custom_attribute']['code']];
77+
$this->applyPlaceholders();
78+
}
79+
80+
return parent::dataMapping($fields, $parent);
81+
}
6482
}

dev/tests/functional/tests/app/Magento/Customer/Test/Page/CustomerAddressEdit.php

Lines changed: 0 additions & 51 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
/**
4+
* Copyright © 2016 Magento. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/pages.xsd">
9+
<page name="CustomerAddressEdit" mca="customer/address/edit" module="Magento_Customer">
10+
<block name="editForm" class="Magento\Customer\Test\Block\Address\Edit" locator="#form-validate" strategy="css selector" />
11+
</page>
12+
</config>

0 commit comments

Comments
 (0)