|
17 | 17 | <severity value="MAJOR"/>
|
18 | 18 | <testCaseId value="MC-17278"/>
|
19 | 19 | <useCaseId value="MAGETWO-93755"/>
|
20 |
| - <group value="Catalog"/> |
| 20 | + <group value="catalog"/> |
21 | 21 | </annotations>
|
22 | 22 | <before>
|
23 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
|
24 | 24 | <!--Clear product grid-->
|
25 | 25 | <comment userInput="Clear product grid" stepKey="commentClearProductsGrid"/>
|
26 | 26 | <amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="goToProductsGridPage"/>
|
27 | 27 | <actionGroup ref="clearFiltersAdminDataGrid" stepKey="clearProductsFilters"/>
|
28 |
| - <actionGroup ref="DeleteProductsIfTheyExist" stepKey="deleteProductIfTheyExist"/> |
| 28 | + <actionGroup ref="DeleteAllProducts" stepKey="deleteProductsIfTheyExist"/> |
29 | 29 | <!--Create products-->
|
30 |
| - <createData entity="SimpleSubCategory" stepKey="createCategory1"/> |
31 |
| - <createData entity="SimpleProduct" stepKey="createProduct1"> |
32 |
| - <requiredEntity createDataKey="createCategory1"/> |
33 |
| - </createData> |
34 |
| - <createData entity="SimpleSubCategory" stepKey="createCategory2"/> |
35 |
| - <createData entity="SimpleProduct" stepKey="createProduct2"> |
36 |
| - <requiredEntity createDataKey="createCategory2"/> |
37 |
| - </createData> |
| 30 | + <createData entity="SimpleProduct3" stepKey="createProduct1"/> |
| 31 | + <createData entity="SimpleProduct3" stepKey="createProduct2"/> |
38 | 32 | <!--Update product count per page-->
|
39 |
| - <actionGroup ref="AdminDataGridSelectCustomPerPage" stepKey="select1OrderPerPage"/> |
| 33 | + <actionGroup ref="AdminDataGridSelectCustomPageSize" stepKey="selectCustomPageSize"> |
| 34 | + <argument name="pageSize" value="{{ProductGridPagerData.pageSize}}"/> |
| 35 | + </actionGroup> |
40 | 36 | </before>
|
41 | 37 | <after>
|
42 | 38 | <!--Delete created data-->
|
43 |
| - <deleteData stepKey="deleteCategory1" createDataKey="createCategory1"/> |
44 | 39 | <deleteData stepKey="deleteProduct1" createDataKey="createProduct1"/>
|
45 |
| - <deleteData stepKey="deleteCategory2" createDataKey="createCategory2"/> |
46 | 40 | <deleteData stepKey="deleteProduct2" createDataKey="createProduct2"/>
|
47 | 41 | <!--Revert products count per page -->
|
| 42 | + <conditionalClick selector="{{AdminDataGridPaginationSection.previousPage}}" dependentSelector="{{AdminDataGridPaginationSection.previousPage}}" visible="true" stepKey="clickPrevPageOrderGrid"/> |
48 | 43 | <amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="goToProductsGridPage"/>
|
49 |
| - <actionGroup ref="AdminDataGridDeleteCustomPerPage" stepKey="deleteCustomAddedPerPage"/> |
| 44 | + <actionGroup ref="AdminDataGridDeleteCustomPageSize" stepKey="deleteCustomAddedPageSize"> |
| 45 | + <argument name="pageSize" value="{{ProductGridPagerData.pageSize}}"/> |
| 46 | + </actionGroup> |
50 | 47 | <actionGroup ref="logout" stepKey="logout"/>
|
51 | 48 | </after>
|
52 | 49 |
|
53 | 50 | <amOnPage url="{{AdminCatalogProductPage.url}}" stepKey="goToProductsGridPage"/>
|
54 | 51 | <!--Go to the next page and edit the product-->
|
55 | 52 | <comment userInput="Go to the next page and edit the product" stepKey="commentEdiProduct"/>
|
56 | 53 | <click selector="{{AdminDataGridPaginationSection.nextPage}}" stepKey="clickNextPageOrderGrid"/>
|
| 54 | + <waitForElementVisible selector="{{AdminDataGridPaginationSection.currentPage}}" stepKey="waitCurrentPageNumberAppeares"/> |
57 | 55 | <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="2" stepKey="seeOnSecondPageOrderGrid"/>
|
58 |
| - <waitForPageLoad stepKey="waitForPageLoad"/> |
59 | 56 | <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="openEditProduct2">
|
60 | 57 | <argument name="product" value="$$createProduct2$$"/>
|
61 | 58 | </actionGroup>
|
62 | 59 | <actionGroup ref="AdminFormSaveAndClose" stepKey="saveAndCloseProduct"/>
|
63 |
| - <waitForPageLoad stepKey="waitForPageLoad1"/> |
| 60 | + <waitForElementVisible selector="{{AdminDataGridPaginationSection.currentPage}}" stepKey="waitCurrentPageNumberAppearesAfterProductEdit"/> |
64 | 61 | <seeInField selector="{{AdminDataGridPaginationSection.currentPage}}" userInput="2" stepKey="seeOnSecondPageOrderGridAfterProductSaved"/>
|
65 | 62 | </test>
|
66 | 63 | </tests>
|
0 commit comments