Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MFTF: Extract Action Groups to separate files - magento/module-sales #25811

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -76,7 +76,7 @@
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber22}}" stepKey="grabOrderNumber"/>
<!-- Search for Order in the order grid -->
<comment userInput="Search for Order in the order grid" stepKey="searchOrderInGrid"/>
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<waitForLoadingMaskToDisappear stepKey="waitForSearchingOrder"/>
Expand Down
Expand Up @@ -59,23 +59,23 @@
<waitForPageLoad stepKey="waitForLogin" time="3"/>

<!--Create New Order-->
<actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrder">
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrder">
<argument name="customer" value="Simple_US_Customer"/>
</actionGroup>

<!--Add Product to Order-->
<actionGroup ref="addSimpleProductToOrder" stepKey="addProduct">
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addProduct">
<argument name="product" value="_defaultProduct"/>
</actionGroup>

<!--Fill Order Customer Information-->
<actionGroup ref="fillOrderCustomerInformation" stepKey="fillCustomerAddress">
<actionGroup ref="FillOrderCustomerInformationActionGroup" stepKey="fillCustomerAddress">
<argument name="customer" value="Simple_US_Customer"/>
<argument name="address" value="US_Address_TX"/>
</actionGroup>

<!--Select Shipping-->
<actionGroup ref="orderSelectFlatRateShipping" stepKey="selectFlatRateShipping"/>
<actionGroup ref="OrderSelectFlatRateShippingActionGroup" stepKey="selectFlatRateShipping"/>
<waitForPageLoad stepKey="waitForShippingToFinish"/>

<!--Pay with Braintree -->
Expand Down
Expand Up @@ -98,17 +98,17 @@
<actionGroup ref="saveProductForm" stepKey="saveProductForm"/>

<!--Create New Order-->
<actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="navigateToNewOrderWithExistingCustomer">
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="navigateToNewOrderWithExistingCustomer">
<argument name="customer" value="$$simpleCustomer$$"/>
</actionGroup>

<!--Add a product to order-->
<actionGroup ref="addSimpleProductToOrder" stepKey="addProductToOrder">
<actionGroup ref="AddSimpleProductToOrderActionGroup" stepKey="addProductToOrder">
<argument name="product" value="$$simpleProduct$$"/>
</actionGroup>

<!--Select FlatRate shipping method-->
<actionGroup ref="orderSelectFlatRateShipping" stepKey="orderSelectFlatRateShippingMethod"/>
<actionGroup ref="OrderSelectFlatRateShippingActionGroup" stepKey="orderSelectFlatRateShippingMethod"/>

<!--Select Braintree online Payment method -->
<actionGroup ref="AdminOrderBraintreeFillActionGroup" stepKey="selectCreditCardPayment"/>
Expand All @@ -119,7 +119,7 @@
<see selector="{{AdminOrderDetailsMessagesSection.successMessage}}" userInput="You created the order." stepKey="seeOrderSuccessMessage" after="waitForSubmitOrder"/>

<!-- Create New invoice-->
<actionGroup ref="adminFastCreateInvoice" stepKey="createInvoice"/>
<actionGroup ref="AdminFastCreateInvoiceActionGroup" stepKey="createInvoice"/>

<!--Get access to Credit Memo page from Invoice page-->
<click selector="{{AdminInvoiceMainActionsSection.openNewCreditMemoFromInvoice}}" stepKey="clickCreateNewCreditMemo"/>
Expand Down
Expand Up @@ -67,7 +67,7 @@

<!--Check subtotal in created order-->
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
<actionGroup ref="filterOrderGridById" stepKey="filterOrderById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
Expand Down
Expand Up @@ -149,7 +149,7 @@
<see userInput="You saved the rule." stepKey="RuleSaved"/>

<!--Create new order-->
<actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="CreateNewOrder">
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="CreateNewOrder">
<argument name="customer" value="Simple_US_Customer"/>
<argument name="storeView" value="customStoreView"/>
</actionGroup>
Expand Down
Expand Up @@ -196,7 +196,7 @@

<!-- Open Order -->

<actionGroup ref="filterOrderGridById" stepKey="openOrdersGrid">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="openOrdersGrid">
<argument name="orderId" value="{$grabOrderNumber}"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
Expand Down
Expand Up @@ -130,7 +130,7 @@

