Skip to content

Commit

Permalink
Merge pull request magento#98 from magento-pangolin/MC-4447
Browse files Browse the repository at this point in the history
  • Loading branch information
tomreece authored Apr 17, 2019
2 parents db3901e + 9f301be commit eafce9d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
-->

<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
<actionGroup name="StorefrontAssertProductSpecialPriceOnProductPageActionGroup">
<arguments>
<argument name="product" type="entity"/>
<argument name="specialPrice" type="string"/>
</arguments>
<amOnPage url="{{StorefrontProductPage.url(product.name)}}" stepKey="onFirstProductPage"/>
<waitForPageLoad stepKey="waitForFirstProductPage"/>
<grabTextFrom selector="{{StorefrontProductInfoMainSection.specialPriceValue}}" stepKey="grabProductSpecialPrice"/>
<assertEquals actual="$grabProductSpecialPrice" expectedType="string" expected="{{specialPrice}}" stepKey="assertProductPriceValuesAreEqual"/>
</actionGroup>
</actionGroups>
30 changes: 30 additions & 0 deletions app/code/Magento/Catalog/Test/Mftf/Data/ProductData.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1060,4 +1060,34 @@
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute_array">ApiProductDescription</requiredEntity>
</entity>
<entity name="SimpleProductWithSpecialPrice" type="product">
<data key="sku" unique="suffix">SimpleProductWithSpecialPrice</data>
<data key="type_id">simple</data>
<data key="attribute_set_id">4</data>
<data key="name" unique="suffix">SimpleProduct</data>
<data key="price">100.00</data>
<data key="special_price">90.00</data>
<data key="visibility">4</data>
<data key="status">1</data>
<data key="quantity">86</data>
<data key="urlKey" unique="suffix">simpleproduct</data>
<data key="weight">1</data>
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
</entity>
<entity name="SimpleProductWithSpecialPriceSecond" type="product">
<data key="sku" unique="suffix">SimpleProductWithSpecialPriceSecond</data>
<data key="type_id">simple</data>
<data key="attribute_set_id">4</data>
<data key="name" unique="suffix">SimpleProduct</data>
<data key="price">150.00</data>
<data key="special_price">110.00</data>
<data key="visibility">4</data>
<data key="status">1</data>
<data key="quantity">86</data>
<data key="urlKey" unique="suffix">simpleproduct</data>
<data key="weight">1</data>
<requiredEntity type="product_extension_attribute">EavStockItem</requiredEntity>
<requiredEntity type="custom_attribute_array">CustomAttributeCategoryIds</requiredEntity>
</entity>
</entities>

0 comments on commit eafce9d

Please sign in to comment.