Skip to content

Commit 588ba89

Browse files
committed
MAGETWO-90366: Automate with MFTF tax information recalculation on the shopping cart
1 parent 7dd5fe3 commit 588ba89

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

app/code/Magento/Tax/Test/Mftf/Metadata/tax_rule-meta.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<field key="extension_attributes">empty_extension_attribute</field>
2828
</object>
2929
</operation>
30-
<operation name="deleteTaxRule" dataType="taxRule" type="delete" auth="adminOauth" url="/V1/taxRules/{id}" method="DELETE">
30+
<operation name="DeleteTaxRule" dataType="taxRule" type="delete" auth="adminOauth" url="/V1/taxRules/{id}" method="DELETE">
3131
<contentType>application/json</contentType>
3232
</operation>
3333
</operations>

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxInformationInShoppingCartForGuestPhysicalQuoteTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,10 @@
7171
<!-- Test Steps -->
7272
<!-- Step 1: Go to Storefront as Guest -->
7373
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnStorefrontPage"/>
74+
<waitForPageLoad stepKey="waitForPageLoad1"/>
7475
<!-- Step 2: Add simple product to shopping cart -->
7576
<amOnPage url="{{StorefrontProductPage.url($$createSimpleProduct.name$$)}}" stepKey="amOnSimpleProductPage"/>
76-
<waitForPageLoad stepKey="waitForPageLoad"/>
77+
<waitForPageLoad stepKey="waitForPageLoad2"/>
7778
<actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddSimpleProductToCart">
7879
<argument name="product" value="$$createSimpleProduct$$"/>
7980
<argument name="productCount" value="1"/>

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxInformationInShoppingCartForGuestVirtualQuoteTest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@
4343
<!-- Test Steps -->
4444
<!-- Step 1: Go to Storefront as Guest -->
4545
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnStorefrontPage"/>
46+
<waitForPageLoad stepKey="waitForPageLoad1"/>
4647
<!-- Step 2: Add virtual product to shopping cart -->
4748
<amOnPage url="{{StorefrontProductPage.url($$createVirtualProduct.name$$)}}" stepKey="amOnStorefrontVirtualProductPage"/>
48-
<waitForPageLoad stepKey="waitForPageLoad"/>
49+
<waitForPageLoad stepKey="waitForPageLoad2"/>
4950
<actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="cartAddVirtualProductToCart">
5051
<argument name="product" value="$$createVirtualProduct$$"/>
5152
<argument name="productCount" value="1"/>

app/code/Magento/Weee/Test/Mftf/ActionGroup/AdminProductAddFPTValueActionGroup.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@
1818
<click selector="{{AdminProductAddFPTValueSection.addFPT(FPTAttributeCode)}}" stepKey="clickAddFPTButton1"/>
1919
<waitForPageLoad stepKey="waitForProductIndexPageLoad"/>
2020
<selectOption selector="{{AdminProductAddFPTValueSection.selectCountryForFPT(FPTAttributeCode)}}" userInput="{{countryForFPT}}" stepKey="selectcountryForFPT"/>
21-
<waitForPageLoad stepKey="waitForProductIndexPageLoad2"/>
2221
<selectOption selector="{{AdminProductAddFPTValueSection.selectStateForFPT(FPTAttributeCode)}}" userInput="{{stateForFPT}}" stepKey="selectstateForFPT"/>
23-
<waitForPageLoad stepKey="waitForProductIndexPageLoad3"/>
2422
<fillField selector="{{AdminProductAddFPTValueSection.setTaxValueForFPT(FPTAttributeCode)}}" userInput="{{valueForFPT}}" stepKey="setTaxvalueForFPT"/>
25-
<waitForPageLoad stepKey="waitForProductIndexPageLoad4"/>
2623
</actionGroup>
2724
</actionGroups>

0 commit comments

Comments
 (0)