Skip to content

Commit 66d9779

Browse files
committed
ACP2E-789: add mtft test (wip)
1 parent d45ccd5 commit 66d9779

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<tests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
11+
<test name="StorefrontVerifyProductAfterPartialReindexOnSeveralWebsitesTest">
12+
<annotations>
13+
<features value="Catalog"/>
14+
<stories value="Product Categories Indexer"/>
15+
<title value="Verify Cron Partial Reindex for Products assigned to Categories and several new websites."/>
16+
<description value="Verify that Merchant Developer can use console commands to perform partial reindex for Category Products, Product Categories, and Product Price."/>
17+
<severity value="CRITICAL"/>
18+
<testCaseId value="TBD-123"/>
19+
<useCaseId value="ACP2E-789"/>
20+
<group value="catalog"/>
21+
<group value="indexer"/>
22+
<group value="pr_exclude"/>
23+
</annotations>
24+
<before>
25+
<!-- Change indexers to "Update by Schedule" mode -->
26+
<magentoCLI command="indexer:set-mode" arguments="schedule" stepKey="setIndexerMode"/>
27+
28+
<createData entity="_defaultCategory" stepKey="createCategory"/>
29+
<createData entity="_defaultProduct" stepKey="productAssignedToCustomWebsite">
30+
<requiredEntity createDataKey="createCategory"/>
31+
</createData>
32+
<createData entity="SimpleProduct" stepKey="productAssignedToMainWebsite">
33+
<requiredEntity createDataKey="createCategory"/>
34+
</createData>
35+
36+
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
37+
38+
<actionGroup ref="AdminCreateWebsiteActionGroup" stepKey="createAdditionalWebsite">
39+
<argument name="newWebsiteName" value="{{customWebsite.name}}"/>
40+
<argument name="websiteCode" value="{{customWebsite.code}}"/>
41+
</actionGroup>
42+
<actionGroup ref="AdminCreateNewStoreGroupActionGroup" stepKey="createNewStore">
43+
<argument name="website" value="{{customWebsite.name}}"/>
44+
<argument name="storeGroupName" value="{{customStoreGroup.name}}"/>
45+
<argument name="storeGroupCode" value="{{customStoreGroup.code}}"/>
46+
</actionGroup>
47+
<actionGroup ref="AdminCreateStoreViewActionGroup" stepKey="createNewStoreView">
48+
<argument name="StoreGroup" value="customStoreGroup"/>
49+
<argument name="customStore" value="customStore"/>
50+
</actionGroup>
51+
<actionGroup ref="EnableWebUrlOptionsActionGroup" stepKey="addStoreCodeToUrls"/>
52+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCacheAfterEnableWebUrlOptions"/>
53+
</before>
54+
<after>
55+
<!-- Change indexers to "Update on Save" mode -->
56+
<magentoCLI command="indexer:set-mode" arguments="realtime" stepKey="setRealtimeMode"/>
57+
58+
<!-- Delete data -->
59+
<!--<deleteData createDataKey="createCategory" stepKey="deleteCategory"/>
60+
<deleteData createDataKey="productAssignedToCustomWebsite" stepKey="deleteProductAssignedToCustomWebsite"/>
61+
<deleteData createDataKey="productAssignedToMainWebsite" stepKey="deleteProductAssignedToMainWebsite"/>
62+
<actionGroup ref="AdminDeleteWebsiteActionGroup" stepKey="deleteTestWebsite">
63+
<argument name="websiteName" value="{{customWebsite.name}}"/>
64+
</actionGroup>
65+
<actionGroup ref="AdminOpenCatalogProductPageActionGroup" stepKey="goToProductCatalogPage"/>
66+
<actionGroup ref="ResetProductGridToDefaultViewActionGroup" stepKey="resetProductGridColumnsInitial"/>
67+
<actionGroup ref="ResetWebUrlOptionsActionGroup" stepKey="resetUrlOption"/>
68+
<magentoCron groups="index" stepKey="reindex"/>
69+
<comment userInput="Adding the comment to replace CliCacheFlushActionGroup action group ('cache:flush' command) for preserving Backward Compatibility" stepKey="flushCache"/>
70+
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>-->
71+
</after>
72+
73+
74+
<!--<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
75+
<argument name="category" value="$$createPreReqCategory$$"/>
76+
<argument name="product" value="_defaultProduct"/>
77+
</actionGroup>
78+
<actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2">
79+
<argument name="product" value="_defaultProduct"/>
80+
</actionGroup>-->
81+
82+
<!-- Run cron -->
83+
<!--<magentoCron groups="index" stepKey="runCronIndex"/>-->
84+
<magentoCLI command="cron:run" stepKey="runCron"/>
85+
86+
<actionGroup ref="AssertProductInStorefrontCategoryPage" stepKey="assertProductInStorefront1">
87+
<argument name="category" value="$$createPreReqCategory$$"/>
88+
<argument name="product" value="_defaultProduct"/>
89+
</actionGroup>
90+
<actionGroup ref="AssertProductInStorefrontProductPageActionGroup" stepKey="assertProductInStorefront2">
91+
<argument name="product" value="_defaultProduct"/>
92+
</actionGroup>
93+
</test>
94+
</tests>

0 commit comments

Comments
 (0)