|
24 | 24 | <actionGroup ref="AddTextSwatchToProductActionGroup" stepKey="createTextSwatchAttribute"> |
25 | 25 | <argument name="attributeName" value="{{textSwatchAttribute.default_label}}"/> |
26 | 26 | <argument name="attributeCode" value="{{textSwatchAttribute.attribute_code}}"/> |
27 | | - <argument name="option1" value="textSwatchOption1"/> |
28 | | - <argument name="option2" value="textSwatchOption2"/> |
29 | | - <argument name="option3" value="textSwatchOption3"/> |
| 27 | + <argument name="option1" value="{{textSwatchOption1.admin_label}}"/> |
| 28 | + <argument name="option2" value="{{textSwatchOption2.admin_label}}"/> |
| 29 | + <argument name="option3" value="{{textSwatchOption3.admin_label}}"/> |
30 | 30 | </actionGroup> |
31 | 31 | <waitForElementVisible selector="{{AdminProductMessagesSection.successMessage}}" stepKey="waitForAttributeSuccessMessage"/> |
32 | 32 | <!-- Precondition7,8: Create new attribute set based on Default --> |
|
78 | 78 | <waitForElementVisible selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" stepKey="waitForTextSwatchAttribute"/> |
79 | 79 | <actionGroup ref="AdminSelectTextSwatchAttributeOptionActionGroup" stepKey="selectFirstOption"> |
80 | 80 | <argument name="attributeCode" value="{{textSwatchAttribute.attribute_code}}"/> |
81 | | - <argument name="optionValue" value="textSwatchOption1"/> |
| 81 | + <argument name="optionValue" value="{{textSwatchOption1.admin_label}}"/> |
82 | 82 | </actionGroup> |
83 | 83 | <!-- Step 7: Select second option - this should deselect the first option automatically --> |
84 | 84 | <actionGroup ref="AdminSelectTextSwatchAttributeOptionActionGroup" stepKey="selectSecondOption"> |
85 | 85 | <argument name="attributeCode" value="{{textSwatchAttribute.attribute_code}}"/> |
86 | | - <argument name="optionValue" value="textSwatchOption2"/> |
| 86 | + <argument name="optionValue" value="{{textSwatchOption2.admin_label}}"/> |
87 | 87 | </actionGroup> |
88 | 88 | <!-- Verify second option is selected --> |
89 | | - <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="textSwatchOption2" stepKey="verifySecondOptionSelected"/> |
| 89 | + <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="{{textSwatchOption2.admin_label}}" stepKey="verifySecondOptionSelected"/> |
90 | 90 | <!-- Step 8: Save product --> |
91 | 91 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/> |
92 | 92 | <!-- Step 9: Edit product and verify second option is still selected --> |
|
98 | 98 | <argument name="product" value="SimpleProduct"/> |
99 | 99 | </actionGroup> |
100 | 100 | <waitForElementVisible selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" stepKey="waitForSwatchAttributeAfterEdit"/> |
101 | | - <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="textSwatchOption2" stepKey="verifySecondOptionStillSelected"/> |
| 101 | + <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="{{textSwatchOption2.admin_label}}" stepKey="verifySecondOptionStillSelected"/> |
102 | 102 | <!-- Change option to third option - previous option should be deselected --> |
103 | 103 | <actionGroup ref="AdminSelectTextSwatchAttributeOptionActionGroup" stepKey="selectThirdOption"> |
104 | 104 | <argument name="attributeCode" value="{{textSwatchAttribute.attribute_code}}"/> |
105 | | - <argument name="optionValue" value="textSwatchOption3"/> |
| 105 | + <argument name="optionValue" value="{{textSwatchOption3.admin_label}}"/> |
106 | 106 | </actionGroup> |
107 | 107 | <!-- Verify third option is selected --> |
108 | | - <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="textSwatchOption3" stepKey="verifyThirdOptionSelected"/> |
| 108 | + <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="{{textSwatchOption3.admin_label}}" stepKey="verifyThirdOptionSelected"/> |
109 | 109 | <!-- Step 10: Save product again --> |
110 | 110 | <actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductAgain"/> |
111 | 111 | <!-- Verify third option persisted after save --> |
112 | 112 | <waitForElementVisible selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" stepKey="waitForSwatchAttributeAfterSecondSave"/> |
113 | | - <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="textSwatchOption3" stepKey="verifyThirdOptionPersisted"/> |
| 113 | + <seeOptionIsSelected selector="{{AdminProductAttributesSection.attributeDropdownByCode(textSwatchAttribute.attribute_code)}}" userInput="{{textSwatchOption3.admin_label}}" stepKey="verifyThirdOptionPersisted"/> |
114 | 114 | </test> |
115 | 115 | </tests> |
0 commit comments