Skip to content

Commit 429edc8

Browse files
MAGETWO-66666: Adding a product to cart from category page with an expired session does not allow product to be added
- Updated automated test.
1 parent fdc446e commit 429edc8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Customer/Test/Mftf/ActionGroup/StorefrontAddProductToCardActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
<click selector="{{StorefrontAddProductToCartSection.addToCartBtn}}" stepKey="addToCart"/>
3636
<waitForElementVisible selector="{{StorefrontProductPageSection.successMsg}}" time="30" stepKey="waitForProductAdded"/>
3737
<click selector="{{StorefrontAddProductToCartSection.showCard}}" stepKey="clickToOpenCard"/>
38-
<waitForPageLoad stepKey="WaitForFormOpened" time="3"/>
38+
<waitForPageLoad stepKey="WaitForFormOpened"/>
3939
<click selector="{{StorefrontAddProductToCartSection.proceed}}" stepKey="clickToProceedToCheckout"/>
40-
<waitForPageLoad time="5" stepKey="waitForTheFormIsOpened"/>
40+
<waitForPageLoad stepKey="waitForTheFormIsOpened"/>
4141
<see userInput="Shipping Address" stepKey="seeShippingAddress"/>
4242
</actionGroup>
4343

app/code/Magento/Customer/Test/Mftf/Test/AddingProductWithExpiredSessionTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</before>
2626

2727
<!--Navigate to a category page -->
28-
<amOnPage url="/{{SimpleProductOne.name}}.html" stepKey="GoToProductPage"/>
28+
<amOnPage url="/{{SimpleProductOne.urlKey}}.html" stepKey="GoToProductPage"/>
2929

3030
<waitForPageLoad stepKey="waitForPageLoad"/>
3131

0 commit comments

Comments
 (0)