Skip to content

Commit d648f64

Browse files
committed
ACQE-8835: Validate price on frontend product search and product details pages.
- Added reindex and cache flush in the test file.
1 parent bdadf7b commit d648f64

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontValidatePriceTest.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@
6565
</after>
6666
<!-- Step-1: Set catalog price scope to website -->
6767
<actionGroup ref="AdminSetCatalogPriceToWebsiteActionGroup" stepKey="setPriceScopeWebsite"/>
68+
<!-- Step 2: Reindex and cache clear -->
69+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
70+
<argument name="indices" value=""/>
71+
</actionGroup>
72+
<actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache">
73+
<argument name="tags" value=""/>
74+
</actionGroup>
6875
<!-- Step 3: Open created product and assign to website-->
6976
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductEdit">
7077
<argument name="productId" value="$createProduct.id$"/>
@@ -94,8 +101,7 @@
94101
<!--Save product-->
95102
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
96103
<!--Step6: From admin login as customer to storefront and verify website scope product price is displayed in catalog search results page and product details page -->
97-
<actionGroup ref="AdminLoginAsCustomerLoginFromCustomerPageActionGroup"
98-
stepKey="loginAsCustomerFromCustomerPage">
104+
<actionGroup ref="AdminLoginAsCustomerLoginFromCustomerPageActionGroup" stepKey="loginAsCustomerFromCustomerPage">
99105
<argument name="customerId" value="$$createCustomer.id$$"/>
100106
</actionGroup>
101107
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="quickSearchByProductName">
@@ -109,6 +115,13 @@
109115
<waitForText userInput="$200.00" selector="{{StorefrontProductInfoMainSection.price}}" stepKey="seeWebsiteScopeProductPrice"/>
110116
<!-- Step 7: Set catalog price scope to website -->
111117
<actionGroup ref="AdminSetDefaultCatalogPriceActionGroup" stepKey="setScopeGlobal"/>
118+
<!-- Step 8: Reindex and cache clear -->
119+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexing">
120+
<argument name="indices" value=""/>
121+
</actionGroup>
122+
<actionGroup ref="CliCacheFlushActionGroup" stepKey="cacheClean">
123+
<argument name="tags" value=""/>
124+
</actionGroup>
112125
<!--Step 9: Login as customer to storefront and verify global scope product price is displayed in catalog search results page and product details page -->
113126
<actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchByProductName">
114127
<argument name="phrase" value="$createProduct.name$"/>

0 commit comments

Comments
 (0)