File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
app/code/Magento/Sales/Test/Mftf/Test Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change 18
18
<testCaseId value =" MAGETWO-72096" />
19
19
<group value =" sales" />
20
20
</annotations >
21
-
22
- <before >
21
+ <before >
23
22
<createData entity =" _defaultCategory" stepKey =" createCategory" />
24
23
<createData entity =" _defaultProduct" stepKey =" createSimpleProductApi" >
25
24
<requiredEntity createDataKey =" createCategory" />
34
33
</createData >
35
34
<updateData createDataKey =" createGuestCart" entity =" GuestOrderPaymentMethod" stepKey =" sendGuestPaymentInformation" >
36
35
<requiredEntity createDataKey =" createGuestCart" />
37
- </updateData >
36
+ </updateData >
38
37
39
38
<actionGroup ref =" AdminLoginActionGroup" stepKey =" loginAsAdmin" />
40
-
41
39
</before >
42
-
43
40
<after >
44
41
<deleteData createDataKey =" createCategory" stepKey =" deleteCategory" />
45
42
<deleteData createDataKey =" createSimpleProductApi" stepKey =" deleteSimpleProductApi" />
46
43
<actionGroup ref =" AdminLogoutActionGroup" stepKey =" adminLogout" />
47
44
</after >
48
-
49
45
<actionGroup ref =" AdminOpenOrderByEntityIdActionGroup" stepKey =" openOrder" >
50
46
<argument name =" entityId" value =" $createGuestCart.return$" />
51
- </actionGroup >
47
+ </actionGroup >
48
+
49
+ <grabTextFrom selector =" {{AdminOrderDetailsInformationSection.orderId}}" stepKey =" grabOrderId" />
52
50
53
51
<actionGroup ref =" AdminCreateInvoiceActionGroup" stepKey =" createInvoice" />
54
52
55
53
<actionGroup ref =" FilterInvoiceGridByOrderIdWithCleanFiltersActionGroup" stepKey =" filterInvoiceGridByOrderId" >
56
- <argument name =" orderId" value =" $createGuestCart.return$ " />
54
+ <argument name =" orderId" value =" $grabOrderId " />
57
55
</actionGroup >
58
56
59
57
<actionGroup ref =" AdminSelectFirstGridRowActionGroup" stepKey =" openInvoiceFromGrid" />
60
58
61
59
<actionGroup ref =" AdminOrderViewCheckStatusActionGroup" stepKey =" checkIfOrderStatusIsProcessing" >
62
60
<argument name =" status" value =" Processing" />
63
- </actionGroup >
64
-
61
+ </actionGroup >
65
62
</test >
66
63
</tests >
You can’t perform that action at this time.
0 commit comments