|
53 | 53 | <actionGroup ref="addProductImage" stepKey="addImageForProduct1">
|
54 | 54 | <argument name="image" value="MagentoLogo"/>
|
55 | 55 | </actionGroup>
|
56 |
| - <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurations"/> |
57 |
| - <actionGroup ref="AdminCreateAttributeForConfigurableProduct" stepKey="createFirstProductAttribute"> |
| 56 | + <actionGroup ref="saveProductForm" stepKey="saveProductForm"/> |
| 57 | + <actionGroup ref="AdminCreateAttributeFromProductPageWithSpecifiedVisibilityScope" stepKey="createAttributeForProduct"> |
58 | 58 | <argument name="attributeName" value="{{colorProductAttribute.default_label}}"/>
|
59 | 59 | <argument name="attributeType" value="{{colorProductAttribute.input_type}}"/>
|
| 60 | + <argument name="scope" value="Global"/> |
60 | 61 | </actionGroup>
|
| 62 | + <reloadPage stepKey="reloadPage"/> |
| 63 | + <waitForPageLoad stepKey="waitForProductPageReload"/> |
| 64 | + <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurations"/> |
61 | 65 | <waitForPageLoad stepKey="waitForFilters"/>
|
62 | 66 | <actionGroup ref="createOptionsForAttribute" stepKey="createOptions">
|
63 | 67 | <argument name="attributeName" value="{{colorProductAttribute.default_label}}"/>
|
|
106 | 110 | <waitForPageLoad stepKey="waitForSummaryPageLoad"/>
|
107 | 111 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButtonToGenerateConfigs"/>
|
108 | 112 | <waitForPageLoad stepKey="waitForConfigurableProductPageLoad"/>
|
109 |
| - <actionGroup ref="saveConfiguredProduct" stepKey="saveProductForm"/> |
| 113 | + <actionGroup ref="saveProductForm" stepKey="saveProduct"/> |
110 | 114 | <!--Duplicate the product-->
|
111 | 115 | <comment userInput="Duplicate the product" stepKey="commentDuplicateProduct"/>
|
112 | 116 | <actionGroup ref="AdminFormSaveAndDuplicate" stepKey="saveAndDuplicateProductForm"/>
|
113 | 117 | <click selector="{{AdminProductFormSection.enableProductLabel}}" stepKey="clickEnableProduct"/>
|
114 | 118 | <fillField selector="{{AdminProductFormSection.productName}}" userInput="$$createConfigProduct.name$$-Updated" stepKey="fillProductName"/>
|
115 | 119 | <selectOption selector="{{AdminProductFormSection.productStockStatus}}" userInput="1" stepKey="selectInStock"/>
|
116 | 120 | <!--Change product image-->
|
117 |
| - <comment userInput="Change product image" stepKey="commentChangeImage"/> |
118 | 121 | <comment userInput="Change product image" stepKey="commentChangeProductImage"/>
|
119 | 122 | <actionGroup ref="removeProductImage" stepKey="removeProductImage"/>
|
120 | 123 | <actionGroup ref="addProductImage" stepKey="addImageForProduct">
|
|
128 | 131 | <actionGroup ref="AdminConfigurableProductDisableConfigurationsActionGroup" stepKey="disableSecondConfig">
|
129 | 132 | <argument name="productName" value="{{colorConfigurableProductAttribute2.name}}"/>
|
130 | 133 | </actionGroup>
|
| 134 | + <actionGroup ref="saveProductForm" stepKey="saveDuplicatedProductForm"/> |
131 | 135 | <!--Create new configurations with another attribute-->
|
132 | 136 | <comment userInput="Create new configurations with another attribute" stepKey="commentCreateNewConfigurations"/>
|
133 |
| - <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurationsForDuplicatedProduct"/> |
134 |
| - <actionGroup ref="AdminCreateAttributeForConfigurableProduct" stepKey="createFirstProductAttributeForDuplicatedProduct"> |
| 137 | + <actionGroup ref="AdminCreateAttributeFromProductPageWithSpecifiedVisibilityScope" stepKey="createAttributeForDuplicatedProduct"> |
135 | 138 | <argument name="attributeName" value="{{productAttributeColor.default_label}}"/>
|
| 139 | + <argument name="attributeType" value="{{productAttributeColor.input_type}}"/> |
| 140 | + <argument name="scope" value="Global"/> |
136 | 141 | </actionGroup>
|
137 |
| - <waitForPageLoad stepKey="waitForFiltersForDuplicatedProduct"/> |
| 142 | + <reloadPage stepKey="reloadDuplicatedProductPage"/> |
| 143 | + <waitForPageLoad stepKey="waitForDuplicatedProductReload"/> |
| 144 | + <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickOnCreateConfigurationsForDuplicatedProduct"/> |
138 | 145 | <actionGroup ref="createOptionsForAttribute" stepKey="createOptionsForDuplicatedProduct">
|
139 | 146 | <argument name="attributeName" value="{{productAttributeColor.default_label}}"/>
|
140 | 147 | <argument name="firstOptionName" value="{{colorConfigurableProductAttribute1.name}}"/>
|
|
176 | 183 | <waitForPageLoad stepKey="waitForSummaryPageLoadForDuplicatedProduct"/>
|
177 | 184 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButtonToGenerateConfigsForDuplicatedProduct"/>
|
178 | 185 | <waitForPageLoad stepKey="waitForDuplicatedProductPageLoad"/>
|
179 |
| - <actionGroup ref="saveConfiguredProduct" stepKey="saveDuplicatedProductForm"/> |
| 186 | + <actionGroup ref="saveProductForm" stepKey="saveDuplicatedProduct"/> |
180 | 187 | <magentoCLI command="indexer:reindex" stepKey="reindex"/>
|
181 | 188 | <magentoCLI command="cache:flush" stepKey="flushCache"/>
|
182 | 189 | <!--Assert configurable product in category-->
|
|
0 commit comments