|
13 | 13 | <annotations>
|
14 | 14 | <features value="Catalog"/>
|
15 | 15 | <stories value="Catalog grid"/>
|
16 |
| - <title value="Checking Catalog grid page number after entering a new search keyword"/> |
17 |
| - <description value="Checking Catalog grid page number after entering a new search keyword"/> |
18 |
| - <severity value="MINOR"/> |
19 |
| - <testCaseId value="MC-xxxxx"/> |
| 16 | + <title value="Updating the search keyword in admin product grid should reset current page to the first one"/> |
| 17 | + <description value="When changing the search keyword in admin product grid, new results should be displayed from the page one"/> |
| 18 | + <severity value="AVERAGE"/> |
| 19 | + <testCaseId value="MC-39332"/> |
20 | 20 | <useCaseId value="MC-38787"/>
|
21 | 21 | <group value="Catalog"/>
|
22 | 22 | </annotations>
|
|
82 | 82 | <argument name="keyword" value="SimpleProduct"/>
|
83 | 83 | </actionGroup>
|
84 | 84 |
|
| 85 | + <waitForElementVisible selector="{{AdminDataGridPaginationSection.totalPagesCount('4')}}" stepKey="seeTotalPagesIsFourOnFirstSearch"/> |
85 | 86 | <comment userInput="Go to the next page" stepKey="nextPage"/>
|
86 | 87 | <click selector="{{AdminDataGridPaginationSection.nextPage}}" stepKey="clickNextPageProductGrid"/>
|
87 |
| - <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="2" stepKey="seeOnSecondPageProductGrid"/> |
| 88 | + <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="2" stepKey="seeOnSecondPageProductGridOnFirstSearch"/> |
88 | 89 |
|
89 | 90 | <actionGroup ref="SearchProductGridByStringNoClearActionGroup" stepKey="searchForVirtualProduct">
|
90 | 91 | <argument name="keyword" value="VirtualProduct"/>
|
91 | 92 | </actionGroup>
|
92 | 93 |
|
93 |
| - <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="1" stepKey="seeOnFirstPageProductGrid"/> |
| 94 | + <waitForElementVisible selector="{{AdminDataGridPaginationSection.totalPagesCount('3')}}" stepKey="seeTotalPagesIsThreeOnSecondSearch"/> |
| 95 | + <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="1" stepKey="seeOnFirstPageProductGridOnSecondSearch"/> |
94 | 96 | </test>
|
95 | 97 | </tests>
|
0 commit comments