Skip to content

Commit 1b49dc5

Browse files
committed
ACQE-6745: Pagination on the Configurable Product Edit Current Variations Grid
Updated locator on next page
1 parent 21a0723 commit 1b49dc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/code/Magento/ConfigurableProduct/Test/Mftf/Section/AdminProductFormConfigurationsSection/AdminProductFormConfigurationsSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@
6363
<element name="paginationDropDropdown" type="button" selector="//*[@data-index='configurable-matrix'][1]//div[@class='admin__control-table-pagination']//select"/>
6464
<element name="evenProduct" type="text" selector="//tr[@class='data-row'][{{row}}]/td[{{column}}]//a" parameterized="true"/>
6565
<element name="oddProduct" type="text" selector="//tr[@class='data-row _odd-row'][{{row}}]/td[{{column}}]//a" parameterized="true"/>
66+
<element name="nextPageArrow" type="text" selector="(//*[@class=‘action-next’])[2]"/>
6667
</section>
6768
</sections>

app/code/Magento/ConfigurableProduct/Test/Mftf/Test/AdminPaginationOnTheConfigurableProductEditCurrentVariationsGridTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
<waitForText userInput="$$createConfigChildProduct4.name$$" selector="{{AdminProductFormConfigurationsSection.oddProduct('2','2')}}" stepKey="assert4thProductIsPresent"/>
323323
<waitForText userInput="$$createConfigChildProduct5.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('3','2')}}" stepKey="assert5thProductIsPresentInLastRow"/>
324324
<!--Click on next icon and assert next 5 products are present-->
325-
<waitForElementClickable selector="{{AdminProductGridPaginationSection.nextPage}}" stepKey="waitForNextArrowToBeClicked"/>
325+
<waitForElementClickable selector="{{AdminProductFormConfigurationsSection.nextPageArrow}}" stepKey="waitForNextArrowToBeClicked"/>
326326
<click selector="{{AdminProductGridPaginationSection.nextPage}}" stepKey="clickNextProductPage"/>
327327
<waitForText userInput="$$createConfigChildProduct6.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('1','2')}}" stepKey="assert6thProductIsPresent"/>
328328
<waitForText userInput="$$createConfigChildProduct7.name$$" selector="{{AdminProductFormConfigurationsSection.oddProduct('1','2')}}" stepKey="assert7thProductIsPresent"/>

0 commit comments

Comments
 (0)