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