|
47 | 47 | <seeElement selector="{{AdminProductMessagesSection.successMessage}}"
|
48 | 48 | stepKey="waitForSuccessMessage"/>
|
49 | 49 | </actionGroup>
|
| 50 | + <!--Clicks Add Attribute and adds the given attribute--> |
| 51 | + <actionGroup name="addProductAttributeInProductModal"> |
| 52 | + <arguments> |
| 53 | + <argument name="attributeCode" type="string"/> |
| 54 | + </arguments> |
| 55 | + <click stepKey="addAttribute" selector="{{AdminProductFormActionSection.addAttributeButton}}"/> |
| 56 | + <conditionalClick selector="{{AdminProductAddAttributeModalSection.clearFilters}}" dependentSelector="{{AdminProductAddAttributeModalSection.clearFilters}}" visible="true" stepKey="clearFilters"/> |
| 57 | + <click stepKey="clickFilters" selector="{{AdminProductAddAttributeModalSection.filters}}"/> |
| 58 | + <fillField stepKey="fillCode" selector="{{AdminProductAddAttributeModalSection.attributeCodeFilter}}" userInput="{{attributeCode}}"/> |
| 59 | + <click stepKey="clickApply" selector="{{AdminProductAddAttributeModalSection.applyFilters}}"/> |
| 60 | + <waitForPageLoad stepKey="waitForFilters"/> |
| 61 | + <checkOption selector="{{AdminProductAddAttributeModalSection.firstRowCheckBox}}" stepKey="checkAttribute"/> |
| 62 | + <click stepKey="addSelected" selector="{{AdminProductAddAttributeModalSection.addSelected}}"/> |
| 63 | + </actionGroup> |
50 | 64 | <!--Clicks createNewAttribute and fills out form-->
|
51 | 65 | <actionGroup name="createProductAttribute">
|
52 | 66 | <arguments>
|
|
58 | 72 | <selectOption selector="{{AttributePropertiesSection.ValueRequired}}" stepKey="checkRequired" userInput="{{attribute.is_required_admin}}"/>
|
59 | 73 | <click stepKey="saveAttribute" selector="{{AttributePropertiesSection.Save}}"/>
|
60 | 74 | </actionGroup>
|
61 |
| - <!-- Inputs default value and attribute code--> |
| 75 | + <!-- Inputs text default value and attribute code--> |
62 | 76 | <actionGroup name="createProductAttributeWithTextField" extends="createProductAttribute" insertAfter="checkRequired">
|
63 | 77 | <click stepKey="openAdvancedProperties" selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}"/>
|
64 | 78 | <fillField stepKey="fillCode" selector="{{AdvancedAttributePropertiesSection.AttributeCode}}" userInput="{{attribute.attribute_code}}"/>
|
65 | 79 | <fillField stepKey="fillDefaultValue" selector="{{AdvancedAttributePropertiesSection.DefaultValueText}}" userInput="{{attribute.default_value}}"/>
|
66 | 80 | </actionGroup>
|
| 81 | + <!-- Inputs date default value and attribute code--> |
| 82 | + <actionGroup name="createProductAttributeWithDateField" extends="createProductAttribute" insertAfter="checkRequired"> |
| 83 | + <arguments> |
| 84 | + <argument name="date" type="string"/> |
| 85 | + </arguments> |
| 86 | + <click stepKey="openAdvancedProperties" selector="{{AdvancedAttributePropertiesSection.AdvancedAttributePropertiesSectionToggle}}"/> |
| 87 | + <fillField stepKey="fillCode" selector="{{AdvancedAttributePropertiesSection.AttributeCode}}" userInput="{{attribute.attribute_code}}"/> |
| 88 | + <fillField stepKey="fillDefaultValue" selector="{{AdvancedAttributePropertiesSection.DefaultValueDate}}" userInput="{{date}}"/> |
| 89 | + </actionGroup> |
| 90 | + <!-- Creates dropdown option at row without saving--> |
| 91 | + <actionGroup name="createAttributeDropdownNthOption"> |
| 92 | + <arguments> |
| 93 | + <argument name="row" type="string"/> |
| 94 | + <argument name="adminName" type="string"/> |
| 95 | + <argument name="frontName" type="string"/> |
| 96 | + </arguments> |
| 97 | + <click stepKey="clickAddOptions" selector="{{AttributePropertiesSection.dropdownAddOptions}}"/> |
| 98 | + <waitForPageLoad stepKey="waitForNewOption"/> |
| 99 | + <fillField stepKey="fillAdmin" selector="{{AttributePropertiesSection.dropdownNthOptionAdmin(row)}}" userInput="{{adminName}}"/> |
| 100 | + <fillField stepKey="fillStoreView" selector="{{AttributePropertiesSection.dropdownNthOptionDefaultStoreView(row)}}" userInput="{{frontName}}"/> |
| 101 | + </actionGroup> |
| 102 | + <!-- Creates dropdown option at row as default--> |
| 103 | + <actionGroup name="createAttributeDropdownNthOptionAsDefault" extends="createAttributeDropdownNthOption"> |
| 104 | + <checkOption selector="{{AttributePropertiesSection.dropdownNthOptionIsDefault(row)}}" stepKey="setAsDefault" after="fillStoreView"/> |
| 105 | + </actionGroup> |
67 | 106 | </actionGroups>
|
0 commit comments