Skip to content

Commit 9904c13

Browse files
committed
MAGETWO-90053: Refreshing page deletes shipping address on guest checkout if module-persistent is enabled
1 parent 9fa5cdf commit 9904c13

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

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

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

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"/>
33+
<!-- Add simple product to cart -->
34+
<actionGroup stepKey="addProductToCart1" ref="AddSimpleProductToCart">
35+
<argument name="product" value="$$createProduct$$"/>
36+
</actionGroup>
3837
<see selector="{{StorefrontCategoryMainSection.SuccessMsg}}" userInput="You added $$createProduct.name$$ to your shopping cart." stepKey="seeAddedToCartMessage"/>
3938
<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"/>
39+
<!-- Navigate to checkout -->
40+
<actionGroup stepKey="addProductNavigateToCheckout" ref="NavigateToCheckoutActionGroup"/>
4341
<fillField selector="{{GuestCheckoutShippingSection.email}}" userInput="{{CustomerEntityOne.email}}" stepKey="enterEmail"/>
4442
<fillField selector="{{GuestCheckoutShippingSection.firstName}}" userInput="{{CustomerEntityOne.firstname}}" stepKey="enterFirstName"/>
4543
<fillField selector="{{GuestCheckoutShippingSection.lastName}}" userInput="{{CustomerEntityOne.lastname}}" stepKey="enterLastName"/>

0 commit comments

Comments
 (0)