Skip to content

Commit b2ce545

Browse files
committed
MAGETWO-95803: Apply coupon code to guests that create accounts after checking out
- Add Automated test
1 parent b831a20 commit b2ce545

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/Checkout/Test/Mftf/Section/CheckoutSuccessMainSection.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<element name="orderLink" type="text" selector="a[href*=order_id].order-number" timeout="30"/>
1717
<element name="orderNumberText" type="text" selector=".checkout-success > p:nth-child(1)"/>
1818
<element name="continueShoppingButton" type="button" selector=".action.primary.continue" timeout="30"/>
19+
<element name="createAnAccount" type="button" selector="input[value='Create an Account']" timeout="30"/>
1920
<element name="printLink" type="button" selector=".print" timeout="30"/>
2021
</section>
2122
</sections>

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
<element name="applyDiscountToShippingLabel" type="checkbox" selector="input[name='apply_to_shipping']+label"/>
4040
<element name="discountAmount" type="input" selector="input[name='discount_amount']"/>
4141
<element name="discountStep" type="input" selector="input[name='discount_step']"/>
42+
<element name="addRewardPoints" type="input" selector="input[name='extension_attributes[reward_points_delta]']"/>
4243
<element name="freeShipping" type="select" selector="//select[@name='simple_free_shipping']"/>
4344

4445
<!-- Manage Coupon Codes sub-form -->

0 commit comments

Comments
 (0)