Skip to content

Commit 6527250

Browse files
#25658: MFTF coverage added.
1 parent 14468af commit 6527250

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-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
@@ -98,5 +98,6 @@
9898
<element name="couponQty" type="input" selector="#coupons_qty"/>
9999
<element name="generateCouponsButton" type="button" selector="#coupons_generate_button" timeout="30"/>
100100
<element name="generatedCouponByIndex" type="text" selector="#couponCodesGrid_table > tbody > tr:nth-child({{var}}) > td.col-code" parameterized="true"/>
101+
<element name="couponGridUsedHeader" type="text" selector="#couponCodesGrid thead th[data-sort='used']"/>
101102
</section>
102103
</sections>

app/code/Magento/SalesRule/Test/Mftf/Test/AdminCreateCartPriceRuleForGeneratedCouponTest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@
6262
<waitForPageLoad stepKey="waitFormToReload1"/>
6363
<click selector="{{AdminCartPriceRulesFormSection.manageCouponCodesHeader}}" stepKey="expandCouponSection2"/>
6464

65+
<!-- Assert coupon codes grid header is correct -->
66+
<see selector="{{AdminCartPriceRulesFormSection.couponGridUsedHeader}}" userInput="Used" stepKey="seeCorrectUsedHeader"/>
67+
6568
<!-- Grab a coupon code and hold on to it for later -->
6669
<grabTextFrom selector="{{AdminCartPriceRulesFormSection.generatedCouponByIndex('1')}}" stepKey="grabCouponCode"/>
6770

app/code/Magento/SalesRule/i18n/en_US.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Generate,Generate
2323
"Coupon Code","Coupon Code"
2424
Created,Created
2525
Used,Used
26+
Uses,Uses
2627
No,No
2728
Yes,Yes
2829
"Times Used","Times Used"

0 commit comments

Comments
 (0)