Skip to content

Commit 7956633

Browse files
committed
Test improvements:
- test stabilization
1 parent d85acd2 commit 7956633

File tree

4 files changed

+23
-19
lines changed

4 files changed

+23
-19
lines changed

app/code/Magento/Backend/Test/Mftf/ActionGroup/AdminClickDeleteMainButtonWithConfirmationActionGroup.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminGridTableSection">
1212
<element name="row" type="text" selector="table.data-grid tbody tr[data-role=row]:nth-of-type({{row}})" parameterized="true"/>
13-
<element name="rowByValue" type="text" selector="//table[@class='data-grid']//tbody//tr[@data-role='row'] //td[contains(., '{{var}}')]" parameterized="true" timeout="30"/>
1413
</section>
1514
</sections>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAddSimpleProductToShoppingCartActionGroup">
12+
<arguments>
13+
<argument name="product"/>
14+
<argument name="qty" type="string" defaultValue="1" />
15+
</arguments>
16+
<amOnPage url="{{StorefrontProductPage.url(product.custom_attributes[url_key])}}" stepKey="openProductPage" />
17+
<waitForPageLoad stepKey="waitForProductPageOpen" />
18+
<fillField userInput="{{qty}}" selector="{{StorefrontProductInfoMainSection.qty}}" stepKey="fillQty" />
19+
<click selector="{{StorefrontProductInfoMainSection.AddToCart}}" stepKey="clickAddToCart" />
20+
<waitForElementVisible selector="{{StorefrontMessagesSection.messageByType('success')}}" stepKey="waitForSuccessMessage" />
21+
</actionGroup>
22+
</actionGroups>

app/code/Magento/Theme/Test/Mftf/Section/StorefrontMessagesSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
selector="//main//div[contains(@class, 'messages')]//div[contains(@class, 'message')]/div[contains(text(), '{{var1}}')]"
1414
parameterized="true"
1515
/>
16+
<element name="messageByType" type="text" selector="[data-ui-id='message-{{messageType}}']" parameterized="true" />
1617
</section>
1718
</sections>

0 commit comments

Comments
 (0)