|
16 | 16 | <severity value="CRITICAL"/> |
17 | 17 | <testCaseId value="MC-14765"/> |
18 | 18 | <group value="mtf_migrated"/> |
19 | | - <skip> |
20 | | - <issueId value="MC-17012"/> |
21 | | - </skip> |
22 | 19 | </annotations> |
23 | | - |
24 | 20 | <before> |
25 | 21 | <!-- Login as admin --> |
| 22 | + <comment userInput="Login as admin" stepKey="loginAsAdminComment"/> |
26 | 23 | <actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/> |
27 | | - |
| 24 | + <!-- Go to the catalog search term page --> |
| 25 | + <comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment"/> |
| 26 | + <amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/> |
| 27 | + <waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/> |
| 28 | + <!-- Delete all search terms --> |
| 29 | + <comment userInput="Delete all search terms" stepKey="deleteAllSearchTermsComment"/> |
| 30 | + <actionGroup ref="DeleteAllSearchTerms" stepKey="deleteAllSearchTerms"/> |
28 | 31 | <!-- Create product with description --> |
| 32 | + <comment userInput="Create product with description" stepKey="createProductWithDescriptionComment"/> |
29 | 33 | <createData entity="SimpleProductWithDescription" stepKey="simpleProduct"/> |
30 | 34 | </before> |
31 | 35 | <after> |
32 | | - <!--Delete create product --> |
33 | | - <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> |
34 | | - |
35 | | - <!--Go to the catalog search term page --> |
| 36 | + <!-- Delete created product --> |
| 37 | + <comment userInput="Delete created product" stepKey="deleteCreatedProductComment"/> |
| 38 | + <deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/> |
| 39 | + <!-- Go to the catalog search term page --> |
| 40 | + <comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment2"/> |
36 | 41 | <amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/> |
37 | 42 | <waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/> |
38 | | - |
39 | | - <!--Filter the search term --> |
| 43 | + <!-- Filter the search term --> |
| 44 | + <comment userInput="Filter search term" stepKey="filterSearchTermComment"/> |
40 | 45 | <actionGroup ref="searchTermFilterBySearchQuery" stepKey="filterByThirdSearchQuery"> |
41 | 46 | <argument name="searchQuery" value="{{ApiProductDescription.value}}"/> |
42 | 47 | </actionGroup> |
43 | | - |
44 | 48 | <!-- Delete created below search terms --> |
| 49 | + <comment userInput="Delete created below search terms" stepKey="deleteCreatedBelowSearchTermsComment"/> |
45 | 50 | <actionGroup ref="deleteSearchTerm" stepKey="deleteSearchTerms"/> |
46 | 51 | <actionGroup ref="logout" stepKey="logout"/> |
47 | 52 | </after> |
48 | | - |
49 | 53 | <!-- Go to storefront home page --> |
| 54 | + <comment userInput="Go to storefront home page" stepKey="goToStorefrontHomePageComment"/> |
50 | 55 | <actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/> |
51 | | - |
52 | | - <!--Storefront quick search by product name --> |
| 56 | + <!-- Storefront quick search by product name --> |
| 57 | + <comment userInput="Storefront quick search by product name" stepKey="storefrontQuickSearchByProductNameComment"/> |
53 | 58 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName"> |
54 | 59 | <argument name="phrase" value="{{ApiProductDescription.value}}"/> |
55 | 60 | </actionGroup> |
56 | | - |
57 | | - <!--Verify search suggestions and select the suggestion from dropdown options --> |
| 61 | + <!-- Verify search suggestions and select the suggestion from dropdown options --> |
| 62 | + <comment userInput="Verify search suggestions and select the suggestion from dropdown options" stepKey="verifySearchSuggestionsComment"/> |
58 | 63 | <actionGroup ref="StoreFrontSelectDropDownSearchSuggestionActionGroup" stepKey="seeDropDownSearchSuggestion"> |
59 | 64 | <argument name="searchQuery" value="{{ApiProductDescription.value}}"/> |
60 | 65 | </actionGroup> |
61 | | - |
62 | 66 | <!-- Assert Product storefront main page --> |
| 67 | + <comment userInput="See product name" stepKey="seeProductNameComment"/> |
63 | 68 | <actionGroup ref="StorefrontAssertProductNameOnProductMainPageActionGroup" stepKey="seeProductName"> |
64 | 69 | <argument name="productName" value="$$simpleProduct.name$$"/> |
65 | 70 | </actionGroup> |
66 | | - |
67 | | - <!--Go to the catalog search term page --> |
| 71 | + <!-- Go to the catalog search term page --> |
| 72 | + <comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment3"/> |
68 | 73 | <amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/> |
69 | 74 | <waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/> |
70 | | - |
71 | | - <!--Filter the search term --> |
| 75 | + <!-- Filter the search term --> |
| 76 | + <comment userInput="Filter search term" stepKey="filterSearchTermComment2"/> |
72 | 77 | <actionGroup ref="searchTermFilterBySearchQuery" stepKey="filterByThirdSearchQuery"> |
73 | 78 | <argument name="searchQuery" value="{{ApiProductDescription.value}}"/> |
74 | 79 | </actionGroup> |
75 | | - |
76 | | - <!--Assert Search Term in grid --> |
| 80 | + <!-- Assert Search Term in grid --> |
| 81 | + <comment userInput="Check is search term in grid or not" stepKey="isSearchTermInGridComment"/> |
77 | 82 | <see stepKey="seeSearchTermInGrid" selector="{{AdminCatalogSearchTermIndexSection.gridRow}}" userInput="{{ApiProductDescription.value}}" /> |
78 | 83 | <see selector="{{AdminCatalogSearchTermIndexSection.numberOfSearchTermResults}}" userInput="1" stepKey="seeNumberOfSearchTermResultInGrid"/> |
79 | 84 | </test> |
|
0 commit comments