|
49 | 49 | <actionGroup ref="GotoCatalogProductsPageActionGroup" stepKey="goToCatalogProductsPage"/>
|
50 | 50 | <actionGroup ref="GotoConfigurableProductPageActionGroup" stepKey="goToConfigurableProductPage"/>
|
51 | 51 | <!-- Assert Page title and Fill New product information-->
|
52 |
| - <waitForText selector="{{AdminHeaderSection.pageTitle}}" userInput="New Product" stepKey="seeNewProductPageTitle"/> |
53 | 52 | <waitForElementVisible selector="{{NewProduct.productName}}" stepKey="waitForProductNameToBeDisplayed"/>
|
54 | 53 | <fillField stepKey="fillInProductNameFields" selector="{{NewProduct.productName}}" userInput="{{ApiConfigurableProduct.name}}"/>
|
55 | 54 | <waitForElementVisible selector="{{NewProduct.productSku}}" stepKey="waitForProductSkuToBeDisplayed"/>
|
|
63 | 62 | <click stepKey="clickOnCreateConfigurationsButton" selector="{{NewProduct.createConfigurationButton}}"/>
|
64 | 63 | <waitForPageLoad stepKey="waitForCreateProductConfigurationPageToLoad"/>
|
65 | 64 | <!-- Click on create Attribute buttons-->
|
| 65 | + <waitForElementClickable selector="{{NewProduct.createNewAttributeButton}}" stepKey="waitForClickOnCreateNewAttributeButton"/> |
66 | 66 | <click stepKey="clickOnCreateNewAttributeButton" selector="{{NewProduct.createNewAttributeButton}}"/>
|
67 | 67 | <waitForPageLoad stepKey="waitForNewAttributePageLoad"/>
|
68 | 68 | <!--Fill option 1 -->
|
69 |
| - <!--Fill option 1 --> |
70 | 69 | <actionGroup ref="AdminCreateNewDefaultAttributeForAsWithOptionActionGroup" stepKey="fillOption1">
|
71 | 70 | <argument name="defaultLabel" value="{{sizeAttribute.default_label}}"/>
|
72 | 71 | </actionGroup>
|
|
77 | 76 | <click selector="{{AdminNewAttributePanel.saveAttribute}}" stepKey="clickSaveAttribute"/>
|
78 | 77 | <waitForPageLoad stepKey="waitForSavingAttribute"/>
|
79 | 78 | <!--Select color attribute and size attribute and click on Next-->
|
| 79 | + <waitForElementClickable selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="waitToSelectColorAttribute"/> |
80 | 80 | <click selector="{{AdminGridRow.checkboxByValue('color')}}" stepKey="selectColorAttribute"/>
|
81 | 81 | <actionGroup ref="AdminSelectAttributeInConfigurableAttributesGrid" stepKey="checkFirstAttribute">
|
82 | 82 | <argument name="attributeCode" value="{{sizeAttribute.attribute_code}}"/>
|
83 | 83 | </actionGroup>
|
84 | 84 | <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="waitToClickOnNextButtonAfterSelectingAttribute"/>
|
85 | 85 | <click selector="{{AdminCreateProductConfigurationsPanel.next}}" stepKey="clickOnNextButtonAfterSelectingAttribute"/>
|
86 | 86 | <!--Fill Black and Red options for color-->
|
| 87 | + <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="waitToAddNewColorBlack"/> |
87 | 88 | <click selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="addNewColorBlack"/>
|
| 89 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="waitToSetNameBlack"/> |
88 | 90 | <fillField userInput="{{colorDefaultProductAttribute2.name}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameBlack"/>
|
| 91 | + <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="waitToSaveBlackColor"/> |
89 | 92 | <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveBlackColor"/>
|
| 93 | + <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="waitToAddNewColorRed"/> |
90 | 94 | <click selector="{{AdminCreateProductConfigurationsPanel.optionsWithTitle('Color')}}" stepKey="addNewColorRed"/>
|
| 95 | + <waitForElementVisible selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="waitToSetNameRed"/> |
91 | 96 | <fillField userInput="{{colorProductAttribute2.name}}" selector="{{AdminCreateProductConfigurationsPanel.attributeName}}" stepKey="setNameRed"/>
|
| 97 | + <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="waitToSaveRedColor"/> |
92 | 98 | <click selector="{{AdminCreateProductConfigurationsPanel.saveAttribute}}" stepKey="saveRedColor"/>
|
93 | 99 | <!--Select sizes for size attribute and click on Next-->
|
94 | 100 | <waitForElementClickable selector="{{AdminCreateProductConfigurationsPanel.selectAllByAttribute(sizeAttribute.default_label)}}" stepKey="waitForSelectAllToBeClickableBySizeAttribute"/>
|
|
0 commit comments