12345678910111213141516171819202122232425262728293031 |
- <?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">
- <!-- Action group to delete an item given that items name -->
- <!-- Must already be on the admin page containing the grid -->
- <actionGroup name="deleteEntitySecondaryGrid">
- <arguments>
- <argument name="name" type="string"/>
- <argument name="searchInput" type="string"/>
- </arguments>
- <!-- search for the name -->
- <click stepKey="resetFilters" selector="{{AdminSecondaryGridSection.resetFilters}}"/>
- <fillField stepKey="fillIdentifier" selector="{{searchInput}}" userInput="{{name}}"/>
- <click stepKey="searchForName" selector="{{AdminSecondaryGridSection.searchButton}}"/>
- <click stepKey="clickResult" selector="{{AdminSecondaryGridSection.firstRow}}"/>
- <waitForPageLoad stepKey="waitForTaxRateLoad"/>
- <!-- delete the rule -->
- <click stepKey="clickDelete" selector="{{AdminStoresMainActionsSection.deleteButton}}"/>
- <click stepKey="clickOk" selector="{{AdminConfirmationModalSection.ok}}"/>
- <see stepKey="seeSuccess" selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="deleted"/>
- </actionGroup>
- </actionGroups>
|