File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
app/code/Magento/Catalog/Test/Mftf/ActionGroup Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
-->
8
8
9
9
<actionGroups xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
10
- xsi : noNamespaceSchemaLocation =" ../../../../../../../dev/tests/acceptance/vendor/ magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/ Test/etc/actionGroupSchema.xsd" >
10
+ xsi : noNamespaceSchemaLocation =" urn: magento:mftf: Test/etc/actionGroupSchema.xsd" >
11
11
<!-- Navigate to create product page from product grid page-->
12
12
<actionGroup name =" goToCreateProductPage" >
13
13
<arguments >
167
167
<waitForPageLoad stepKey =" waitForPageLoad" />
168
168
<dontSeeElement selector =" {{AdminProductImagesSection.imageFile(image.filename)}}" stepKey =" seeImage" />
169
169
</actionGroup >
170
+
171
+ <!-- Check tier price with a discount percentage on product-->
172
+ <actionGroup name =" AssertDiscountsPercentageOfProduct" >
173
+ <arguments >
174
+ <argument name =" amount" type =" string" defaultValue =" 45" />
175
+ </arguments >
176
+ <click selector =" {{AdminProductFormSection.advancedPricingLink}}" stepKey =" clickOnAdvancedPricingButton" />
177
+ <waitForElementVisible selector =" {{AdminProductFormAdvancedPricingSection.customerGroupPriceAddButton}}" stepKey =" waitForCustomerGroupPriceAddButton" />
178
+ <grabValueFrom selector =" {{AdminProductFormAdvancedPricingSection.productTierPricePercentageValuePriceInput('0')}}" stepKey =" grabProductTierPriceInput" />
179
+ <assertEquals stepKey =" assertProductTierPriceInput" >
180
+ <expectedResult type =" string" >{{amount}}</expectedResult >
181
+ <actualResult type =" string" >$grabProductTierPriceInput</actualResult >
182
+ </assertEquals >
183
+ </actionGroup >
184
+
170
185
<actionGroup name =" CreatedProductConnectToWebsite" >
171
186
<arguments >
172
187
<argument name =" website" />
You can’t perform that action at this time.
0 commit comments