Skip to content

Commit c3186f5

Browse files
committed
ACP2E-789: add mtft test (wip)
1 parent c88e69b commit c3186f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

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

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@
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}}"/>
@@ -87,6 +84,7 @@
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"/>

0 commit comments

Comments
 (0)