Skip to content

Commit 511c3bd

Browse files
Manoranjan.PrakashManoranjan.Prakash
authored andcommitted
fixed the dependent test cases for TaxCode
1 parent 2b7e7b5 commit 511c3bd

File tree

4 files changed

+39
-7
lines changed

4 files changed

+39
-7
lines changed

app/code/Magento/Tax/Test/Mftf/ActionGroup/AddNewTaxRateNoZipActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<click stepKey="addNewTaxRate" selector="{{AdminTaxRulesSection.addNewTaxRate}}"/>
2121

2222
<!-- Fill out a new tax rate -->
23-
<fillField stepKey="fillTaxIdentifier" selector="{{AdminTaxRulesSection.taxIdentifier}}" userInput="{{taxCode.identifier}}-{{taxCode.rate}}"/>
23+
<fillField stepKey="fillTaxIdentifier" selector="{{AdminTaxRulesSection.taxIdentifier}}" userInput="{{taxCode.state}}-{{taxCode.rate}}"/>
2424
<fillField stepKey="fillZipCode" selector="{{AdminTaxRulesSection.zipCode}}" userInput="{{taxCode.zip}}"/>
2525
<selectOption stepKey="selectState" selector="{{AdminTaxRulesSection.state}}" userInput="{{taxCode.state}}"/>
2626
<selectOption stepKey="selectCountry" selector="{{AdminTaxRulesSection.country}}" userInput="{{taxCode.country}}"/>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AddNewTaxRateNoZipUIActionGroup">
12+
<annotations>
13+
<description>Goes to the Admin Tax Rules grid page. Adds the provided Tax Code.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="taxCode"/>
17+
</arguments>
18+
19+
<!-- Go to the tax rate page -->
20+
<click stepKey="addNewTaxRate" selector="{{AdminTaxRulesSection.addNewTaxRate}}"/>
21+
22+
<!-- Fill out a new tax rate -->
23+
<fillField stepKey="fillTaxIdentifier" selector="{{AdminTaxRulesSection.taxIdentifier}}" userInput="{{taxCode.identifier}}-{{taxCode.rate}}"/>
24+
<fillField stepKey="fillZipCode" selector="{{AdminTaxRulesSection.zipCode}}" userInput="{{taxCode.zip}}"/>
25+
<selectOption stepKey="selectState" selector="{{AdminTaxRulesSection.state}}" userInput="{{taxCode.state}}"/>
26+
<selectOption stepKey="selectCountry" selector="{{AdminTaxRulesSection.country}}" userInput="{{taxCode.country}}"/>
27+
<fillField stepKey="fillRate" selector="{{AdminTaxRulesSection.rate}}" userInput="{{taxCode.rate}}"/>
28+
29+
<!-- Save the tax rate -->
30+
<click stepKey="saveTaxRate" selector="{{AdminTaxRulesSection.save}}"/>
31+
</actionGroup>
32+
</actionGroups>

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest/StorefrontTaxQuoteCartLoggedInSimpleTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="SampleRule"/>
3131

3232
<!-- Add NY and CA tax rules -->
33-
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addNYTaxRate">
33+
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addNYTaxRate">
3434
<argument name="taxCode" value="SimpleTaxNY"/>
3535
</actionGroup>
3636

37-
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
37+
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addCATaxRate">
3838
<argument name="taxCode" value="SimpleTaxCA"/>
3939
</actionGroup>
4040

4141
<click stepKey="clickSave" selector="{{AdminStoresMainActionsSection.saveButton}}"/>
42-
<see userInput="You saved the tax rule." selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessgaeForSavingRule"/>
42+
<see userInput="You saved the tax rule." selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessageForSavingRule"/>
4343
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
4444

4545
<!-- Fill out form for a new user with address -->

app/code/Magento/Tax/Test/Mftf/Test/StorefrontTaxQuoteCartTest/StorefrontTaxQuoteCartLoggedInVirtualTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@
3030
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="SampleRule"/>
3131

3232
<!-- Add NY and CA tax rules -->
33-
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addNYTaxRate">
33+
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addNYTaxRate">
3434
<argument name="taxCode" value="SimpleTaxNY"/>
3535
</actionGroup>
3636

37-
<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
37+
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addCATaxRate">
3838
<argument name="taxCode" value="SimpleTaxCA"/>
3939
</actionGroup>
4040

4141
<click stepKey="clickSave" selector="{{AdminStoresMainActionsSection.saveButton}}"/>
42-
<see userInput="You saved the tax rule." selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessgaeForSavingRule"/>
42+
<see userInput="You saved the tax rule." selector="{{AdminMessagesSection.success}}" stepKey="seeSuccessMessageForSavingRule"/>
4343

4444
<!-- Fill out form for a new user with address -->
4545
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>

0 commit comments

Comments
 (0)