File tree Expand file tree Collapse file tree 5 files changed +59
-6
lines changed
dev/tests/acceptance/tests/functional/Magento/FunctionalTest Expand file tree Collapse file tree 5 files changed +59
-6
lines changed Original file line number Diff line number Diff line change 77
77
<data key =" quantity" >1000</data >
78
78
<data key =" urlKey" unique =" suffix" >simple</data >
79
79
<requiredEntity type =" product_extension_attribute" >EavStockItem</requiredEntity >
80
+ <requiredEntity type =" custom_attribute_array" >CustomAttributeCategoryIds</requiredEntity >
81
+ </entity >
82
+ <entity name =" SimpleProduct4" type =" product" >
83
+ <data key =" sku" unique =" suffix" >testSku</data >
84
+ <data key =" type_id" >simple</data >
85
+ <data key =" attribute_set_id" >4</data >
86
+ <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 >
90
+ <data key =" status" >1</data >
91
+ <data key =" quantity" >0</data >
92
+ <requiredEntity type =" custom_attribute_array" >CustomAttributeCategoryIds</requiredEntity >
80
93
</entity >
81
94
<entity name =" NewSimpleProduct" type =" product" >
82
95
<data key =" price" >321.00</data >
Original file line number Diff line number Diff line change
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 =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Test/etc/actionGroupSchema.xsd" >
11
+ <actionGroup name =" displayOutOfStockProduct" >
12
+ <amOnPage url =" {{InventoryConfigurationPage.url}}" stepKey =" navigateToInventoryConfigurationPage" />
13
+ <waitForPageLoad stepKey =" waitForConfigPageToLoad" />
14
+ <uncheckOption selector =" {{InventoryConfigSection.DisplayOutOfStockSystemValue}}" stepKey =" uncheckUseSystemValue" />
15
+ <waitForElementVisible selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" stepKey =" waitForSwitcherDropdown" />
16
+ <selectOption selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" userInput =" Yes" stepKey =" switchToYes" />
17
+ <click selector =" {{ContentManagementSection.Save}}" stepKey =" clickSaveConfig" />
18
+ </actionGroup >
19
+ <actionGroup name =" noDisplayOutOfStockProduct" >
20
+ <amOnPage url =" {{InventoryConfigurationPage.url}}" stepKey =" navigateToInventoryConfigurationPage" />
21
+ <waitForPageLoad stepKey =" waitForConfigPageToLoad" />
22
+ <uncheckOption selector =" {{InventoryConfigSection.DisplayOutOfStockSystemValue}}" stepKey =" uncheckUseSystemValue" />
23
+ <waitForElementVisible selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" stepKey =" waitForSwitcherDropdown" />
24
+ <selectOption selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" userInput =" No" stepKey =" switchToNo" />
25
+ <click selector =" {{ContentManagementSection.Save}}" stepKey =" clickSaveConfig" />
26
+ </actionGroup >
27
+ </actionGroups >
Original file line number Diff line number Diff line change 11
11
<actionGroup name =" SwitchToVersion4ActionGroup" >
12
12
<amOnPage url =" {{ConfigurationStoresPage.url}}" stepKey =" navigateToWYSIWYGConfigPage1" />
13
13
<waitForPageLoad stepKey =" waitForConfigPageToLoad" />
14
- <conditionalClick stepKey =" expandWYSIWYGOptions" selector =" {{ContentManagementSection.WYSIWYGOptions}}" dependentSelector =" {{ContentManagementSection.CheckIfTabExpand}}" visible =" true" />
15
- <waitForElementVisible selector =" {{ContentManagementSection.SwitcherSystemValue}}" stepKey =" waitForCheckbox" />
16
- <uncheckOption selector =" {{ContentManagementSection.SwitcherSystemValue}}" stepKey =" uncheckUseSystemValue" />
17
- <waitForElementVisible selector =" {{ContentManagementSection.Switcher}}" stepKey =" waitForSwitcherDropdown" />
18
- <selectOption selector =" {{ContentManagementSection.Switcher}}" userInput =" TinyMCE 4" stepKey =" switchToVersion4" />
19
- <click selector =" {{ContentManagementSection.WYSIWYGOptions}}" stepKey =" collapseWYSIWYGOptions" />
14
+ <uncheckOption selector =" {{InventoryConfigSection.DisplayOutOfStockSystemValue}}" stepKey =" uncheckUseSystemValue" />
15
+ <waitForElementVisible selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" stepKey =" waitForDropdown" />
16
+ <selectOption selector =" {{InventoryConfigSection.DisplayOutOfStockDropdown}}" userInput =" Yes" stepKey =" switchToYes" />
20
17
<click selector =" {{ContentManagementSection.Save}}" stepKey =" clickSaveConfig" />
21
18
</actionGroup >
22
19
</actionGroups >
Original file line number Diff line number Diff line change 12
12
<page name =" AdminContentManagementPage" url =" admin/system_config/edit/section/cms/" area =" admin" module =" Magento_Config" >
13
13
<section name =" ContentManagementSection" />
14
14
</page >
15
+ <page name =" InventoryConfigurationPage" url =" admin/system_config/edit/section/cataloginventory/" area =" admin" module =" Magento_Config" >
16
+ <section name =" InventorySection" />
17
+ </page >
15
18
</pages >
Original file line number Diff line number Diff line change
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
+ <sections xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" ../../../../../../vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd" >
9
+ <section name =" InventoryConfigSection" >
10
+ <element name =" DisplayOutOfStockSystemValue" type =" button" selector =" #cataloginventory_options_show_out_of_stock_inherit" />
11
+ <element name =" DisplayOutOfStockDropdown" type =" button" selector =" #cataloginventory_options_show_out_of_stock" />
12
+ </section >
13
+ </sections >
You can’t perform that action at this time.
0 commit comments