|
21 | 21 |
|
22 | 22 | <before>
|
23 | 23 | <!--Create product-->
|
24 |
| - <createData stepKey="category" entity="SimpleSubCategory"/> |
25 |
| - <createData stepKey="product" entity="SimpleProduct"> |
26 |
| - <requiredEntity createDataKey="category"/> |
27 |
| - </createData> |
| 24 | + <createData entity="SimpleProduct2" stepKey="createProduct"/> |
28 | 25 | </before>
|
29 | 26 |
|
30 | 27 | <!--Go to Storefront-->
|
|
41 | 38 | <argument name="message" value="Thank you for registering with Main Website Store."/>
|
42 | 39 | </actionGroup>
|
43 | 40 |
|
44 |
| - <!-- Add simple product to cart --> |
45 |
| - <actionGroup ref="AddSimpleProductToCartActionGroup" stepKey="addProductToCart1"> |
46 |
| - <argument name="product" value="$$product$$"/> |
| 41 | + <!-- Add product to cart --> |
| 42 | + <actionGroup ref="OpenStoreFrontProductPageActionGroup" stepKey="openProductPage"> |
| 43 | + <argument name="productUrlKey" value="$$createProduct.custom_attributes[url_key]$$"/> |
| 44 | + </actionGroup> |
| 45 | + <actionGroup ref="StorefrontAddProductToCartActionGroup" stepKey="addProductToCart"> |
| 46 | + <argument name="product" value="$$createProduct$$"/> |
| 47 | + <argument name="productCount" value="1"/> |
47 | 48 | </actionGroup>
|
48 | 49 |
|
49 | 50 | <!--Proceed to shipment-->
|
|
58 | 59 |
|
59 | 60 | <!--Fill cart data-->
|
60 | 61 | <actionGroup ref="CheckoutSelectCheckMoneyOrderPaymentActionGroup" stepKey="selectCheckMoneyOrderPayment" />
|
| 62 | + <click selector="{{StorefrontCheckoutPaymentMethodSection.billingAddressSameAsShipping}}" stepKey="checkBillingAddressSameAsShippingCheckbox"/> |
61 | 63 |
|
62 | 64 | <actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="placeorder">
|
63 | 65 | <argument name="orderNumberMessage" value="CONST.successCheckoutOrderNumberMessage" />
|
|
71 | 73 |
|
72 | 74 | <after>
|
73 | 75 | <!--Delete created Product-->
|
74 |
| - <deleteData stepKey="deleteProduct" createDataKey="product"/> |
75 |
| - <deleteData stepKey="deleteCategory" createDataKey="category"/> |
| 76 | + <deleteData stepKey="deleteProduct" createDataKey="createProduct"/> |
76 | 77 | </after>
|
77 | 78 | </test>
|
78 | 79 | </tests>
|
0 commit comments