|
20 | 20 |
|
21 | 21 | <before> |
22 | 22 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/> |
23 | | - <actionGroup ref="UpdateAllIndexerByScheduleActionGroup" stepKey="updateAnIndexerBySchedule"/> |
24 | | - <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
25 | | - <actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex"> |
26 | | - <argument name="indices" value=""/> |
27 | | - </actionGroup> |
28 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache"> |
29 | | - <argument name="tags" value=""/> |
30 | | - </actionGroup> |
| 23 | + <comment userInput="BIC workaround" stepKey="updateAnIndexerBySchedule"/> |
| 24 | + <comment userInput="BIC workaround" stepKey="enableFlatRate"/> |
| 25 | + <comment userInput="BIC workaround" stepKey="performReindex"/> |
| 26 | + <comment userInput="BIC workaround" stepKey="cleanCache"/> |
| 27 | + |
| 28 | + <!-- Create category for configurable product --> |
| 29 | + <createData entity="SimpleSubCategory" stepKey="firstSimpleCategory"/> |
| 30 | + |
| 31 | + <!-- Create configurable product with two options --> |
| 32 | + <createData entity="ApiConfigurableProduct" stepKey="createFirstConfigProduct"> |
| 33 | + <requiredEntity createDataKey="firstSimpleCategory"/> |
| 34 | + </createData> |
| 35 | + <createData entity="productAttributeWithTwoOptions" stepKey="createFirstConfigProductAttribute"/> |
| 36 | + <createData entity="productAttributeOption1" stepKey="createFirstConfigProductAttributeFirstOption"> |
| 37 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 38 | + </createData> |
| 39 | + <createData entity="productAttributeOption2" stepKey="createFirstConfigProductAttributeSecondOption"> |
| 40 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 41 | + </createData> |
| 42 | + <createData entity="AddToDefaultSet" stepKey="addFirstProductToAttributeSet"> |
| 43 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 44 | + </createData> |
| 45 | + <getData entity="ProductAttributeOptionGetter" index="1" stepKey="getFirstConfigAttributeFirstOption"> |
| 46 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 47 | + </getData> |
| 48 | + |
| 49 | + <!-- Create one child product for configurable product --> |
| 50 | + <createData entity="ApiSimpleOne" stepKey="createFirstConfigFirstChildProduct"> |
| 51 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 52 | + <requiredEntity createDataKey="getFirstConfigAttributeFirstOption"/> |
| 53 | + </createData> |
| 54 | + <createData entity="ConfigurableProductOneOption" stepKey="createFirstConfigProductOption"> |
| 55 | + <requiredEntity createDataKey="createFirstConfigProduct"/> |
| 56 | + <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
| 57 | + <requiredEntity createDataKey="getFirstConfigAttributeFirstOption"/> |
| 58 | + </createData> |
| 59 | + <createData entity="ConfigurableProductAddChild" stepKey="createFirstConfigProductAddFirstChild"> |
| 60 | + <requiredEntity createDataKey="createFirstConfigProduct"/> |
| 61 | + <requiredEntity createDataKey="createFirstConfigFirstChildProduct"/> |
| 62 | + </createData> |
31 | 63 | </before> |
32 | 64 |
|
33 | 65 | <after> |
34 | 66 | <deleteData createDataKey="createFirstConfigProduct" stepKey="deleteConfigProduct"/> |
35 | 67 | <deleteData createDataKey="createFirstConfigFirstChildProduct" stepKey="deleteFirstConfigFirstChildProduct"/> |
36 | 68 | <deleteData createDataKey="firstSimpleCategory" stepKey="deleteCategory"/> |
37 | 69 | <deleteData createDataKey="createFirstConfigProductAttribute" stepKey="deleteFirstConfigProductAttribute"/> |
38 | | - <comment userInput="The test was moved to elasticsearch suite" stepKey="resetCatalogSearchConfiguration"/> |
39 | | - <actionGroup ref="AdminAllIndexerSetUpdateOnSaveActionGroup" stepKey="resetIndexerBackToOriginalState"/> |
| 70 | + <comment userInput="BIC workaround" stepKey="resetCatalogSearchConfiguration"/> |
| 71 | + <comment userInput="BIC workaround" stepKey="resetIndexerBackToOriginalState"/> |
40 | 72 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex"> |
41 | 73 | <argument name="indices" value=""/> |
42 | 74 | </actionGroup> |
43 | | - <actionGroup ref="CliCacheFlushActionGroup" stepKey="cleanCache"> |
44 | | - <argument name="tags" value=""/> |
| 75 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 76 | + <argument name="tags" value="full_page"/> |
45 | 77 | </actionGroup> |
46 | 78 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/> |
47 | 79 | </after> |
48 | 80 |
|
49 | | - <!-- Create category for configurable product --> |
50 | | - <createData entity="SimpleSubCategory" stepKey="firstSimpleCategory"/> |
51 | | - |
52 | | - <!-- Create configurable product with two options --> |
53 | | - <createData entity="ApiConfigurableProduct" stepKey="createFirstConfigProduct"> |
54 | | - <requiredEntity createDataKey="firstSimpleCategory"/> |
55 | | - </createData> |
56 | | - |
57 | | - <createData entity="productAttributeWithTwoOptions" stepKey="createFirstConfigProductAttribute"/> |
58 | | - |
59 | | - <createData entity="productAttributeOption1" stepKey="createFirstConfigProductAttributeFirstOption"> |
60 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
61 | | - </createData> |
62 | | - <createData entity="productAttributeOption2" stepKey="createFirstConfigProductAttributeSecondOption"> |
63 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
64 | | - </createData> |
65 | | - |
66 | | - <createData entity="AddToDefaultSet" stepKey="addFirstProductToAttributeSet"> |
67 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
68 | | - </createData> |
69 | | - |
70 | | - <getData entity="ProductAttributeOptionGetter" index="1" stepKey="getFirstConfigAttributeFirstOption"> |
71 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
72 | | - </getData> |
73 | | - |
74 | | - <!-- Create one child product for configurable product --> |
75 | | - <createData entity="ApiSimpleOne" stepKey="createFirstConfigFirstChildProduct"> |
76 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
77 | | - <requiredEntity createDataKey="getFirstConfigAttributeFirstOption"/> |
78 | | - </createData> |
79 | | - |
80 | | - <createData entity="ConfigurableProductOneOption" stepKey="createFirstConfigProductOption"> |
81 | | - <requiredEntity createDataKey="createFirstConfigProduct"/> |
82 | | - <requiredEntity createDataKey="createFirstConfigProductAttribute"/> |
83 | | - <requiredEntity createDataKey="getFirstConfigAttributeFirstOption"/> |
84 | | - </createData> |
85 | | - |
86 | | - <createData entity="ConfigurableProductAddChild" stepKey="createFirstConfigProductAddFirstChild"> |
87 | | - <requiredEntity createDataKey="createFirstConfigProduct"/> |
88 | | - <requiredEntity createDataKey="createFirstConfigFirstChildProduct"/> |
89 | | - </createData> |
| 81 | + <comment userInput="BIC workaround" stepKey="firstSimpleCategory"/> |
| 82 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProduct"/> |
| 83 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProductAttribute"/> |
| 84 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProductAttributeFirstOption"/> |
| 85 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProductAttributeSecondOption"/> |
| 86 | + <comment userInput="BIC workaround" stepKey="addFirstProductToAttributeSet"/> |
| 87 | + <comment userInput="BIC workaround" stepKey="getFirstConfigAttributeFirstOption"/> |
| 88 | + <comment userInput="BIC workaround" stepKey="createFirstConfigFirstChildProduct"/> |
| 89 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProductOption"/> |
| 90 | + <comment userInput="BIC workaround" stepKey="createFirstConfigProductAddFirstChild"/> |
| 91 | + |
| 92 | + <!-- Reindex --> |
| 93 | + <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex"> |
| 94 | + <argument name="indices" value=""/> |
| 95 | + </actionGroup> |
| 96 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 97 | + <argument name="tags" value="full_page"/> |
| 98 | + </actionGroup> |
90 | 99 |
|
91 | 100 | <!-- Assert first product in category --> |
92 | | - <magentoCron stepKey="runCron"/> |
93 | | - <magentoCron stepKey="runCron1"/> |
94 | | - |
95 | | - <amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront"/> |
96 | | - <waitForPageLoad stepKey="waitForFirstCategoryPageLoad"/> |
97 | | - |
| 101 | + <actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="goToFirstCategoryPageStorefront"> |
| 102 | + <argument name="categoryUrl" value="$firstSimpleCategory.custom_attributes[url_key]$"/> |
| 103 | + </actionGroup> |
| 104 | + <comment userInput="BIC workaround" stepKey="waitForFirstCategoryPageLoad"/> |
98 | 105 | <actionGroup ref="StorefrontCheckCategoryConfigurableProductWithUpdatedPriceActionGroup" stepKey="checkFirstProductPriceInCategory"> |
99 | 106 | <argument name="productName" value="$$createFirstConfigProduct.name$$"/> |
100 | 107 | <argument name="expectedPrice" value="$$createFirstConfigFirstChildProduct.price$$"/> |
101 | 108 | </actionGroup> |
102 | 109 |
|
103 | | - <!-- Search default simple product in grid --> |
104 | | - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="openProductCatalogPage"/> |
105 | | - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterProductGrid"/> |
106 | | - <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="clickFirstRowToOpenDefaultSimpleProduct"> |
107 | | - <argument name="product" value="$$createFirstConfigFirstChildProduct$$"/> |
| 110 | + <!-- Update simple product price --> |
| 111 | + <comment userInput="BIC workaround" stepKey="openProductCatalogPage"/> |
| 112 | + <comment userInput="BIC workaround" stepKey="filterProductGrid"/> |
| 113 | + <comment userInput="BIC workaround" stepKey="clickFirstRowToOpenDefaultSimpleProduct"/> |
| 114 | + <comment userInput="BIC workaround" stepKey="waitUntilProductIsOpened"/> |
| 115 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductEditPage"> |
| 116 | + <argument name="productId" value="$createFirstConfigFirstChildProduct.id$"/> |
108 | 117 | </actionGroup> |
109 | | - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilProductIsOpened"/> |
110 | | - |
111 | | - <!-- Update default simple product with price --> |
| 118 | + <waitForElementVisible selector="{{AdminProductFormSection.productPrice}}" stepKey="waitForProductPriceField"/> |
112 | 119 | <fillField selector="{{AdminProductFormSection.productPrice}}" userInput="150" stepKey="fillSimpleProductPrice"/> |
113 | | - <actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickButtonSave"/> |
114 | | - |
115 | | - <!-- Verify customer see success message --> |
116 | | - <see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
| 120 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickButtonSave"/> |
| 121 | + <waitForText selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
117 | 122 |
|
118 | 123 | <!-- Assert first product in category --> |
119 | | - <magentoCron stepKey="runCron2"/> |
120 | | - <wait time="60" stepKey="waitForUpdateStarts"/> |
121 | | - |
122 | | - <amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront1"/> |
123 | | - <waitForPageLoad stepKey="waitForFirstCategoryPageLoad1"/> |
124 | | - |
| 124 | + <comment userInput="BIC workaround" stepKey="runCron1"/> |
| 125 | + <comment userInput="BIC workaround" stepKey="waitForUpdateStarts"/> |
| 126 | + <actionGroup ref="StorefrontNavigateToCategoryUrlActionGroup" stepKey="goToFirstCategoryPageStorefront1"> |
| 127 | + <argument name="categoryUrl" value="$firstSimpleCategory.custom_attributes[url_key]$"/> |
| 128 | + </actionGroup> |
| 129 | + <comment userInput="BIC workaround" stepKey="waitForFirstCategoryPageLoad1"/> |
125 | 130 | <actionGroup ref="StorefrontCheckCategoryConfigurableProductWithUpdatedPriceActionGroup" stepKey="checkFirstProductPriceInCategory1"> |
126 | 131 | <argument name="productName" value="$$createFirstConfigProduct.name$$"/> |
127 | 132 | <argument name="expectedPrice" value="150"/> |
|
0 commit comments