|
19 | 19 |
|
20 | 20 | <before>
|
21 | 21 | <actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
|
22 |
| - <actionGroup ref="UpdateAllIndexerByScheduleActionGroup" stepKey="updateAnIndexerBySchedule"/> |
23 |
| - <magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/> |
24 |
| - <magentoCLI command="indexer:reindex" stepKey="performReindex"/> |
25 |
| - <magentoCLI command="cache:flush" stepKey="cleanCache"/> |
| 22 | + <comment userInput="BIC workaround" stepKey="updateAnIndexerBySchedule"/> |
| 23 | + <comment userInput="BIC workaround" stepKey="enableFlatRate"/> |
| 24 | + <comment userInput="BIC workaround" stepKey="performReindex"/> |
| 25 | + <comment userInput="BIC workaround" stepKey="cleanCache"/> |
26 | 26 | </before>
|
27 | 27 |
|
28 | 28 | <after>
|
29 | 29 | <deleteData createDataKey="createFirstConfigProduct" stepKey="deleteConfigProduct"/>
|
30 | 30 | <deleteData createDataKey="createFirstConfigFirstChildProduct" stepKey="deleteFirstConfigFirstChildProduct"/>
|
31 | 31 | <deleteData createDataKey="firstSimpleCategory" stepKey="deleteCategory"/>
|
32 | 32 | <deleteData createDataKey="createFirstConfigProductAttribute" stepKey="deleteFirstConfigProductAttribute"/>
|
33 |
| - <comment userInput="The test was moved to elasticsearch suite" stepKey="resetCatalogSearchConfiguration"/> |
34 |
| - <actionGroup ref="AdminAllIndexerSetUpdateOnSaveActionGroup" stepKey="resetIndexerBackToOriginalState"/> |
35 |
| - <magentoCLI command="indexer:reindex" stepKey="performReindex"/> |
36 |
| - <magentoCLI command="cache:flush" stepKey="cleanCache"/> |
| 33 | + <comment userInput="BIC workaround" stepKey="resetCatalogSearchConfiguration"/> |
| 34 | + <comment userInput="BIC workaround" stepKey="resetIndexerBackToOriginalState"/> |
| 35 | + <comment userInput="BIC workaround" stepKey="performReindex"/> |
| 36 | + <comment userInput="BIC workaround" stepKey="cleanCache"/> |
37 | 37 | <actionGroup ref="AdminLogoutActionGroup" stepKey="logoutOfAdmin"/>
|
38 | 38 | </after>
|
39 | 39 |
|
|
79 | 79 | <requiredEntity createDataKey="createFirstConfigFirstChildProduct"/>
|
80 | 80 | </createData>
|
81 | 81 |
|
82 |
| - <!-- Perform CLI reindex --> |
| 82 | + <!-- Reindex --> |
83 | 83 | <actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
|
84 | 84 | <argument name="indices" value=""/>
|
85 | 85 | </actionGroup>
|
| 86 | + <actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache"> |
| 87 | + <argument name="tags" value="full_page"/> |
| 88 | + </actionGroup> |
| 89 | + |
86 | 90 | <!-- Assert first product in category -->
|
87 | 91 | <amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront"/>
|
88 | 92 | <waitForPageLoad stepKey="waitForFirstCategoryPageLoad"/>
|
|
92 | 96 | <argument name="expectedPrice" value="$$createFirstConfigFirstChildProduct.price$$"/>
|
93 | 97 | </actionGroup>
|
94 | 98 |
|
95 |
| - <!-- Search default simple product in grid --> |
96 |
| - <actionGroup ref="AdminClearFiltersActionGroup" stepKey="openProductCatalogPage"/> |
97 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="filterProductGrid"/> |
98 |
| - <actionGroup ref="OpenEditProductOnBackendActionGroup" stepKey="clickFirstRowToOpenDefaultSimpleProduct"> |
99 |
| - <argument name="product" value="$$createFirstConfigFirstChildProduct$$"/> |
100 |
| - </actionGroup> |
101 |
| - <comment userInput="Comment is added to preserve the step key for backward compatibility" stepKey="waitUntilProductIsOpened"/> |
102 |
| - |
103 | 99 | <!-- Update default simple product with price -->
|
| 100 | + <comment userInput="BIC workaround" stepKey="openProductCatalogPage"/> |
| 101 | + <comment userInput="BIC workaround" stepKey="filterProductGrid"/> |
| 102 | + <comment userInput="BIC workaround" stepKey="clickFirstRowToOpenDefaultSimpleProduct"/> |
| 103 | + <comment userInput="BIC workaround" stepKey="waitUntilProductIsOpened"/> |
| 104 | + <actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="openProductEditPage"> |
| 105 | + <argument name="productId" value="$createFirstConfigFirstChildProduct.id$"/> |
| 106 | + </actionGroup> |
104 | 107 | <fillField selector="{{AdminProductFormSection.productPrice}}" userInput="150" stepKey="fillSimpleProductPrice"/>
|
105 |
| - <actionGroup ref="AdminProductFormSaveButtonClickActionGroup" stepKey="clickButtonSave"/> |
| 108 | + <actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickButtonSave"/> |
106 | 109 |
|
107 | 110 | <!-- Verify customer see success message -->
|
108 |
| - <see selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
| 111 | + <waitForText selector="{{AdminProductFormSection.successMessage}}" userInput="You saved the product." stepKey="seeAssertSimpleProductSaveSuccessMessage"/> |
109 | 112 |
|
110 | 113 | <!-- Assert first product in category -->
|
111 |
| - <magentoCLI command="cron:run" stepKey="runCron1"/> |
112 |
| - <wait time="60" stepKey="waitForUpdateStarts"/> |
| 114 | + <comment userInput="BIC workaround" stepKey="runCron1"/> |
| 115 | + <comment userInput="BIC workaround" stepKey="waitForUpdateStarts"/> |
113 | 116 |
|
114 | 117 | <amOnPage url="{{StorefrontCategoryPage.url($$firstSimpleCategory.custom_attributes[url_key]$$)}}" stepKey="goToFirstCategoryPageStorefront1"/>
|
115 | 118 | <waitForPageLoad stepKey="waitForFirstCategoryPageLoad1"/>
|
|
0 commit comments