Skip to content

Commit e858826

Browse files
committed
MAGETWO-91624: Braintree saved cards use billing address the same as shipping
- Add signout action
1 parent a2828fb commit e858826

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

app/code/Magento/Braintree/Test/Mftf/Test/BraintreeCreditCardOnCheckoutTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<deleteData createDataKey="category" stepKey="deleteCategory"/>
3636
<createData entity="DefaultBraintreeConfig" stepKey="DefaultBraintreeConfig"/>
3737
<createData entity="RollBackCustomBraintreeConfigurationData" stepKey="RollBackCustomBraintreeConfigurationData"/>
38+
<actionGroup ref="StorefrontSignOutActionGroup" stepKey="StorefrontSignOutActionGroup"/>
3839
</after>
3940
<!--Go to storefront-->
4041
<amOnPage url="" stepKey="DoToStorefront"/>

app/code/Magento/Checkout/Test/Mftf/ActionGroup/CheckoutActionGroup.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,11 @@
145145
<see selector="{{CheckoutSuccessMainSection.success}}" userInput="{{emailYouMessage}}" stepKey="seeEmailYou"/>
146146
</actionGroup>
147147

148+
<actionGroup name="StorefrontSignOutActionGroup">
149+
<click selector="{{StoreFrontSignOutSection.customerAccount}}" stepKey="clickCustomerButton"/>
150+
<click selector="{{StoreFrontSignOutSection.signOut}}" stepKey="clickToSignOut"/>
151+
<waitForPageLoad stepKey="waitForPageLoad"/>
152+
<see userInput="You are signed out" stepKey="signOut"/>
153+
</actionGroup>
154+
148155
</actionGroups>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Page/etc/SectionObject.xsd">
11+
<section name="StoreFrontSignOutSection">
12+
<element name="customerAccount" type="button" selector=".customer-name"/>
13+
<element name="signOut" type="button" selector="div.customer-menu li.authorization-link"/>
14+
</section>
15+
</sections>

0 commit comments

Comments
 (0)