Skip to content

Commit c8bf4d7

Browse files
author
okarpenko
committed
Merge branch 'MAGETWO-32631-by-andrii' of https://github.corp.ebay.com/magento-south/magento2ce into MAGETWO-32631-by-andrii
2 parents 5626f1b + 0af9f81 commit c8bf4d7

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart/Sidebar.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Sidebar extends Block
2121
*
2222
* @var string
2323
*/
24-
protected $qty = '//*[@class="product"]/*[@title="%s"]/following-sibling::*//*[@class="value qty"]';
24+
protected $qty = '//*[@class="product"]/*[@title="%s"]/following-sibling::*//*[@class="item-qty cart-item-qty"]';
2525

2626
/**
2727
* Mini cart link selector
@@ -42,7 +42,7 @@ class Sidebar extends Block
4242
*
4343
* @var string
4444
*/
45-
protected $cartItemByProductName = './/*[contains(@class,"products minilist")]//li[.//a[.="%s"]]';
45+
protected $cartItemByProductName = './/*[contains(@class,"minicart-items")]//li[.//a[.="%s"]]';
4646

4747
/**
4848
* Counter qty locator
@@ -91,7 +91,7 @@ public function getProductQty($productName)
9191
{
9292
$this->openMiniCart();
9393
$productQty = sprintf($this->qty, $productName);
94-
return $this->_rootElement->find($productQty, Locator::SELECTOR_XPATH)->getText();
94+
return $this->_rootElement->find($productQty, Locator::SELECTOR_XPATH)->getValue();
9595
}
9696

9797
/**

dev/tests/functional/tests/app/Magento/Checkout/Test/TestCase/UpdateProductFromMiniShoppingCartEntityTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ public function __inject(
8585
*/
8686
public function test($originalProduct, $checkoutData)
8787
{
88-
$this->markTestIncomplete('Bug: MAGETWO-34259');
8988
// Preconditions:
9089
$product = $this->createProduct($originalProduct);
9190
$this->addToCart($product);

0 commit comments

Comments
 (0)