Skip to content

Commit dda9fc2

Browse files
ACQE-8247: Move and Update Category on Store View level when Category Flat Indexer is in Update on Schedule mode
- Created action group to assert the category data
1 parent 851449a commit dda9fc2

File tree

4 files changed

+117
-75
lines changed

4 files changed

+117
-75
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="StorefrontVerifyCategoryContentActionGroup">
11+
<annotations>
12+
<description>Verify category content on storefront including image, description, meta title, and product count</description>
13+
</annotations>
14+
<arguments>
15+
<argument name="description" type="string"/>
16+
<argument name="metaTitle" type="string"/>
17+
<argument name="productCount" type="string"/>
18+
</arguments>
19+
<waitForElementVisible selector="{{StorefrontCategoryMainSection.categoryImage}}"
20+
stepKey="verifyImageVisible"/>
21+
<waitForText userInput="{{description}}"
22+
selector="{{StorefrontCategoryMainSection.CatalogDescriptionWithoutPTag}}"
23+
stepKey="verifyDescription"/>
24+
<waitForElement selector="{{StorefrontCategoryHeadSection.pageTitle(metaTitle)}}"
25+
stepKey="verifyMetaTitle"/>
26+
<waitForText userInput="{{productCount}}" selector="{{StorefrontCategoryMainSection.productCount}}"
27+
stepKey="verifyProductCount"/>
28+
</actionGroup>
29+
</actionGroups>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
10+
<entity name="CategoryDisplaySettings" type="category">
11+
<data key="available_sort_by">Product Name</data>
12+
<data key="default_sort_by">name</data>
13+
<data key="filter_price_range">5.5</data>
14+
</entity>
15+
</entities>

app/code/Magento/Catalog/Test/Mftf/Data/StoreLabelData.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,4 @@
9292
<data key="store_id">1</data>
9393
<data key="label">36</data>
9494
</entity>
95-
<entity name="Store2Group" type="group">
96-
<data key="name">Store 2</data>
97-
<data key="code">store2_group</data>
98-
</entity>
99-
<entity name="Store2View" type="store">
100-
<data key="name">Store View 2</data>
101-
<data key="code">store_view_2</data>
102-
</entity>
10395
</entities>

0 commit comments

Comments
 (0)