<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/>

<actionGroup ref="filterOrderGridById" stepKey="filterByOrderId">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterByOrderId">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<click selector="{{AdminDataGridTableSection.firstRow}}" stepKey="clickOrderRow"/>
Expand Down
Expand Up @@ -87,7 +87,7 @@
<!-- Open created order in backend -->
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrders"/>
<waitForPageLoad stepKey="waitForOrdersPageLoad"/>
<actionGroup ref="OpenOrderById" stepKey="filterOrderGridById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand Down
Expand Up @@ -100,7 +100,7 @@
<!-- Open created order in backend -->
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrders"/>
<waitForPageLoad stepKey="waitForOrdersPageLoad"/>
<actionGroup ref="OpenOrderById" stepKey="filterOrderGridById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand Down
Expand Up @@ -88,7 +88,7 @@
<!-- Open created order in backend -->
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrders"/>
<waitForPageLoad stepKey="waitForOrdersPageLoad"/>
<actionGroup ref="OpenOrderById" stepKey="filterOrderGridById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand Down
Expand Up @@ -81,7 +81,7 @@
<!-- Open created order in backend -->
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrders"/>
<waitForPageLoad stepKey="waitForOrdersPageLoad"/>
<actionGroup ref="OpenOrderById" stepKey="filterOrderGridById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand Down
Expand Up @@ -197,7 +197,7 @@
<!-- Open created order -->
<amOnPage url="{{AdminOrdersPage.url}}" stepKey="goToOrders"/>
<waitForPageLoad stepKey="waitForOrderPageLoad"/>
<actionGroup ref="OpenOrderById" stepKey="filterOrderGridById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand Down
Expand Up @@ -80,7 +80,7 @@
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>

<!-- Verify total on order page -->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
Expand Down
Expand Up @@ -111,7 +111,7 @@
<waitForPageLoad stepKey="waitForOrderIndexPageToLoad"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand All @@ -127,4 +127,4 @@
<!-- Assert order buttons -->
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>
</test>
</tests>
</tests>
Expand Up @@ -81,7 +81,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>

Expand All @@ -98,4 +98,4 @@
<!-- Assert order buttons -->
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>
</test>
</tests>
</tests>
Expand Up @@ -151,7 +151,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>

Expand All @@ -168,4 +168,4 @@
<!-- Assert order buttons -->
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>
</test>
</tests>
</tests>
Expand Up @@ -81,7 +81,7 @@
<waitForPageLoad stepKey="waitForPageLoad"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>

Expand All @@ -91,4 +91,4 @@
<!-- Ship the order and assert the shipping status -->
<actionGroup ref="AdminShipThePendingOrderActionGroup" stepKey="shipTheOrder"/>
</test>
</tests>
</tests>
Expand Up @@ -119,7 +119,7 @@
<waitForPageLoad stepKey="waitForPageLoad"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>

Expand All @@ -129,4 +129,4 @@
<!-- Ship the order and assert the shipping status -->
<actionGroup ref="AdminShipThePendingOrderActionGroup" stepKey="shipTheOrder"/>
</test>
</tests>
</tests>
Expand Up @@ -196,7 +196,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand All @@ -220,4 +220,4 @@
<argument name="customerGroup" value=""/>
</actionGroup>
</test>
</tests>
</tests>
Expand Up @@ -77,7 +77,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand All @@ -90,4 +90,4 @@
<see selector="{{AdminOrderTotalSection.grandTotal}}" userInput="$0.00" stepKey="seeGrandTotal"/>
<see selector="{{AdminOrderDetailsInformationSection.orderStatus}}" userInput="Pending" stepKey="seeOrderStatus"/>
</test>
</tests>
</tests>
Expand Up @@ -71,7 +71,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand Down Expand Up @@ -102,4 +102,4 @@
</actionGroup>
<see selector="{{StorefrontProductInfoMainSection.productStockStatus}}" userInput="Out Of Stock" stepKey="seeProductDisplayedAsOutOfStock"/>
</test>
</tests>
</tests>
Expand Up @@ -116,7 +116,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<see selector="{{AdminOrdersGridSection.firstRow}}" userInput="$$createCustomer.fullname$$" stepKey="seeCustomerNameInGrid"/>
Expand Down
Expand Up @@ -66,7 +66,7 @@
<waitForPageLoad stepKey="waitForPageLoad5"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand Down Expand Up @@ -97,4 +97,4 @@
</actionGroup>
<see selector="{{StorefrontProductInfoMainSection.productStockStatus}}" userInput="Out Of Stock" stepKey="seeProductDisplayedAsOutOfStock"/>
</test>
</tests>
</tests>
Expand Up @@ -78,7 +78,7 @@
<waitForPageLoad stepKey="waitForPageLoad"/>

