|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="DeleteCustomVariableEntityTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Variable"/> |
| 14 | + <stories value="Delete Custom Variable."/> |
| 15 | + <title value="Delete Custom Variable."/> |
| 16 | + <description value="Test for deleting a custom variable."/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <group value="variable"/> |
| 19 | + <group value="mtf_migrated"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
| 23 | + <createData entity="customVariableV2" stepKey="createCustomVariable"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <actionGroup ref="logout" stepKey="logout"/> |
| 27 | + </after> |
| 28 | + <actionGroup ref="AdminNavigateToVariablesGridPageActionGroup" stepKey="goToVariablesGridAdminPage"/> |
| 29 | + <actionGroup ref="AdminFilterGridActionGroup" stepKey="filterVariablesGridByNewVariableCode" > |
| 30 | + <argument name="field" value="{{AdminVariablesFilterSection.codeFilter}}"/> |
| 31 | + <argument name="value" value="$$customVariableV2.code$$"/> |
| 32 | + </actionGroup> |
| 33 | + <actionGroup ref="AdminNavigateToVariablePageActionGroup" stepKey="openCustomVariablePage"> |
| 34 | + <argument name="code" value="$$customVariableV2.code$$"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="AdminClickDeleteMainButtonWithConfirmationActionGroup" stepKey="clickDeleteVariable"/> |
| 37 | + <actionGroup ref="AssertMessageActionGroup" stepKey="seeSuccessMessage"> |
| 38 | + <argument name="message" value="You deleted the custom variable."/> |
| 39 | + </actionGroup> |
| 40 | + </test> |
| 41 | +</tests> |
0 commit comments