Skip to content

Commit 7924671

Browse files
committed
ACQE-8097: Product attribute admin values should be used instead of default store view values in backend
- Modified data entity
1 parent ddfeeec commit 7924671

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
</actionGroup>
4242
<fillField selector="{{AttributePropertiesSection.DefaultLabel}}" userInput="$$createColourProductAttribute.attribute_code$$" stepKey="fillDefaultLabel"/>
4343
<actionGroup ref="CreateAttributeDropdownNthOptionActionGroup" stepKey="createColourOptionWhichAsDifferentValuesInAdminAndDefaultStoreView">
44-
<argument name="adminName" value="{{PayPalColor.black}}"/>
45-
<argument name="frontName" value="{{PayPalColor.gold}}"/>
44+
<argument name="adminName" value="{{colorDefaultProductAttribute2.name}}"/>
45+
<argument name="frontName" value="{{colorDefaultProductAttribute1.name}}"/>
4646
<argument name="row" value="1"/>
4747
</actionGroup>
4848
<actionGroup ref="AdminSaveProductAttributeActionGroup" stepKey="saveMultiSelectAttribute"/>
@@ -64,8 +64,8 @@
6464
<actionGroup ref="AdminCreateCustomConditionWithMultipleSelectInCartPriceRuleActionGroup" stepKey="createProductAttributeCombinationCondition">
6565
<argument name="productAttribute" value="$$createColourProductAttribute.attribute_code$$"/>
6666
</actionGroup>
67-
<waitForText selector="{{AdminCartPriceRulesFormSection.ruleFieldByIndex('1--1--1')}}" userInput="{{PayPalColor.black}}" stepKey="verifyAdminValueIsVisibleInTheConditionInsteadOfDefaultStoreViewValue"/>
68-
<dontSee selector="{{AdminCartPriceRulesFormSection.ruleFieldByIndex('1--1--1')}}" userInput="{{PayPalColor.gold}}" stepKey="verifyDefaultStoreViewValueIsNotVisible"/>
67+
<waitForText selector="{{AdminCartPriceRulesFormSection.ruleFieldByIndex('1--1--1')}}" userInput="{{colorDefaultProductAttribute2.name}}" stepKey="verifyAdminValueIsVisibleInTheConditionInsteadOfDefaultStoreViewValue"/>
68+
<dontSee selector="{{AdminCartPriceRulesFormSection.ruleFieldByIndex('1--1--1')}}" userInput="{{colorDefaultProductAttribute1.name}}" stepKey="verifyDefaultStoreViewValueIsNotVisible"/>
6969
<actionGroup ref="AssertCartPriceRuleSuccessSaveMessageActionGroup" stepKey="saveAndAssertCartPriceRuleSuccessSaveMessage"/>
7070
</test>
7171
</tests>

app/code/Magento/SalesRule/Test/Mftf/ActionGroup/AdminCreateCustomConditionWithMultipleSelectInCartPriceRuleActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<description>Remove fill filed action and replace with select option</description>
1313
</annotations>
1414
<arguments>
15-
<argument name="productAttributeOption" type="string" defaultValue="{{PayPalColor.black}}"/>
15+
<argument name="productAttributeOption" type="string" defaultValue="{{colorDefaultProductAttribute2.name}}"/>
1616
</arguments>
1717
<remove keyForRemoval="fillCategoryId"/>
1818
<selectOption selector="{{AdminCartPriceRulesFormSection.ruleFieldByIndex('1--1--1')}}" userInput="{{productAttributeOption}}" stepKey="selectProductAttributeValue"/>

0 commit comments

Comments
 (0)