Skip to content

Commit 8f39de2

Browse files
Update AdminAddCustomOptionsActionGroup.xml
1 parent 37eee08 commit 8f39de2

File tree

1 file changed

+6
-95
lines changed

1 file changed

+6
-95
lines changed

app/code/Magento/Catalog/Test/Mftf/ActionGroup/AdminAddCustomOptionsActionGroup.xml

Lines changed: 6 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -9,105 +9,16 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminAddCustomOptionsActionGroup">
1111
<annotations>
12-
<description>Clicks on 'Add Option'. Adds the 22 provided Options under the provided Custom Option Name to a Product on the Admin Product creation/edit page under the 'Customizable Options' section.</description>
12+
<description>Clicks on 'Add Option'. Adds the provided Options under the provided Custom Option Name to a Product on the Admin Product creation/edit page under the 'Customizable Options' section.</description>
1313
</annotations>
1414
<arguments>
15-
<argument name="firstOption" type="entity"/>
16-
<argument name="secondOption" type="entity"/>
17-
<argument name="thirdOption" type="entity"/>
18-
<argument name="fourthOption" type="entity"/>
19-
<argument name="fifthOption" type="entity"/>
20-
<argument name="sixthOption" type="entity"/>
21-
<argument name="seventhOption" type="entity"/>
22-
<argument name="eighthOption" type="entity"/>
23-
<argument name="ninthOption" type="entity"/>
24-
<argument name="tenthOption" type="entity"/>
25-
<argument name="eleventhOption" type="entity"/>
26-
<argument name="twelfthOption" type="entity"/>
27-
<argument name="thirteenthOption" type="entity"/>
28-
<argument name="fourteenthOption" type="entity"/>
29-
<argument name="fifteenthOption" type="entity"/>
30-
<argument name="sixteenthOption" type="entity"/>
31-
<argument name="seventeenthOption" type="entity"/>
32-
<argument name="eighteenthOption" type="entity"/>
33-
<argument name="nineteenthOption" type="entity"/>
34-
<argument name="twentiethOption" type="entity"/>
35-
<argument name="twentyfirstOption" type="entity"/>
36-
<argument name="twentytwoOption" type="entity"/>
15+
<argument name="customOptionName" type="string"/>
16+
<argument name="customOption" type="entity"/>
17+
3718
</arguments>
38-
<click stepKey="clickAddOptions" selector="{{AdminProductCustomizableOptionsSection.addOptionBtn}}"/>
39-
<waitForPageLoad stepKey="waitForAddProductPageLoad"/>
40-
<!-- Fill in the option and select the type of drop down -->
41-
<fillField stepKey="fillInOptionTitle" selector="{{AdminProductCustomizableOptionsSection.lastOptionTitle}}" userInput="{{customOptionName}}"/>
42-
<click stepKey="clickOptionTypeParent" selector="{{AdminProductCustomizableOptionsSection.lastOptionTypeParent}}"/>
43-
<waitForPageLoad stepKey="waitForDropdownOpen"/>
44-
<click stepKey="clickOptionType" selector="{{AdminProductCustomizableOptionsSection.optionType('Drop-down')}}"/>
4519
<!-- Add option based on the parameter -->
4620
<click stepKey="clickAddFirstValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
47-
<fillField stepKey="fillInFirstOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{firstOption.title}}"/>
48-
<fillField stepKey="fillInFirstOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{firstOption.price}}"/>
49-
<click stepKey="clickAddSecondValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
50-
<fillField stepKey="fillInSecondOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{secondOption.title}}"/>
51-
<fillField stepKey="fillInSecondOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{secondOption.price}}"/>
52-
<click stepKey="clickAddThirdValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
53-
<fillField stepKey="fillInThirdOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{thirdOption.title}}"/>
54-
<fillField stepKey="fillInThirdOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{thirdOption.price}}"/>
55-
<click stepKey="clickAddFourthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
56-
<fillField stepKey="fillInFourthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{fourthOption.title}}"/>
57-
<fillField stepKey="fillInFourthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{fourthOption.price}}"/>
58-
<click stepKey="clickAddFifthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
59-
<fillField stepKey="fillInFifthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{fifthOption.title}}"/>
60-
<fillField stepKey="fillInFifthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{fifthOption.price}}"/>
61-
<click stepKey="clickAddSixthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
62-
<fillField stepKey="fillInSixthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{sixthOption.title}}"/>
63-
<fillField stepKey="fillInSixthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{sixthOption.price}}"/>
64-
<click stepKey="clickAddSeventhValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
65-
<fillField stepKey="fillInSeventhOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{seventhOption.title}}"/>
66-
<fillField stepKey="fillInSeventhOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{seventhOption.price}}"/>
67-
<click stepKey="clickAddEighthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
68-
<fillField stepKey="fillInEighthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{eighthOption.title}}"/>
69-
<fillField stepKey="fillInEighthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{eighthOption.price}}"/>
70-
<click stepKey="clickAddNinthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
71-
<fillField stepKey="fillInNinthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{ninthOption.title}}"/>
72-
<fillField stepKey="fillInNinthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{ninthOption.price}}"/>
73-
<click stepKey="clickAddTenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
74-
<fillField stepKey="fillInTenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{tenthOption.title}}"/>
75-
<fillField stepKey="fillInTenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{tenthOption.price}}"/>
76-
<click stepKey="clickAddEleventhValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
77-
<fillField stepKey="fillInEleventhOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{eleventhOption.title}}"/>
78-
<fillField stepKey="fillInEleventhOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{eleventhOption.price}}"/>
79-
<click stepKey="clickAddTwelfthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
80-
<fillField stepKey="fillInTwelfthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{twelfthOption.title}}"/>
81-
<fillField stepKey="fillInTwelfthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{twelfthOption.price}}"/>
82-
<click stepKey="clickAddThirteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
83-
<fillField stepKey="fillInThirteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{thirteenthOption.title}}"/>
84-
<fillField stepKey="fillInThirteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{thirteenthOption.price}}"/>
85-
<click stepKey="clickAddFourteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
86-
<fillField stepKey="fillInFourteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{fourteenthOption.title}}"/>
87-
<fillField stepKey="fillInFourteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{fourteenthOption.price}}"/>
88-
<click stepKey="clickAddFifteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
89-
<fillField stepKey="fillInFifteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{fifteenthOption.title}}"/>
90-
<fillField stepKey="fillInFifteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{fifteenthOption.price}}"/>
91-
<click stepKey="clickAddSixteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
92-
<fillField stepKey="fillInSixteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{sixteenthOption.title}}"/>
93-
<fillField stepKey="fillInSixteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{sixteenthOption.price}}"/>
94-
<click stepKey="clickAddSeventeenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
95-
<fillField stepKey="fillInSeventeenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{seventeenthOption.title}}"/>
96-
<fillField stepKey="fillInSeventeenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{seventeenthOption.price}}"/>
97-
<click stepKey="clickAddEighteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
98-
<fillField stepKey="fillInEighteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{eighteenthOption.title}}"/>
99-
<fillField stepKey="fillInEighteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{eighteenthOption.price}}"/>
100-
<click stepKey="clickAddNineteenthValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
101-
<fillField stepKey="fillInNineteenthOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{nineteenthOption.title}}"/>
102-
<fillField stepKey="fillInNineteenthOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{nineteenthOption.price}}"/>
103-
<click stepKey="clickAddTwentiethValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
104-
<fillField stepKey="fillInTwentiethOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{twentiethOption.title}}"/>
105-
<fillField stepKey="fillInTwentiethOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{twentiethOption.price}}"/>
106-
<click stepKey="clickAddTwentyfirstValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
107-
<fillField stepKey="fillInTwentyfirstOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{twentyfirstOption.title}}"/>
108-
<fillField stepKey="fillInTwentyfirstOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{twentyfirstOption.price}}"/>
109-
<click stepKey="clickAddTwentytwoValue" selector="{{AdminProductCustomizableOptionsSection.addValue}}"/>
110-
<fillField stepKey="fillInTwentytwoOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{twentytwoOption.title}}"/>
111-
<fillField stepKey="fillInTwentytwoOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{twentytwoOption.price}}"/>
21+
<fillField stepKey="fillInCustomOptionValueTitle" selector="{{AdminProductCustomizableOptionsSection.valueTitle}}" userInput="{{customOption.title}}"/>
22+
<fillField stepKey="fillInCustomOptionValuePrice" selector="{{AdminProductCustomizableOptionsSection.valuePrice}}" userInput="{{customOption.price}}"/>
11223
</actionGroup>
11324
</actionGroups>

0 commit comments

Comments
 (0)