Skip to content

Commit

Permalink
Create StorefrontClickRefundTabCustomerOrderViewActionGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
Usik2203 committed Sep 14, 2020
1 parent 8aa1d46 commit 996bdaf
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 16 deletions.
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="StorefrontClickRefundTabCustomerOrderViewActionGroup">
<annotations>
<description>Click "Refund" tab for customer order view.</description>
</annotations>

<click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefundTab"/>
<waitForPageLoad stepKey="waitForPageLoad"/>
</actionGroup>
</actionGroups>
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,11 @@
</actionGroup>

<!-- Assert refunded Grand Total on frontend -->
<amOnPage url="{{StorefrontCustomerDashboardPage.url}}" stepKey="onAccountPage"/>
<waitForPageLoad stepKey="waitForPage"/>
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="onAccountPage"/>
<scrollTo selector="{{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey="scrollToResent"/>
<click selector="{{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey="clickOnOrder"/>
<waitForPageLoad stepKey="waitForViewOrder"/>
<click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefund"/>
<waitForPageLoad stepKey="waitRefundsLoad"/>
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,11 @@
</actionGroup>

<!-- Assert refunded Grand Total on frontend -->
<amOnPage url="{{StorefrontCustomerDashboardPage.url}}" stepKey="onAccountPage"/>
<waitForPageLoad stepKey="waitForPage"/>
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="onAccountPage"/>
<scrollTo selector="{{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey="scrollToResent"/>
<click selector="{{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey="clickOnOrder"/>
<waitForPageLoad stepKey="waitForViewOrder"/>
<click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefund"/>
<waitForPageLoad stepKey="waitRefundsLoad"/>
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="110.00" stepKey="seeGrandTotal"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,11 @@
</actionGroup>

<!-- Assert refunded Grand Total on frontend -->
<amOnPage url="{{StorefrontCustomerDashboardPage.url}}" stepKey="onAccountPage"/>
<waitForPageLoad stepKey="waitForPage"/>
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="onAccountPage"/>
<scrollTo selector="{{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey="scrollToResent"/>
<click selector="{{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey="clickOnOrder"/>
<waitForPageLoad stepKey="waitForViewOrder"/>
<click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefund"/>
<waitForPageLoad stepKey="waitRefundsLoad"/>
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
</test>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,11 @@
</actionGroup>

<!-- Assert refunded Grand Total on frontend -->
<amOnPage url="{{StorefrontCustomerDashboardPage.url}}" stepKey="onAccountPage"/>
<waitForPageLoad stepKey="waitForPage"/>
<actionGroup ref="StorefrontOpenMyAccountPageActionGroup" stepKey="onAccountPage"/>
<scrollTo selector="{{StorefrontCustomerResentOrdersSection.blockResentOrders}}" stepKey="scrollToResent"/>
<click selector="{{StorefrontCustomerResentOrdersSection.viewOrder({$grabOrderId})}}" stepKey="clickOnOrder"/>
<waitForPageLoad stepKey="waitForViewOrder"/>
<click selector="{{StorefrontCustomerOrderSection.tabRefund}}" stepKey="clickRefund"/>
<waitForPageLoad stepKey="waitRefundsLoad"/>
<actionGroup ref="StorefrontClickRefundTabCustomerOrderViewActionGroup" stepKey="clickRefund"/>
<scrollTo selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" stepKey="scrollToGrandTotal"/>
<see selector="{{StorefrontCustomerOrderSection.grandTotalRefund}}" userInput="555.00" stepKey="seeGrandTotal"/>
</test>
Expand Down

0 comments on commit 996bdaf

Please sign in to comment.