Skip to content

Commit 40e12d9

Browse files
committed
MC-248: Admin should be able to create simple product with two custom options
- Create the elements to be used in the custom options section
1 parent 2722448 commit 40e12d9

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Section/AdminCustomOptionsSection.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@
99
<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1010
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
1111
<section name="AdminCustomOptionsSection">
12-
<element name="customizableOptions" type="block" selector="//div//span[text() = 'Customizable Options']"/>
12+
<element name="customizableOptions" type="block" selector="div[data-index='custom_options']"/>
13+
<element name="addOption" type="button" selector="div[data-index='custom_options'] button.action-basic"/>
14+
15+
<element name="optionTitle" type="input" selector=".data-row:last-of-type ._required input" />
16+
<element name="optionTypeParent" type="block" selector=".data-row:last-of-type .admin__action-multiselect-text" />
17+
<element name="addValue" type="button" selector=".data-row:last-of-type [data-action='add_new_row']" />
18+
<element name="valueTitle" type="input" selector=".data-row:last-of-type [data-index='title] input" />
19+
<element name="valuePrice" type="input" selector=".data-row:last-of-type [data-index='price'] input" />
20+
21+
<element name="radioButton" type="block" selector="//label[text()='Radio Buttons'][ancestor::*[contains(@class, '_active')]]" />
22+
1323
</section>
14-
</sections>
24+
</sections>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,7 @@
3737

3838
<click stepKey="clickCustomizableOptions" selector="{{AdminCustomOptionsSection.customizableOptions}}" />
3939

40+
41+
4042
</test>
4143
</tests>

0 commit comments

Comments
 (0)