|
20 | 20 | <before> |
21 | 21 | <createData entity="CustomerEntityOne" stepKey="createCustomer"/> |
22 | 22 | <!--Create bundle product with fixed price with simple and virtual products in options--> |
23 | | - <createData entity="SimpleProduct2" stepKey="createProductForBundleItem1"> |
| 23 | + <createData entity="SimpleProduct2" stepKey="createSimpleProduct"> |
24 | 24 | <field key="price">100.00</field> |
25 | 25 | </createData> |
26 | | - <createData entity="VirtualProduct" stepKey="createProductForBundleItem2"> |
| 26 | + <createData entity="VirtualProduct" stepKey="createVirtualProduct"> |
27 | 27 | <field key="price">50.00</field> |
28 | 28 | </createData> |
29 | 29 | <createData entity="ApiFixedBundleProduct" stepKey="createFixedBundleProduct"/> |
|
36 | 36 | <createData entity="ApiBundleLink" stepKey="firstLinkOptionToFixedProduct"> |
37 | 37 | <requiredEntity createDataKey="createFixedBundleProduct"/> |
38 | 38 | <requiredEntity createDataKey="createFirstBundleOption"/> |
39 | | - <requiredEntity createDataKey="createProductForBundleItem1"/> |
| 39 | + <requiredEntity createDataKey="createSimpleProduct"/> |
40 | 40 | </createData> |
41 | 41 | <createData entity="ApiBundleLink" stepKey="secondLinkOptionToFixedProduct"> |
42 | 42 | <requiredEntity createDataKey="createFixedBundleProduct"/> |
43 | 43 | <requiredEntity createDataKey="createSecondBundleOption"/> |
44 | | - <requiredEntity createDataKey="createProductForBundleItem2"/> |
| 44 | + <requiredEntity createDataKey="createVirtualProduct"/> |
45 | 45 | </createData> |
46 | 46 | <actionGroup stepKey="loginToAdminPanel" ref="AdminLoginActionGroup"/> |
47 | 47 | <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage"> |
48 | | - <argument name="productId" value="$$createFixedBundleProduct.id$$"/> |
| 48 | + <argument name="productId" value="$createFixedBundleProduct.id$"/> |
49 | 49 | </actionGroup> |
50 | 50 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/> |
51 | 51 | <!--Perform reindex and flush cache--> |
52 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
53 | | - <argument name="indices" value=""/> |
54 | | - </actionGroup> |
55 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache"> |
56 | | - <argument name="tags" value=""/> |
57 | | - </actionGroup> |
| 52 | + <actionGroup ref="AdminReindexAndFlushCache" stepKey="reindexAndFlushCache"/> |
58 | 53 | </before> |
59 | 54 | <after> |
60 | | - <deleteData createDataKey="createProductForBundleItem1" stepKey="deleteProductForBundleItem1"/> |
61 | | - <deleteData createDataKey="createProductForBundleItem2" stepKey="deleteProductForBundleItem2"/> |
| 55 | + <deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProductForBundleItem"/> |
| 56 | + <deleteData createDataKey="createVirtualProduct" stepKey="deleteVirtualProductForBundleItem"/> |
62 | 57 | <deleteData createDataKey="createFixedBundleProduct" stepKey="deleteBundleProduct"/> |
63 | 58 | <deleteData createDataKey="createCustomer" stepKey="deleteCustomer"/> |
64 | 59 | <actionGroup ref="AdminClearFiltersActionGroup" stepKey="clearProductsGridFilters"/> |
65 | 60 | <waitForPageLoad stepKey="waitForClearProductsGridFilters"/> |
66 | | - <actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/> |
67 | 61 | </after> |
68 | 62 | <!--Login customer on storefront--> |
69 | 63 | <actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginCustomer"> |
|
73 | 67 | <actionGroup ref="StorefrontOpenProductEntityPageActionGroup" stepKey="openBundleProductPage"> |
74 | 68 | <argument name="product" value="$createFixedBundleProduct$"/> |
75 | 69 | </actionGroup> |
76 | | - <!-- Add bundle to cart --> |
| 70 | + <!--Add bundle to cart--> |
77 | 71 | <actionGroup ref="StorefrontSelectCustomizeAndAddToTheCartButtonActionGroup" stepKey="clickAddToCart"> |
78 | | - <argument name="productUrl" value="$$createFixedBundleProduct.name$$"/> |
| 72 | + <argument name="productUrl" value="$createFixedBundleProduct.name$"/> |
79 | 73 | </actionGroup> |
80 | 74 | <actionGroup ref="StorefrontEnterProductQuantityAndAddToTheCartActionGroup" stepKey="enterProductQuantityAndAddToTheCart"> |
81 | 75 | <argument name="quantity" value="1"/> |
|
0 commit comments