|
| 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="AdminProductGridUrlFilterApplierTest"> |
| 12 | + <annotations> |
| 13 | + <features value="Catalog"/> |
| 14 | + <stories value="Filter product using GET URL parameter"/> |
| 15 | + <title value="Verify that filter is applied when filters parameter is set on url"/> |
| 16 | + <description value="Accessing product grid url with filters parameter"/> |
| 17 | + <severity value="MAJOR"/> |
| 18 | + <testCaseId value="to-be-added"/> |
| 19 | + <group value="product"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 23 | + <createData entity="simpleProductWithShortNameAndSku" stepKey="createSimpleProduct"/> |
| 24 | + </before> |
| 25 | + <after> |
| 26 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteProduct"/> |
| 27 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/> |
| 28 | + </after> |
| 29 | + <amOnPage url="{{AdminProductIndexPage.url}}?filters[name]=$$createSimpleProduct.name$$" stepKey="navigateToProductGridWithFilters"/> |
| 30 | + <waitForPageLoad stepKey="waitForProductGrid"/> |
| 31 | + <see selector="{{AdminProductGridSection.productGridNameProduct($$createSimpleProduct.name$$)}}" userInput="$$createSimpleProduct.name$$" stepKey="seeProduct"/> |
| 32 | + <seeElement selector="{{AdminProductGridFilterSection.enabledFilters}}" stepKey="seeEnabledFilters"/> |
| 33 | + <see selector="{{AdminProductGridFilterSection.enabledFilters}}" userInput="Name: $$createSimpleProduct.name$$" stepKey="seeProductNameFilter"/> |
| 34 | + <click selector="{{AdminProductGridFilterSection.clearFilters}}" stepKey="clearFilters" /> |
| 35 | + <waitForPageLoad stepKey="waitForClearFilter"/> |
| 36 | + </test> |
| 37 | +</tests> |
0 commit comments