Skip to content

Commit 8b9bf3b

Browse files
committed
ACQE-8191: Create different stores with product customizable option price
- Extended AG
1 parent 05b6162 commit 8b9bf3b

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

app/code/Magento/Sales/Test/Mftf/ActionGroup/AdminVerifySimpleProductCustomOptionPriceActionGroup.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,16 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="AdminVerifySimpleProductCustomOptionPriceActionGroup">
10+
<actionGroup name="AdminVerifySimpleProductCustomOptionPriceActionGroup" extends="AddSimpleProductToOrderActionGroup">
1111
<annotations>
1212
<description>Adds the provided Simple Product to an Order. Verify custom option price.</description>
1313
</annotations>
1414
<arguments>
15-
<argument name="product" defaultValue="_defaultProduct" type="entity"/>
1615
<argument name="priceAmount" defaultValue="$1,500.00" type="string"/>
1716
</arguments>
18-
<waitForElementClickable selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="waitForAddProductsButtonToBeClickable"/>
19-
<click selector="{{AdminOrderFormItemsSection.addProducts}}" stepKey="clickAddProducts"/>
20-
<fillField selector="{{AdminOrderFormItemsSection.skuFilter}}" userInput="{{product.sku}}" stepKey="fillSkuFilter"/>
21-
<waitForElementClickable selector="{{AdminOrderFormItemsSection.search}}" stepKey="waitForSearchButtonToBeClickable"/>
22-
<click selector="{{AdminOrderFormItemsSection.search}}" stepKey="clickSearch"/>
23-
<scrollTo selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" x="0" y="-100" stepKey="scrollToCheckColumn"/>
24-
<checkOption selector="{{AdminOrderFormItemsSection.rowCheck('1')}}" stepKey="selectProduct"/>
25-
<waitForPageLoad stepKey="waitForProductLoad"/>
17+
<remove keyForRemoval="fillProductQty"/>
18+
<remove keyForRemoval="scrollToAddSelectedButton"/>
19+
<remove keyForRemoval="clickAddSelectedProducts"/>
2620
<waitForElementVisible selector="{{AdminOrderFormItemsSection.optionPrice(priceAmount)}}" stepKey="assertOptionPrice"/>
2721
</actionGroup>
2822
</actionGroups>

app/code/Magento/Sales/Test/Mftf/Test/AdminVerifyDifferentStoreCustomizableOptionPricesTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProductInFirstStoreView"/>
8585
<!--Change Scope to Default store view and change price of custom option-->
8686
<actionGroup ref="SwitchToTheNewStoreViewActionGroup" stepKey="changeScopeToDefaultStoreView">
87-
<argument name="storeViewName" value="'Default Store View'"/>
87+
<argument name="storeViewName" value="{{_defaultStore.name}}"/>
8888
</actionGroup>
8989
<scrollTo selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" stepKey="scrollToAddButtonOptionInDefaultStoreView"/>
9090
<conditionalClick selector="{{AdminProductCustomizableOptionsSection.customizableOptions}}" dependentSelector="{{AdminProductCustomizableOptionsSection.addOptionBtn}}" visible="false" stepKey="openCustomOptionSectionInDefaultStoreView"/>

0 commit comments

Comments
 (0)