Skip to content

Commit

Permalink
Merge pull request #2898 from magento-tsg/2.3-develop-mftf-pr3
Browse files Browse the repository at this point in the history
[TSG] MFTF for 2.3 (pr3) (2.3.0)
  • Loading branch information
Alexander Akimov authored Jul 24, 2018
2 parents a998870 + 2158f76 commit 38f975a
Show file tree
Hide file tree
Showing 42 changed files with 1,578 additions and 24 deletions.
4 changes: 2 additions & 2 deletions app/code/Magento/Bundle/Test/Mftf/Data/BundleLinkData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="ApiBundleLink" type="bundle_link">
<var key="sku" entityKey="sku" entityType="product2"/>
<var key="option_id" entityKey="option_id" entityType="bundle_options"/>
<var key="option_id" entityKey="return" entityType="bundle_option"/>
<var key="sku" entityKey="sku" entityType="product"/>
<data key="qty">1</data>
<data key="is_default">1</data>
<data key="is_default">0</data>
<data key="price">1.11</data>
<data key="price_type">1</data>
<data key="can_change_quantity">1</data>
Expand Down
25 changes: 23 additions & 2 deletions app/code/Magento/Bundle/Test/Mftf/Data/BundleOptionData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,34 @@

<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataProfileSchema.xsd">
<entity name="DropdownBundleOption" type="bundle_option">
<entity name="DropDownBundleOption" type="bundle_option">
<data key="title" unique="suffix">bundle-option-dropdown</data>
<data key="required">true</data>
<data key="type">dropdown</data>
<data key="type">select</data>
<data key="position">0</data>
<var key="sku" entityKey="sku" entityType="product2"/>
</entity>
<entity name="RadioButtonsOption" type="bundle_option">
<data key="title" unique="suffix">bundle-option-radio</data>
<data key="required">true</data>
<data key="type">radio</data>
<data key="position">1</data>
<var key="sku" entityKey="sku" entityType="product2"/>
</entity>
<entity name="CheckboxOption" type="bundle_option">
<data key="title" unique="suffix">bundle-option-checkbox</data>
<data key="required">true</data>
<data key="type">checkbox</data>
<data key="position">3</data>
<var key="sku" entityKey="sku" entityType="product2"/>
</entity>
<entity name="MultipleSelectOption" type="bundle_option">
<data key="title" unique="suffix">bundle-option-multipleselect</data>
<data key="required">true</data>
<data key="type">multi</data>
<data key="position">4</data>
<var key="sku" entityKey="sku" entityType="product2"/>
</entity>
<entity name="AllBundleOptions" type="bundle_options">
<var key="sku" entityKey="sku" entityType="product"/>
</entity>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,8 @@
<data key="attribute_code">price_view</data>
<data key="value">1</data>
</entity>
<entity name="CustomAttributePriceViewRange" type="custom_attribute">
<data key="attribute_code">price_view</data>
<data key="value">0</data>
</entity>
</entities>
15 changes: 15 additions & 0 deletions app/code/Magento/Bundle/Test/Mftf/Data/ProductData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,19 @@
<requiredEntity type="custom_attribute">CustomAttributeDynamicPrice</requiredEntity>
<requiredEntity type="custom_attribute">CustomAttributePriceView</requiredEntity>
</entity>
<entity name="ApiBundleProductPriceViewRange" type="product2">
<data key="name" unique="suffix">Api Bundle Product</data>
<data key="sku" unique="suffix">api-bundle-product</data>
<data key="type_id">bundle</data>
<data key="attribute_set_id">4</data>
<data key="visibility">4</data>
<data key="status">1</data>
<data key="urlKey" unique="suffix">api-bundle-product</data>
<requiredEntity type="custom_attribute">CustomAttributeCategoryIds</requiredEntity>
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute">ApiProductDescription</requiredEntity>
<requiredEntity type="custom_attribute">ApiProductShortDescription</requiredEntity>
<requiredEntity type="custom_attribute">CustomAttributeDynamicPrice</requiredEntity>
<requiredEntity type="custom_attribute">CustomAttributePriceViewRange</requiredEntity>
</entity>
</entities>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/DataGenerator/etc/dataOperation.xsd">
<operation name="CreateBundleLink" dataType="bundle_link" type="create" auth="adminOauth" url="/V1/bundle-products/{sku}/links/{option_id}" method="POST">
<operation name="CreateBundleLink" dataType="bundle_link" type="create" auth="adminOauth" url="/V1/bundle-products/{sku}/links/{return}" method="POST">
<contentType>application/json</contentType>
<object dataType="bundle_link" key="linkedProduct">
<field key="sku">string</field>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="StorefrontCategoryProductSection">
<element name="priceToByProductId" type="text" selector="div[data-product-id='{{id}}'] .price-to" parameterized="true"/>
<element name="priceFromByProductId" type="text" selector="div[data-product-id='{{id}}'] .price-from" parameterized="true"/>
</section>
</sections>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->

<sections xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../../../../../../dev/tests/acceptance/vendor/magento/magento2-functional-testing-framework/src/Magento/FunctionalTestingFramework/Page/etc/SectionObject.xsd">
<section name="StorefrontProductInfoMainSection">
<element name="priceFrom" type="text" selector=".product-info-price .price-from"/>
<element name="priceTo" type="text" selector=".product-info-price .price-to"/>
<element name="minPrice" type="text" selector="span[data-price-type='minPrice']"/>
<element name="maxPrice" type="text" selector="span[data-price-type='minPrice']"/>
</section>
</sections>
Loading

0 comments on commit 38f975a

Please sign in to comment.