Skip to content

Commit 7be090a

Browse files
committed
MC-7438: Checkout with 'Table Rates' for different states of the USA
1 parent f7cf5c5 commit 7be090a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/LoginToStorefrontActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<argument name="Customer"/>
1313
</arguments>
1414
<amOnPage url="{{StorefrontCustomerSignInPage.url}}" stepKey="amOnSignInPage"/>
15-
<waitForPageLoad time="30" stepKey="waitPageFullyLoaded"/>
15+
<waitForPageLoad stepKey="waitPageFullyLoaded"/>
1616
<waitForElementVisible selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="waitFormAppears"/>
1717
<fillField userInput="{{Customer.email}}" selector="{{StorefrontCustomerSignInFormSection.emailField}}" stepKey="fillEmail"/>
1818
<fillField userInput="{{Customer.password}}" selector="{{StorefrontCustomerSignInFormSection.passwordField}}" stepKey="fillPassword"/>

app/code/Magento/Shipping/Test/Mftf/Test/TableRatesShippingMethodForDifferentStatesTest.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,16 @@
3535
<!-- Delete customer -->
3636
<deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/>
3737

38+
<!-- Rollback config -->
39+
<actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodSystemConfigPage"/>
40+
<actionGroup ref="AdminSwitchWebsiteByNameActionGroup" stepKey="AdminSwitchStoreViewToMainWebsite">
41+
<argument name="website" value="_defaultWebsite"/>
42+
</actionGroup>
43+
<actionGroup ref="AdminChangeTableRatesShippingMethodStatusActionGroup" stepKey="disableTableRatesShippingMethod">
44+
<argument name="status" value="0"/>
45+
</actionGroup>
46+
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveSystemConfig"/>
47+
3848
<!-- Log out -->
3949
<actionGroup ref="logout" stepKey="logout"/>
4050
</after>
@@ -100,15 +110,5 @@
100110
<argument name="methodName" value="{{TableRatesWeightVSDestination.methodName}}"/>
101111
<argument name="price" value="{{TableRatesWeightVSDestination.price}}"/>
102112
</actionGroup>
103-
104-
<!-- Rollback config -->
105-
<actionGroup ref="AdminOpenShippingMethodsConfigPageActionGroup" stepKey="openShippingMethodSystemConfigPage"/>
106-
<actionGroup ref="AdminSwitchWebsiteByNameActionGroup" stepKey="AdminSwitchStoreViewToMainWebsite">
107-
<argument name="website" value="_defaultWebsite"/>
108-
</actionGroup>
109-
<actionGroup ref="AdminChangeTableRatesShippingMethodStatusActionGroup" stepKey="disableTableRatesShippingMethod">
110-
<argument name="status" value="0"/>
111-
</actionGroup>
112-
<actionGroup ref="AdminSaveConfigActionGroup" stepKey="saveSystemConfig"/>
113113
</test>
114114
</tests>

0 commit comments

Comments
 (0)