Skip to content

Commit 720a139

Browse files
author
Joan He
committed
B2B-343: Stabilize Community PR
1 parent 85ccb52 commit 720a139

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

app/code/Magento/CatalogSearch/Test/Mftf/Test/StorefrontUpdateSearchTermEntityTest.xml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,23 @@
2525
<requiredEntity createDataKey="createCategory1"/>
2626
</createData>
2727

28+
<!-- Perform reindex and flush cache -->
29+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
30+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
2831
<amOnPage url="{{StorefrontHomePage.url}}" stepKey="amOnStorefrontPage1"/>
2932
<waitForPageLoad stepKey="waitForPageLoad1"/>
3033
</before>
3134
<after>
32-
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/>
33-
3435
<deleteData createDataKey="createProduct1" stepKey="deleteSimpleProduct1"/>
3536
<deleteData createDataKey="createCategory1" stepKey="deleteCategory1"/>
37+
38+
<!-- Delete all search terms -->
39+
<amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/>
40+
<waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/>
41+
<comment userInput="Delete all search terms" stepKey="deleteAllSearchTermsComment"/>
42+
<actionGroup ref="AdminDeleteAllSearchTermsActionGroup" stepKey="deleteAllSearchTerms"/>
43+
44+
<actionGroup ref="logout" stepKey="logoutOfAdmin1"/>
3645
</after>
3746

3847
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName1">

app/code/Magento/Search/Test/Mftf/Test/StorefrontVerifySearchSuggestionByProductDescriptionTest.xml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,11 @@
1616
<severity value="CRITICAL"/>
1717
<testCaseId value="MC-14765"/>
1818
<group value="mtf_migrated"/>
19-
<skip>
20-
<issueId value="MC-19868"/>
21-
</skip>
2219
</annotations>
2320
<before>
2421
<!-- Login as admin -->
25-
<comment userInput="Login as admin" stepKey="loginAsAdminComment"/>
2622
<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
27-
<!-- Go to the catalog search term page -->
28-
<comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment"/>
29-
<amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/>
30-
<waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/>
31-
<!-- Delete all search terms -->
32-
<comment userInput="Delete all search terms" stepKey="deleteAllSearchTermsComment"/>
33-
<actionGroup ref="AdminDeleteAllSearchTermsActionGroup" stepKey="deleteAllSearchTerms"/>
34-
<actionGroup ref="DeleteAllProductsUsingProductGridActionGroup" stepKey="deleteAllProducts"/>
3523
<!-- Create product with description -->
36-
<comment userInput="Create product with description" stepKey="createProductWithDescriptionComment"/>
3724
<createData entity="SimpleProductWithDescription" stepKey="simpleProduct"/>
3825

3926
<!-- Perform reindex and flush cache -->
@@ -42,51 +29,40 @@
4229
</before>
4330
<after>
4431
<!-- Delete created product -->
45-
<comment userInput="Delete created product" stepKey="deleteCreatedProductComment"/>
4632
<deleteData createDataKey="simpleProduct" stepKey="deleteProduct"/>
4733
<!-- Go to the catalog search term page -->
48-
<comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment2"/>
4934
<amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/>
5035
<waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/>
5136
<!-- Filter the search term -->
52-
<comment userInput="Filter search term" stepKey="filterSearchTermComment"/>
5337
<actionGroup ref="AdminSearchTermFilterBySearchQueryActionGroup" stepKey="filterByThirdSearchQuery">
5438
<argument name="searchQuery" value="{{ApiProductDescription.value}}"/>
5539
</actionGroup>
5640
<!-- Delete created below search terms -->
57-
<comment userInput="Delete created below search terms" stepKey="deleteCreatedBelowSearchTermsComment"/>
5841
<actionGroup ref="AdminDeleteSearchTermActionGroup" stepKey="deleteSearchTerms"/>
5942
<actionGroup ref="logout" stepKey="logout"/>
6043
</after>
6144
<!-- Go to storefront home page -->
62-
<comment userInput="Go to storefront home page" stepKey="goToStorefrontHomePageComment"/>
6345
<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="openStoreFrontHomePage"/>
6446
<!-- Storefront quick search by product name -->
65-
<comment userInput="Storefront quick search by product name" stepKey="storefrontQuickSearchByProductNameComment"/>
6647
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName">
6748
<argument name="phrase" value="{{ApiProductDescription.value}}"/>
6849
</actionGroup>
6950
<!-- Verify search suggestions and select the suggestion from dropdown options -->
70-
<comment userInput="Verify search suggestions and select the suggestion from dropdown options" stepKey="verifySearchSuggestionsComment"/>
7151
<actionGroup ref="StoreFrontSelectDropDownSearchSuggestionActionGroup" stepKey="seeDropDownSearchSuggestion">
7252
<argument name="searchQuery" value="{{ApiProductDescription.value}}"/>
7353
</actionGroup>
7454
<!-- Assert Product storefront main page -->
75-
<comment userInput="See product name" stepKey="seeProductNameComment"/>
7655
<actionGroup ref="StorefrontAssertProductNameOnProductMainPageActionGroup" stepKey="seeProductName">
7756
<argument name="productName" value="$$simpleProduct.name$$"/>
7857
</actionGroup>
7958
<!-- Go to the catalog search term page -->
80-
<comment userInput="Go to the catalog search term page" stepKey="goToSearchTermPageComment3"/>
8159
<amOnPage url="{{AdminCatalogSearchTermIndexPage.url}}" stepKey="openAdminCatalogSearchTermIndexPage"/>
8260
<waitForPageLoad stepKey="waitForAdminCatalogSearchTermIndexPageLoad"/>
8361
<!-- Filter the search term -->
84-
<comment userInput="Filter search term" stepKey="filterSearchTermComment2"/>
8562
<actionGroup ref="AdminSearchTermFilterBySearchQueryActionGroup" stepKey="filterByThirdSearchQuery">
8663
<argument name="searchQuery" value="{{ApiProductDescription.value}}"/>
8764
</actionGroup>
8865
<!-- Assert Search Term in grid -->
89-
<comment userInput="Check is search term in grid or not" stepKey="isSearchTermInGridComment"/>
9066
<see stepKey="seeSearchTermInGrid" selector="{{AdminCatalogSearchTermIndexSection.gridRow}}" userInput="{{ApiProductDescription.value}}" />
9167
<see selector="{{AdminCatalogSearchTermIndexSection.numberOfSearchTermResults}}" userInput="1" stepKey="seeNumberOfSearchTermResultInGrid"/>
9268
</test>

0 commit comments

Comments
 (0)