File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
app/code/Magento/Catalog/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 7171 <magentoCLI command =" cache:clean" stepKey =" cleanCacheAfter" />
7272 </after >
7373
74- <!-- Open storefront -->
75- <actionGroup ref =" StorefrontOpenHomePageActionGroup" stepKey =" openStorefrontPage" />
76-
77- <!-- Switch to custom store storefront page-->
78- <actionGroup ref =" StorefrontSwitchStoreActionGroup" stepKey =" switchToCustomStore" >
79- <argument name =" storeName" value =" {{customStoreGroup.name}}" />
80- </actionGroup >
74+ <!-- Open storefront on second store -->
75+ <amOnPage url =" {{StorefrontStoreHomePage.url(customStore.code)}}" stepKey =" openStorefrontPage" />
76+ <waitForPageLoad time =" 30" stepKey =" waitStorefrontPage" />
8177
78+ <!-- Check product is not present in category before cron run -->
8279 <actionGroup ref =" AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey =" doNotSeeProductInCategoryPage" >
8380 <argument name =" categoryUrlKey" value =" $$createCategory.name$$" />
8481 <argument name =" productName" value =" {{_defaultProduct.name}}" />
8784 <!-- Run cron -->
8885 <magentoCLI command =" cron:run" stepKey =" runCron" />
8986
87+ <!-- Check product is present in category after cron run -->
9088 <actionGroup ref =" AssertProductInStorefrontCategoryPage" stepKey =" assertProductInStorefront1" >
9189 <argument name =" category" value =" $$createCategory$$" />
9290 <argument name =" product" value =" _defaultProduct" />
You can’t perform that action at this time.
0 commit comments