Skip to content

Commit 59b4868

Browse files
author
Dmytro Bursak
committed
Merge branch 'MTA-2308' of https://github.corp.ebay.com/magento-qmt/magento2ce into develop
2 parents b3cb3b9 + 178fcc9 commit 59b4868

14 files changed

+13
-28
lines changed

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite/Configure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Configure extends \Magento\Catalog\Test\Block\Adminhtml\Product\Composite\
1919
*
2020
* @var string
2121
*/
22-
protected $option = '//div[@class="composite-bundle"]//label[.="%option_name%"]//following-sibling::*//%selector%';
22+
protected $option = '//label[contains(.,"%option_name%")]//following-sibling::*//%selector%';
2323

2424
/**
2525
* Fill options for the product

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Composite/Configure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ protected function waitForFormVisible()
103103
{
104104
$context = $this->_rootElement;
105105
$selector = $this->configureForm;
106-
return $this->browser->waitUntil(
106+
$this->browser->waitUntil(
107107
function () use ($context, $selector) {
108108
return $context->find($selector)->isVisible() ? true : null;
109109
}
@@ -119,7 +119,7 @@ protected function waitForFormNotVisible()
119119
{
120120
$context = $this->_rootElement;
121121
$selector = $this->configureForm;
122-
return $this->browser->waitUntil(
122+
$this->browser->waitUntil(
123123
function () use ($context, $selector) {
124124
return $context->find($selector)->isVisible() ? null : true;
125125
}

dev/tests/functional/tests/app/Magento/Customer/Test/TestStep/LogoutCustomerOnFrontendStep.php

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,12 @@ public function __construct(CmsIndex $cmsIndex, CustomerAccountLogout $customerA
5252
*/
5353
public function run()
5454
{
55-
/* @TODO: MAGETWO-37391
56-
* $this->cmsIndex->open();
57-
* $this->cmsIndex->getCmsPageBlock()->waitPageInit();
58-
* if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
59-
* $this->cmsIndex->getLinksBlock()->openLink("Log Out");
60-
* $this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
61-
* $this->cmsIndex->getCmsPageBlock()->waitPageInit();
62-
* }
63-
*/
64-
$this->customerAccountLogout->open();
65-
if (self::LOGOUT_PAGE_TITLE == $this->cmsIndex->getCmsPageBlock()->getPageTitle()) {
55+
$this->cmsIndex->open();
56+
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
57+
if ($this->cmsIndex->getLinksBlock()->isLinkVisible("Log Out")) {
58+
$this->cmsIndex->getLinksBlock()->openLink("Log Out");
6659
$this->cmsIndex->getCmsPageBlock()->waitUntilTextIsVisible('Home Page');
60+
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6761
}
68-
$this->cmsIndex->getCmsPageBlock()->waitPageInit();
6962
}
7063
}

dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Constraint/AssertGroupedProductInCustomerWishlistOnBackendGrid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function prepareFilter(FixtureInterface $product)
2626
{
2727
$options = $this->prepareOptions($product);
2828

29-
return ['product_name' => $product->getName(), 'qty_from' => 1, 'qty_to' => 1, 'options' => $options];
29+
return ['product_name' => $product->getName(), 'options' => $options];
3030
}
3131

3232
/**

dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductInCustomerWishlistOnBackendGrid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function processAssert(CustomerIndexEdit $customerIndexEdit, FixtureInter
3131
/** @var Grid $wishlistGrid */
3232
$wishlistGrid = $customerIndexEdit->getCustomerForm()->getTab('wishlist')->getSearchGridBlock();
3333
\PHPUnit_Framework_Assert::assertTrue(
34-
$wishlistGrid->isRowVisible($filter, true, false),
34+
$wishlistGrid->isRowVisible($filter),
3535
'Product ' . $product->getName() . ' is absent in grid with configure option.'
3636
);
3737
}

dev/tests/functional/tests/app/Magento/Wishlist/Test/Constraint/AssertProductIsPresentInCustomerBackendWishlist.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function processAssert(
4141
$wishlistGrid = $customerIndexEdit->getCustomerForm()->getTab('wishlist')->getSearchGridBlock();
4242

4343
\PHPUnit_Framework_Assert::assertTrue(
44-
$wishlistGrid->isRowVisible(['product_name' => $product->getName()], true, false),
45-
$product->getName() . " is not visible in Customer Wish List on Backend."
44+
$wishlistGrid->isRowVisible(['product_name' => $product->getName()]),
45+
$product->getName() . " is not visible in customer wishlist on backend."
4646
);
4747
}
4848

@@ -53,6 +53,6 @@ public function processAssert(
5353
*/
5454
public function toString()
5555
{
56-
return "Product is visible in Customer Wish List on Backend.";
56+
return "Product is visible in customer wishlist on backend.";
5757
}
5858
}

dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class AddProductToWishlistEntityTest extends AbstractWishlistTest
2929
/* tags */
3030
const MVP = 'no';
3131
const DOMAIN = 'CS';
32-
const STABLE = 'no';
3332
/* end tags */
3433

3534
/**

dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/AddProductToWishlistEntityTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
<constraint name="Magento\Wishlist\Test\Constraint\AssertProductIsPresentInCustomerBackendWishlist" />
1515
</variation>
1616
<variation name="AddProductToWishlistEntityTestVariation2">
17-
<data name="tag" xsi:type="string">to_maintain:yes</data>
1817
<data name="product" xsi:type="string">catalogProductVirtual::default</data>
1918
<constraint name="Magento\Wishlist\Test\Constraint\AssertAddProductToWishlistSuccessMessage" />
2019
<constraint name="Magento\Wishlist\Test\Constraint\AssertProductIsPresentInWishlist" />

dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/ConfigureProductInCustomerWishlistOnFrontendTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class ConfigureProductInCustomerWishlistOnFrontendTest extends AbstractWishlistT
3030
/* tags */
3131
const MVP = 'no';
3232
const DOMAIN = 'CS';
33-
const TO_MAINTAIN = 'yes';
3433
/* end tags */
3534

3635
/**

dev/tests/functional/tests/app/Magento/Wishlist/Test/TestCase/DeleteProductFromCustomerWishlistOnBackendTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class DeleteProductFromCustomerWishlistOnBackendTest extends AbstractWishlistTes
3535
/* tags */
3636
const MVP = 'no';
3737
const DOMAIN = 'CS';
38-
const TO_MAINTAIN = 'yes';
3938
/* end tags */
4039

4140
/**

0 commit comments

Comments
 (0)