Skip to content

Commit ce1115f

Browse files
MTO-61: Checkout as Customer using default address.
- Functional test implemented.
1 parent b56df96 commit ce1115f

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/OnePageCheckoutTest.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,26 @@
205205
<data name="configData" xsi:type="string">checkmo</data>
206206
<constraint name="Magento\Sales\Test\Constraint\AssertOrderGrandTotal" />
207207
</variation>
208+
<variation name="OnePageCheckoutTestVariation11" summary="Checkout as Customer using default address" ticketId="MAGETWO-42600, MAGETWO-42546">
209+
<data name="products/0" xsi:type="string">catalogProductSimple::default</data>
210+
<data name="customer/dataset" xsi:type="string">customer_UK_US_addresses</data>
211+
<data name="checkoutMethod" xsi:type="string">login</data>
212+
<data name="shippingAddressCustomer" xsi:type="array">
213+
<item name="added" xsi:type="number">0</item>
214+
</data>
215+
<data name="billingAddressCustomer" xsi:type="array">
216+
<item name="added" xsi:type="number">0</item>
217+
</data>
218+
<data name="prices" xsi:type="array">
219+
<item name="grandTotal" xsi:type="string">565.00</item>
220+
</data>
221+
<data name="shipping/shipping_service" xsi:type="string">Flat Rate</data>
222+
<data name="shipping/shipping_method" xsi:type="string">Fixed</data>
223+
<data name="payment/method" xsi:type="string">checkmo</data>
224+
<data name="configData" xsi:type="string">checkmo_specificcountry_gb</data>
225+
<constraint name="Magento\Checkout\Test\Constraint\AssertOrderSuccessPlacedMessage" />
226+
<constraint name="Magento\Sales\Test\Constraint\AssertOrderGrandTotal" />
227+
<constraint name="Magento\Sales\Test\Constraint\AssertOrderAddresses" />
228+
</variation>
208229
</testCase>
209230
</config>

dev/tests/functional/tests/app/Magento/Customer/Test/Repository/Address.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,5 +227,16 @@
227227
<field name="region_id" xsi:type="string">Berlin</field>
228228
<field name="telephone" xsi:type="string">333-33-333-33</field>
229229
</dataset>
230+
231+
<dataset name="customer_UK_US_addresses">
232+
<field name="firstname" xsi:type="string">John</field>
233+
<field name="lastname" xsi:type="string">Doe%isolation%</field>
234+
<field name="email" xsi:type="string">John.Doe%isolation%@example.com</field>
235+
<field name="password" xsi:type="string">123123^q</field>
236+
<field name="password_confirmation" xsi:type="string">123123^q</field>
237+
<field name="address" xsi:type="array">
238+
<item name="dataset" xsi:type="string">UK_address_default_billing, US_address_default_shipping</item>
239+
</field>
240+
</dataset>
230241
</repository>
231242
</config>

0 commit comments

Comments
 (0)