Skip to content

Commit 29b8cd4

Browse files
committed
ACP2E-789: add mftf test (wip)
1 parent a9857e4 commit 29b8cd4

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@
2525
<!-- Change indexers to "Update by Schedule" mode -->
2626
<magentoCLI command="indexer:set-mode schedule" stepKey="setScheduleIndexer"/>
2727

28+
<!-- Login as Admin -->
2829
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2930

31+
<!-- Create website, store group, store to assign to new product -->
3032
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
3133
<argument name="newWebsiteName" value="{{customWebsite.name}}"/>
3234
<argument name="websiteCode" value="{{customWebsite.code}}"/>
@@ -41,16 +43,13 @@
4143
<argument name="customStore" value="customStore"/>
4244
</actionGroup>
4345

44-
4546
<createData entity="_defaultCategory" stepKey="createCategory"/>
4647
<createData entity="_defaultProduct" stepKey="productAssignedToCustomWebsite">
4748
<requiredEntity createDataKey="createCategory"/>
4849
</createData>
4950
<createData entity="SimpleProduct" stepKey="productAssignedToMainWebsite">
5051
<requiredEntity createDataKey="createCategory"/>
5152
</createData>
52-
53-
5453
<actionGroup ref="EnableWebUrlOptionsActionGroup" stepKey="addStoreCodeToUrls"/>
5554
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableWebUrlOptions"/>
5655
</before>
@@ -68,11 +67,17 @@
6867
<actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToProductCatalogPage"/>
6968
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridColumnsInitial"/>
7069
<actionGroup ref="ResetWebUrlOptionsActionGroup" stepKey="resetUrlOption"/>
71-
<magentoCron groups="index" stepKey="reindex"/>
70+
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
71+
<magentoCLI command="cache:flush" stepKey="flushCacheCLI"/>
7272
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
7373
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
7474
</after>
7575

76+
<!--Switch to custom store storefront page-->
77+
<actionGroup ref="StorefrontSwitchStoreActionGroup" stepKey="switchToCustomStore">
78+
<argument name="storeName" value="{{customStoreGroup.name}}"/>
79+
</actionGroup>
80+
7681
<actionGroup ref="AssertStorefrontProductAbsentOnCategoryPageActionGroup" stepKey="doNotSeeProductInCategoryPage">
7782
<argument name="categoryUrlKey" value="$$createCategory.name$$"/>
7883
<argument name="productName" value="{{_defaultProduct.name}}"/>
@@ -85,8 +90,5 @@
8590
<argument name="category" value="$$createCategory$$"/>
8691
<argument name="product" value="_defaultProduct"/>
8792
</actionGroup>
88-
<actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2">
89-
<argument name="product" value="_defaultProduct"/>
90-
</actionGroup>
9193
</test>
9294
</tests>

0 commit comments

Comments
 (0)