Skip to content

Commit

Permalink
Merge pull request magento#4121 from magento-tsg/2.3-develop-mftf-pr15
Browse files Browse the repository at this point in the history
[TSG] MTF fixes for 2.3 (pr15) (2.3.2)
  • Loading branch information
xmav authored Apr 26, 2019
2 parents 6a394d1 + 40482e1 commit d3fdecf
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInventoryMaxAllowedQty" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation13">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MAGETWO-48850: Filtering Category Products using scope selector</data>
<data name="description" xsi:type="string">Create simple product and check search by sku</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
Expand All @@ -42,6 +44,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation14">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MC-6220: Add products to wishlist from Category page with multiple wishlist enabled</data>
<data name="description" xsi:type="string">Create simple product and check visibility in category</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\Product\CreateSimpleProductEntityPartTwoTest" summary="Create Simple Product" ticketId="MAGETWO-23414">
<variation name="CreateSimpleProductEntityTestVariation23" summary="Create Simple Product with Creating New Category (Required Fields Only)" ticketId="MAGETWO-27293">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MC-234: Admin should be able to create category from the product page</data>
<data name="product/data/category_ids/new_category" xsi:type="string">yes</data>
<data name="product/data/category_ids/dataset" xsi:type="string">default_subcategory_without_url_key</data>
<data name="product/data/website_ids/0/dataset" xsi:type="string">default</data>
Expand All @@ -23,6 +25,8 @@
<constraint name="Magento\UrlRewrite\Test\Constraint\AssertUrlRewriteProductInGrid" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation24" summary="Create Simple Product and Assigning It to Category" ticketId="MAGETWO-12514">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MAGETWO-23414: Create Simple Product</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
Expand Down Expand Up @@ -79,6 +83,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductSaveMessage" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation28" summary="Create product with tier price for not logged in customer">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MAGETWO-68921: Apply Tier Price to a product</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
Expand Down Expand Up @@ -118,6 +124,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInCart" />
</variation>
<variation name="CreateSimpleProductEntityWithTierPriceTestVariation1" summary="Create Simple Product with fixed tier price.">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MAGETWO-68921: Apply Tier Price to a product</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
Expand All @@ -127,6 +135,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductTierPriceInCart" />
</variation>
<variation name="CreateSimpleProductEntityWithTierPriceTestVariation2" summary="Create Simple Product with percentage tier price.">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="issue" xsi:type="string">MAGETWO-68921: Apply Tier Price to a product</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
<data name="product/data/sku" xsi:type="string">simple_sku_%isolation%</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ public function testCreate(
$flushCache = false,
$configData = null
) {
$this->markTestIncomplete('https://github.com/magento-engcom/msi/issues/1620');

$this->configData = $configData;
$this->flushCache = $flushCache;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
</variation>
<variation name="CreateSimpleProductEntityTestVariation10" summary="Create in stock product and check threshold" ticketId="MAGETWO-43345">
<data name="issue" xsi:type="string">https://github.com/magento-engcom/msi/issues/1620</data>
<data name="tag" xsi:type="string">to_maintain:yes</data>
<data name="configData" xsi:type="string">inventory_threshold_5</data>
<data name="product/data/url_key" xsi:type="string">simple-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">Simple Product %isolation%</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\ProductAttribute\CreateProductAttributeEntityTest" summary="Create Product Attribute" ticketId="MAGETWO-24767">
<variation name="CreateProductAttributeEntityTestVariation1">
<data name="tag" xsi:type="string">to_maintain:yes</data>
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
<data name="productAttribute/data/frontend_label" xsi:type="string">Text_Field_Admin_%isolation%</data>
<data name="productAttribute/data/frontend_input" xsi:type="string">Text Field</data>
Expand Down Expand Up @@ -60,7 +59,6 @@
<data name="productAttribute/data/used_in_product_listing" xsi:type="string">Yes</data>
<data name="productAttribute/data/is_used_for_promo_rules" xsi:type="string">Yes</data>
<data name="productAttribute/data/used_for_sort_by" xsi:type="string">Yes</data>
<data name="tag" xsi:type="string">to_maintain:yes</data>
<constraint name="Magento\Catalog\Test\Constraint\AssertProductAttributeInGrid" />
<constraint name="Magento\Catalog\Test\Constraint\AssertAttributeForm" />
<constraint name="Magento\CatalogSearch\Test\Constraint\AssertAdvancedSearchProductByAttribute" />
Expand All @@ -69,7 +67,6 @@
<constraint name="Magento\CatalogRule\Test\Constraint\AssertProductAttributeIsUsedPromoRules" />
</variation>
<variation name="CreateProductAttributeEntityTestVariation4">
<data name="tag" xsi:type="string">to_maintain:yes</data>
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
<data name="productAttribute/data/frontend_label" xsi:type="string">Yes/No_Admin_%isolation%</data>
<data name="productAttribute/data/frontend_input" xsi:type="string">Yes/No</data>
Expand All @@ -86,6 +83,7 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertAddedProductAttributeOnProductForm" />
</variation>
<variation name="CreateProductAttributeEntityTestVariation5" summary="Create custom multiple select attribute product field" ticketId="MAGETWO-14862">
<data name="tag" xsi:type="string">mftf_migrated:yes</data>
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
<data name="productAttribute/data/frontend_label" xsi:type="string">Multiple_Select_Admin_%isolation%</data>
<data name="productAttribute/data/frontend_input" xsi:type="string">Multiple Select</data>
Expand All @@ -102,7 +100,6 @@
<data name="productAttribute/data/is_html_allowed_on_front" xsi:type="string">Yes</data>
<data name="productAttribute/data/is_visible_on_front" xsi:type="string">Yes</data>
<data name="productAttribute/data/used_in_product_listing" xsi:type="string">Yes</data>
<data name="tag" xsi:type="string">to_maintain:yes</data>
<constraint name="Magento\Catalog\Test\Constraint\AssertProductAttributeInGrid" />
<constraint name="Magento\Catalog\Test\Constraint\AssertAttributeForm" />
<constraint name="Magento\Catalog\Test\Constraint\AssertAddedProductAttributeOnProductForm" />
Expand Down Expand Up @@ -178,7 +175,6 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductAttributeIsFilterableInSearch" />
</variation>
<variation name="CreateProductAttributeEntityTestVariation8">
<data name="tag" xsi:type="string">to_maintain:yes</data>
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
<data name="productAttribute/data/frontend_label" xsi:type="string">Fixed_Product_Tax_Admin_%isolation%</data>
<data name="productAttribute/data/frontend_input" xsi:type="string">Fixed Product Tax</data>
Expand All @@ -195,7 +191,6 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertAddedProductAttributeOnProductForm" />
</variation>
<variation name="CreateProductAttributeEntityTestVariation9">
<data name="tag" xsi:type="string">to_maintain:yes</data>
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
<data name="productAttribute/data/frontend_label" xsi:type="string">Text_Field_Admin_%isolation%</data>
<data name="productAttribute/data/frontend_input" xsi:type="string">Text Field</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Catalog\Test\TestCase\ProductAttribute\UpdateAttributeSetTest" summary="Update Attribute Set" ticketId="MAGETWO-26251">
<variation name="UpdateAttributeSetTestVariation1">
<data name="tag" xsi:type="string">stable:no</data>
<data name="attributeSet/data/attribute_set_name" xsi:type="string">AttributeSetEdit1%isolation%</data>
<data name="attributeSet/data/group" xsi:type="string">Custom-group%isolation%</data>
<data name="attributeSetOriginal/dataset" xsi:type="string">custom_attribute_set</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ public function getGrandTotal()
*/
public function getGrandTotalIncludingTax()
{
$this->waitForGrandTotal();
$priceElement = $this->_rootElement->find($this->grandTotalInclTax, Locator::SELECTOR_CSS);
return $priceElement->isVisible() ? $this->escapeCurrency($priceElement->getText()) : null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<constraint name="Magento\Checkout\Test\Constraint\AssertCustomerIsRedirectedToCheckoutFromCart" />
</variation>
<variation name="UpdateProductFromMiniShoppingCartEntityTestVariation2" summary="Update Configurable and verify previous product was updated to new one in shopping cart and mini shopping cart">
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, to_maintain:yes, severity:S0</data>
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, severity:S0</data>
<data name="originalProduct/0" xsi:type="string">configurableProduct::default</data>
<data name="checkoutData/dataset" xsi:type="string">configurable_update_mini_shopping_cart</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertCartItemsOptions" />
Expand All @@ -35,7 +35,7 @@
<constraint name="Magento\Checkout\Test\Constraint\AssertProductOptionsAbsentInShoppingCart" />
</variation>
<variation name="UpdateProductFromMiniShoppingCartEntityTestVariation3" summary="Update Bundle and verify previous product was updated to new one in shopping cart and mini shopping cart">
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, to_maintain:yes, severity:S0</data>
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, severity:S0</data>
<data name="originalProduct/0" xsi:type="string">bundleProduct::bundle_fixed_product</data>
<data name="checkoutData/dataset" xsi:type="string">bundle_update_mini_shopping_cart</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertCartItemsOptions" />
Expand All @@ -44,7 +44,7 @@
<constraint name="Magento\Checkout\Test\Constraint\AssertProductOptionsAbsentInShoppingCart" />
</variation>
<variation name="UpdateProductFromMiniShoppingCartEntityTestVariation4" summary="Update Downloadable and check previous link was updated to new one in shopping cart and mini shopping cart">
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, to_maintain:yes, severity:S1</data>
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, severity:S1</data>
<data name="originalProduct/0" xsi:type="string">downloadableProduct::with_two_separately_links</data>
<data name="checkoutData/dataset" xsi:type="string">downloadable_update_mini_shopping_cart</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertCartItemsOptions" />
Expand All @@ -53,7 +53,7 @@
<constraint name="Magento\Checkout\Test\Constraint\AssertProductOptionsAbsentInShoppingCart" />
</variation>
<variation name="UpdateProductFromMiniShoppingCartEntityTestVariation5" summary="Update Virtual product in mini shopping cart">
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, to_maintain:yes, severity:S1</data>
<data name="tag" xsi:type="string">test_type:extended_acceptance_test, severity:S1</data>
<data name="originalProduct/0" xsi:type="string">catalogProductVirtual::default</data>
<data name="checkoutData/dataset" xsi:type="string">virtual_update_mini_shopping_cart</data>
<constraint name="Magento\Checkout\Test\Constraint\AssertProductDataInMiniShoppingCart" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductOutOfStock" />
</variation>
<variation name="CreateGroupedProductEntityTestVariation5" summary="Create with no required products">
<data name="tag" xsi:type="string">stable:no</data>
<data name="product/data/url_key" xsi:type="string">test-grouped-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">GroupedProduct %isolation%</data>
<data name="product/data/sku" xsi:type="string">GroupedProduct_sku%isolation%</data>
Expand Down Expand Up @@ -110,7 +109,6 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductPage" />
</variation>
<variation name="CreateGroupedProductEntityTestVariation10" summary="Create Grouped Product and Assign it on Custom Website">
<data name="tag" xsi:type="string">stable:no</data>
<data name="product/data/url_key" xsi:type="string">test-grouped-product-%isolation%</data>
<data name="product/data/name" xsi:type="string">GroupedProduct %isolation%</data>
<data name="product/data/sku" xsi:type="string">GroupedProduct_sku%isolation%</data>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class TaxWithCrossBorderTest extends Injectable
{
/* tags */
const MVP = 'yes';
const STABLE = 'no';
/* end tags */

/**
Expand Down

0 comments on commit d3fdecf

Please sign in to comment.