Skip to content
Snippets Groups Projects
Commit b5a80fad authored by Dmytro Aponasenko's avatar Dmytro Aponasenko
Browse files

MTA-1994: Analyse functional test failures - Sprint 10

parent bab03272
Branches
No related merge requests found
...@@ -11,31 +11,30 @@ use Magento\Mtf\Block\Block; ...@@ -11,31 +11,30 @@ use Magento\Mtf\Block\Block;
use Magento\Mtf\Client\Locator; use Magento\Mtf\Client\Locator;
/** /**
* Class Items * Adminhtml sales order create items block.
* Adminhtml sales order create items block
*/ */
class Items extends Block class Items extends Block
{ {
/** /**
* 'Add Products' button * 'Add Products' button.
* *
* @var string * @var string
*/ */
protected $addProducts = "//button[span='Add Products']"; protected $addProducts = "//button[span='Add Products']";
/** /**
* Item product * Item product.
* *
* @var string * @var string
*/ */
protected $itemProduct = '//tr[td//*[normalize-space(text())="%s"]]'; protected $itemProduct = '//tr[td//*[normalize-space(text())="%s"]]';
/** /**
* Product names * Product names.
* *
* @var string * @var string
*/ */
protected $productNames = '//td[@class="col-product"]//span'; protected $productNames = '//td[@class="col-product"]/span';
/** /**
* Selector for template block. * Selector for template block.
...@@ -45,7 +44,7 @@ class Items extends Block ...@@ -45,7 +44,7 @@ class Items extends Block
protected $template = './ancestor::body'; protected $template = './ancestor::body';
/** /**
* Click 'Add Products' button * Click 'Add Products' button.
* *
* @return void * @return void
*/ */
...@@ -63,7 +62,7 @@ class Items extends Block ...@@ -63,7 +62,7 @@ class Items extends Block
} }
/** /**
* Get item product block * Get item product block.
* *
* @param string $name * @param string $name
* @return \Magento\Sales\Test\Block\Adminhtml\Order\Create\Items\ItemProduct * @return \Magento\Sales\Test\Block\Adminhtml\Order\Create\Items\ItemProduct
......
...@@ -45,7 +45,7 @@ class Labels extends Tab ...@@ -45,7 +45,7 @@ class Labels extends Tab
* @param SimpleElement|null $element * @param SimpleElement|null $element
* @return array * @return array
* *
* @SuppressWarnings(PHPMD.UnusedLocalVariable) * @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/ */
public function getDataFormTab($fields = null, SimpleElement $element = null) public function getDataFormTab($fields = null, SimpleElement $element = null)
{ {
......
...@@ -6,26 +6,26 @@ ...@@ -6,26 +6,26 @@
*/ */
--> -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd"> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
<testCase name="Magento\Wishlist\Test\TestCase\ConfigureProductInCustomerWishlistOnBackendTest"> <testCase name="Magento\Wishlist\Test\TestCase\ConfigureProductInCustomerWishlistOnBackendTest">
<variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation1" firstConstraint="Magento\Wishlist\Test\Constraint\AssertProductInCustomerWishlistOnBackendGrid" method="test"> <variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation1">
<data name="product" xsi:type="string">catalogProductSimple::with_two_custom_option</data> <data name="product" xsi:type="string">catalogProductSimple::with_two_custom_option</data>
<constraint name="Magento\Wishlist\Test\Constraint\AssertProductInCustomerWishlistOnBackendGrid"/> <constraint name="Magento\Wishlist\Test\Constraint\AssertProductInCustomerWishlistOnBackendGrid" />
</variation> </variation>
<variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation2" firstConstraint="Magento\ConfigurableProduct\Test\Constraint\AssertConfigurableProductInCustomerWishlistOnBackendGrid" method="test"> <variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation2">
<data name="product" xsi:type="string">configurableProduct::default</data> <data name="product" xsi:type="string">configurableProduct::default</data>
<constraint name="Magento\ConfigurableProduct\Test\Constraint\AssertConfigurableProductInCustomerWishlistOnBackendGrid"/> <constraint name="Magento\ConfigurableProduct\Test\Constraint\AssertConfigurableProductInCustomerWishlistOnBackendGrid" />
</variation> </variation>
<variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation3" firstConstraint="Magento\Bundle\Test\Constraint\AssertBundleProductInCustomerWishlistOnBackendGrid" method="test"> <variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation3">
<data name="product" xsi:type="string">bundleProduct::bundle_dynamic_product</data> <data name="product" xsi:type="string">bundleProduct::bundle_dynamic_product</data>
<constraint name="Magento\Bundle\Test\Constraint\AssertBundleProductInCustomerWishlistOnBackendGrid"/> <constraint name="Magento\Bundle\Test\Constraint\AssertBundleProductInCustomerWishlistOnBackendGrid" />
</variation> </variation>
<variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation4" firstConstraint="Magento\Downloadable\Test\Constraint\AssertDownloadableProductInCustomerWishlistOnBackendGrid" method="test"> <variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation4">
<data name="product" xsi:type="string">downloadableProduct::with_two_separately_links</data> <data name="product" xsi:type="string">downloadableProduct::with_two_separately_links</data>
<constraint name="Magento\Downloadable\Test\Constraint\AssertDownloadableProductInCustomerWishlistOnBackendGrid"/> <constraint name="Magento\Downloadable\Test\Constraint\AssertDownloadableProductInCustomerWishlistOnBackendGrid" />
</variation> </variation>
<variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation5" firstConstraint="Magento\GroupedProduct\Test\Constraint\AssertGroupedProductInCustomerWishlistOnBackendGrid" method="test"> <variation name="ConfigureProductInCustomerWishlistOnBackendTestVariation5">
<data name="product" xsi:type="string">groupedProduct::three_simple_products</data> <data name="product" xsi:type="string">groupedProduct::three_simple_products</data>
<constraint name="Magento\GroupedProduct\Test\Constraint\AssertGroupedProductInCustomerWishlistOnBackendGrid"/> <constraint name="Magento\GroupedProduct\Test\Constraint\AssertGroupedProductInCustomerWishlistOnBackendGrid" />
</variation> </variation>
</testCase> </testCase>
</config> </config>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment