Skip to content

Commit

Permalink
Merge pull request #8079 from magento-gl/functional-testing-automation
Browse files Browse the repository at this point in the history
Bengals Functional tests automation
  • Loading branch information
jilu1 authored Feb 3, 2023
2 parents fd4a70e + bac120e commit 9275a11
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
<testCaseId value="MC-22625"/>
<useCaseId value="MC-21926"/>
<group value="checkout"/>
<skip>
<issueId value="ACQE-4352"/>
</skip>
</annotations>

<before>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
<description value="Admin should be able to create widget type of Catalog product link and shown on storefront"/>
<severity value="MAJOR"/>
<testCaseId value="MC-12209"/>
<skip>
<issueId value="ACQE-4481"/>
</skip>
</annotations>

<before>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="SampleRule"/>

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

<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addCATaxRate">
<argument name="taxCode" value="SimpleTaxCA"/>
</actionGroup>

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

<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
</before>
Expand All @@ -55,12 +56,12 @@

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNY.state}}-{{SimpleTaxNY.rate}}"/>
<argument name="name" value="{{SimpleTaxNY.identifier}}-{{SimpleTaxNY.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteCARate">
<argument name="name" value="{{SimpleTaxCA.state}}-{{SimpleTaxCA.rate}}"/>
<argument name="name" value="{{SimpleTaxCA.identifier}}-{{SimpleTaxCA.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="SampleRule"/>

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

<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addCATaxRate">
<argument name="taxCode" value="SimpleTaxCA"/>
</actionGroup>

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

<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
</before>
Expand All @@ -55,12 +56,12 @@

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNY.state}}-{{SimpleTaxNY.rate}}"/>
<argument name="name" value="{{SimpleTaxNY.identifier}}-{{SimpleTaxNY.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteCARate">
<argument name="name" value="{{SimpleTaxCA.state}}-{{SimpleTaxCA.rate}}"/>
<argument name="name" value="{{SimpleTaxCA.identifier}}-{{SimpleTaxCA.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@
<fillField stepKey="fillRuleName" selector="{{AdminTaxRulesSection.ruleName}}" userInput="SampleRule"/>

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

<actionGroup ref="AddNewTaxRateNoZipActionGroup" stepKey="addCATaxRate">
<actionGroup ref="AddNewTaxRateNoZipUIActionGroup" stepKey="addCATaxRate">
<argument name="taxCode" value="SimpleTaxCA"/>
</actionGroup>

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

<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
</before>
Expand All @@ -56,12 +57,12 @@

<!-- Delete the two tax rates that were created -->
<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteNYRate">
<argument name="name" value="{{SimpleTaxNY.state}}-{{SimpleTaxNY.rate}}"/>
<argument name="name" value="{{SimpleTaxNY.identifier}}-{{SimpleTaxNY.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

<actionGroup ref="deleteEntitySecondaryGrid" stepKey="deleteCARate">
<argument name="name" value="{{SimpleTaxCA.state}}-{{SimpleTaxCA.rate}}"/>
<argument name="name" value="{{SimpleTaxCA.identifier}}-{{SimpleTaxCA.rate}}"/>
<argument name="searchInput" value="{{AdminSecondaryGridSection.taxIdentifierSearch}}"/>
</actionGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<amOnPage stepKey="amOnAdminUsersPage" url="{{AdminUsersPage.url}}"/>
<waitForPageLoad stepKey="waitForAdminUserPageLoad"/>
<click selector="{{AdminLegacyDataGridFilterSection.clear}}" stepKey="resetFilters" />
<scrollTo selector="{{AdminLegacyDataGridTableSection.columnTemplateStrict(user.username, 'user_id')}}" stepKey="scrollToUserId"></scrollTo>
<waitForElementVisible selector="{{AdminLegacyDataGridTableSection.columnTemplateStrict(user.username, 'user_id')}}" stepKey="waitForUserIdVisible"></waitForElementVisible>
<grabTextFrom selector="{{AdminLegacyDataGridTableSection.columnTemplateStrict(user.username, 'user_id')}}" stepKey="userId" />

<!--
Expand Down

0 comments on commit 9275a11

Please sign in to comment.