|
10 | 10 | xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
|
11 | 11 | <test name="AdminProductGridCustomViewColumnDisplayTest">
|
12 | 12 | <annotations>
|
13 |
| - <stories value="The list of the visible columns didn't save for custom view when column position is changed"/> |
| 13 | + <stories value="The list of the visible columns didn't save when column position is changed"/> |
14 | 14 | <title value="The list of the visible columns didn't save for custom view"/>
|
15 |
| - <description value="Login as Admin, go to Product grid and move column position"/> |
| 15 | + <description value="Login as Admin, go to Product grid and sort column position, click on Columns dropdown, check/uncheck any column name(not to checkbox)"/> |
16 | 16 | <severity value="AVERAGE"/>
|
17 |
| - <testCaseId value="ACP2E-1073"/> |
| 17 | + <testCaseId value="AC-6229"/> |
18 | 18 | <useCaseId value="ACP2E-1073"/>
|
19 | 19 | <group value="catalog"/>
|
20 | 20 | </annotations>
|
|
30 | 30 | </before>
|
31 | 31 | <!-- Log in as admin-->
|
32 | 32 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
33 |
| - <!-- Navigate to products list page and select created products --> |
| 33 | + <!-- Navigate to products list page --> |
34 | 34 | <actionGroup ref="AdminOpenProductIndexPageActionGroup" stepKey="navigateToProductIndex"/>
|
35 |
| - <!-- Open the column dropdown to add the special price from the catalog product grid --> |
36 |
| - <dragAndDrop selector1="{{AdminProductGridSection.columnHeader('SKU')}}" selector2="{{AdminProductGridSection.columnHeader('Name')}}" stepKey="moveCustomOptionRecord"/> |
| 35 | + <!--Sort SKU and Name column position --> |
| 36 | + <dragAndDrop selector1="{{AdminProductGridSection.columnHeader('SKU')}}" selector2="{{AdminProductGridSection.columnHeader('Name')}}" stepKey="dragAndDropColumnName"/> |
37 | 37 | <waitForPageLoad stepKey="waitForDragAndDrop"/>
|
38 |
| - <!--Remove Price column--> |
| 38 | + <!--check if price column is visible in grid--> |
39 | 39 | <seeElement selector="{{AdminProductGridSection.columnHeader('Price')}}" stepKey="seeProductPriceColumn"/>
|
| 40 | + <!--Click on columns, in dropdown uncheck price --> |
40 | 41 | <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="openColumnsDropdownPrice"/>
|
41 |
| - <waitForElementVisible selector="{{AdminProductGridFilterSection.columnsDropdown}}" stepKey="waitForViewBookmarks"/> |
42 |
| - |
43 |
| - <uncheckOption selector="{{AdminProductGridFilterSection.viewColumnOptionName('Price')}}" stepKey="hidePriceColumn"/> |
| 42 | + <actionGroup ref="CheckAdminProductGridColumnNameActionGroup" stepKey="hidePriceColumn"> |
| 43 | + <argument name="optionName" value="Price"/> |
| 44 | + </actionGroup> |
44 | 45 | <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="closeColumnsDropdownPrice"/>
|
| 46 | + <!--price column is not visible in product grid--> |
45 | 47 | <dontSeeElement selector="{{AdminProductGridSection.columnHeader('Price')}}" stepKey="dontSeeProductPriceColumn"/>
|
46 |
| - <!--Add Weight column--> |
| 48 | + <!--check weight column is not visible in product grid--> |
47 | 49 | <dontSeeElement selector="{{AdminProductGridSection.columnHeader('Weight')}}" stepKey="dontSeeWeightColumn"/>
|
| 50 | + <!--Click on columns, in dropdown click on column name weight --> |
48 | 51 | <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="openColumnsDropdownWeight"/>
|
49 |
| - <checkOption selector="{{AdminProductGridFilterSection.viewColumnOptionName('Weight')}}" stepKey="showWeightColumn"/> |
| 52 | + <actionGroup ref="CheckAdminProductGridColumnNameActionGroup" stepKey="showWeightColumn"> |
| 53 | + <argument name="optionName" value="Weight"/> |
| 54 | + </actionGroup> |
50 | 55 | <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="closeColumnsDropdownWeight"/>
|
51 | 56 | <seeElement selector="{{AdminProductGridSection.columnHeader('Weight')}}" stepKey="seeWeightColumn"/>
|
52 | 57 | <after>
|
53 | 58 | <deleteData createDataKey="createSimpleProduct1" stepKey="deleteSimpleProduct1"/>
|
54 | 59 | <deleteData createDataKey="createSimpleProduct2" stepKey="deleteSimpleProduct2"/>
|
55 | 60 | <deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
|
| 61 | + <actionGroup ref="ResetAdminDataGridToDefaultViewActionGroup" stepKey="clearFilters"/> |
56 | 62 | <actionGroup ref="AdminLogoutActionGroup" stepKey="beginWithLogout"/>
|
57 | 63 | </after>
|
58 | 64 |
|
|
0 commit comments