Skip to content

Commit

Permalink
refactored stepKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaAPak committed Nov 30, 2020
1 parent 9bffc08 commit ad511d6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,36 @@
<argument name="orderId" value="$createGuestCart.return$"/>
</actionGroup>

<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="clickOrderRow"/>
<actionGroup ref="AdminOrderGridClickFirstRowActionGroup" stepKey="openOrder"/>

<actionGroup ref="AdminInvoiceWIthUpdatedProductQtyActionGroup" stepKey="ChangeQtyToInvoice">
<actionGroup ref="AdminInvoiceWIthUpdatedProductQtyActionGroup" stepKey="createPartialInvoice">
<argument name="qty" value="1"/>
</actionGroup>

<actionGroup ref="AdminCreateShipmentFromOrderPage" stepKey="clickSubmitShipment">
<actionGroup ref="AdminCreateShipmentFromOrderPage" stepKey="createShipment">
<argument name="Qty" value="1"/>
<argument name="Number" value="111"/>
</actionGroup>

<actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelPendingOption">
<actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelOrder">
<argument name="orderStatus" value="Complete"/>
</actionGroup>

<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Canceled 3" stepKey="seeCanceledQuantity"/>
<see selector="{{AdminOrderItemsOrderedSection.itemQty('1')}}" userInput="Canceled 3" stepKey="seeCanceledQty"/>

<actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToCatalogProductPage"/>

<actionGroup ref="FilterProductGridBySku2ActionGroup" stepKey="filterProductGridBySku">
<argument name="sku" value="$$createConfigProduct.sku$$"/>
</actionGroup>

<actionGroup ref="AssertAdminProductGridCellActionGroup" stepKey="seeProductSkuInGrid">
<actionGroup ref="AssertAdminProductGridCellActionGroup" stepKey="assertProductDataInGrid">
<argument name="row" value="1"/>
<argument name="column" value="Quantity"/>
<argument name="value" value="99"/>
</actionGroup>

<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductFilters"/>
<actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearFilters"/>

</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<argument name="qty" type="string"/>
</arguments>

<fillField selector="{{AdminInvoiceItemsSection.qtyToInvoiceColumn}}" userInput="{{qty}}" stepKey="changeQtyToInvoice" after="waitForInvoicePage"/>
<click selector="{{AdminInvoiceItemsSection.updateQty}}" stepKey="updateQuantity" after="changeQtyToInvoice"/>
<waitForPageLoad stepKey="waitPageToBeLoaded" after="updateQuantity"/>
<fillField selector="{{AdminInvoiceItemsSection.qtyToInvoiceColumn}}" userInput="{{qty}}" stepKey="fillQtyField" after="waitForInvoicePage"/>
<click selector="{{AdminInvoiceItemsSection.updateQty}}" stepKey="clickUpdateQuantityButton" after="changeQtyToInvoice"/>
<waitForPageLoad stepKey="waitForPageRefreshed" after="updateQuantity"/>
</actionGroup>
</actionGroups>

0 comments on commit ad511d6

Please sign in to comment.