| 12345678910111213141516171819202122232425262728293031323334353637 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- /**
- * This file is part of the Klarna KP module
- *
- * (c) Klarna Bank AB (publ)
- *
- * For the full copyright and license information, please view the NOTICE
- * and LICENSE files that were distributed with this source code.
- */
- -->
- <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
- <actionGroup name="FindOrderAndCreateCreditMemo">
- <amOnPage url="{{OrdersPage.url}}" stepKey="onOrdersPage"/>
- <wait stepKey="waitOrderPageLoad" time="5"/>
- <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask3"/>
- <fillField selector="{{OrdersGridSection.search}}" userInput="$kpGrabOrderNumber" stepKey="searchOrderNum"/>
- <click selector="{{OrdersGridSection.submitSearch}}" stepKey="submitSearch"/>
- <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask4"/>
- <click selector="{{OrdersGridSection.firstRow}}" stepKey="clickOrderRow"/>
- <wait stepKey="waitOrderPageLoad2" time="5"/>
- <click selector="{{KpOrderDetailsOrderViewSection.invoices}}" stepKey="clickInvoices"/>
- <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask6"/>
- <click selector="{{KpOrderDetailsOrderViewSection.viewInvoice}}" stepKey="clickToViewInvoice"/>
- <wait stepKey="waitInvoicePageLoad2" time="5"/>
- <click selector="{{KpInvoiceDetailsMainActionsSection.credit_memo}}" stepKey="clickCreditMemo"/>
- <wait stepKey="waitCreditMemoPageLoad2" time="5"/>
- <fillField selector="{{KpCreditMemoNewSection.returnQuantity}}" userInput="1" stepKey="kpEnterReturnQty"/>
- <click selector="{{KpCreditMemoNewSection.updateQtyButton}}" stepKey="kpUpdateReturnQty"/>
- <wait stepKey="waitCreditMemoPageLoad3" time="5"/>
- <click selector="{{KpCreditMemoNewSection.submitCreditMemo}}" stepKey="clickSubmitCreditMemo"/>
- <see selector="{{OrderDetailsMessagesSection.successMessage}}" userInput="You created the credit memo."
- stepKey="seeSuccessMessage2"/>
- </actionGroup>
- </actionGroups>
|