Skip to content

Commit 471f67a

Browse files
committed
MAGETWO-90053: Refreshing page deletes shipping address on guest checkout if module-persistent is enabled
1 parent 9138013 commit 471f67a

File tree

4 files changed

+27
-32
lines changed

4 files changed

+27
-32
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/ActionGroup/AddProductToCartActionGroup.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@
1515
<amOnPage stepKey="navigateProductPage" url="/{{product.name}}.html"/>
1616
<click stepKey="addToCart" selector="{{StorefrontProductPageSection.AddToCartBtn}}"/>
1717
<waitForElementVisible selector="{{StorefrontProductPageSection.SuccessMsg}}" time="30" stepKey="waitForProductAdded"/>
18+
<see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added {{product.name}} to your shopping cart." stepKey="seeAddedToCartMessage"/>
1819
</actionGroup>
1920
</actionGroups>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/ActionGroup/AddSimpleProductAndNavigateToCheckoutActionGroup.xml

Lines changed: 0 additions & 27 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="NavigateToCheckoutActionGroup">
12+
<click selector="{{StorefrontMiniCartSection.show}}" stepKey="clickCart"/>
13+
<click selector="{{StorefrontMiniCartSection.goToCheckout}}" stepKey="goToCheckout"/>
14+
<waitForPageLoad stepKey="waitForPageLoad2"/>
15+
</actionGroup>
16+
</actionGroups>

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Checkout/Test/StorefrontGuestCheckoutTest.xml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,16 @@
3030
<deleteData createDataKey="createProduct" stepKey="deleteProduct"/>
3131
</after>
3232

33-
<!-- Add simple product to cart and navigate to checkout -->
34-
<actionGroup stepKey="addProductNavigateToCheckout" ref="AddSimpleProductAndNavigateToCheckoutActionGroup">
35-
<argument name="product" value="$$createProduct$$"/>
36-
<argument name="category" value="$$createCategory$$"/>
37-
</actionGroup>
33+
<amOnPage url="{{StorefrontCategoryPage.url($$createCategory.name$$)}}" stepKey="onCategoryPage"/>
34+
<waitForPageLoad stepKey="waitForPageLoad1"/>
35+
<moveMouseOver selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" stepKey="hoverProduct"/>
36+
<click selector="{{StorefrontCategoryMainSection.AddToCartBtn}}" stepKey="addToCart"/>
37+
<waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" time="30" stepKey="waitForProductAdded"/>
38+
<see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added $$createProduct.name$$ to your shopping cart." stepKey="seeAddedToCartMessage"/>
39+
<see selector="{{StorefrontMiniCartSection.quantity}}" userInput="1" stepKey="seeCartQuantity"/>
40+
<click selector="{{StorefrontMiniCartSection.show}}" stepKey="clickCart"/>
41+
<click selector="{{StorefrontMiniCartSection.goToCheckout}}" stepKey="goToCheckout"/>
42+
<waitForPageLoad stepKey="waitForPageLoad2"/>
3843
<fillField selector="{{GuestCheckoutShippingSection.email}}" userInput="{{CustomerEntityOne.email}}" stepKey="enterEmail"/>
3944
<fillField selector="{{GuestCheckoutShippingSection.firstName}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="enterFirstName"/>
4045
<fillField selector="{{GuestCheckoutShippingSection.lastName}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="enterLastName"/>

0 commit comments

Comments
 (0)