Skip to content

Commit eb809fd

Browse files
committed
MQE-2046: remove deprecated entities usages in MFTF tests
1 parent 49e84fe commit eb809fd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/Backend/Test/Mftf/Section/AdminMessagesSection.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminMessagesSection">
12-
<element name="success" type="text" selector="#messages div.message-success"/>
12+
<element name="success" type="text" selector=".message-success"/>
1313
<element name="nthSuccess" type="text" selector=".message.message-success.success:nth-of-type({{n}})>div" parameterized="true"/>
14-
<element name="error" type="text" selector="#messages div.message-error"/>
14+
<element name="error" type="text" selector=".message.message-error.error"/>
1515
<element name="notice" type="text" selector=".message.message-notice.notice"/>
1616
<element name="messageByType" type="text" selector="#messages div.message-{{messageType}}" parameterized="true" />
17-
<element name="warning" type="text" selector="#messages div.message-warning"/>
17+
<element name="warning" type="text" selector=".message-warning"/>
1818
<element name="accessDenied" type="text" selector=".access-denied-page"/>
1919
</section>
2020
</sections>

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AddSimpleProductToCartActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1111
<actionGroup name="AddSimpleProductToCartActionGroup">
1212
<annotations>
13-
<description>Navigates to the Storefront Product page. Then adds the Product to the Cart. Validates that the Success Message is present and correct.</description>
13+
<description>Only works on Storefront Product Page - Add Simple Product to Cart</description>
1414
</annotations>
1515
<arguments>
1616
<argument name="product" defaultValue="product"/>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/StorefrontAddSimpleProductToCartActionGroup.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
<!-- Add Product to Cart from the category page and check message -->
1212
<actionGroup name="StorefrontAddSimpleProductToCartActionGroup">
1313
<annotations>
14-
<description>Adds the provided Product to the Storefront Shopping Cart from a Storefront Category page. Validates that the provided Success Message is present and correct.</description>
14+
<description>Only works on Storefront Category Page - Add Simple Product to Cart</description>
1515
</annotations>
1616
<arguments>
1717
<argument name="product" type="entity"/>
1818
</arguments>
19-
19+
2020
<moveMouseOver selector="{{StorefrontCategoryProductSection.ProductInfoByName(product.name)}}" stepKey="moveMouseOverProduct"/>
2121
<click selector="{{StorefrontCategoryProductSection.ProductAddToCartByName(product.name)}}" stepKey="clickAddToCart"/>
2222
<waitForElementVisible selector="{{StorefrontCategoryMainSection.SuccessMsg}}" stepKey="waitForSuccessMessage"/>

0 commit comments

Comments
 (0)