|
| 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="AdminDeleteCustomerTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="Delete customer"/> |
| 14 | + <title value="DeleteCustomerBackendEntityTestVariation1"/> |
| 15 | + <description value="Login as admin and delete the customer"/> |
| 16 | + <severity value="CRITICAL"/> |
| 17 | + <testCaseId value="MC-14587"/> |
| 18 | + <group value="mtf_migrated"/> |
| 19 | + </annotations> |
| 20 | + |
| 21 | + <before> |
| 22 | + <!-- Create Customer --> |
| 23 | + <createData entity="CustomerEntityOne" stepKey="createCustomer"/> |
| 24 | + <!-- Login as admin --> |
| 25 | + <actionGroup ref="LoginAsAdmin" stepKey="login"/> |
| 26 | + </before> |
| 27 | + <after> |
| 28 | + <actionGroup ref="logout" stepKey="logout"/> |
| 29 | + </after> |
| 30 | + |
| 31 | + <!-- Delete created customer --> |
| 32 | + <actionGroup ref="DeleteCustomerByEmailActionGroup" stepKey="deleteCustomer"> |
| 33 | + <argument name="email" value="$$createCustomer.email$$"/> |
| 34 | + </actionGroup> |
| 35 | + <seeElement selector="{{CustomersPageSection.deletedSuccessMessage}}" stepKey="seeSuccessMessage"/> |
| 36 | + <waitForPageLoad stepKey="waitForCustomerGridPageToLoad"/> |
| 37 | + |
| 38 | + <!--Assert Customer is not in Grid --> |
| 39 | + <click selector="{{AdminCustomerFiltersSection.filtersButton}}" stepKey="clickFilterButton"/> |
| 40 | + <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="cleanFiltersIfTheySet"/> |
| 41 | + <waitForPageLoad stepKey="waitForClearFilters1"/> |
| 42 | + <fillField selector="{{AdminCustomerFiltersSection.emailInput}}" userInput="$$createCustomer.email$$" stepKey="filterEmail"/> |
| 43 | + <click selector="{{AdminCustomerFiltersSection.apply}}" stepKey="applyFilter"/> |
| 44 | + <waitForPageLoad stepKey="waitForPageToLoad"/> |
| 45 | + <see selector="{{AdminCustomerGridSection.customerGrid}}" userInput="We couldn't find any records." stepKey="seeEmptyRecordMessage"/> |
| 46 | + </test> |
| 47 | +</tests> |
0 commit comments