|
| 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="AdminVerifySearchLongPhraseWithSomeWordsInQuotesWorksWithoutErrorsTest"> |
| 12 | + <annotations> |
| 13 | + <features value="CatalogSearch"/> |
| 14 | + <stories value="Create Simple product with special character"/> |
| 15 | + <title value="Verify search long phrase with some words in quotes works without errors"/> |
| 16 | + <description value="Admin Verify search long phrase with some words in quotes works without errors"/> |
| 17 | + <severity value="CRITICAL"/> |
| 18 | + <testCaseId value="AC-4953"/> |
| 19 | + <group value="searchFrontend"/> |
| 20 | + </annotations> |
| 21 | + <before> |
| 22 | + <!-- Login as admin --> |
| 23 | + <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
| 24 | + <!-- Create simple product with special characters--> |
| 25 | + <createData entity="SimpleTwo" stepKey="product1"> |
| 26 | + <field key="sku">ZXH@/#-QJ185</field> |
| 27 | + </createData> |
| 28 | + </before> |
| 29 | + <after> |
| 30 | + <!--Delete product1--> |
| 31 | + <actionGroup ref="DeleteProductBySkuActionGroup" stepKey="deleteFirstProduct"> |
| 32 | + <argument name="sku" value="ZXH@/#-QJ185"/> |
| 33 | + </actionGroup> |
| 34 | + <!--Logout from admin--> |
| 35 | + <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutFromAdmin"/> |
| 36 | + </after> |
| 37 | + <!-- Go to synonyms page and create new synonyms --> |
| 38 | + <actionGroup ref="AdminNavigateMenuActionGroup" stepKey="navigateToSearchSynonymsPage"> |
| 39 | + <argument name="menuUiId" value="{{AdminMenuMarketing.dataUiId}}"/> |
| 40 | + <argument name="submenuUiId" value="{{AdminSearchSynonyms.dataUiId}}"/> |
| 41 | + </actionGroup> |
| 42 | + <!-- Create 1st synonym --> |
| 43 | + <actionGroup ref="AdminNavigateToNewSearchSynonymsPageActionGroup" stepKey="navigateToNewSearchSynonymsOne"/> |
| 44 | + <actionGroup ref="AdminFillNewSearchSynonymsActionGroup" stepKey="fillFirstSearchSynonym"> |
| 45 | + <argument name="scope_id" value="1:0"/> |
| 46 | + <argument name="synonyms" value="allviews,simple"/> |
| 47 | + </actionGroup> |
| 48 | + <click selector="{{AdminSearchSynonymsNewSection.save}}" stepKey="clickSaveSynonymOneButton"/> |
| 49 | + <waitForPageLoad stepKey="waitPageLoadAfterFirstSynonym"/> |
| 50 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanInvalidatedCaches"> |
| 51 | + <argument name="tags" value="config full_page"/> |
| 52 | + </actionGroup> |
| 53 | + <!--Navigate to home page--> |
| 54 | + <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomePage"/> |
| 55 | + <!--Search for word "ZXH-QJ185"--> |
| 56 | + <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="search"> |
| 57 | + <argument name="phrase" value="ZXH@/#-QJ185"/> |
| 58 | + </actionGroup> |
| 59 | + <!--Assert that product1 is first in the search result--> |
| 60 | + <actionGroup ref="StorefrontQuickSearchCheckProductNameInGridActionGroup" stepKey="assertProduct1Position"> |
| 61 | + <argument name="productName" value="$product1.name$"/> |
| 62 | + <argument name="index" value="1"/> |
| 63 | + </actionGroup> |
| 64 | + </test> |
| 65 | +</tests> |
0 commit comments