|
7 | 7 | -->
|
8 | 8 | <tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
9 | 9 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
10 |
| - <test name="StorefrontGuestCheckoutForAvailableShippingRateChangeToInputDataTest"> |
| 10 | + <test name="StoreFrontValidateDynamicChangeOfShippingRateForGuestUserTest"> |
11 | 11 | <annotations>
|
12 | 12 | <features value="Checkout"/>
|
13 |
| - <stories value="Checkout via Guest Checkout"/> |
| 13 | + <stories value="Shipping rate in Guest Checkout"/> |
14 | 14 | <title value="Guest Checkout - guest should be able to see the change in the shipping rate on fly."/>
|
15 | 15 | <description value="Should be able to change the shipping rate while changing the input data based on the specific country and zipcode."/>
|
16 |
| - <severity value="AVERAGE"/> |
| 16 | + <severity value="CRITICAL"/> |
17 | 17 | <testCaseId value="AC-6139"/>
|
18 | 18 | </annotations>
|
19 | 19 | <before>
|
|
52 | 52 | <argument name="state" value="California"/>
|
53 | 53 | <argument name="postcode" value="90034"/>
|
54 | 54 | </actionGroup>
|
55 |
| - </before> |
56 | 55 | <actionGroup ref="CliCacheCleanActionGroup" stepKey="flushCachePostChangingConfigurationSettings">
|
57 | 56 | <argument name="tags" value="config"/>
|
58 | 57 | </actionGroup>
|
59 | 58 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexPostChangingConfigurationSettings">
|
60 |
| - <argument name="indices" value=""/> |
| 59 | + <argument name="indices" value="cataloginventory_stock catalog_product_price"/> |
61 | 60 | </actionGroup>
|
| 61 | + </before> |
62 | 62 | <!-- Go to storefront page to add product -->
|
63 | 63 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToStoreFront"/>
|
64 | 64 | <waitForPageLoad stepKey="waitForProductPage"/>
|
65 | 65 | <!-- Add Simple product in the cart -->
|
66 | 66 | <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addSimpleProductToCart">
|
67 | 67 | <argument name="product" value="$createSimpleProduct$"/>
|
68 | 68 | </actionGroup>
|
69 |
| - <actionGroup ref="GoToCheckoutFromMinicartActionGroup" stepKey="goToCheckoutFromMinicart"/> |
| 69 | + <actionGroup ref="StorefrontShippingPageRedirectActionGroup" stepKey="goToShippingPage"/> |
70 | 70 | <!-- Guest checkout -->
|
71 | 71 | <actionGroup ref="FillGuestCheckoutShippingAddressFormActionGroup" stepKey="goToShippingAndFillDetails">
|
72 | 72 | <argument name="customerAddress" value="US_CA_Address"/>
|
73 | 73 | </actionGroup>
|
74 | 74 | <selectOption selector="{{CheckoutShippingSection.region}}" userInput="California" stepKey="fillStateField"/>
|
75 | 75 | <waitForPageLoad stepKey="waitForChangeAfterStateLoad"/>
|
76 |
| - <actionGroup ref="VerifyShippingMethodIsVisibilityOrNotActionGroup" stepKey="verifyShippingMethod"/> |
| 76 | + <actionGroup ref="CheckForFlatRateShippingMethodAvailabilityActionGroup" stepKey="verifyShippingMethod"/> |
77 | 77 | <waitForElementVisible selector="{{CheckoutShippingMethodsSection.shippingMethodDhlLabel}}" stepKey="waitForDHLLabelVisible"/>
|
78 | 78 | <waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodDhlWorldWideExpress}}" stepKey="waitForDHLPriceNotVisibleAfterStateChange"/>
|
| 79 | + <waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShipping}}" stepKey="waitForFreeShippingNotVisible"/> |
| 80 | + <waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShippingLabel}}" stepKey="waitForFreeShippingLabelNotVisible"/> |
79 | 81 | <!-- Change country value -->
|
80 | 82 | <selectOption selector="{{CheckoutShippingSection.country}}" userInput="Afghanistan" stepKey="fillCountryField"/>
|
81 | 83 | <waitForPageLoad stepKey="waitForChangeAfterCountryLoad"/>
|
82 |
| - <actionGroup ref="VerifyShippingMethodIsVisibilityOrNotActionGroup" stepKey="verifyShippingMethodAfterCountryChange"/> |
| 84 | + <actionGroup ref="CheckForFlatRateShippingMethodAvailabilityActionGroup" stepKey="verifyShippingMethodAfterCountryChange"/> |
83 | 85 | <waitForElementVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShipping}}" stepKey="waitForFreeShippingVisibleAfterCountryChange"/>
|
84 | 86 | <waitForElementVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShippingLabel}}" stepKey="waitForFreeShippingLabelVisibleAfterCountryChange"/>
|
85 | 87 | <waitForElementVisible selector="{{CheckoutShippingMethodsSection.shippingMethodDhlLabel}}" stepKey="waitForDHLLabelVisibleAfterCountryChange"/>
|
|
89 | 91 | <selectOption selector="{{CheckoutShippingSection.country}}" userInput="United Kingdom" stepKey="fillCountry"/>
|
90 | 92 | <fillField selector="{{CheckoutShippingSection.city}}" userInput="London" stepKey="fillCity"/>
|
91 | 93 | <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="N14 5JP" stepKey="fillPostcode"/>
|
92 |
| - <actionGroup ref="VerifyShippingMethodIsVisibilityOrNotActionGroup" stepKey="verifyShippingMethodAfterNewData"/> |
| 94 | + <actionGroup ref="CheckForFlatRateShippingMethodAvailabilityActionGroup" stepKey="verifyShippingMethodAfterNewData"/> |
93 | 95 | <waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShipping}}" stepKey="waitForFreeShippingVisibleAfterNewFormData"/>
|
94 | 96 | <waitForElementNotVisible selector="{{CheckoutShippingMethodsSection.shippingMethodFreeShippingLabel}}" stepKey="waitForFreeShippingLabelVisibleAfterNewFormData"/>
|
95 | 97 | <actionGroup ref="VerifyDHLShippingMethodIsVisibilityActionGroup" stepKey="dhlShippingVisibility"/>
|
|
105 | 107 | <actionGroup ref="AdminDisableFreeShippingActionGroup" stepKey="resetFreeShippingConfig"/>
|
106 | 108 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="resetSaveConfiguration"/>
|
107 | 109 | <!-- Reset dhl configuration origin -->
|
108 |
| - <actionGroup ref="AdminDHLConfigurationActionGroup" stepKey="resetDhlConfig"/> |
| 110 | + <actionGroup ref="AdminDisableDHLConfigurationActionGroup" stepKey="resetDhlConfig"/> |
109 | 111 | <actionGroup ref="AdminSaveConfigActionGroup" stepKey="resetSaveConfigurationForDHL"/>
|
110 | 112 | <actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
|
111 | 113 | </after>
|
|
0 commit comments