<!-- Filter Order using orderId and assert order-->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$orderId"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.viewLink('$orderId')}}" stepKey="clickOnViewLink"/>
Expand All @@ -94,4 +94,4 @@
<!-- Assert order buttons -->
<actionGroup ref="AdminAssertOrderAvailableButtonsActionGroup" stepKey="assertOrderButtons"/>
</test>
</tests>
</tests>
Expand Up @@ -90,7 +90,7 @@
<waitForPageLoad stepKey="waitForSalesOrderPageLoaded"/>

<!-- Open Order -->
<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<click selector="{{AdminOrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
Expand Down
Expand Up @@ -118,7 +118,7 @@
<actionGroup ref="saveProductForm" stepKey="saveSecondProductForm"/>
<!-- Go to created customer page -->
<comment userInput="Go to created customer page" stepKey="goToCreatedCustomerPage"/>
<actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="createNewOrder">
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="createNewOrder">
<argument name="customer" value="$$createCustomer$$"/>
</actionGroup>
<click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickToAddProduct"/>
Expand All @@ -133,7 +133,7 @@
<dontSee userInput="$$createConfigProductAttributeOption1.option[store_labels][1][label]$$" stepKey="dontSeeOption1"/>
<!-- Go to created customer page again -->
<comment userInput="Go to created customer page again" stepKey="goToCreatedCustomerPageAgain"/>
<actionGroup ref="navigateToNewOrderPageExistingCustomer" stepKey="createNewOrderAgain">
<actionGroup ref="NavigateToNewOrderPageExistingCustomerActionGroup" stepKey="createNewOrderAgain">
<argument name="customer" value="$$createCustomer$$"/>
</actionGroup>
<click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickToAddProductAgain"/>
Expand Down
Expand Up @@ -66,7 +66,7 @@

<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>

<actionGroup ref="filterOrderGridById" stepKey="filterOrderGridById">
<actionGroup ref="FilterOrderGridByIdActionGroup" stepKey="filterOrderGridById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>

Expand All @@ -83,7 +83,7 @@
<fillField selector="{{AdminShipmentItemsSection.itemQtyToShip('1')}}" userInput="1" stepKey="changeItemQtyToShip"/>
<click selector="{{AdminShipmentMainActionsSection.submitShipment}}" stepKey="clickSubmitShipment"/>
<waitForPageLoad stepKey="waitShipmentSectionToLoad"/>
<actionGroup ref="cancelPendingOrder" stepKey="cancelPendingOption">
<actionGroup ref="CancelPendingOrderActionGroup" stepKey="cancelPendingOption">
<argument name="orderStatus" value="Complete"/>
</actionGroup>

Expand Down
Expand Up @@ -61,7 +61,7 @@
</actionGroup>
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabNewOrderNumber"/>
<!--Open order and check rates display in one line-->
<actionGroup ref="OpenOrderById" stepKey="openNewOrderById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openNewOrderById">
<argument name="orderId" value="$grabNewOrderNumber"/>
</actionGroup>
<see selector="{{AdminOrderDetailsInformationSection.orderInformationTable}}" userInput="EUR / USD rate" stepKey="seeUSDandEURRate"/>
Expand Down
Expand Up @@ -64,7 +64,7 @@
</actionGroup>
<grabTextFrom selector="{{CheckoutSuccessMainSection.orderNumber}}" stepKey="grabOrderNumber"/>
<!--Open order and check rates display in one line-->
<actionGroup ref="OpenOrderById" stepKey="openOrderById">
<actionGroup ref="OpenOrderByIdActionGroup" stepKey="openOrderById">
<argument name="orderId" value="$grabOrderNumber"/>
</actionGroup>
<see selector="{{AdminOrderDetailsInformationSection.orderInformationTable}}" userInput="EUR / USD rate" stepKey="seeEURandUSDRate"/>
Expand Down