|
41 | 41 | <fillField selector="{{AdminManageSwatchSection.swatchAdminDescriptionByIndex('2')}}" userInput="Something blue." stepKey="fillDescription2"/>
|
42 | 42 | <click selector="{{AttributePropertiesSection.AdvancedProperties}}" stepKey="expandAdvancedProperties"/>
|
43 | 43 | <selectOption selector="{{AttributePropertiesSection.Scope}}" userInput="1" stepKey="selectGlobalScope"/>
|
44 |
| - <click selector="{{AttributePropertiesSection.Save}}" stepKey="clickSave"/> |
| 44 | + <!-- Save and verify --> |
| 45 | + <click selector="{{AttributePropertiesSection.SaveAndEdit}}" stepKey="clickSave"/> |
| 46 | + <seeInField selector="{{AttributePropertiesSection.DefaultLabel}}" userInput="{{ProductAttributeFrontendLabel.label}}" stepKey="seeDefaultLabel"/> |
| 47 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchText('1')}}" userInput="red" stepKey="seeSwatch0"/> |
| 48 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchAdminDescription('1')}}" userInput="Something red." stepKey="seeDescription0"/> |
| 49 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchText('2')}}" userInput="green" stepKey="seeSwatch1"/> |
| 50 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchAdminDescription('2')}}" userInput="Something green." stepKey="seeDescription1"/> |
| 51 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchText('3')}}" userInput="blue" stepKey="seeSwatch2"/> |
| 52 | + <seeInField selector="{{AdminManageSwatchSection.nthSwatchAdminDescription('3')}}" userInput="Something blue." stepKey="seeDescription2"/> |
45 | 53 |
|
46 | 54 | <!-- Create a configurable product to verify the storefront with -->
|
47 | 55 | <amOnPage url="{{AdminProductIndexPage.url}}" stepKey="amOnProductGridPage"/>
|
48 | 56 | <waitForPageLoad time="30" stepKey="waitForProductGrid"/>
|
49 |
| - <click selector="{{AdminProductGridActionSection.addProductToggle}}" stepKey="clickOnAddProductToggle"/> |
50 |
| - <click selector="{{AdminProductGridActionSection.addConfigurableProduct}}" stepKey="clickOnAddConfigurableProduct"/> |
51 |
| - <fillField userInput="{{_defaultProduct.name}}" selector="{{AdminProductFormSection.productName}}" stepKey="fillName"/> |
52 |
| - <fillField userInput="{{_defaultProduct.sku}}" selector="{{AdminProductFormSection.productSku}}" stepKey="fillSKU"/> |
53 |
| - <fillField userInput="{{_defaultProduct.price}}" selector="{{AdminProductFormSection.productPrice}}" stepKey="fillPrice"/> |
54 |
| - <fillField userInput="{{_defaultProduct.quantity}}" selector="{{AdminProductFormSection.productQuantity}}" stepKey="fillQuantity"/> |
| 57 | + <actionGroup ref="goToCreateProductPage" stepKey="goToCreateConfigurableProduct"> |
| 58 | + <argument name="product" value="BaseConfigurableProduct"/> |
| 59 | + </actionGroup> |
55 | 60 | <click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="openSeoSection"/>
|
56 | 61 | <fillField userInput="{{_defaultProduct.urlKey}}" selector="{{AdminProductSEOSection.urlKeyInput}}" stepKey="fillUrlKey"/>
|
| 62 | + <actionGroup ref="fillMainProductForm" stepKey="fillProductForm"> |
| 63 | + <argument name="product" value="BaseConfigurableProduct"/> |
| 64 | + </actionGroup> |
57 | 65 |
|
58 | 66 | <!-- Create configurations based off the Text Swatch we created earlier -->
|
59 | 67 | <click selector="{{AdminProductFormConfigurationsSection.createConfigurations}}" stepKey="clickCreateConfigurations"/>
|
|
0 commit comments