Skip to content

Commit 28eac7e

Browse files
committed
Merge branch 'ACQE-7152' into ACQE-7152-mainline-functional-tests-deployment
2 parents 651928c + 3cd481f commit 28eac7e

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 2024 Adobe
5+
* All Rights Reserved.
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
@@ -1574,4 +1574,10 @@
15741574
<requiredEntity type="product_extension_attribute">EavStock1</requiredEntity>
15751575
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
15761576
</entity>
1577+
<entity name="productWithTwoCustomOptions" type="product">
1578+
<var key="sku" entityType="product" entityKey="sku" />
1579+
<data key="file">magento.jpg</data>
1580+
<requiredEntity type="product_option">ProductOptionDropDownFor2</requiredEntity>
1581+
<requiredEntity type="product_option">ProductOptionCheckboxFor2</requiredEntity>
1582+
</entity>
15771583
</entities>

0 commit comments

Comments
 (0)