|
| 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="CheckShoppingCartBehaviorAfterSessionExpiredTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Persistent"/> |
| 14 | + <stories value="MAGETWO-91733 - Unusual behavior with the persistent shopping cart after the session is expired"/> |
| 15 | + <title value="Checking behavior with the persistent shopping cart after the session is expired"/> |
| 16 | + <description value="Checking behavior with the persistent shopping cart after the session is expired"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="MAGETWO-95118"/> |
| 19 | + <group value="persistent"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!--Enable Persistence--> |
| 23 | + <createData entity="PersistentConfigEnabled" stepKey="enablePersistent"/> |
| 24 | + <!--Create product--> |
| 25 | + <createData entity="_defaultCategory" stepKey="createCategory"/> |
| 26 | + <createData entity="_defaultProduct" stepKey="createProduct"> |
| 27 | + <requiredEntity createDataKey="createCategory"/> |
| 28 | + </createData> |
| 29 | + <!-- Create new customer --> |
| 30 | + <actionGroup ref="SignUpNewUserFromStorefrontActionGroup" stepKey="SignUpNewUser"> |
| 31 | + <argument name="Customer" value="Simple_US_Customer_NY"/> |
| 32 | + </actionGroup> |
| 33 | + <!--Add shipping information--> |
| 34 | + <actionGroup ref="EnterCustomerAddressInfo" stepKey="enterAddressInfo"> |
| 35 | + <argument name="Address" value="US_Address_NY"/> |
| 36 | + </actionGroup> |
| 37 | + </before> |
| 38 | + <after> |
| 39 | + <!--Roll back configuration--> |
| 40 | + <createData entity="PersistentConfigDefault" stepKey="setDefaultPersistentState"/> |
| 41 | + <!--Delete product--> |
| 42 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 43 | + <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
| 44 | + </after> |
| 45 | + <!-- Add simple product to cart --> |
| 46 | + <actionGroup ref="AddSimpleProductToCart" stepKey="addProductToCart1"> |
| 47 | + <argument name="product" value="$$createProduct$$"/> |
| 48 | + </actionGroup> |
| 49 | + <actionGroup ref="clickViewAndEditCartFromMiniCart" stepKey="goToShoppingCartFromMinicart"/> |
| 50 | + <!--Reset cookies and refresh the page--> |
| 51 | + <resetCookie userInput="PHPSESSID" stepKey="resetCookieForCart"/> |
| 52 | + <reloadPage stepKey="reloadPage"/> |
| 53 | + <waitForPageLoad stepKey="waitForPageLoad"/> |
| 54 | + <!--Check product exists in cart--> |
| 55 | + <see userInput="$$createProduct.name$$" stepKey="ProductExistsInCart"/> |
| 56 | + </test> |
| 57 | +</tests> |
0 commit comments