Skip to content

Commit 186f682

Browse files
author
Dmytro Bursak
committed
MTA-2308: [CS] Wishlist module functional tests maintenance
1 parent 2015f5c commit 186f682

12 files changed

+6
-13
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/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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ 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),
44+
$wishlistGrid->isRowVisible(['product_name' => $product->getName()]),
4545
$product->getName() . " is not visible in customer wishlist on backend."
4646
);
4747
}

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/AddProductsToCartFromCustomerWishlistOnFrontendTest.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
<constraint name="Magento\Wishlist\Test\Constraint\AssertProductsIsAbsentInWishlist" />
2121
</variation>
2222
<variation name="AddProductsToCartFromCustomerWishlistOnFrontendTestVariation3">
23-
<data name="issue" xsi:type="string">Bug: MAGETWO-36215</data>
2423
<data name="products" xsi:type="string">catalogProductSimple::default,catalogProductVirtual::product_50_dollar,catalogProductSimple::default,catalogProductVirtual::product_50_dollar</data>
2524
<data name="qty" xsi:type="string">-</data>
2625
<constraint name="Magento\Checkout\Test\Constraint\AssertProductQtyInShoppingCart" />

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
/**

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class MoveProductFromShoppingCartToWishlistTest 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/ShareWishlistEntityTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ class ShareWishlistEntityTest extends Injectable
3737
/* tags */
3838
const MVP = 'no';
3939
const DOMAIN = 'CS';
40-
const TO_MAINTAIN = 'yes';
4140
/* end tags */
4241

4342
/**

0 commit comments

Comments
 (0)