File tree Expand file tree Collapse file tree 4 files changed +39
-7
lines changed
app/code/Magento/Tax/Test/Mftf
Test/StorefrontTaxQuoteCartTest Expand file tree Collapse file tree 4 files changed +39
-7
lines changed Original file line number Diff line number Diff line change 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}}" />
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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 -->
Original file line number Diff line number Diff line change 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" />
You can’t perform that action at this time.
0 commit comments