Skip to content

Commit 2dac22f

Browse files
Merge branch 'ACQE-8247' into ACQE-functional-deployment-version12
2 parents 8bb4f37 + 822cf02 commit 2dac22f

File tree

4 files changed

+405
-0
lines changed

4 files changed

+405
-0
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+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminUpdateCategoryDisplaySettingsWithCustomValuesActionGroup"
12+
extends="AdminUpdateCategoryDisplaySettingsActionGroup">
13+
<annotations>
14+
<description>Update Category Display settings with custom values (unchecks Use Config first)</description>
15+
</annotations>
16+
<arguments>
17+
<argument name="availableSortOptions" type="string" defaultValue="Product Name"/>
18+
<argument name="defaultSortingOption" type="string" defaultValue="name"/>
19+
<argument name="priceRange" type="string" defaultValue="5.5"/>
20+
</arguments>
21+
<!-- Override the checkbox behavior to uncheck instead of check -->
22+
<remove keyForRemoval="enableTheAvailableProductList" />
23+
<uncheckOption selector="{{CategoryDisplaySettingsSection.productListCheckBox}}" after="selectDisplaySetting"
24+
stepKey="uncheckUseConfigForAvailableSort"/>
25+
<remove keyForRemoval="enableTheDefaultProductList" />
26+
<uncheckOption selector="{{CategoryDisplaySettingsSection.defaultProductLisCheckBox}}"
27+
after="scrollToDefaultProductList" stepKey="uncheckUseConfigForDefaultSort"/>
28+
</actionGroup>
29+
</actionGroups>
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontVerifyCategoryContentActionGroup">
12+
<annotations>
13+
<description>Verify category content on storefront including image, description, meta title, and product count</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="description" type="string" defaultValue="categoryDescription"/>
17+
<argument name="metaTitle" type="string" defaultValue="metaTitle"/>
18+
<argument name="productCount" type="string" defaultValue="1"/>
19+
</arguments>
20+
<waitForElementVisible selector="{{StorefrontCategoryMainSection.categoryImage}}"
21+
stepKey="verifyImageVisible"/>
22+
<waitForText userInput="{{description}}"
23+
selector="{{StorefrontCategoryMainSection.CatalogDescriptionWithoutPTag}}"
24+
stepKey="verifyDescription"/>
25+
<waitForElement selector="{{StorefrontCategoryHeadSection.pageTitle(metaTitle)}}"
26+
stepKey="verifyMetaTitle"/>
27+
<waitForText userInput="{{productCount}}" selector="{{StorefrontCategoryMainSection.productCount}}"
28+
stepKey="verifyProductCount"/>
29+
</actionGroup>
30+
</actionGroups>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
6+
*/
7+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="CategoryDisplaySettings" type="category">
12+
<data key="available_sort_by">Product Name</data>
13+
<data key="default_sort_by">name</data>
14+
<data key="filter_price_range">5.5</data>
15+
</entity>
16+
</entities>

0 commit comments

Comments
 (0)