| 1234567891011121314151617181920212223242526272829 |
- <?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="FindOrderAndCancel">
- <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"/>
- <click selector="{{OrderDetailsMainActionsSection.cancel}}" stepKey="clickCancel"/>
- <wait stepKey="waitOrderPageLoad1" time="5"/>
- <click selector="{{KpOrderDetailsOrderViewSection.confirmBoxOk}}" stepKey="confirmCancel"/>
- <wait stepKey="waitOrderPageLoad2" time="5"/>
- <see selector="{{OrderDetailsMessagesSection.successMessage}}" userInput="You canceled the order." stepKey="seeSuccessMessage"/>
- </actionGroup>
- </actionGroups>
|