Skip to content

Commit 50422ad

Browse files
committed
ACQE-7152 : Admin Create New Update for Simple Product Custom Options
created additional AG and data
1 parent 6acfd6a commit 50422ad

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontAssertCustomOptionValuesInProductDetailsPageActionGroup">
12+
<annotations>
13+
<description>Storefront Assert Custom Option Values In Product Details Page.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="firstOption" type="string" defaultValue="Value2"/>
17+
<argument name="secondOption" type="string" defaultValue="Value3"/>
18+
</arguments>
19+
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" stepKey="waitForOptionDropDownToBeClickable"/>
20+
<click selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" stepKey="clickOption1ValueDropDown"/>
21+
<waitForElement selector="{{StorefrontProductInfoMainSection.customOptionDropDown(firstOption)}}" stepKey="assertValue1InDropDown"/>
22+
<waitForElement selector="{{StorefrontProductInfoMainSection.customOptionDropDown(secondOption)}}" stepKey="assertValue2InDropDown"/>
23+
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" stepKey="againWaitForOptionDropDownToClose"/>
24+
<click selector="{{StorefrontProductInfoMainSection.selectCustomOptionDropDown}}" stepKey="againClickOptionValueDropDownToClose"/>
25+
</actionGroup>
26+
</actionGroups>
27+

app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,4 +1548,10 @@
15481548
<requiredEntity type="product_extension_attribute">EavStock1</requiredEntity>
15491549
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
15501550
</entity>
1551+
<entity name="productWithTwoCustomOption" type="product">
1552+
<var key="sku" entityType="product" entityKey="sku" />
1553+
<data key="file">magento.jpg</data>
1554+
<requiredEntity type="product_option">ProductOptionDropDownFor2</requiredEntity>
1555+
<requiredEntity type="product_option">ProductOptionCheckboxFor2</requiredEntity>
1556+
</entity>
15511557
</entities>

0 commit comments

Comments
 (0)