|
| 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="AdminVerifyCustomerOnGridAfterDeletingWebsiteTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Customer"/> |
| 14 | + <stories value="Customer grid"/> |
| 15 | + <title value="The customer's grid is not available after deleting the website"/> |
| 16 | + <description value="Verify grid after deleting website associated with customer"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="MC-39783"/> |
| 19 | + <group value="customer"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="LoginAsAdmin"/> |
| 23 | + <actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createWebsite"> |
| 24 | + <argument name="newWebsiteName" value="{{customWebsite.name}}"/> |
| 25 | + <argument name="websiteCode" value="{{customWebsite.code}}"/> |
| 26 | + </actionGroup> |
| 27 | + <actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createNewStore"> |
| 28 | + <argument name="website" value="{{customWebsite.name}}"/> |
| 29 | + <argument name="storeGroupName" value="{{customStoreGroup.name}}"/> |
| 30 | + <argument name="storeGroupCode" value="{{customStoreGroup.code}}"/> |
| 31 | + </actionGroup> |
| 32 | + <actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createCustomStoreView"> |
| 33 | + <argument name="StoreGroup" value="customStoreGroup"/> |
| 34 | + <argument name="customStore" value="customStore"/> |
| 35 | + </actionGroup> |
| 36 | + <actionGroup ref="AdminGoCreatedWebsitePageActionGroup" stepKey="openWebsiteToGetId"> |
| 37 | + <argument name="websiteName" value="{{customWebsite.name}}"/> |
| 38 | + </actionGroup> |
| 39 | + <grabFromCurrentUrl regex="~/website_id/(\d+)/~" stepKey="grabWebsiteIdFromURL"/> |
| 40 | + <createData entity="Simple_Customer_Without_Address" stepKey="createCustomer"> |
| 41 | + <field key="website_id">$grabWebsiteIdFromURL</field> |
| 42 | + </createData> |
| 43 | + </before> |
| 44 | + <after> |
| 45 | + <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
| 46 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
| 47 | + </after> |
| 48 | + |
| 49 | + <actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="DeleteWebsite"> |
| 50 | + <argument name="websiteName" value="{{customWebsite.name}}"/> |
| 51 | + </actionGroup> |
| 52 | + <actionGroup ref="AdminOpenCustomersGridActionGroup" stepKey="goToCustomersGridPage"/> |
| 53 | + <actionGroup stepKey="resetFilter" ref="AdminResetFilterInCustomerGrid"/> |
| 54 | + <actionGroup stepKey="filterByEamil" ref="AdminFilterCustomerGridByEmail"> |
| 55 | + <argument name="email" value="$$createCustomer.email$$"/> |
| 56 | + </actionGroup> |
| 57 | + <actionGroup stepKey="checkCustomerInGrid" ref="AdminAssertCustomerInCustomersGrid"> |
| 58 | + <argument name="text" value="$$createCustomer.email$$"/> |
| 59 | + <argument name="row" value="1"/> |
| 60 | + </actionGroup> |
| 61 | + </test> |
| 62 | +</tests> |
0 commit comments