Skip to content

Commit 372049a

Browse files
author
Viktor Kopin
committed
MC-38113: Same shipping address is repeating multiple times in storefront checkout when Reordered
1 parent 7690d0f commit 372049a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/AssertCustomerHasNoOtherAddressesActionGroup.xml renamed to app/code/Magento/Customer/Test/Mftf/ActionGroup/AssertStoreFrontCustomerHasNoOtherAddressesActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AssertCustomerHasNoOtherAddressesActionGroup">
10+
<actionGroup name="AssertStoreFrontCustomerHasNoOtherAddressesActionGroup">
1111
<annotations>
1212
<description>Verifies customer no additional address in address book</description>
1313
</annotations>

app/code/Magento/Sales/Test/Mftf/Test/AdminReorderAddressNotSavedInAddressBookTest.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,18 @@
2222
<createData entity="ApiSimpleProduct" stepKey="Product">
2323
<requiredEntity createDataKey="Category"/>
2424
</createData>
25+
<createData entity="Simple_Customer_Without_Address" stepKey="Customer"/>
2526
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
26-
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
27-
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="fillCreateAccountForm">
28-
<argument name="customer" value="CustomerEntityOne"/>
27+
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginToStorefrontAccount">
28+
<argument name="Customer" value="$Customer$"/>
2929
</actionGroup>
30-
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/>
3130
</before>
3231
<after>
3332
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/>
34-
<actionGroup ref="DeleteCustomerFromAdminActionGroup" stepKey="deleteCustomer"/>
3533
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
3634
<deleteData createDataKey="Product" stepKey="deleteProduct"/>
3735
<deleteData createDataKey="Category" stepKey="deleteCategory"/>
36+
<deleteData createDataKey="Customer" stepKey="deleteCustomer"/>
3837
</after>
3938

4039
<!-- Create order for registered customer -->
@@ -53,6 +52,6 @@
5352
<actionGroup ref="AdminReorderActionGroup" stepKey="reorder"/>
5453

5554
<!-- Assert no additional addresses saved -->
56-
<actionGroup ref="AssertCustomerHasNoOtherAddressesActionGroup" stepKey="assertAddresses"/>
55+
<actionGroup ref="AssertStoreFrontCustomerHasNoOtherAddressesActionGroup" stepKey="assertAddresses"/>
5756
</test>
5857
</tests>

0 commit comments

Comments
 (0)