Skip to content

Commit 030241f

Browse files
committed
Merge branch 'ACQE-7386' of https://github.com/magento-gl/magento2ce into functional-tests-mainline-deployment-ver4
2 parents 7ede0af + 10aeb4e commit 030241f

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
67
-->
78

89
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -11,7 +12,7 @@
1112
<arguments>
1213
<argument name="message" type="string" defaultValue=""/>
1314
</arguments>
14-
<waitForElementVisible selector="{{StorefrontMessagesSection.error}}" stepKey="waitForProductAddedMessage"/>
15-
<see selector="{{StorefrontMessagesSection.error}}" userInput="{{message}}" stepKey="seeAddToCartErrorMessage"/>
15+
<comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitForProductAddedMessage"/>
16+
<waitForText selector="{{StorefrontMessagesSection.error}}" time="120" userInput="{{message}}" stepKey="seeAddToCartErrorMessage"/>
1617
</actionGroup>
1718
</actionGroups>

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
6-
*/
3+
/**
4+
* Copyright 2024 Adobe
5+
* All Rights Reserved.
6+
*/
77
-->
88
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
99
<test name="StorefrontAddProductToCartVerifyThatErrorMessageShouldNotDisappearTest">
@@ -21,7 +21,7 @@
2121
<before>
2222
<!-- Set in Stores > Configuration > Catalog > Catalog > Recently Viewed/Compared Products > Synchronize Widget Products With Backend Storage = "Yes" -->
2323
<magentoCLI command="config:set {{EnableSynchronizeWidgetProductsWithBackendStorage.path}} {{EnableSynchronizeWidgetProductsWithBackendStorage.value}}" stepKey="setEnableSynchronizeWidgetProductsWithBackendStorage"/>
24-
<createData entity="_defaultCategory" stepKey="createCategory"/>
24+
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2525
<createData entity="_defaultProduct" stepKey="createSimpleProduct">
2626
<requiredEntity createDataKey="createCategory"/>
2727
</createData>
@@ -44,8 +44,9 @@
4444
<actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openProductPage">
4545
<argument name="product" value="$$createSimpleProduct$$"/>
4646
</actionGroup>
47-
48-
<fillField selector="{{StorefrontProductInfoMainSection.qty}}" userInput="1001" stepKey="fillQuantity"/>
47+
<clearField selector="{{StorefrontProductInfoMainSection.qty}}" stepKey="clearQuantity"/>
48+
<fillField selector="{{StorefrontProductInfoMainSection.qty}}" userInput="10000" stepKey="fillQuantity"/>
49+
<seeInField userInput="10000" selector="{{StorefrontProductInfoMainSection.qty}}" stepKey="seeUpdatedQuantity"/>
4950

5051
<actionGroup ref="StorefrontProductPageAddSimpleProductToCartActionGroup" stepKey="addProductToCart"/>
5152
<!-- Check that error remains -->

0 commit comments

Comments
 (0)