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 71
71
<magentoCLI command =" cache:clean" stepKey =" cleanCacheAfter" />
72
72
</after >
73
73
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" />
81
77
78
+ <!-- Check product is not present in category before cron run -->
82
79
<actionGroup ref =" AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey =" doNotSeeProductInCategoryPage" >
83
80
<argument name =" categoryUrlKey" value =" $$createCategory.name$$" />
84
81
<argument name =" productName" value =" {{_defaultProduct.name}}" />
87
84
<!-- Run cron -->
88
85
<magentoCLI command =" cron:run" stepKey =" runCron" />
89
86
87
+ <!-- Check product is present in category after cron run -->
90
88
<actionGroup ref =" AssertProductInStorefrontCategoryPage" stepKey =" assertProductInStorefront1" >
91
89
<argument name =" category" value =" $$createCategory$$" />
92
90
<argument name =" product" value =" _defaultProduct" />
You can’t perform that action at this time.
0 commit comments