Skip to content

Commit 040ab11

Browse files
committed
MAGETWO-91240: Automate MFTF
- Added test to check Out Of Stock products
1 parent 17688a1 commit 040ab11

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Catalog/Data/ProductData.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,18 @@
7777
<data key="quantity">1000</data>
7878
<data key="urlKey" unique="suffix">simple</data>
7979
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
80+
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
8081
</entity>
8182
<entity name="SimpleProduct4" type="product">
82-
<data key="sku" unique="suffix">SimpleProduct</data>
83+
<data key="sku" unique="suffix">testSku</data>
8384
<data key="type_id">simple</data>
8485
<data key="attribute_set_id">4</data>
85-
<data key="name" unique="suffix">SimpleProduct</data>
86-
<data key="price">123.00</data>
8786
<data key="visibility">4</data>
87+
<data key="name" unique="suffix">OutOfStockProduct</data>
88+
<data key="price">123.00</data>
89+
<data key="urlKey" unique="suffix">testurlkey</data>
8890
<data key="status">1</data>
8991
<data key="quantity">0</data>
90-
<data key="weight">1</data>
91-
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
9292
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
9393
</entity>
9494
<entity name="NewSimpleProduct" type="product">

dev/tests/acceptance/tests/functional/Magento/FunctionalTest/Config/ActionGroup/DisplayOutOfStockProductActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<selectOption selector="{{InventoryConfigSection.DisplayOutOfStockDropdown}}" userInput="Yes" stepKey="switchToYes" />
1717
<click selector="{{ContentManagementSection.Save}}" stepKey="clickSaveConfig" />
1818
</actionGroup>
19-
<actionGroup name="dontDisplayOutOfStockProduct">
19+
<actionGroup name="noDisplayOutOfStockProduct">
2020
<amOnPage url="{{InventoryConfigurationPage.url}}" stepKey="navigateToInventoryConfigurationPage"/>
2121
<waitForPageLoad stepKey="waitForConfigPageToLoad"/>
2222
<uncheckOption selector="{{InventoryConfigSection.DisplayOutOfStockSystemValue}}" stepKey="uncheckUseSystemValue"/>

0 commit comments

Comments
 (0)