| Current Path : /home/rtorresani/www/vendor/magento/module-customer/Test/Mftf/Test/ |
| Current File : //home/rtorresani/www/vendor/magento/module-customer/Test/Mftf/Test/AdminCreateNewCustomerTest.xml |
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
<test name="AdminCreateNewCustomerTest">
<annotations>
<stories value="Create customer"/>
<title value="Create customer, new via backend"/>
<description value="Login as admin and create a new customer"/>
<severity value="CRITICAL"/>
<testCaseId value="MC-5312"/>
<group value="mtf_migrated"/>
</annotations>
<before>
<actionGroup ref="AdminLoginActionGroup" stepKey="loginToAdminPanel"/>
</before>
<after>
<actionGroup ref="DeleteCustomerByEmailActionGroup" stepKey="deleteCustomer">
<argument name="email" value="{{CustomerEntityOne.email}}"/>
</actionGroup>
<actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="resetGrid"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
</after>
<!--Open New Customer Page -->
<actionGroup ref="AdminNavigateNewCustomerActionGroup" stepKey="waitToCustomerPageLoad"/>
<fillField userInput="{{CustomerEntityOne.firstname}}" selector="{{AdminCustomerAccountInformationSection.firstName}}" stepKey="fillFirstName"/>
<fillField userInput="{{CustomerEntityOne.lastname}}" selector="{{AdminCustomerAccountInformationSection.lastName}}" stepKey="fillLastName"/>
<fillField userInput="{{CustomerEntityOne.email}}" selector="{{AdminCustomerAccountInformationSection.email}}" stepKey="fillEmail"/>
<click selector="{{AdminCustomerMainActionsSection.saveButton}}" stepKey="saveCustomer"/>
<seeElement selector="{{AdminCustomerMessagesSection.successMessage}}" stepKey="assertSuccessMessage"/>
<reloadPage stepKey="reloadPage"/>
<!--Filter the customer From grid-->
<actionGroup ref="AdminFilterCustomerByEmail" stepKey="filterTheCustomerByEmail">
<argument name="email" value="{{CustomerEntityOne.email}}"/>
</actionGroup>
<waitForPageLoad stepKey="waitForPageToLoad"/>
<actionGroup ref="AdminClickFirstRowEditLinkOnCustomerGridActionGroup" stepKey="clickOnEditButton1"/>
<!-- Assert Customer Title -->
<click selector="{{AdminCustomerAccountInformationSection.accountInformationButton}}" stepKey="clickOnAccountInformation"/>
<waitForPageLoad stepKey="waitForCustomerInformationPageToLoad"/>
<see stepKey="seeCustomerTitle" selector="{{AdminEditCustomerInformationSection.customerTitle}}" userInput="{{CustomerEntityOne.firstname}} {{CustomerEntityOne.lastname}} "/>
</test>
</tests>