Skip to content

Commit 9ff7f71

Browse files
Manjusha.SManjusha.S
authored andcommitted
Merge branch 'AC-2596' into functional-testing-automation-version2
2 parents f1dce6d + ed04b98 commit 9ff7f71

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesFormSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484
<element name="applyDiscountToShipping" type="checkbox" selector="input[name='apply_to_shipping']"/>
8585
<element name="applyDiscountToShippingLabel" type="checkbox" selector="input[name='apply_to_shipping']+label"/>
8686
<element name="discountAmount" type="input" selector="input[name='discount_amount']"/>
87+
<element name="negativeDiscountAmountError" type="text" selector="//label[@class='admin__field-error' and text()='Please enter a number 0 or greater, without comma in this field.']"/>
8788
<element name="maximumQtyDiscount" type="input" selector="input[name='discount_qty']"/>
8889
<element name="discountStep" type="input" selector="input[name='discount_step']"/>
8990
<element name="applyToShippingAmount" type="checkbox" selector="//div[@class='admin__actions-switch']/input[@name='apply_to_shipping']/../label"/>

app/code/Magento/SalesRule/Test/Mftf/Section/AdminCartPriceRulesSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
1010
<section name="AdminCartPriceRulesSection">
1111
<element name="addNewRuleButton" type="button" selector="#add" timeout="30"/>
12+
<element name="editRuleButton" type="button" selector="//td[@class=' col-actions col-action last']/a[text()='Edit']" timeout="30"/>
1213
<element name="messages" type="text" selector=".messages"/>
1314
<element name="filterByNameInput" type="input" selector="input[name='name']"/>
1415
<element name="searchButton" type="button" selector="#promo_quote_grid button[title='Search']" timeout="30"/>

0 commit comments

Comments
 (0)