|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!-- |
| 3 | + /** |
| 4 | + * Copyright © Magento, Inc. All rights reserved. |
| 5 | + * See COPYING.txt for license details. |
| 6 | + */ |
| 7 | +--> |
| 8 | + |
| 9 | +<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 10 | + xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd"> |
| 11 | + <test name="AdminProductGridCustomViewColumnDisplayTest"> |
| 12 | + <annotations> |
| 13 | + <stories value="The list of the visible columns didn't save for custom view when column position is changed"/> |
| 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"/> |
| 16 | + <severity value="AVERAGE"/> |
| 17 | + <testCaseId value="ACP2E-1073"/> |
| 18 | + <useCaseId value="ACP2E-1073"/> |
| 19 | + <group value="catalog"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!--Create Simple Product and Category --> |
| 23 | + <createData entity="SimpleSubCategory" stepKey="createCategory"/> |
| 24 | + <createData entity="SimpleProduct" stepKey="createSimpleProduct1"> |
| 25 | + <requiredEntity createDataKey="createCategory"/> |
| 26 | + </createData> |
| 27 | + <createData entity="SimpleProduct" stepKey="createSimpleProduct2"> |
| 28 | + <requiredEntity createDataKey="createCategory"/> |
| 29 | + </createData> |
| 30 | + </before> |
| 31 | + <!-- Log in as admin--> |
| 32 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 33 | + <!-- Navigate to products list page and select created products --> |
| 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"/> |
| 37 | + <waitForPageLoad stepKey="waitForDragAndDrop"/> |
| 38 | + <!--Remove Price column--> |
| 39 | + <seeElement selector="{{AdminProductGridSection.columnHeader('Price')}}" stepKey="seeProductPriceColumn"/> |
| 40 | + <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="openColumnsDropdownPrice"/> |
| 41 | + <waitForElementVisible selector="{{AdminProductGridFilterSection.columnsDropdown}}" stepKey="waitForViewBookmarks"/> |
| 42 | + |
| 43 | + <uncheckOption selector="{{AdminProductGridFilterSection.viewColumnOptionName('Price')}}" stepKey="hidePriceColumn"/> |
| 44 | + <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="closeColumnsDropdownPrice"/> |
| 45 | + <dontSeeElement selector="{{AdminProductGridSection.columnHeader('Price')}}" stepKey="dontSeeProductPriceColumn"/> |
| 46 | + <!--Add Weight column--> |
| 47 | + <dontSeeElement selector="{{AdminProductGridSection.columnHeader('Weight')}}" stepKey="dontSeeWeightColumn"/> |
| 48 | + <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="openColumnsDropdownWeight"/> |
| 49 | + <checkOption selector="{{AdminProductGridFilterSection.viewColumnOptionName('Weight')}}" stepKey="showWeightColumn"/> |
| 50 | + <actionGroup ref="ToggleAdminProductGridColumnsDropdownActionGroup" stepKey="closeColumnsDropdownWeight"/> |
| 51 | + <seeElement selector="{{AdminProductGridSection.columnHeader('Weight')}}" stepKey="seeWeightColumn"/> |
| 52 | + <after> |
| 53 | + <deleteData createDataKey="createSimpleProduct1" stepKey="deleteSimpleProduct1"/> |
| 54 | + <deleteData createDataKey="createSimpleProduct2" stepKey="deleteSimpleProduct2"/> |
| 55 | + <deleteData createDataKey="createCategory" stepKey="deleteCategory"/> |
| 56 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="beginWithLogout"/> |
| 57 | + </after> |
| 58 | + |
| 59 | + </test> |
| 60 | +</tests> |
0 commit comments