Skip to content

Commit

Permalink
ENGCOM-7881: [MFTF] create AdminTaxRateGridOpenPageActionGroup #29007
Browse files Browse the repository at this point in the history
 - Merge Pull Request #29007 from Usik2203/magento2:mftf-AdminTaxRateGridPage
 - Merged commits:
   1. 881b75c
   2. 4643bfe
  • Loading branch information
magento-engcom-team committed Jul 27, 2020
2 parents 70c5c2f + 4643bfe commit 08a023d
Show file tree
Hide file tree
Showing 25 changed files with 61 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>
<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNY.state}}-{{SimpleTaxNY.rate}}"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>
<!-- Delete the tax rate that were created -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNYRate.state}}-{{SimpleTaxNYRate.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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="AdminTaxRateGridOpenPageActionGroup">
<annotations>
<description>Go to tax rate grid page.</description>
</annotations>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatePage"/>
<waitForPageLoad stepKey="waitForTaxRatePage"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch"/>
Expand All @@ -31,8 +31,7 @@
<click selector="{{AdminTaxRateFormSection.ok}}" stepKey="clickOk"/>
</after>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<!-- Create a tax rate with * for postcodes -->
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillRuleName"/>
Expand All @@ -43,8 +42,7 @@
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

<!-- Verify the tax rate grid page shows the tax rate we just created -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex2"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters1"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<selectOption selector="{{AdminTaxRateGridSection.filterByCountry}}" userInput="Australia" stepKey="fillCountryFilter"/>
Expand All @@ -55,8 +53,7 @@
<see selector="{{AdminTaxRateGridSection.grid}}" userInput="*" stepKey="seePostCode"/>

<!-- Go to the tax rate edit page for our new tax rate -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex3"/>
<waitForPageLoad stepKey="waitForTaxRateIndex3"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex3"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter2"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<!-- Create a tax rate for large postcodes -->
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{taxRateWithInvalidPostCodeLength.code}}" stepKey="fillRuleName"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch"/>
Expand All @@ -31,8 +31,7 @@
<click selector="{{AdminTaxRateFormSection.ok}}" stepKey="clickOk"/>
</after>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<!-- Create a tax rate for large postcodes -->
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillRuleName"/>
Expand All @@ -43,8 +42,7 @@
<click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex3"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<!-- Create a tax rate for large postcodes and verify we see expected values on the tax rate grid page -->
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch"/>
Expand All @@ -31,7 +31,7 @@
<click selector="{{AdminTaxRateFormSection.ok}}" stepKey="clickOk"/>
</after>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<!-- Create a tax rate with specific postcode -->
Expand All @@ -43,8 +43,7 @@
<click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex2"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<!-- Verify the tax rate grid page shows the specific postcode we just created -->
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters1"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch"/>
Expand All @@ -31,8 +31,7 @@
<click selector="{{AdminTaxRateFormSection.ok}}" stepKey="clickOk"/>
</after>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<!-- Create a tax rate with range from 1-7800935 for zipCodes -->
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillRuleName"/>
Expand All @@ -44,8 +43,7 @@
<click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex3"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<!-- Create a tax rate for zipCodeRange and verify we see expected values on the tax rate grid page -->
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
<after>
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillNameFilter"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch"/>
Expand All @@ -31,8 +31,7 @@
<click selector="{{AdminTaxRateFormSection.ok}}" stepKey="clickOk"/>
</after>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<!-- Create a tax rate with range from 90001-96162 for zipCodes -->
<click selector="{{AdminTaxRateGridSection.add}}" stepKey="clickAddNewTaxRateButton"/>
<fillField selector="{{AdminTaxRateFormSection.taxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillRuleName"/>
Expand All @@ -45,8 +44,7 @@
<click selector="{{AdminTaxRateFormSection.save}}" stepKey="clickSave"/>
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the tax rate." stepKey="seeSuccess"/>

<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex3"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<!-- Create a tax rate for zipCodeRange and verify we see expected values on the tax rate grid page -->
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{SimpleTaxRate.code}}" stepKey="fillTaxIdentifierField2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@
</before>

<!-- Search the tax rate on tax grid page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex1"/>
<waitForPageLoad stepKey="waitForTaxRateIndex1"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex1"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters1"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="$$initialTaxRate.code$$" stepKey="fillCode"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch1"/>
Expand All @@ -37,8 +36,7 @@
<see selector="{{AdminMessagesSection.success}}" userInput="You Deleted the tax rate." stepKey="seeSuccess1"/>

<!-- Confirm Deleted TaxIdentifier(from the above step) on the tax rate grid page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRateIndex2"/>
<waitForPageLoad stepKey="waitForTaxRateIndex2"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRateIndex2"/>
<click selector="{{AdminDataGridHeaderSection.clearFilters}}" stepKey="clickClearFilters2"/>
<fillField selector="{{AdminTaxRateGridSection.filterByTaxIdentifier}}" userInput="{{defaultTaxRate.code}}" stepKey="fillTaxIdentifierField3"/>
<click selector="{{AdminTaxRateGridSection.search}}" stepKey="clickSearch2"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
</actionGroup>

<!-- Go to the tax rate page -->
<amOnPage url="{{AdminTaxRateGridPage.url}}" stepKey="goToTaxRatesPage"/>
<waitForPageLoad stepKey="waitForRatesPage"/>
<actionGroup ref="AdminTaxRateGridOpenPageActionGroup" stepKey="goToTaxRatesPage"/>

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
Expand Down
Loading

0 comments on commit 08a023d

Please sign in to comment.