File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
app/code/Magento/Catalog/Test/Mftf
Test/AdminApplyTierPriceToProductTest Expand file tree Collapse file tree 2 files changed +32
-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+ <executeJS function =" return window.getComputedStyle(document.querySelector(" {$priceAmountSelector}" )).getPropertyValue('min-width')" after =" waitPriceAmountFieldAppers" stepKey =" priceMinWidth" />
21+ <assertEquals after =" priceMinWidth" stepKey =" assertWebsiteAmounts" >
22+ <actualResult type =" string" >$priceMinWidth</actualResult >
23+ <expectedResult type =" string" >60px</expectedResult >
24+ </assertEquals >
25+ <click selector =" {{AdminProductFormAdvancedPricingSection.customerGroupPriceDeleteButton}}" after =" assertWebsiteAmounts" stepKey =" clickCustomerGroupPriceDeleteButton" />
26+ </actionGroup >
27+ </actionGroups >
Original file line number Diff line number Diff line change 3232 <actionGroup ref =" ResetProductGridToDefaultViewActionGroup" stepKey =" resetGridToDefaultKeywordSearch" />
3333 <actionGroup ref =" AdminLogoutActionGroup" stepKey =" logoutFromAdmin" />
3434 </after >
35-
35+
3636 <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" loginAsAdmin" />
3737 <actionGroup ref =" SearchForProductOnBackendActionGroup" stepKey =" searchForSimpleProduct" >
3838 <argument name =" product" value =" $$createSimpleProduct$$" />
4141 <argument name =" product" value =" $$createSimpleProduct$$" />
4242 </actionGroup >
4343
44+ <actionGroup ref =" AdminProductFormOpenAdvancedPricingDialogActionGroup" stepKey =" clickOnAdvancedPricingButtonForAssert" />
45+ <actionGroup ref =" AssertAdminProductFormAdvancedPricingAddTierPriceActionGroup" stepKey =" assertProductTierPricePriceInput" />
46+ <actionGroup ref =" AdminProductFormDoneAdvancedPricingDialogActionGroup" stepKey =" doneButtonAfterAssert" />
47+
4448 <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" scrollToTopOfPage" />
4549 <actionGroup ref =" AdminProductFormOpenAdvancedPricingDialogActionGroup" stepKey =" clickOnAdvancedPricingButton" />
4650 <comment userInput =" Comment is added to preserve the step key for backward compatibility" stepKey =" waitForCustomerGroupPriceAddButton" />
You can’t perform that action at this time.
0 commit comments