forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magento#1040 from magento-engcom/MSI-933
MSI-933: [Configuration-Sources] Pagination worked in Manage Sources grid - Admin user
- Loading branch information
Showing
6 changed files
with
90 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
74 changes: 74 additions & 0 deletions
74
...e/Magento/Inventory/Test/Acceptance/Test/AdminPaginationWorkedInManageSourcesGridTest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/testSchema.xsd"> | ||
<test name="AdminPaginationWorkedInManageSourcesGridTest"> | ||
<annotations> | ||
<features value="Multi-Source Inventory"/> | ||
<stories value="Configuration-Sources"/> | ||
<title value="Pagination worked in Manage Sources grid - Admin user"/> | ||
<description value="You should be able to switch between pages on Manage Sources grid"/> | ||
<testCaseId value="933"/> | ||
<severity value="CRITICAL"/> | ||
<group value="msi"/> | ||
</annotations> | ||
|
||
<before> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource1"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource2"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource3"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource4"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource5"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource6"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource7"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource8"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource9"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource10"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource11"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource12"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource13"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource14"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource15"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource16"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource17"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource18"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource19"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource20"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource21"/> | ||
<createData entity="SpecialSourceForAdminPaginationWorkedInManageSourcesGridTest" stepKey="createSource22"/> | ||
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin1"/> | ||
</before> | ||
|
||
<after> | ||
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/> | ||
</after> | ||
|
||
<amOnPage url="{{AdminManageSourcePage.url}}" stepKey="amOnTheManageSourcePage"/> | ||
<waitForPageLoad time="30" stepKey="waitForAdminManageSourcePageLoad"/> | ||
<conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clickClearFilters1"/> | ||
<waitForPageLoad time="30" stepKey="waitFilterCleared"/> | ||
<actionGroup ref="AdminGridFilterSearchResultsByInput" stepKey="filterSearchResults"> | ||
<argument name="selector" value="AdminManageSourcesGridFilterControls.code"/> | ||
<argument name="value" value="special_source"/> | ||
</actionGroup> | ||
<waitForPageLoad time="30" stepKey="waitFilterApplied"/> | ||
<actionGroup ref="adminDataGridSelectPerPage" stepKey="select20SourcesPerPage"> | ||
<argument name="perPage" value="20"/> | ||
</actionGroup> | ||
<waitForPageLoad time="30" stepKey="waitSelectPerPageApplied"/> | ||
<see selector="{{AdminDataGridPaginationSection.totalPages}}" userInput="2" stepKey="seeTotalPages"/> | ||
<seeNumberOfElements selector="{{AdminManageSourcesGridBody.dataRows}}" userInput="20" stepKey="checkNumberOfRowsOnFirstPage"/> | ||
<click selector="{{AdminDataGridPaginationSection.nextPage}}" stepKey="goToNextPage1"/> | ||
<waitForPageLoad time="30" stepKey="waitNextGridPageOpened"/> | ||
<seeNumberOfElements selector="{{AdminManageSourcesGridBody.dataRows}}" userInput="2" stepKey="checkNumberOfRowsOnSecondPage"/> | ||
<click selector="{{AdminDataGridPaginationSection.previousPage}}" stepKey="goTopreviousPage1"/> | ||
<waitForPageLoad time="30" stepKey="waitPrevGridPageOpened"/> | ||
<seeNumberOfElements selector="{{AdminManageSourcesGridBody.dataRows}}" userInput="20" stepKey="checkNumberOfRowsOnFirstPageAgain"/> | ||
</test> | ||
</tests> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters