Skip to content

Commit de3b17b

Browse files
committed
Selectors refactoring, CRON cli adding
1 parent 6f824a9 commit de3b17b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

app/code/Magento/Customer/Test/Mftf/Section/AdminCustomerWishlistSection.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1111
<section name="AdminCustomerWishlistSection">
1212
<element name="productName" type="input" selector="#wishlistGrid_filter_product_name"/>
13-
<element name="searchButton" type="button" selector=".action-default.scalable.action-secondary"/>
14-
<element name="deleteButton" type="text" selector=".even > td:nth-child(7) > a:nth-child(1)"/>
15-
<element name="deleteConfirm" type="button" selector=".action-primary.action-accept"/>
13+
<element name="searchButton" type="button" selector="#wishlistGrid button[data-action='grid-filter-apply']"/>
14+
<element name="deleteButton" type="text" selector="//*[@id='wishlistGrid_table']//*[@data-column='action']//*[text()='Delete']"/>
15+
<element name="deleteConfirm" type="button" selector=".modal-popup.confirm .action-primary.action-accept"/>
1616
<element name="gridTable" type="text" selector="#wishlistGrid_table"/>
1717
</section>
1818
</sections>

app/code/Magento/Wishlist/Test/Mftf/Test/AdminDeleteCustomerWishListItemTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<createData entity="SimpleProduct" stepKey="createProduct">
2222
<requiredEntity createDataKey="createCategory"/>
2323
</createData>
24+
<magentoCLI command="cron:run --group=index" stepKey="runCronIndexer"/>
2425
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
2526
</before>
2627
<after>

0 commit comments

Comments
 (0)