|
19 | 19 | <see selector="{{AdminInvoiceOrderInformationSection.customerName}}" userInput="{{customer.firstname}}" stepKey="seeCustomerName"/>
|
20 | 20 | <see selector="{{AdminInvoiceOrderInformationSection.customerEmail}}" userInput="{{customer.email}}" stepKey="seeCustomerEmail"/>
|
21 | 21 | <see selector="{{AdminInvoiceOrderInformationSection.customerGroup}}" userInput="{{customerGroup.code}}" stepKey="seeCustomerGroup"/>
|
22 |
| - |
23 | 22 | <see selector="{{AdminInvoiceAddressInformationSection.billingAddress}}" userInput="{{billingAddress.street[0]}}" stepKey="seeBillingAddressStreet"/>
|
24 | 23 | <see selector="{{AdminInvoiceAddressInformationSection.billingAddress}}" userInput="{{billingAddress.city}}" stepKey="seeBillingAddressCity"/>
|
25 | 24 | <see selector="{{AdminInvoiceAddressInformationSection.billingAddress}}" userInput="{{billingAddress.country_id}}" stepKey="seeBillingAddressCountry"/>
|
26 | 25 | <see selector="{{AdminInvoiceAddressInformationSection.billingAddress}}" userInput="{{billingAddress.postcode}}" stepKey="seeBillingAddressPostcode"/>
|
27 |
| - |
28 | 26 | <see selector="{{AdminInvoiceAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.street[0]}}" stepKey="seeShippingAddressStreet"/>
|
29 | 27 | <see selector="{{AdminInvoiceAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.city}}" stepKey="seeShippingAddressCity"/>
|
30 | 28 | <see selector="{{AdminInvoiceAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.country_id}}" stepKey="seeShippingAddressCountry"/>
|
31 | 29 | <see selector="{{AdminInvoiceAddressInformationSection.shippingAddress}}" userInput="{{shippingAddress.postcode}}" stepKey="seeShippingAddressPostcode"/>
|
32 | 30 | </actionGroup>
|
33 |
| - |
34 | 31 | <!--Check that product is in invoice items-->
|
35 | 32 | <actionGroup name="seeProductInInvoiceItems">
|
36 | 33 | <arguments>
|
37 | 34 | <argument name="product"/>
|
38 | 35 | </arguments>
|
39 | 36 | <see selector="{{AdminInvoiceItemsSection.skuColumn}}" userInput="{{product.sku}}" stepKey="seeProductSkuInGrid"/>
|
40 | 37 | </actionGroup>
|
41 |
| - |
42 | 38 | <!--Admin Fast Create Invoice-->
|
43 | 39 | <actionGroup name="adminFastCreateInvoice">
|
44 | 40 | <click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoiceButton"/>
|
|
50 | 46 | <click selector="{{AdminOrderInvoicesTabSection.viewInvoice}}" stepKey="openInvoicePage"/>
|
51 | 47 | <waitForPageLoad stepKey="waitForInvoicePageLoad"/>
|
52 | 48 | </actionGroup>
|
53 |
| - |
54 | 49 | <actionGroup name="clearInvoicesGridFilters">
|
55 | 50 | <amOnPage url="{{AdminInvoicesPage.url}}" stepKey="goToInvoices"/>
|
56 | 51 | <waitForPageLoad stepKey="waitInvoicesGridToLoad"/>
|
57 | 52 | <conditionalClick selector="{{AdminDataGridHeaderSection.clearFilters}}" dependentSelector="{{AdminDataGridHeaderSection.clearFilters}}" visible="true" stepKey="clearFilters" />
|
58 | 53 | <waitForPageLoad stepKey="waitInvoicesGrid"/>
|
59 | 54 | </actionGroup>
|
60 |
| - |
61 | 55 | <actionGroup name="goToInvoiceIntoOrder">
|
62 | 56 | <click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoiceAction"/>
|
63 | 57 | <seeInCurrentUrl url="{{AdminInvoiceNewPage.url}}" stepKey="seeOrderInvoiceUrl"/>
|
64 | 58 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="New Invoice" stepKey="seePageNameNewInvoicePage"/>
|
65 | 59 | </actionGroup>
|
66 |
| - |
67 | 60 | <actionGroup name="StartCreateInvoiceFromOrderPage">
|
68 | 61 | <click selector="{{AdminOrderDetailsMainActionsSection.invoice}}" stepKey="clickInvoiceAction"/>
|
69 | 62 | <seeInCurrentUrl url="{{AdminInvoiceNewPage.url}}" stepKey="seeNewInvoiceUrl"/>
|
70 | 63 | <see selector="{{AdminHeaderSection.pageTitle}}" userInput="New Invoice" stepKey="seeNewInvoicePageTitle"/>
|
71 | 64 | </actionGroup>
|
72 |
| - |
73 | 65 | <actionGroup name="SubmitInvoice">
|
74 | 66 | <click selector="{{AdminInvoiceMainActionsSection.submitInvoice}}" stepKey="clickSubmitInvoice"/>
|
75 | 67 | <waitForElementVisible selector="{{AdminMessagesSection.successMessage}}" stepKey="waitForMessageAppears"/>
|
76 | 68 | <see selector="{{AdminMessagesSection.successMessage}}" userInput="The invoice has been created." stepKey="seeInvoiceCreateSuccess"/>
|
77 | 69 | <grabFromCurrentUrl regex="~/order_id/(\d+)/~" stepKey="grabOrderId"/>
|
78 | 70 | <seeInCurrentUrl url="{{AdminOrderDetailsPage.url('$grabOrderId')}}" stepKey="seeViewOrderPageInvoice"/>
|
79 | 71 | </actionGroup>
|
80 |
| - |
81 | 72 | <!--Filter invoices by order id -->
|
82 | 73 | <actionGroup name="filterInvoiceGridByOrderId">
|
83 | 74 | <arguments>
|
|
0 commit comments