File tree 3 files changed +41
-1
lines changed
code/Magento/Catalog/Test/Mftf
Test/AdminApplyTierPriceToProductTest
design/adminhtml/Magento/backend/Magento_Catalog/web/css/source
3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change
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
+ <actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
+ xsi : noNamespaceSchemaLocation =" urn:magento:mftf:Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" AssertAdminProductFormAdvancedPricingAddTierPriceActionGroup" extends =" AdminProductFormAdvancedPricingAddTierPriceActionGroup" >
12
+ <annotations >
13
+ <description >Check tier price on Advanced Pricing dialog on the Admin Product creation/edit page.</description >
14
+ </annotations >
15
+ <remove keyForRemoval =" selectWebsite" />
16
+ <remove keyForRemoval =" selectCustomerGroup" />
17
+ <remove keyForRemoval =" fillQuantity" />
18
+ <remove keyForRemoval =" selectPriceType" />
19
+ <remove keyForRemoval =" fillPriceAmount" />
20
+ <remove keyForRemoval =" waitCustomerGroupFilterAppears" />
21
+ <remove keyForRemoval =" selectCustomerGroupValue" />
22
+ <executeJS function =" return window.getComputedStyle(document.querySelector(" {$priceAmountSelector}" )).getPropertyValue('min-width')" after =" waitPriceAmountFieldAppers" stepKey =" priceMinWidth" />
23
+ <assertEquals after =" priceMinWidth" stepKey =" assertWebsiteAmounts" >
24
+ <actualResult type =" string" >$priceMinWidth</actualResult >
25
+ <expectedResult type =" string" >60px</expectedResult >
26
+ </assertEquals >
27
+ <click selector =" {{AdminProductFormAdvancedPricingSection.customerGroupPriceDeleteButton}}" after =" assertWebsiteAmounts" stepKey =" clickCustomerGroupPriceDeleteButton" />
28
+ </actionGroup >
29
+ </actionGroups >
Original file line number Diff line number Diff line change 32
32
<actionGroup ref =" ResetProductGridToDefaultViewActionGroup" stepKey =" resetGridToDefaultKeywordSearch" />
33
33
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
34
34
</after >
35
-
35
+
36
36
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" loginAsAdmin" />
37
37
<actionGroup ref =" SearchForProductOnBackendActionGroup" stepKey =" searchForSimpleProduct" >
38
38
<argument name =" product" value =" $$createSimpleProduct$$" />
41
41
<argument name =" product" value =" $$createSimpleProduct$$" />
42
42
</actionGroup >
43
43
44
+ <actionGroup ref =" AdminProductFormOpenAdvancedPricingDialogActionGroup" stepKey =" clickOnAdvancedPricingButtonForAssert" />
45
+ <actionGroup ref =" AssertAdminProductFormAdvancedPricingAddTierPriceActionGroup" stepKey =" assertProductTierPriceInput" />
46
+ <actionGroup ref =" AdminProductFormDoneAdvancedPricingDialogActionGroup" stepKey =" doneButtonAfterAssert" />
47
+
44
48
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" scrollToTopOfPage" />
45
49
<actionGroup ref =" AdminProductFormOpenAdvancedPricingDialogActionGroup" stepKey =" clickOnAdvancedPricingButton" />
46
50
<comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForCustomerGroupPriceAddButton" />
Original file line number Diff line number Diff line change 99
99
.admin__field + .admin__field {
100
100
margin-left : @indent__s ;
101
101
margin-top : 0 ;
102
+ .admin__field-control {
103
+ .admin__control-addon {
104
+ .admin__control-text {
105
+ min-width : 6rem ;
106
+ }
107
+ }
108
+ }
102
109
}
103
110
}
104
111
}
You can’t perform that action at this time.
0 commit comments