Skip to content

Commit daf7bcb

Browse files
author
Mariana Lashch
committed
MAGETWO-94472: [2.3] Unable to create credit memo for order placed via online payment with taxes and discounts
- delete several waits, add minor changes according to code review comments
1 parent 10cc11f commit daf7bcb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/testSchema.xsd">
1111
<test name="CreateAdminOrderPayedWithOnlinePaymentIncludingTaxAndDiscount">
1212
<annotations>
13-
<features value="Sales"/>
13+
<features value="Braintree"/>
1414
<stories value="Get access to a New Credit Memo Page from Invocie for Order payed with online payment via Admin"/>
1515
<title value="Admin should be able to open a New Credit Memo Page from Invoice Page for Order with tax and discount and payed using online payment method"/>
1616
<description value="Admin should be able to open a New Credit Memo Page from Invoice Page for Order with tax and discount and payed using online payment method"/>
1717
<severity value="CRITICAL"/>
1818
<testCaseId value="MAGETWO-94472"/>
19-
<group value="sales"/>
19+
<group value="braintree"/>
2020
</annotations>
2121

2222
<before>
2323
<!--Create Default Category-->
2424
<createData entity="SimpleSubCategory" stepKey="createCategory"/>
2525

26-
<!--Create Simple product with Special Price-->
26+
<!--Create Simple product-->
2727
<createData entity="_defaultProduct" stepKey="simpleProduct">
2828
<requiredEntity createDataKey="createCategory"/>
2929
</createData>
@@ -99,15 +99,16 @@
9999

100100
<!--Submit Order-->
101101
<click stepKey="submitOrder" selector="{{NewOrderSection.submitOrder}}"/>
102-
<waitForPageLoad stepKey="waitForSaveConfig" time="10"/>
103-
<waitForElementVisible selector="{{NewOrderSection.successMessage}}" stepKey="waitForSuccessMessage" time="5"/>
102+
<waitForPageLoad stepKey="waitForSubmitOrder" time="5"/>
103+
<see selector="{{NewOrderSection.successMessage}}" userInput="You created the order." stepKey="seeNewOrder" after="waitForSubmitOrder"/>
104+
104105

105106
<!-- Create New invoice-->
106107
<actionGroup ref="adminFastCreateInvoice" stepKey="createInvoice"/>
107108

108109
<!--Get access to Credit Memo page from Invocie page-->
109110
<click selector="{{AdminInvoiceMainActionsSection.openNewCreditMemoFromInvoice}}" stepKey="clickCreateNewCreditMemo"/>
110111
<waitForPageLoad stepKey="waitForLoadNewCreditMemoPage" time="5"/>
111-
<waitForElementVisible selector="{{AdminCreditMemoOrderInformationSection.orderId}}" stepKey="waitForOrderIdOnCreditMemoPage"/>
112+
<see selector="{{AdminCreditMemoOrderInformationSection.orderId}}" userInput="New Memo" stepKey="seeNewCreditMemo" after="waitForLoadNewCreditMemoPage"/>
112113
</test>
113114
</tests>

0 commit comments

Comments
 (0)