| Current Path : /home/rtorresani/www/vendor/magento/module-customer/Test/Mftf/Test/ |
| Current File : //home/rtorresani/www/vendor/magento/module-customer/Test/Mftf/Test/EndToEndB2CLoggedInUserTest.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="EndToEndB2CLoggedInUserTest">
<annotations>
<features value="End to End scenarios"/>
<stories value="B2C logged in user - MC-25681"/>
<group value="e2e"/>
<title value="You should be able to pass End to End B2C Logged In User scenario"/>
<description value="New user signup and browses catalog, searches for product, adds product to cart, adds product to wishlist, compares products, uses coupon code and checks out."/>
<severity value="CRITICAL"/>
<testCaseId value="MC-25681"/>
<group value="SearchEngine"/>
<group value="guest_checkout"/>
</annotations>
<before>
<magentoCLI command="config:set checkout/options/enable_guest_checkout_login 1" stepKey="EnablingGuestCheckoutLogin"/>
<resetCookie userInput="PHPSESSID" stepKey="resetCookieForCart"/>
<actionGroup ref="AdminLoginActionGroup" after="resetCookieForCart" stepKey="loginAsAdmin"/>
</before>
<after>
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer"/>
<comment userInput="No need this since it done in before section" stepKey="loginAsAdmin"/>
<actionGroup ref="DeleteCustomerFromAdminActionGroup" stepKey="deleteCustomerFromAdmin"/>
<actionGroup ref="ClearFiltersAdminDataGridActionGroup" stepKey="clearProductsGridFilters"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
<magentoCLI command="config:set checkout/options/enable_guest_checkout_login 0" stepKey="DisablingGuestCheckoutLogin"/>
</after>
<!-- Step 0: User signs up an account -->
<comment userInput="Start of signing up user account" stepKey="startOfSigningUpUserAccount" />
<actionGroup ref="StorefrontOpenCustomerAccountCreatePageActionGroup" stepKey="openCreateAccountPage"/>
<actionGroup ref="StorefrontFillCustomerAccountCreationFormActionGroup" stepKey="fillCreateAccountForm">
<argument name="customer" value="CustomerEntityOne"/>
</actionGroup>
<actionGroup ref="StorefrontClickCreateAnAccountCustomerAccountCreationFormActionGroup" stepKey="submitCreateAccountForm"/>
<actionGroup ref="AssertMessageCustomerCreateAccountActionGroup" stepKey="seeSuccessMessage">
<argument name="messageType" value="success"/>
<argument name="message" value="Thank you for registering with Main Website Store."/>
</actionGroup>
<comment userInput="End of signing up user account" stepKey="endOfSigningUpUserAccount" />
</test>
</tests>