|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="StoreFrontGuestCheckingWithMultishipmentTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Multishipment"/> |
| 14 | + <stories value="Multiple Shipping"/> |
| 15 | + <title value="Guest can register through multi shipment checkout"/> |
| 16 | + <description value="Check that guest can register through multi shipment checkout"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-41679"/> |
| 19 | + <useCaseId value="MC-41668"/> |
| 20 | + <group value="Multishipment"/> |
| 21 | + </annotations> |
| 22 | + <before> |
| 23 | + <createData stepKey="category" entity="SimpleSubCategory"/> |
| 24 | + <createData stepKey="product1" entity="SimpleProduct"> |
| 25 | + <requiredEntity createDataKey="category"/> |
| 26 | + </createData> |
| 27 | + <createData stepKey="product2" entity="SimpleProduct"> |
| 28 | + <requiredEntity createDataKey="category"/> |
| 29 | + </createData> |
| 30 | + <createData entity="FlatRateShippingMethodConfig" stepKey="enableFlatRateShipping"/> |
| 31 | + <actionGroup ref="CliEnableCheckMoneyOrderPaymentMethodActionGroup" stepKey="enableCheckMoneyOrderPaymentMethod"/> |
| 32 | + </before> |
| 33 | + <after> |
| 34 | + <deleteData stepKey="deleteCategory" createDataKey="category"/> |
| 35 | + <deleteData stepKey="deleteProduct1" createDataKey="product1"/> |
| 36 | + <deleteData stepKey="deleteProduct2" createDataKey="product2"/> |
| 37 | + <createData entity="FreeShippinMethodDefault" stepKey="disableFreeShipping"/> |
| 38 | + </after> |
| 39 | + <amOnPage url="$product1.custom_attributes[url_key]$.html" stepKey="goToProduct1"/> |
| 40 | + <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProduct1"> |
| 41 | + <argument name="productName" value="$product1.name$"/> |
| 42 | + </actionGroup> |
| 43 | + <amOnPage url="$product2.custom_attributes[url_key]$.html" stepKey="goToProduct2"/> |
| 44 | + <actionGroup ref="AddToCartFromStorefrontProductPageActionGroup" stepKey="addToCartFromStorefrontProduct2"> |
| 45 | + <argument name="productName" value="$product2.name$"/> |
| 46 | + </actionGroup> |
| 47 | + <actionGroup ref="StorefrontOpenCartFromMinicartActionGroup" stepKey="openCart"/> |
| 48 | + <click selector="{{MultishippingSection.checkoutWithMultipleAddresses}}" stepKey="proceedMultishipping"/> |
| 49 | + <click selector="{{StorefrontCustomerSignInPopupFormSection.createAnAccount}}" stepKey="clickCreateAccount"/> |
| 50 | + <seeElement selector="{{CheckoutShippingSection.region}}" stepKey="seeRegionSelector"/> |
| 51 | + </test> |
| 52 | +</tests> |
0 commit comments