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