|
8 | 8 |
|
9 | 9 | <actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
10 | 10 | xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd">
|
11 |
| - <!-- Go to checkout from minicart --> |
12 |
| - <actionGroup name="GoToCheckoutFromMinicartActionGroup"> |
13 |
| - <wait stepKey="wait" time="10" /> |
14 |
| - <click selector="{{StorefrontMinicartSection.showCart}}" stepKey="clickCart"/> |
15 |
| - <click selector="{{StorefrontMinicartSection.goToCheckout}}" stepKey="goToCheckout"/> |
16 |
| - <waitForPageLoad stepKey="waitForPageLoad"/> |
17 |
| - </actionGroup> |
18 |
| - |
19 |
| - <!-- Guest checkout filling shipping section --> |
20 |
| - <actionGroup name="GuestCheckoutFillingShippingSectionActionGroup"> |
21 |
| - <arguments> |
22 |
| - <argument name="customerVar"/> |
23 |
| - <argument name="customerAddressVar"/> |
24 |
| - </arguments> |
25 |
| - <fillField selector="{{CheckoutShippingSection.email}}" userInput="{{customerVar.email}}" stepKey="enterEmail"/> |
26 |
| - <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/> |
27 |
| - <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/> |
28 |
| - <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/> |
29 |
| - <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{customerAddressVar.city}}" stepKey="enterCity"/> |
30 |
| - <selectOption selector="{{CheckoutShippingSection.region}}" userInput="{{customerAddressVar.state}}" stepKey="selectRegion"/> |
31 |
| - <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{customerAddressVar.postcode}}" stepKey="enterPostcode"/> |
32 |
| - <fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddressVar.telephone}}" stepKey="enterTelephone"/> |
33 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
34 |
| - <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/> |
35 |
| - <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
36 |
| - <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
37 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
38 |
| - <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/> |
39 |
| - </actionGroup> |
40 |
| - |
41 |
| - <!-- Logged in user checkout filling shipping section --> |
42 |
| - <actionGroup name="LoggedInUserCheckoutFillingShippingSectionActionGroup"> |
43 |
| - <arguments> |
44 |
| - <argument name="customerVar"/> |
45 |
| - <argument name="customerAddressVar"/> |
46 |
| - </arguments> |
47 |
| - <fillField selector="{{CheckoutShippingSection.firstName}}" userInput="{{customerVar.firstname}}" stepKey="enterFirstName"/> |
48 |
| - <fillField selector="{{CheckoutShippingSection.lastName}}" userInput="{{customerVar.lastname}}" stepKey="enterLastName"/> |
49 |
| - <fillField selector="{{CheckoutShippingSection.street}}" userInput="{{customerAddressVar.street[0]}}" stepKey="enterStreet"/> |
50 |
| - <fillField selector="{{CheckoutShippingSection.city}}" userInput="{{customerAddressVar.city}}" stepKey="enterCity"/> |
51 |
| - <selectOption selector="{{CheckoutShippingSection.region}}" userInput="{{customerAddressVar.state}}" stepKey="selectRegion"/> |
52 |
| - <fillField selector="{{CheckoutShippingSection.postcode}}" userInput="{{customerAddressVar.postcode}}" stepKey="enterPostcode"/> |
53 |
| - <fillField selector="{{CheckoutShippingSection.telephone}}" userInput="{{customerAddressVar.telephone}}" stepKey="enterTelephone"/> |
54 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMask"/> |
55 |
| - <click selector="{{CheckoutShippingSection.firstShippingMethod}}" stepKey="selectFirstShippingMethod"/> |
56 |
| - <waitForElement selector="{{CheckoutShippingSection.next}}" time="30" stepKey="waitForNextButton"/> |
57 |
| - <click selector="{{CheckoutShippingSection.next}}" stepKey="clickNext"/> |
58 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
59 |
| - <seeInCurrentUrl url="{{CheckoutPage.url}}/#payment" stepKey="assertCheckoutPaymentUrl"/> |
60 |
| - </actionGroup> |
61 |
| - |
62 |
| - <!-- Check product in checkout cart items --> |
63 |
| - <actionGroup name="CheckProductInCheckoutCartItemsActionGroup"> |
64 |
| - <arguments> |
65 |
| - <argument name="productVar"/> |
66 |
| - </arguments> |
67 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
68 |
| - <conditionalClick selector="{{CheckoutPaymentSection.cartItemsArea}}" dependentSelector="{{CheckoutPaymentSection.cartItemsArea}}" visible="true" stepKey="exposeMiniCart"/> |
69 |
| - <waitForLoadingMaskToDisappear stepKey="waitForLoadingMaskForCartItem"/> |
70 |
| - <waitForElement selector="{{CheckoutPaymentSection.cartItemsAreaActive}}" time="30" stepKey="waitForCartItemsAreaActive"/> |
71 |
| - <see selector="{{CheckoutPaymentSection.cartItems}}" userInput="{{productVar.name}}" stepKey="seeProductInCart"/> |
72 |
| - </actionGroup> |
73 |
| - |
74 |
| - <!-- Check order summary in checkout --> |
75 |
| - <actionGroup name="CheckOrderSummaryInCheckoutActionGroup"> |
76 |
| - <arguments> |
77 |
| - <argument name="subtotal"/> |
78 |
| - <argument name="shippingTotal"/> |
79 |
| - <argument name="shippingMethod"/> |
80 |
| - <argument name="total"/> |
81 |
| - </arguments> |
82 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
83 |
| - <see userInput="${{subtotal}}" selector="{{CheckoutPaymentSection.orderSummarySubtotal}}" stepKey="assertSubtotal"/> |
84 |
| - <see userInput="${{shippingTotal}}" selector="{{CheckoutPaymentSection.orderSummaryShippingTotal}}" stepKey="assertShipping"/> |
85 |
| - <see userInput="{{shippingMethod}}" selector="{{CheckoutPaymentSection.orderSummaryShippingMethod}}" stepKey="assertShippingMethod"/> |
86 |
| - <see userInput="${{total}}" selector="{{CheckoutPaymentSection.orderSummaryTotal}}" stepKey="assertTotal"/> |
87 |
| - </actionGroup> |
88 |
| - |
89 |
| - <!-- Check ship to information in checkout --> |
90 |
| - <actionGroup name="CheckShipToInformationInCheckoutActionGroup"> |
91 |
| - <arguments> |
92 |
| - <argument name="customerVar"/> |
93 |
| - <argument name="customerAddressVar"/> |
94 |
| - </arguments> |
95 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
96 |
| - <see userInput="{{customerVar.firstname}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationFirstName"/> |
97 |
| - <see userInput="{{customerVar.lastname}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationLastName"/> |
98 |
| - <see userInput="{{customerAddressVar.street[0]}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationStreet"/> |
99 |
| - <see userInput="{{customerAddressVar.city}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationCity"/> |
100 |
| - <see userInput="{{customerAddressVar.state}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationState"/> |
101 |
| - <see userInput="{{customerAddressVar.postcode}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationPostcode"/> |
102 |
| - <see userInput="{{customerAddressVar.telephone}}" selector="{{CheckoutPaymentSection.shipToInfomation}}" stepKey="assertShipToInformationTelephone"/> |
103 |
| - </actionGroup> |
104 |
| - |
105 |
| - <!-- Check shipping method in checkout --> |
106 |
| - <actionGroup name="CheckShippingMethodInCheckoutActionGroup"> |
107 |
| - <arguments> |
108 |
| - <argument name="shippingMethod"/> |
109 |
| - </arguments> |
110 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
111 |
| - <see userInput="{{shippingMethod}}" selector="{{CheckoutPaymentSection.shippingMethodInfomation}}" stepKey="assertshippingMethodInfomation"/> |
112 |
| - </actionGroup> |
113 |
| - |
114 |
| - <!-- Checkout select Check/Money Order payment --> |
115 |
| - <actionGroup name="CheckoutSelectCheckMoneyOrderPaymentActionGroup"> |
116 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
117 |
| - <conditionalClick selector="{{CheckoutPaymentSection.checkMoneyOrderPayment}}" dependentSelector="{{CheckoutPaymentSection.billingAddress}}" visible="false" stepKey="clickCheckMoneyOrderPayment" /> |
118 |
| - </actionGroup> |
119 |
| - |
120 |
| - <!-- Check billing address in checkout --> |
121 |
| - <actionGroup name="CheckBillingAddressInCheckoutActionGroup"> |
122 |
| - <arguments> |
123 |
| - <argument name="customerVar"/> |
124 |
| - <argument name="customerAddressVar"/> |
125 |
| - </arguments> |
126 |
| - <waitForElement selector="{{CheckoutPaymentSection.paymentSectionTitle}}" time="30" stepKey="waitForPaymentSectionLoaded"/> |
127 |
| - <see userInput="{{customerVar.firstName}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressFirstName"/> |
128 |
| - <see userInput="{{customerVar.lastName}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressLastName"/> |
129 |
| - <see userInput="{{customerAddressVar.street[0]}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressStreet"/> |
130 |
| - <see userInput="{{customerAddressVar.city}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressCity"/> |
131 |
| - <see userInput="{{customerAddressVar.state}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressState"/> |
132 |
| - <see userInput="{{customerAddressVar.postcode}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressPostcode"/> |
133 |
| - <see userInput="{{customerAddressVar.telephone}}" selector="{{CheckoutPaymentSection.billingAddress}}" stepKey="assertBillingAddressTelephone"/> |
134 |
| - </actionGroup> |
135 |
| - |
136 | 11 | <!-- Checkout place order -->
|
137 | 12 | <actionGroup name="CheckoutPlaceOrderActionGroup">
|
138 | 13 | <arguments>
|
|
0 commit comments