Skip to content

Commit ace4b52

Browse files
committed
ACQE-6745: Pagination on the Configurable Product Edit Current Variations Grid
Updated test file
1 parent f8dc7a4 commit ace4b52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,16 @@
311311
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToEditPage">
312312
<argument name="productId" value="$$createConfigProduct.id$$"/>
313313
</actionGroup>
314-
314+
<!--Scroll to select page and select 5 for pagination-->
315+
<scrollTo selector="{{AdminProductFormConfigurationsSection.paginationDropDropdown}}" x="0" y="-100" stepKey="scrollToSelectPage"/>
315316
<selectOption selector="{{AdminProductFormConfigurationsSection.paginationDropDropdown}}" userInput="5" stepKey="selectionOption5"/>
316317
<waitForPageLoad stepKey="waitForOptionsToLoad"/>
318+
<!--Assert product 5 is present-->
319+
<waitForText userInput="$$createConfigChildProduct1.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('1','2')}}" stepKey="assert1thProductIsPresent"/>
320+
<waitForText userInput="$$createConfigChildProduct2.name$$" selector="{{AdminProductFormConfigurationsSection.oddProduct('1','2')}}" stepKey="assert2thProductIsPresent"/>
321+
<waitForText userInput="$$createConfigChildProduct3.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('2','2')}}" stepKey="assert3thProductIsPresent"/>
322+
<waitForText userInput="$$createConfigChildProduct4.name$$" selector="{{AdminProductFormConfigurationsSection.oddProduct('2','2')}}" stepKey="assert4thProductIsPresent"/>
317323
<waitForText userInput="$$createConfigChildProduct5.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('3','2')}}" stepKey="assert5thProductIsPresentInLastRow"/>
318-
<dontSee userInput="$$createConfigChildProduct6.name$$" selector="{{AdminProductFormConfigurationsSection.oddProduct('3','2')}}" stepKey="dontSee6thProductInGrid"/>
319324
<waitForElementClickable selector="{{AdminProductGridPaginationSection.nextPage}}" stepKey="waitForNextArrowToBeClicked"/>
320325
<click selector="{{AdminProductGridPaginationSection.nextPage}}" stepKey="clickNextProductPage"/>
321326
<waitForText userInput="$$createConfigChildProduct6.name$$" selector="{{AdminProductFormConfigurationsSection.evenProduct('1','2')}}" stepKey="assert6thProductIsPresent"/>

0 commit comments

Comments
 (0)