Skip to content

Commit eb3e86a

Browse files
Merge branch 'ACQE-8163' into ACQE-functional-deployment-v1-1
2 parents 3543a98 + 366fa73 commit eb3e86a

File tree

4 files changed

+273
-0
lines changed

4 files changed

+273
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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="AdminSelectAllValueOfTwoAttributesPageActionGroup">
11+
<annotations>
12+
<description>Select values of each attribute to include in the product.</description>
13+
</annotations>
14+
<arguments>
15+
<argument name="attributeLabel1" type="string" defaultValue="{{colorProductAttribute.default_label}}"/>
16+
<argument name="attributeLabel2" type="string" defaultValue="{{sizeAttribute.default_label}}"/>
17+
<argument name="quantity" type="string" defaultValue="100"/>
18+
</arguments>
19+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNext" />
20+
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickNextToSelectOptions"/>
21+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attributeLabel1)}}" stepKey="waitForSelectAllColor" />
22+
<click selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attributeLabel1)}}" stepKey="selectAllSwatchAttributeOptions"/>
23+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attributeLabel2)}}" stepKey="waitForSelectAllSize" />
24+
<click selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(attributeLabel2)}}" stepKey="selectAllSwatchAttributeOptions1"/>
25+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextAgain" />
26+
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickNextToApplyQuantity"/>
27+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="waitForQtyField" />
28+
<click selector="{{AdminCreateProductConfigurationsPanel.applySingleQuantityToEachSkus}}" stepKey="clickOnApplySingleQuantityToEachSku"/>
29+
<fillField selector="{{AdminCreateProductConfigurationsPanel.quantity}}" userInput="{{quantity}}" stepKey="enterAttributeQuantity"/>
30+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextAgain2" />
31+
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton3"/>
32+
<waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitForNextAgain3" />
33+
<click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButton4"/>
34+
</actionGroup>
35+
</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+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10+
<actionGroup name="FillProductAttributeFieldsActionGroup">
11+
<annotations>
12+
<description>Fill custom attribute form fields.</description>
13+
</annotations>
14+
<arguments>
15+
<argument name="attributeLabel" type="string" defaultValue="Test Attribute"/>
16+
<argument name="attributeCode" type="string" defaultValue="test_attribute"/>
17+
<argument name="inputType" type="string" defaultValue="Dropdown"/>
18+
<argument name="scope" type="string" defaultValue="Store View"/>
19+
</arguments>
20+
<waitForElementVisible selector="{{AdminProductAttributeGridSection.createNewAttributeBtn}}" stepKey="waitForAddNewButton"/>
21+
<click selector="{{AdminProductAttributeGridSection.createNewAttributeBtn}}" stepKey="clickAddNewAttributeButton"/>
22+
<fillField selector="{{AttributePropertiesSection.DefaultLabel}}" userInput="{{attributeLabel}}" stepKey="fillAttributeLabel"/>
23+
<selectOption selector="{{AttributePropertiesSection.InputType}}" userInput="{{inputType}}" stepKey="selectDropdown"/>
24+
<scrollTo selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}" stepKey="scrollToSection"/>
25+
<conditionalClick selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}" dependentSelector="{{AdvancedAttributePropertiesSection.AttributeCode}}" visible="false" stepKey="openSection"/>
26+
<waitForElementVisible selector="{{AdvancedAttributePropertiesSection.AttributeCode}}" stepKey="waitForSlideOutSection"/>
27+
<fillField selector="{{AdvancedAttributePropertiesSection.AttributeCode}}" userInput="{{attributeCode}}" stepKey="fillAttributeCode"/>
28+
<selectOption selector="{{AdvancedAttributePropertiesSection.Scope}}" userInput="{{scope}}" stepKey="selectScope"/>
29+
</actionGroup>
30+
</actionGroups>

app/code/Magento/ConfigurableProduct/Test/Mftf/Data/ProductConfigurableAttributeData.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,18 @@
8080
<data key="input_type">Dropdown</data>
8181
<data key="attribute_code" unique="suffix">size</data>
8282
</entity>
83+
<entity name="colorProductAttributeWithOptions" extends="colorProductAttribute" type="ProductAttribute">
84+
<data key="input_type">Text Swatch</data>
85+
<data key="scope">Global</data>
86+
<data key="option1">Black</data>
87+
<data key="option2">Blue</data>
88+
<data key="option3">White</data>
89+
</entity>
90+
<entity name="sizeProductAttributeWithOptions" extends="sizeAttribute" type="ProductAttribute">
91+
<data key="input_type">Text Swatch</data>
92+
<data key="scope">Global</data>
93+
<data key="option1">Small</data>
94+
<data key="option2">Medium</data>
95+
<data key="option3">Large</data>
96+
</entity>
8397
</entities>

0 commit comments

Comments
 (0)