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 20
20
<click stepKey =" addNewTaxRate" selector =" {{AdminTaxRulesSection.addNewTaxRate}}" />
21
21
22
22
<!-- 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}}" />
24
24
<fillField stepKey =" fillZipCode" selector =" {{AdminTaxRulesSection.zipCode}}" userInput =" {{taxCode.zip}}" />
25
25
<selectOption stepKey =" selectState" selector =" {{AdminTaxRulesSection.state}}" userInput =" {{taxCode.state}}" />
26
26
<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 30
30
<fillField stepKey =" fillRuleName" selector =" {{AdminTaxRulesSection.ruleName}}" userInput =" SampleRule" />
31
31
32
32
<!-- Add NY and CA tax rules -->
33
- <actionGroup ref =" AddNewTaxRateNoZipActionGroup " stepKey =" addNYTaxRate" >
33
+ <actionGroup ref =" AddNewTaxRateNoZipUIActionGroup " stepKey =" addNYTaxRate" >
34
34
<argument name =" taxCode" value =" SimpleTaxNY" />
35
35
</actionGroup >
36
36
37
- <actionGroup ref =" AddNewTaxRateNoZipActionGroup " stepKey =" addCATaxRate" >
37
+ <actionGroup ref =" AddNewTaxRateNoZipUIActionGroup " stepKey =" addCATaxRate" >
38
38
<argument name =" taxCode" value =" SimpleTaxCA" />
39
39
</actionGroup >
40
40
41
41
<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 " />
43
43
<magentoCLI command =" cron:run --group=index" stepKey =" runCronIndexer" />
44
44
45
45
<!-- Fill out form for a new user with address -->
Original file line number Diff line number Diff line change 30
30
<fillField stepKey =" fillRuleName" selector =" {{AdminTaxRulesSection.ruleName}}" userInput =" SampleRule" />
31
31
32
32
<!-- Add NY and CA tax rules -->
33
- <actionGroup ref =" AddNewTaxRateNoZipActionGroup " stepKey =" addNYTaxRate" >
33
+ <actionGroup ref =" AddNewTaxRateNoZipUIActionGroup " stepKey =" addNYTaxRate" >
34
34
<argument name =" taxCode" value =" SimpleTaxNY" />
35
35
</actionGroup >
36
36
37
- <actionGroup ref =" AddNewTaxRateNoZipActionGroup " stepKey =" addCATaxRate" >
37
+ <actionGroup ref =" AddNewTaxRateNoZipUIActionGroup " stepKey =" addCATaxRate" >
38
38
<argument name =" taxCode" value =" SimpleTaxCA" />
39
39
</actionGroup >
40
40
41
41
<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 " />
43
43
44
44
<!-- Fill out form for a new user with address -->
45
45
<actionGroup ref =" StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey =" openCreateAccountPage" />
You can’t perform that action at this time.
0 commit comments