Viewing File: /home/maglabs/it/app/code/Magento/Wishlist/Test/Mftf/Test/StorefrontDeletePersistedWishlistTest.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="StorefrontDeletePersistedWishlistTest">
<annotations>
<features value="Wishlist"/>
<stories value="Delete a persist wishlist for a customer"/>
<title value="Customer should be able to delete a persistent wishlist"/>
<description value="Customer should be able to delete a persistent wishlist"/>
<severity value="AVERAGE"/>
<group value="wishlist"/>
<testCaseId value="MC-4110"/>
</annotations>
<before>
<createData stepKey="category" entity="SimpleSubCategory"/>
<createData stepKey="product" entity="SimpleProduct" >
<requiredEntity createDataKey="category"/>
</createData>
<createData stepKey="customer" entity="Simple_US_Customer"/>
<createData stepKey="wishlist" entity="Wishlist">
<requiredEntity createDataKey="customer"/>
<requiredEntity createDataKey="product"/>
</createData>
</before>
<after>
<deleteData stepKey="deleteCategory" createDataKey="category"/>
<deleteData stepKey="deleteProduct" createDataKey="product"/>
<actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="logoutCustomer" />
<deleteData stepKey="deleteCustomer" createDataKey="customer"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="adminLogout"/>
</after>
<actionGroup ref="StorefrontOpenCustomerLoginPageActionGroup" stepKey="goToSignInPage"/>
<actionGroup ref="StorefrontFillCustomerLoginFormActionGroup" stepKey="fillLoginFormWithCorrectCredentials">
<argument name="customer" value="$$customer$$"/>
</actionGroup>
<actionGroup ref="StorefrontClickSignOnCustomerLoginFormActionGroup" stepKey="clickSignInAccountButton" />
<see stepKey="seeFirstName" userInput="$$customer.firstname$$" selector="{{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
<see stepKey="seeLastName" userInput="$$customer.lastname$$" selector="{{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
<see stepKey="seeEmail" userInput="$$customer.email$$" selector="{{StorefrontCustomerDashboardAccountInformationSection.ContactInformation}}" />
<amOnPage stepKey="amOnWishlist" url="{{StorefrontCustomerWishlistPage.url}}"/>
<waitForPageLoad stepKey="waitForWishlist"/>
<see stepKey="seeWishlist" userInput="$$product.price$$" selector="{{StorefrontCustomerWishlistProductSection.ProductPriceByName($$product.name$$)}}"/>
<moveMouseOver stepKey="mouseOver" selector="{{StorefrontCustomerWishlistProductSection.ProductPriceByName($$product.name$$)}}"/>
<waitForElementVisible stepKey="waitForRemoveButton" selector="{{StorefrontCustomerWishlistSection.removeWishlistButton($$product.name$$)}}"/>
<click stepKey="clickRemove" selector="{{StorefrontCustomerWishlistSection.removeWishlistButton($$product.name$$)}}"/>
<see stepKey="seeEmptyWishlist" userInput="You have no items in your wish list" selector="{{StorefrontCustomerWishlistSection.emptyWishlistText}}"/>
</test>
</tests>
Back to Directory
File Manager