Skip to content

Commit

Permalink
ENGCOM-8040: [MFTF]Add new ActionGroup #29459
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Aug 20, 2020
2 parents b0eec73 + cf221f4 commit 8488a5a
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@

<!-- Create a Tax Rule -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>

<!-- Create a tax rule with defaults -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="AdminClickAddTaxRuleButtonActionGroup">
<annotations>
<description>Click button for creating new tax rule.</description>
</annotations>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleGridLoad"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
</after>

<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>
<!-- Create a tax rule with defaults -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
<fillField selector="{{AdminTaxRuleFormSection.taxRateSearch}}" userInput="$$initialTaxRate.code$$" stepKey="fillTaxRateSearch"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

<!-- Verify we see expected values on the tax rule form page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAdd"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAdd"/>
<see selector="{{AdminTaxRulesSection.taxRateMultiSelectItems}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeTaxRateOnNewTaxRulePage"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

<!-- Verify we see expected values on the tax rule form page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAdd"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAdd"/>
<see selector="{{AdminTaxRulesSection.taxRateMultiSelectItems}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeTaxRateOnNewTaxRulePage"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

<!-- Verify we see expected values on the tax rule form page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAdd"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAdd"/>
<see selector="{{AdminTaxRulesSection.taxRateMultiSelectItems}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeTaxRateOnNewTaxRulePage"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@

<!-- Verify we see expected values on the tax rule form page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAdd"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAdd"/>
<see selector="{{AdminTaxRulesSection.taxRateMultiSelectItems}}" userInput="{{SimpleTaxRate.code}}" stepKey="seeTaxRateOnNewTaxRulePage"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@
</after>

<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>

<!-- Create a tax rule with customer and product class -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
</after>

<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>

<!-- Create a tax rule with new and existing tax rate, customer tax class, product tax class -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
</after>

<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>

<!-- Create a tax rule with new tax classes and tax rate -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
</after>

<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex1"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex2"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>

<!-- Create a tax rule with new tax classes and tax rate -->
<fillField selector="{{AdminTaxRuleFormSection.code}}" userInput="{{SimpleTaxRule.code}}" stepKey="fillTaxRuleCode1"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@

<!-- Confirm Deleted TaxIdentifier on the tax rule grid page -->
<actionGroup ref="AdminTaxRuleGridOpenPageActionGroup" stepKey="goToTaxRuleIndex3"/>
<click selector="{{AdminTaxRuleGridSection.add}}" stepKey="clickAddNewTaxRuleButton"/>
<waitForPageLoad stepKey="waitForTaxRuleIndex1"/>
<actionGroup ref="AdminClickAddTaxRuleButtonActionGroup" stepKey="clickAddNewTaxRuleButton"/>
<fillField selector="{{AdminTaxRuleFormSection.taxRateSearch}}" userInput="$$initialTaxRate.code$$" stepKey="fillTaxRateSearch"/>
<wait stepKey="waitForSearch" time="5" />
<dontSee selector="{{AdminTaxRuleFormSection.fieldTaxRate}}" userInput="$$initialTaxRate.code$$" stepKey="dontSeeInTaxRuleForm"/>
Expand Down

0 comments on commit 8488a5a

Please sign in to comment.