|
79 | 79 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/>
|
80 | 80 | <waitForPageLoad time="30" stepKey="waitForProductGrid"/>
|
81 | 81 | <actionGroup ref="goToCreateProductPage" stepKey="goToCreateConfigurableProduct">
|
82 |
| - <argument name="product" value="BaseConfigurableProduct"/> |
| 82 | + <argument name="product" value="ApiConfigurableProduct"/> |
| 83 | + </actionGroup> |
| 84 | + <!-- Add image to configurable product --> |
| 85 | + <actionGroup ref="addProductImage" stepKey="addFirstImageForProductConfigurable"> |
| 86 | + <argument name="image" value="MagentoLogo"/> |
| 87 | + </actionGroup> |
| 88 | + <!-- Add image to configurable product --> |
| 89 | + <actionGroup ref="addProductImage" stepKey="addSecondImageForProductConfigurable"> |
| 90 | + <argument name="image" value="TestImageNew"/> |
83 | 91 | </actionGroup>
|
84 | 92 | <actionGroup ref="fillMainProductForm" stepKey="fillProductForm">
|
85 |
| - <argument name="product" value="BaseConfigurableProduct"/> |
| 93 | + <argument name="product" value="ApiConfigurableProduct"/> |
86 | 94 | </actionGroup>
|
87 | 95 | <searchAndMultiSelectOption selector="{{AdminProductFormSection.categoriesDropdown}}" parameterArray="[$$createCategory.name$$]" stepKey="fillCategory"/>
|
88 | 96 |
|
89 | 97 | <!-- Create configurations based off the visual swatch we created earlier -->
|
90 |
| - <actionGroup ref="createConfigurationsForAttribute" stepKey="createConfigurations"> |
| 98 | + <actionGroup ref="createConfigurationsForAttributeWithImages" stepKey="createConfigurations"> |
91 | 99 | <argument name="attributeCode" value="{{ProductAttributeFrontendLabel.label}}"/>
|
| 100 | + <argument name="image" value="TestImageAdobe"/> |
92 | 101 | </actionGroup>
|
93 | 102 |
|
94 | 103 | <!-- Go to the category page -->
|
|
111 | 120 |
|
112 | 121 | <!-- Click a swatch and expect to see the configurable product, not see the simple product -->
|
113 | 122 | <click selector="{{StorefrontCategorySidebarSection.attributeNthOption(ProductAttributeFrontendLabel.label, '1')}}" stepKey="filterBySwatch1"/>
|
114 |
| - <see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{BaseConfigurableProduct.name}}" stepKey="seeConfigurableProduct"/> |
| 123 | + <see selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="{{ApiConfigurableProduct.name}}" stepKey="seeConfigurableProduct"/> |
115 | 124 | <dontSee selector="{{StorefrontCategoryMainSection.ProductItemInfo}}" userInput="$$createSimpleProduct.name$$" stepKey="dontSeeSimpleProduct"/>
|
| 125 | + |
| 126 | + <!-- Assert configurable product in storefront product page --> |
| 127 | + <actionGroup ref="AssertProductInStorefrontProductPage" stepKey="AssertProductInStorefrontProductPage"> |
| 128 | + <argument name="product" value="ApiConfigurableProduct"/> |
| 129 | + </actionGroup> |
| 130 | + |
| 131 | + <!-- Assert configurable product image in storefront product page --> |
| 132 | + <actionGroup ref="assertProductImageStorefrontProductPage" stepKey="assertProductImageStorefrontProductPage"> |
| 133 | + <argument name="product" value="ApiConfigurableProduct"/> |
| 134 | + <argument name="image" value="MagentoLogo"/> |
| 135 | + </actionGroup> |
| 136 | + |
| 137 | + <!-- Assert configurable product image in storefront product page --> |
| 138 | + <actionGroup ref="assertProductImageStorefrontProductPage" stepKey="assertProductSecondImageStorefrontProductPage"> |
| 139 | + <argument name="product" value="ApiConfigurableProduct"/> |
| 140 | + <argument name="image" value="TestImageNew"/> |
| 141 | + </actionGroup> |
| 142 | + |
| 143 | + <!-- Click a swatch and expect to see the image from the swatch from the configurable product --> |
| 144 | + <click selector="{{StorefrontProductInfoMainSection.swatchOptionByLabel('adobe-thumb')}}" stepKey="clickSwatchOption"/> |
| 145 | + |
| 146 | + <!-- Assert swatch option image for configurable product image in storefront product page --> |
| 147 | + <actionGroup ref="assertProductImageStorefrontProductPage" stepKey="assertSwatchImageStorefrontProductPage"> |
| 148 | + <argument name="product" value="ApiConfigurableProduct"/> |
| 149 | + <argument name="image" value="TestImageAdobe"/> |
| 150 | + </actionGroup> |
116 | 151 | </test>
|
117 | 152 | </tests>
|
0 commit comments