|
12 | 12 | <features value="Catalog"/> |
13 | 13 | <stories value="Validate Price in frontend product search and product details pages"/> |
14 | 14 | <title value="Product price validation"/> |
15 | | - <description value=" This test case verifies price in frontend product search and product details pages based on catalog price scope"/> |
| 15 | + <description value="This test case verifies price in frontend product search and product details pages based on catalog price scope"/> |
16 | 16 | <severity value="MAJOR"/> |
17 | 17 | <testCaseId value="AC-3183"/> |
18 | 18 | <group value="catalog"/> |
|
56 | 56 | </before> |
57 | 57 | <after> |
58 | 58 | <!-- Logout from customer, delete product, customer, website --> |
| 59 | + <actionGroup ref="StorefrontCustomerLogoutActionGroup" stepKey="customerLogout"/> |
59 | 60 | <deleteData createDataKey="createProduct" stepKey="deleteProduct"/> |
60 | 61 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
61 | 62 | <actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteWebsite"> |
62 | 63 | <argument name="websiteName" value="{{customWebsite.name}}"/> |
63 | 64 | </actionGroup> |
64 | 65 | </after> |
65 | 66 | <!-- Step-1: Set catalog price scope to website --> |
66 | | - <actionGroup ref="AdminSetCatalogPriceScopeCliActionGroup" stepKey="setScopeWebsite"> |
67 | | - <argument name="scopeValue" value="1" /> |
68 | | - </actionGroup> |
69 | | - <!-- Step 2: Reindex and cache clear --> |
70 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
71 | | - <argument name="indices" value=""/> |
72 | | - </actionGroup> |
73 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache"> |
74 | | - <argument name="tags" value=""/> |
75 | | - </actionGroup> |
| 67 | + <actionGroup ref="AdminSetCatalogPriceToWebsiteActionGroup" stepKey="setPriceScopeWebsite"/> |
76 | 68 | <!-- Step 3: Open created product and assign to website--> |
77 | 69 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductEdit"> |
78 | 70 | <argument name="productId" value="$createProduct.id$"/> |
|
85 | 77 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openTheProductEdit"> |
86 | 78 | <argument name="productId" value="$createProduct.id$"/> |
87 | 79 | </actionGroup> |
88 | | - <actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="SwitchDefaultStoreView"> |
| 80 | + <actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="switchDefaultStoreView"> |
89 | 81 | <argument name="storeViewName" value="'Default Store View'"/> |
90 | 82 | </actionGroup> |
91 | 83 | <waitForElementVisible selector="{{AdminProductFormSection.productPrice}}" stepKey="waitForProductPriceField"/> |
|
115 | 107 | <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
116 | 108 | </actionGroup> |
117 | 109 | <waitForText userInput="$200.00" selector="{{StorefrontProductInfoMainSection.price}}" stepKey="seeWebsiteScopeProductPrice"/> |
118 | | - <!-- Step 7: Set catalog price scope to website --> |
119 | | - <actionGroup ref="AdminSetCatalogPriceScopeCliActionGroup" stepKey="setScopeGlobal"> |
120 | | - <argument name="scopeValue" value="0" /> |
121 | | - </actionGroup> |
122 | | - <!-- Step 8: Reindex and cache clear --> |
123 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexing"> |
124 | | - <argument name="indices" value=""/> |
125 | | - </actionGroup> |
126 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="cacheClean"> |
127 | | - <argument name="tags" value=""/> |
128 | | - </actionGroup> |
| 110 | + <!-- Step 7: Set catalog price scope to website --> |
| 111 | + <actionGroup ref="AdminSetDefaultCatalogPriceActionGroup" stepKey="setScopeGlobal"/> |
129 | 112 | <!--Step 9: Login as customer to storefront and verify global scope product price is displayed in catalog search results page and product details page --> |
130 | 113 | <actionGroup ref="StorefrontCheckQuickSearchStringActionGroup" stepKey="searchByProductName"> |
131 | 114 | <argument name="phrase" value="$createProduct.name$"/> |
132 | 115 | </actionGroup> |
133 | | - <waitForPageLoad stepKey="waitSearchResult" /> |
| 116 | + <waitForPageLoad stepKey="waitSearchResult"/> |
134 | 117 | <waitForText selector="{{StorefrontCategoryMainSection.productPrice}}" userInput="$100.00" stepKey="seeGlobalPrice"/> |
135 | 118 | <actionGroup ref="StorefrontOpenProductPageActionGroup" stepKey="openTheProductPage"> |
136 | 119 | <argument name="productUrl" value="$createProduct.custom_attributes[url_key]$"/> |
|
0 commit comments